public class TupleImpl extends Object implements Tuple
| Constructor and Description |
|---|
TupleImpl(GeneralTopologyContext context,
List<Object> values,
String srcComponent,
int taskId,
String streamId) |
TupleImpl(GeneralTopologyContext context,
List<Object> values,
String srcComponent,
int taskId,
String streamId,
MessageId id) |
TupleImpl(Tuple t) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String field)
Returns true if this tuple contains the specified name of the field.
|
boolean |
equals(Object other) |
int |
fieldIndex(String field)
Returns the position of the specified field in this tuple.
|
long |
getAckVal() |
byte[] |
getBinary(int i)
Returns the byte array at position i in the tuple.
|
byte[] |
getBinaryByField(String field)
Gets the Byte array field with a specific name.
|
Boolean |
getBoolean(int i)
Returns the Boolean at position i in the tuple.
|
Boolean |
getBooleanByField(String field)
Gets the Boolean field with a specific name.
|
Byte |
getByte(int i)
Returns the Byte at position i in the tuple.
|
Byte |
getByteByField(String field)
Gets the Byte field with a specific name.
|
GeneralTopologyContext |
getContext()
Gets the topology context associated with the tuple.
|
Double |
getDouble(int i)
Returns the Double at position i in the tuple.
|
Double |
getDoubleByField(String field)
Gets the Double field with a specific name.
|
Long |
getExecuteSampleStartTime() |
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)
Gets the Float field with a specific name.
|
Integer |
getInteger(int i)
Returns the Integer at position i in the tuple.
|
Integer |
getIntegerByField(String field)
Gets the Integer field with a specific name.
|
Long |
getLong(int i)
Returns the Long at position i in the tuple.
|
Long |
getLongByField(String field)
Gets the Long field with a specific name.
|
MessageId |
getMessageId()
Gets the message id that associated with this tuple.
|
Long |
getProcessSampleStartTime() |
Short |
getShort(int i)
Returns the Short at position i in the tuple.
|
Short |
getShortByField(String field)
Gets the Short field with a specific name.
|
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)
Gets the String field with a specific name.
|
Object |
getValue(int i)
Gets the field at position i in the tuple.
|
Object |
getValueByField(String field)
Gets the field with a specific name.
|
List<Object> |
getValues()
Gets all the values in this tuple.
|
int |
hashCode() |
List<Object> |
select(Fields selector)
Returns a subset of the tuple based on the fields selector.
|
void |
setExecuteSampleStartTime(long ms) |
void |
setProcessSampleStartTime(long ms) |
int |
size()
Returns the number of fields in this tuple.
|
String |
toString() |
void |
updateAckVal(long val) |
public TupleImpl(Tuple t)
public TupleImpl(GeneralTopologyContext context, List<Object> values, String srcComponent, int taskId, String streamId, MessageId id)
public TupleImpl(GeneralTopologyContext context, List<Object> values, String srcComponent, int taskId, String streamId)
public Long getProcessSampleStartTime()
public void setProcessSampleStartTime(long ms)
public Long getExecuteSampleStartTime()
public void setExecuteSampleStartTime(long ms)
public void updateAckVal(long val)
public long getAckVal()
public int size()
ITuplepublic int fieldIndex(String field)
ITuplefieldIndex in interface ITuplepublic boolean contains(String field)
ITuplepublic Object getValue(int i)
ITuplepublic String getString(int i)
ITuplepublic Integer getInteger(int i)
ITuplegetInteger in interface ITuplepublic Long getLong(int i)
ITuplepublic Boolean getBoolean(int i)
ITuplegetBoolean in interface ITuplepublic Short getShort(int i)
ITuplepublic Byte getByte(int i)
ITuplepublic Double getDouble(int i)
ITuplepublic Float getFloat(int i)
ITuplepublic byte[] getBinary(int i)
ITuplepublic Object getValueByField(String field)
ITuplegetValueByField in interface ITuplepublic String getStringByField(String field)
ITuplegetStringByField in interface ITuplepublic Integer getIntegerByField(String field)
ITuplegetIntegerByField in interface ITuplepublic Long getLongByField(String field)
ITuplegetLongByField in interface ITuplepublic Boolean getBooleanByField(String field)
ITuplegetBooleanByField in interface ITuplepublic Short getShortByField(String field)
ITuplegetShortByField in interface ITuplepublic Byte getByteByField(String field)
ITuplegetByteByField in interface ITuplepublic Double getDoubleByField(String field)
ITuplegetDoubleByField in interface ITuplepublic Float getFloatByField(String field)
ITuplegetFloatByField in interface ITuplepublic byte[] getBinaryByField(String field)
ITuplegetBinaryByField in interface ITuplepublic List<Object> getValues()
ITuplepublic Fields getFields()
ITuplepublic List<Object> select(Fields selector)
ITuplepublic GlobalStreamId getSourceGlobalStreamId()
TuplegetSourceGlobalStreamId in interface Tuplepublic String getSourceComponent()
TuplegetSourceComponent in interface Tuplepublic int getSourceTask()
TuplegetSourceTask in interface Tuplepublic String getSourceStreamId()
TuplegetSourceStreamId in interface Tuplepublic MessageId getMessageId()
TuplegetMessageId in interface Tuplepublic GeneralTopologyContext getContext()
TuplegetContext in interface TupleCopyright © 2023 The Apache Software Foundation. All rights reserved.