| Constructor and Description | 
|---|
| Twister2Tuple(Fields fields,
             Values values,
             IMessage iMessage) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | contains(java.lang.String field)Returns true if this tuple contains the specified name of the field. | 
| int | fieldIndex(java.lang.String field)Returns the position of the specified field in this tuple. | 
| byte[] | getBinary(int i)Returns the byte array at position i in the tuple. | 
| byte[] | getBinaryByField(java.lang.String field)Gets the Byte array field with a specific name. | 
| java.lang.Boolean | getBoolean(int i)Returns the Boolean at position i in the tuple. | 
| java.lang.Boolean | getBooleanByField(java.lang.String field)Gets the Boolean field with a specific name. | 
| java.lang.Byte | getByte(int i)Returns the Byte at position i in the tuple. | 
| java.lang.Byte | getByteByField(java.lang.String field)Gets the Byte field with a specific name. | 
| java.lang.Double | getDouble(int i)Returns the Double at position i in the tuple. | 
| java.lang.Double | getDoubleByField(java.lang.String field)Gets the Double field with a specific name. | 
| Fields | getFields()Gets the names of the fields in this tuple. | 
| java.lang.Float | getFloat(int i)Returns the Float at position i in the tuple. | 
| java.lang.Float | getFloatByField(java.lang.String field)Gets the Float field with a specific name. | 
| java.lang.Integer | getInteger(int i)Returns the Integer at position i in the tuple. | 
| java.lang.Integer | getIntegerByField(java.lang.String field)Gets the Integer field with a specific name. | 
| java.lang.Long | getLong(int i)Returns the Long at position i in the tuple. | 
| java.lang.Long | getLongByField(java.lang.String field)Gets the Long field with a specific name. | 
| java.lang.Short | getShort(int i)Returns the Short at position i in the tuple. | 
| java.lang.Short | getShortByField(java.lang.String field)Gets the Short field with a specific name. | 
| java.lang.String | getSourceComponent()Gets the id of the component that created this tuple. | 
| GlobalStreamId | getSourceGlobalStreamId()Returns the global stream id (component + stream) of this tuple. | 
| java.lang.String | getSourceStreamId()Gets the id of the stream that this tuple was emitted to. | 
| int | getSourceTask()Gets the id of the task that created this tuple. | 
| java.lang.String | getString(int i)Returns the String at position i in the tuple. | 
| java.lang.String | getStringByField(java.lang.String field)Gets the String field with a specific name. | 
| java.lang.Object | getValue(int i)Gets the field at position i in the tuple. | 
| java.lang.Object | getValueByField(java.lang.String field)Gets the field with a specific name. | 
| java.util.List<java.lang.Object> | getValues()Gets all the values in this tuple. | 
| void | resetValues()Resets the tuple values to null
 TODO:- Is this needed | 
| java.util.List<java.lang.Object> | select(Fields selector)Returns a subset of the tuple based on the fields selector. | 
| int | size()Returns the number of fields in this tuple. | 
public int size()
Tuplepublic boolean contains(java.lang.String field)
Tuplepublic Fields getFields()
Tuplepublic int fieldIndex(java.lang.String field)
TuplefieldIndex in interface Tuplepublic java.util.List<java.lang.Object> select(Fields selector)
Tuplepublic java.lang.Object getValue(int i)
Tuplepublic java.lang.String getString(int i)
Tuplepublic java.lang.Integer getInteger(int i)
TuplegetInteger in interface Tuplepublic java.lang.Long getLong(int i)
Tuplepublic java.lang.Boolean getBoolean(int i)
TuplegetBoolean in interface Tuplepublic java.lang.Short getShort(int i)
Tuplepublic java.lang.Byte getByte(int i)
Tuplepublic java.lang.Double getDouble(int i)
Tuplepublic java.lang.Float getFloat(int i)
Tuplepublic byte[] getBinary(int i)
Tuplepublic java.lang.Object getValueByField(java.lang.String field)
TuplegetValueByField in interface Tuplepublic java.lang.String getStringByField(java.lang.String field)
TuplegetStringByField in interface Tuplepublic java.lang.Integer getIntegerByField(java.lang.String field)
TuplegetIntegerByField in interface Tuplepublic java.lang.Long getLongByField(java.lang.String field)
TuplegetLongByField in interface Tuplepublic java.lang.Boolean getBooleanByField(java.lang.String field)
TuplegetBooleanByField in interface Tuplepublic java.lang.Short getShortByField(java.lang.String field)
TuplegetShortByField in interface Tuplepublic java.lang.Byte getByteByField(java.lang.String field)
TuplegetByteByField in interface Tuplepublic java.lang.Double getDoubleByField(java.lang.String field)
TuplegetDoubleByField in interface Tuplepublic java.lang.Float getFloatByField(java.lang.String field)
TuplegetFloatByField in interface Tuplepublic byte[] getBinaryByField(java.lang.String field)
TuplegetBinaryByField in interface Tuplepublic java.util.List<java.lang.Object> getValues()
Tuplepublic GlobalStreamId getSourceGlobalStreamId()
TuplegetSourceGlobalStreamId in interface Tuplepublic java.lang.String getSourceComponent()
TuplegetSourceComponent in interface Tuplepublic int getSourceTask()
TuplegetSourceTask in interface Tuplepublic java.lang.String getSourceStreamId()
TuplegetSourceStreamId in interface Tuplepublic void resetValues()
TupleresetValues in interface Tuple