com.ebay.erl.mobius.core.model
Class Tuple.TupleColumnName

java.lang.Object
  extended by com.ebay.erl.mobius.core.model.Tuple.TupleColumnName
Enclosing class:
Tuple

public static final class Tuple.TupleColumnName
extends java.lang.Object

Represents the name of a tuple column.

The column name format is specified as a regular expression in COLUMN_NAME_PATTERN.


Field Summary
static java.util.regex.Pattern COLUMN_NAME_PATTERN
          Column name format of a tuple.
 
Constructor Summary
Tuple.TupleColumnName()
           
 
Method Summary
 java.lang.String getID()
          Get the column ID.
 java.lang.String getMapKey()
          If the column type is map, user can use, for example, ID.MAP_KEY to access a column named ID, which is a map, and then use MAP_KEY as the key to get the value.
static Tuple.TupleColumnName valueOf(java.lang.String columnName)
          convert the columnName into a Tuple.TupleColumnName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMN_NAME_PATTERN

public static final java.util.regex.Pattern COLUMN_NAME_PATTERN
Column name format of a tuple.

The format is: ([\\p{Graph}&&[^\\.]]+)(\\.([\\p{Graph}&&[^\\.]]+))?

Constructor Detail

Tuple.TupleColumnName

public Tuple.TupleColumnName()
Method Detail

valueOf

public static Tuple.TupleColumnName valueOf(java.lang.String columnName)
convert the columnName into a Tuple.TupleColumnName.


getID

public java.lang.String getID()
Get the column ID.


getMapKey

public java.lang.String getMapKey()
If the column type is map, user can use, for example, ID.MAP_KEY to access a column named ID, which is a map, and then use MAP_KEY as the key to get the value.