public interface Tuple extends ITuple
Storm needs to know how to serialize all the values in a tuple. By default, Storm knows how to serialize the primitive types, strings, and byte arrays. If you want to use another type, you'll need to implement and register a serializer for that type.
Modifier and Type | Method and Description |
---|---|
GeneralTopologyContext |
getContext()
Gets the topology context associated with the tuple.
|
MessageId |
getMessageId()
Gets the message id that associated with this tuple.
|
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.
|
contains, fieldIndex, getBinary, getBinaryByField, getBoolean, getBooleanByField, getByte, getByteByField, getDouble, getDoubleByField, getFields, getFloat, getFloatByField, getInteger, getIntegerByField, getLong, getLongByField, getShort, getShortByField, getString, getStringByField, getValue, getValueByField, getValues, select, size
GlobalStreamId getSourceGlobalStreamId()
String getSourceComponent()
int getSourceTask()
String getSourceStreamId()
MessageId getMessageId()
GeneralTopologyContext getContext()
Copyright © 2023 The Apache Software Foundation. All rights reserved.