public class TupleImpl extends IndifferentAccessMap implements clojure.lang.Seqable, clojure.lang.Indexed, clojure.lang.IMeta, Tuple
clojure.lang.IFn.D, clojure.lang.IFn.DD, clojure.lang.IFn.DDD, clojure.lang.IFn.DDDD, clojure.lang.IFn.DDDDD, clojure.lang.IFn.DDDDL, clojure.lang.IFn.DDDDO, clojure.lang.IFn.DDDL, clojure.lang.IFn.DDDLD, clojure.lang.IFn.DDDLL, clojure.lang.IFn.DDDLO, clojure.lang.IFn.DDDO, clojure.lang.IFn.DDDOD, clojure.lang.IFn.DDDOL, clojure.lang.IFn.DDDOO, clojure.lang.IFn.DDL, clojure.lang.IFn.DDLD, clojure.lang.IFn.DDLDD, clojure.lang.IFn.DDLDL, clojure.lang.IFn.DDLDO, clojure.lang.IFn.DDLL, clojure.lang.IFn.DDLLD, clojure.lang.IFn.DDLLL, clojure.lang.IFn.DDLLO, clojure.lang.IFn.DDLO, clojure.lang.IFn.DDLOD, clojure.lang.IFn.DDLOL, clojure.lang.IFn.DDLOO, clojure.lang.IFn.DDO, clojure.lang.IFn.DDOD, clojure.lang.IFn.DDODD, clojure.lang.IFn.DDODL, clojure.lang.IFn.DDODO, clojure.lang.IFn.DDOL, clojure.lang.IFn.DDOLD, clojure.lang.IFn.DDOLL, clojure.lang.IFn.DDOLO, clojure.lang.IFn.DDOO, clojure.lang.IFn.DDOOD, clojure.lang.IFn.DDOOL, clojure.lang.IFn.DDOOO, clojure.lang.IFn.DL, clojure.lang.IFn.DLD, clojure.lang.IFn.DLDD, clojure.lang.IFn.DLDDD, clojure.lang.IFn.DLDDL, clojure.lang.IFn.DLDDO, clojure.lang.IFn.DLDL, clojure.lang.IFn.DLDLD, clojure.lang.IFn.DLDLL, clojure.lang.IFn.DLDLO, clojure.lang.IFn.DLDO, clojure.lang.IFn.DLDOD, clojure.lang.IFn.DLDOL, clojure.lang.IFn.DLDOO, clojure.lang.IFn.DLL, clojure.lang.IFn.DLLD, clojure.lang.IFn.DLLDD, clojure.lang.IFn.DLLDL, clojure.lang.IFn.DLLDO, clojure.lang.IFn.DLLL, clojure.lang.IFn.DLLLD, clojure.lang.IFn.DLLLL, clojure.lang.IFn.DLLLO, clojure.lang.IFn.DLLO, clojure.lang.IFn.DLLOD, clojure.lang.IFn.DLLOL, clojure.lang.IFn.DLLOO, clojure.lang.IFn.DLO, clojure.lang.IFn.DLOD, clojure.lang.IFn.DLODD, clojure.lang.IFn.DLODL, clojure.lang.IFn.DLODO, clojure.lang.IFn.DLOL, clojure.lang.IFn.DLOLD, clojure.lang.IFn.DLOLL, clojure.lang.IFn.DLOLO, clojure.lang.IFn.DLOO, clojure.lang.IFn.DLOOD, clojure.lang.IFn.DLOOL, clojure.lang.IFn.DLOOO, clojure.lang.IFn.DO, clojure.lang.IFn.DOD, clojure.lang.IFn.DODD, clojure.lang.IFn.DODDD, clojure.lang.IFn.DODDL, clojure.lang.IFn.DODDO, clojure.lang.IFn.DODL, clojure.lang.IFn.DODLD, clojure.lang.IFn.DODLL, clojure.lang.IFn.DODLO, clojure.lang.IFn.DODO, clojure.lang.IFn.DODOD, clojure.lang.IFn.DODOL, clojure.lang.IFn.DODOO, clojure.lang.IFn.DOL, clojure.lang.IFn.DOLD, clojure.lang.IFn.DOLDD, clojure.lang.IFn.DOLDL, clojure.lang.IFn.DOLDO, clojure.lang.IFn.DOLL, clojure.lang.IFn.DOLLD, clojure.lang.IFn.DOLLL, clojure.lang.IFn.DOLLO, clojure.lang.IFn.DOLO, clojure.lang.IFn.DOLOD, clojure.lang.IFn.DOLOL, clojure.lang.IFn.DOLOO, clojure.lang.IFn.DOO, clojure.lang.IFn.DOOD, clojure.lang.IFn.DOODD, clojure.lang.IFn.DOODL, clojure.lang.IFn.DOODO, clojure.lang.IFn.DOOL, clojure.lang.IFn.DOOLD, clojure.lang.IFn.DOOLL, clojure.lang.IFn.DOOLO, clojure.lang.IFn.DOOO, clojure.lang.IFn.DOOOD, clojure.lang.IFn.DOOOL, clojure.lang.IFn.DOOOO, clojure.lang.IFn.L, clojure.lang.IFn.LD, clojure.lang.IFn.LDD, clojure.lang.IFn.LDDD, clojure.lang.IFn.LDDDD, clojure.lang.IFn.LDDDL, clojure.lang.IFn.LDDDO, clojure.lang.IFn.LDDL, clojure.lang.IFn.LDDLD, clojure.lang.IFn.LDDLL, clojure.lang.IFn.LDDLO, clojure.lang.IFn.LDDO, clojure.lang.IFn.LDDOD, clojure.lang.IFn.LDDOL, clojure.lang.IFn.LDDOO, clojure.lang.IFn.LDL, clojure.lang.IFn.LDLD, clojure.lang.IFn.LDLDD, clojure.lang.IFn.LDLDL, clojure.lang.IFn.LDLDO, clojure.lang.IFn.LDLL, clojure.lang.IFn.LDLLD, clojure.lang.IFn.LDLLL, clojure.lang.IFn.LDLLO, clojure.lang.IFn.LDLO, clojure.lang.IFn.LDLOD, clojure.lang.IFn.LDLOL, clojure.lang.IFn.LDLOO, clojure.lang.IFn.LDO, clojure.lang.IFn.LDOD, clojure.lang.IFn.LDODD, clojure.lang.IFn.LDODL, clojure.lang.IFn.LDODO, clojure.lang.IFn.LDOL, clojure.lang.IFn.LDOLD, clojure.lang.IFn.LDOLL, clojure.lang.IFn.LDOLO, clojure.lang.IFn.LDOO, clojure.lang.IFn.LDOOD, clojure.lang.IFn.LDOOL, clojure.lang.IFn.LDOOO, clojure.lang.IFn.LL, clojure.lang.IFn.LLD, clojure.lang.IFn.LLDD, clojure.lang.IFn.LLDDD, clojure.lang.IFn.LLDDL, clojure.lang.IFn.LLDDO, clojure.lang.IFn.LLDL, clojure.lang.IFn.LLDLD, clojure.lang.IFn.LLDLL, clojure.lang.IFn.LLDLO, clojure.lang.IFn.LLDO, clojure.lang.IFn.LLDOD, clojure.lang.IFn.LLDOL, clojure.lang.IFn.LLDOO, clojure.lang.IFn.LLL, clojure.lang.IFn.LLLD, clojure.lang.IFn.LLLDD, clojure.lang.IFn.LLLDL, clojure.lang.IFn.LLLDO, clojure.lang.IFn.LLLL, clojure.lang.IFn.LLLLD, clojure.lang.IFn.LLLLL, clojure.lang.IFn.LLLLO, clojure.lang.IFn.LLLO, clojure.lang.IFn.LLLOD, clojure.lang.IFn.LLLOL, clojure.lang.IFn.LLLOO, clojure.lang.IFn.LLO, clojure.lang.IFn.LLOD, clojure.lang.IFn.LLODD, clojure.lang.IFn.LLODL, clojure.lang.IFn.LLODO, clojure.lang.IFn.LLOL, clojure.lang.IFn.LLOLD, clojure.lang.IFn.LLOLL, clojure.lang.IFn.LLOLO, clojure.lang.IFn.LLOO, clojure.lang.IFn.LLOOD, clojure.lang.IFn.LLOOL, clojure.lang.IFn.LLOOO, clojure.lang.IFn.LO, clojure.lang.IFn.LOD, clojure.lang.IFn.LODD, clojure.lang.IFn.LODDD, clojure.lang.IFn.LODDL, clojure.lang.IFn.LODDO, clojure.lang.IFn.LODL, clojure.lang.IFn.LODLD, clojure.lang.IFn.LODLL, clojure.lang.IFn.LODLO, clojure.lang.IFn.LODO, clojure.lang.IFn.LODOD, clojure.lang.IFn.LODOL, clojure.lang.IFn.LODOO, clojure.lang.IFn.LOL, clojure.lang.IFn.LOLD, clojure.lang.IFn.LOLDD, clojure.lang.IFn.LOLDL, clojure.lang.IFn.LOLDO, clojure.lang.IFn.LOLL, clojure.lang.IFn.LOLLD, clojure.lang.IFn.LOLLL, clojure.lang.IFn.LOLLO, clojure.lang.IFn.LOLO, clojure.lang.IFn.LOLOD, clojure.lang.IFn.LOLOL, clojure.lang.IFn.LOLOO, clojure.lang.IFn.LOO, clojure.lang.IFn.LOOD, clojure.lang.IFn.LOODD, clojure.lang.IFn.LOODL, clojure.lang.IFn.LOODO, clojure.lang.IFn.LOOL, clojure.lang.IFn.LOOLD, clojure.lang.IFn.LOOLL, clojure.lang.IFn.LOOLO, clojure.lang.IFn.LOOO, clojure.lang.IFn.LOOOD, clojure.lang.IFn.LOOOL, clojure.lang.IFn.LOOOO, clojure.lang.IFn.OD, clojure.lang.IFn.ODD, clojure.lang.IFn.ODDD, clojure.lang.IFn.ODDDD, clojure.lang.IFn.ODDDL, clojure.lang.IFn.ODDDO, clojure.lang.IFn.ODDL, clojure.lang.IFn.ODDLD, clojure.lang.IFn.ODDLL, clojure.lang.IFn.ODDLO, clojure.lang.IFn.ODDO, clojure.lang.IFn.ODDOD, clojure.lang.IFn.ODDOL, clojure.lang.IFn.ODDOO, clojure.lang.IFn.ODL, clojure.lang.IFn.ODLD, clojure.lang.IFn.ODLDD, clojure.lang.IFn.ODLDL, clojure.lang.IFn.ODLDO, clojure.lang.IFn.ODLL, clojure.lang.IFn.ODLLD, clojure.lang.IFn.ODLLL, clojure.lang.IFn.ODLLO, clojure.lang.IFn.ODLO, clojure.lang.IFn.ODLOD, clojure.lang.IFn.ODLOL, clojure.lang.IFn.ODLOO, clojure.lang.IFn.ODO, clojure.lang.IFn.ODOD, clojure.lang.IFn.ODODD, clojure.lang.IFn.ODODL, clojure.lang.IFn.ODODO, clojure.lang.IFn.ODOL, clojure.lang.IFn.ODOLD, clojure.lang.IFn.ODOLL, clojure.lang.IFn.ODOLO, clojure.lang.IFn.ODOO, clojure.lang.IFn.ODOOD, clojure.lang.IFn.ODOOL, clojure.lang.IFn.ODOOO, clojure.lang.IFn.OL, clojure.lang.IFn.OLD, clojure.lang.IFn.OLDD, clojure.lang.IFn.OLDDD, clojure.lang.IFn.OLDDL, clojure.lang.IFn.OLDDO, clojure.lang.IFn.OLDL, clojure.lang.IFn.OLDLD, clojure.lang.IFn.OLDLL, clojure.lang.IFn.OLDLO, clojure.lang.IFn.OLDO, clojure.lang.IFn.OLDOD, clojure.lang.IFn.OLDOL, clojure.lang.IFn.OLDOO, clojure.lang.IFn.OLL, clojure.lang.IFn.OLLD, clojure.lang.IFn.OLLDD, clojure.lang.IFn.OLLDL, clojure.lang.IFn.OLLDO, clojure.lang.IFn.OLLL, clojure.lang.IFn.OLLLD, clojure.lang.IFn.OLLLL, clojure.lang.IFn.OLLLO, clojure.lang.IFn.OLLO, clojure.lang.IFn.OLLOD, clojure.lang.IFn.OLLOL, clojure.lang.IFn.OLLOO, clojure.lang.IFn.OLO, clojure.lang.IFn.OLOD, clojure.lang.IFn.OLODD, clojure.lang.IFn.OLODL, clojure.lang.IFn.OLODO, clojure.lang.IFn.OLOL, clojure.lang.IFn.OLOLD, clojure.lang.IFn.OLOLL, clojure.lang.IFn.OLOLO, clojure.lang.IFn.OLOO, clojure.lang.IFn.OLOOD, clojure.lang.IFn.OLOOL, clojure.lang.IFn.OLOOO, clojure.lang.IFn.OOD, clojure.lang.IFn.OODD, clojure.lang.IFn.OODDD, clojure.lang.IFn.OODDL, clojure.lang.IFn.OODDO, clojure.lang.IFn.OODL, clojure.lang.IFn.OODLD, clojure.lang.IFn.OODLL, clojure.lang.IFn.OODLO, clojure.lang.IFn.OODO, clojure.lang.IFn.OODOD, clojure.lang.IFn.OODOL, clojure.lang.IFn.OODOO, clojure.lang.IFn.OOL, clojure.lang.IFn.OOLD, clojure.lang.IFn.OOLDD, clojure.lang.IFn.OOLDL, clojure.lang.IFn.OOLDO, clojure.lang.IFn.OOLL, clojure.lang.IFn.OOLLD, clojure.lang.IFn.OOLLL, clojure.lang.IFn.OOLLO, clojure.lang.IFn.OOLO, clojure.lang.IFn.OOLOD, clojure.lang.IFn.OOLOL, clojure.lang.IFn.OOLOO, clojure.lang.IFn.OOOD, clojure.lang.IFn.OOODD, clojure.lang.IFn.OOODL, clojure.lang.IFn.OOODO, clojure.lang.IFn.OOOL, clojure.lang.IFn.OOOLD, clojure.lang.IFn.OOOLL, clojure.lang.IFn.OOOLO, clojure.lang.IFn.OOOOD, clojure.lang.IFn.OOOOL
_map
Constructor and Description |
---|
TupleImpl(GeneralTopologyContext context,
List<Object> values,
int taskId,
String streamId) |
TupleImpl(GeneralTopologyContext context,
List<Object> values,
int taskId,
String streamId,
MessageId id) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String field)
Returns true if this tuple contains the specified name of the field.
|
int |
count() |
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.
|
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.
|
clojure.lang.IPersistentMap |
getMap() |
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()
Deprecated.
|
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() |
clojure.lang.IPersistentMap |
meta() |
Object |
nth(int i) |
Object |
nth(int i,
Object notfound) |
List<Object> |
select(Fields selector)
Returns a subset of the tuple based on the fields selector.
|
clojure.lang.ISeq |
seq() |
void |
setExecuteSampleStartTime(long ms) |
void |
setProcessSampleStartTime(long ms) |
int |
size()
Returns the number of fields in this tuple.
|
String |
toString() |
void |
updateAckVal(long val) |
Object |
valAt(Object o) |
assoc, assocEx, clear, cons, containsKey, containsValue, empty, entryAt, entrySet, equiv, get, invoke, invoke, isEmpty, iterator, keySet, put, putAll, remove, setMap, valAt, values, without
applyTo, applyToHelper, call, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, run, throwArity
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public TupleImpl(GeneralTopologyContext context, List<Object> values, int taskId, String streamId, MessageId id)
public TupleImpl(GeneralTopologyContext context, List<Object> values, int taskId, String streamId)
public void setProcessSampleStartTime(long ms)
public Long getProcessSampleStartTime()
public void setExecuteSampleStartTime(long ms)
public Long getExecuteSampleStartTime()
public void updateAckVal(long val)
public long getAckVal()
public int size()
ITuple
Returns the number of fields in this tuple.
public int fieldIndex(String field)
ITuple
Returns the position of the specified field in this tuple.
fieldIndex
in interface ITuple
public boolean contains(String field)
ITuple
Returns true if this tuple contains the specified name of the field.
public Object getValue(int i)
ITuple
Gets the field at position i in the tuple. Returns object since tuples are dynamically typed.
public String getString(int i)
ITuple
Returns the String at position i in the tuple.
public Integer getInteger(int i)
ITuple
Returns the Integer at position i in the tuple.
getInteger
in interface ITuple
public Long getLong(int i)
ITuple
Returns the Long at position i in the tuple.
public Boolean getBoolean(int i)
ITuple
Returns the Boolean at position i in the tuple.
getBoolean
in interface ITuple
public Short getShort(int i)
ITuple
Returns the Short at position i in the tuple.
public Byte getByte(int i)
ITuple
Returns the Byte at position i in the tuple.
public Double getDouble(int i)
ITuple
Returns the Double at position i in the tuple.
public Float getFloat(int i)
ITuple
Returns the Float at position i in the tuple.
public byte[] getBinary(int i)
ITuple
Returns the byte array at position i in the tuple.
public Object getValueByField(String field)
ITuple
Gets the field with a specific name. Returns object since tuples are dynamically typed.
getValueByField
in interface ITuple
public String getStringByField(String field)
ITuple
Gets the String field with a specific name.
getStringByField
in interface ITuple
public Integer getIntegerByField(String field)
ITuple
Gets the Integer field with a specific name.
getIntegerByField
in interface ITuple
public Long getLongByField(String field)
ITuple
Gets the Long field with a specific name.
getLongByField
in interface ITuple
public Boolean getBooleanByField(String field)
ITuple
Gets the Boolean field with a specific name.
getBooleanByField
in interface ITuple
public Short getShortByField(String field)
ITuple
Gets the Short field with a specific name.
getShortByField
in interface ITuple
public Byte getByteByField(String field)
ITuple
Gets the Byte field with a specific name.
getByteByField
in interface ITuple
public Double getDoubleByField(String field)
ITuple
Gets the Double field with a specific name.
getDoubleByField
in interface ITuple
public Float getFloatByField(String field)
ITuple
Gets the Float field with a specific name.
getFloatByField
in interface ITuple
public byte[] getBinaryByField(String field)
ITuple
Gets the Byte array field with a specific name.
getBinaryByField
in interface ITuple
public List<Object> getValues()
ITuple
Gets all the values in this tuple.
public Fields getFields()
ITuple
Gets the names of the fields in this tuple.
public List<Object> select(Fields selector)
ITuple
Returns a subset of the tuple based on the fields selector.
@Deprecated public GlobalStreamId getSourceGlobalStreamid()
Tuple
Returns the global stream id (component + stream) of this tuple.
getSourceGlobalStreamid
in interface Tuple
public GlobalStreamId getSourceGlobalStreamId()
Tuple
Returns the global stream id (component + stream) of this tuple.
getSourceGlobalStreamId
in interface Tuple
public String getSourceComponent()
Tuple
Gets the id of the component that created this tuple.
getSourceComponent
in interface Tuple
public int getSourceTask()
Tuple
Gets the id of the task that created this tuple.
getSourceTask
in interface Tuple
public String getSourceStreamId()
Tuple
Gets the id of the stream that this tuple was emitted to.
getSourceStreamId
in interface Tuple
public MessageId getMessageId()
Tuple
Gets the message id that associated with this tuple.
getMessageId
in interface Tuple
public boolean equals(Object other)
public int hashCode()
public Object valAt(Object o)
valAt
in interface clojure.lang.ILookup
valAt
in class IndifferentAccessMap
public clojure.lang.ISeq seq()
seq
in interface clojure.lang.Seqable
seq
in class IndifferentAccessMap
public Object nth(int i)
nth
in interface clojure.lang.Indexed
public int count()
count
in interface clojure.lang.Counted
count
in interface clojure.lang.IPersistentCollection
count
in class IndifferentAccessMap
public clojure.lang.IPersistentMap meta()
meta
in interface clojure.lang.IMeta
public clojure.lang.IPersistentMap getMap()
getMap
in class IndifferentAccessMap
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.