public interface Tuple
http://github.com/nathanmarz/storm/wiki/Serialization
for more info.Modifier and Type | Method and Description |
---|---|
boolean |
contains(String field)
Returns true if this tuple contains the specified name of the field.
|
int |
fieldIndex(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(String field) |
Boolean |
getBoolean(int i)
Returns the Boolean at position i in the tuple.
|
Boolean |
getBooleanByField(String field) |
Byte |
getByte(int i)
Returns the Byte at position i in the tuple.
|
Byte |
getByteByField(String field) |
Double |
getDouble(int i)
Returns the Double at position i in the tuple.
|
Double |
getDoubleByField(String field) |
Fields |
getFields()
Gets the names of the fields in this tuple.
|
Float |
getFloat(int i)
Returns the Float at position i in the tuple.
|
Float |
getFloatByField(String field) |
Integer |
getInteger(int i)
Returns the Integer at position i in the tuple.
|
Integer |
getIntegerByField(String field) |
Long |
getLong(int i)
Returns the Long at position i in the tuple.
|
Long |
getLongByField(String field) |
MessageId |
getMessageId()
Gets the message id that associated with this tuple.
|
Short |
getShort(int i)
Returns the Short at position i in the tuple.
|
Short |
getShortByField(String field) |
String |
getSourceComponent()
Gets the id of the component that created this tuple.
|
GlobalStreamId |
getSourceGlobalStreamid()
Returns the global stream id (component + stream) of this tuple.
|
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.
|
String |
getString(int i)
Returns the String at position i in the tuple.
|
String |
getStringByField(String field) |
Object |
getValue(int i)
Gets the field at position i in the tuple.
|
Object |
getValueByField(String field) |
List<Object> |
getValues()
Gets all the values in this tuple.
|
List<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.
|
int size()
int fieldIndex(String field)
boolean contains(String field)
Object getValue(int i)
String getString(int i)
Integer getInteger(int i)
Long getLong(int i)
Boolean getBoolean(int i)
Short getShort(int i)
Byte getByte(int i)
Double getDouble(int i)
Float getFloat(int i)
byte[] getBinary(int i)
byte[] getBinaryByField(String field)
Fields getFields()
List<Object> select(Fields selector)
GlobalStreamId getSourceGlobalStreamid()
String getSourceComponent()
int getSourceTask()
String getSourceStreamId()
MessageId getMessageId()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.