Package org.apache.storm.tuple
Class TupleImpl
java.lang.Object
org.apache.storm.tuple.TupleImpl
- Direct Known Subclasses:
- ClojureTuple
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns true if this tuple contains the specified name of the field.booleanintfieldIndex(String field) Returns the position of the specified field in this tuple.longbyte[]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.getBoolean(int i) Returns the Boolean at position i in the tuple.getBooleanByField(String field) Gets the Boolean field with a specific name.getByte(int i) Returns the Byte at position i in the tuple.getByteByField(String field) Gets the Byte field with a specific name.Gets the topology context associated with the tuple.getDouble(int i) Returns the Double at position i in the tuple.getDoubleByField(String field) Gets the Double field with a specific name.Gets the names of the fields in this tuple.getFloat(int i) Returns the Float at position i in the tuple.getFloatByField(String field) Gets the Float field with a specific name.getInteger(int i) Returns the Integer at position i in the tuple.getIntegerByField(String field) Gets the Integer field with a specific name.getLong(int i) Returns the Long at position i in the tuple.getLongByField(String field) Gets the Long field with a specific name.Gets the message id that associated with this tuple.getShort(int i) Returns the Short at position i in the tuple.getShortByField(String field) Gets the Short field with a specific name.Gets the id of the component that created this tuple.Returns the global stream id (component + stream) of this tuple.Gets the id of the stream that this tuple was emitted to.intGets the id of the task that created this tuple.getString(int i) Returns the String at position i in the tuple.getStringByField(String field) Gets the String field with a specific name.getValue(int i) Gets the field at position i in the tuple.getValueByField(String field) Gets the field with a specific name.Gets all the values in this tuple.inthashCode()Returns a subset of the tuple based on the fields selector.voidsetExecuteSampleStartTime(long ms) voidsetProcessSampleStartTime(long ms) intsize()Returns the number of fields in this tuple.toString()voidupdateAckVal(long val) 
- 
Constructor Details- 
TupleImpl
- 
TupleImpl
- 
TupleImplpublic TupleImpl(GeneralTopologyContext context, List<Object> values, String srcComponent, int taskId, String streamId) 
 
- 
- 
Method Details- 
getProcessSampleStartTime
- 
setProcessSampleStartTimepublic void setProcessSampleStartTime(long ms) 
- 
getExecuteSampleStartTime
- 
setExecuteSampleStartTimepublic void setExecuteSampleStartTime(long ms) 
- 
updateAckValpublic void updateAckVal(long val) 
- 
getAckValpublic long getAckVal()
- 
sizepublic int size()Description copied from interface:ITupleReturns the number of fields in this tuple.
- 
fieldIndexDescription copied from interface:ITupleReturns the position of the specified field in this tuple.- Specified by:
- fieldIndexin interface- ITuple
 
- 
containsDescription copied from interface:ITupleReturns true if this tuple contains the specified name of the field.
- 
getValueDescription copied from interface:ITupleGets the field at position i in the tuple. Returns object since tuples are dynamically typed.
- 
getStringDescription copied from interface:ITupleReturns the String at position i in the tuple.
- 
getIntegerDescription copied from interface:ITupleReturns the Integer at position i in the tuple.- Specified by:
- getIntegerin interface- ITuple
 
- 
getLongDescription copied from interface:ITupleReturns the Long at position i in the tuple.
- 
getBooleanDescription copied from interface:ITupleReturns the Boolean at position i in the tuple.- Specified by:
- getBooleanin interface- ITuple
 
- 
getShortDescription copied from interface:ITupleReturns the Short at position i in the tuple.
- 
getByteDescription copied from interface:ITupleReturns the Byte at position i in the tuple.
- 
getDoubleDescription copied from interface:ITupleReturns the Double at position i in the tuple.
- 
getFloatDescription copied from interface:ITupleReturns the Float at position i in the tuple.
- 
getBinarypublic byte[] getBinary(int i) Description copied from interface:ITupleReturns the byte array at position i in the tuple.
- 
getValueByFieldDescription copied from interface:ITupleGets the field with a specific name. Returns object since tuples are dynamically typed.- Specified by:
- getValueByFieldin interface- ITuple
 
- 
getStringByFieldDescription copied from interface:ITupleGets the String field with a specific name.- Specified by:
- getStringByFieldin interface- ITuple
 
- 
getIntegerByFieldDescription copied from interface:ITupleGets the Integer field with a specific name.- Specified by:
- getIntegerByFieldin interface- ITuple
 
- 
getLongByFieldDescription copied from interface:ITupleGets the Long field with a specific name.- Specified by:
- getLongByFieldin interface- ITuple
 
- 
getBooleanByFieldDescription copied from interface:ITupleGets the Boolean field with a specific name.- Specified by:
- getBooleanByFieldin interface- ITuple
 
- 
getShortByFieldDescription copied from interface:ITupleGets the Short field with a specific name.- Specified by:
- getShortByFieldin interface- ITuple
 
- 
getByteByFieldDescription copied from interface:ITupleGets the Byte field with a specific name.- Specified by:
- getByteByFieldin interface- ITuple
 
- 
getDoubleByFieldDescription copied from interface:ITupleGets the Double field with a specific name.- Specified by:
- getDoubleByFieldin interface- ITuple
 
- 
getFloatByFieldDescription copied from interface:ITupleGets the Float field with a specific name.- Specified by:
- getFloatByFieldin interface- ITuple
 
- 
getBinaryByFieldDescription copied from interface:ITupleGets the Byte array field with a specific name.- Specified by:
- getBinaryByFieldin interface- ITuple
 
- 
getValuesDescription copied from interface:ITupleGets all the values in this tuple.
- 
getFieldsDescription copied from interface:ITupleGets the names of the fields in this tuple.
- 
selectDescription copied from interface:ITupleReturns a subset of the tuple based on the fields selector.
- 
getSourceGlobalStreamIdDescription copied from interface:TupleReturns the global stream id (component + stream) of this tuple.- Specified by:
- getSourceGlobalStreamIdin interface- Tuple
 
- 
getSourceComponentDescription copied from interface:TupleGets the id of the component that created this tuple.- Specified by:
- getSourceComponentin interface- Tuple
 
- 
getSourceTaskpublic int getSourceTask()Description copied from interface:TupleGets the id of the task that created this tuple.- Specified by:
- getSourceTaskin interface- Tuple
 
- 
getSourceStreamIdDescription copied from interface:TupleGets the id of the stream that this tuple was emitted to.- Specified by:
- getSourceStreamIdin interface- Tuple
 
- 
getMessageIdDescription copied from interface:TupleGets the message id that associated with this tuple.- Specified by:
- getMessageIdin interface- Tuple
 
- 
getContextDescription copied from interface:TupleGets the topology context associated with the tuple.- Specified by:
- getContextin interface- Tuple
 
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
 
-