|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<Object>
storm.trident.tuple.TridentTupleView
public class TridentTupleView
| Nested Class Summary | |
|---|---|
static class |
TridentTupleView.FreshOutputFactory
|
static class |
TridentTupleView.OperationOutputFactory
|
static class |
TridentTupleView.ProjectionFactory
|
static class |
TridentTupleView.RootFactory
|
| Nested classes/interfaces inherited from interface storm.trident.tuple.TridentTuple |
|---|
TridentTuple.Factory |
| Field Summary | |
|---|---|
static TridentTupleView |
EMPTY_TUPLE
|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
TridentTupleView(clojure.lang.IPersistentVector delegates,
ValuePointer[] index,
Map<String,ValuePointer> fieldIndex)
|
|
| Method Summary | |
|---|---|
boolean |
contains(String field)
Returns true if this tuple contains the specified name of the field. |
static TridentTuple |
createFreshTuple(Fields fields,
List<Object> values)
|
static TridentTuple |
createFreshTuple(Fields fields,
Object... values)
|
int |
fieldIndex(String field)
Returns the position of the specified field in this tuple. |
Object |
get(int i)
|
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)
|
Short |
getShort(int i)
Returns the Short at position i in the tuple. |
Short |
getShortByField(String field)
|
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. |
| Methods inherited from class java.util.AbstractList |
|---|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
| Field Detail |
|---|
public static TridentTupleView EMPTY_TUPLE
| Constructor Detail |
|---|
public TridentTupleView(clojure.lang.IPersistentVector delegates,
ValuePointer[] index,
Map<String,ValuePointer> fieldIndex)
| Method Detail |
|---|
public static TridentTuple createFreshTuple(Fields fields,
List<Object> values)
public static TridentTuple createFreshTuple(Fields fields,
Object... values)
public List<Object> getValues()
ITuple
getValues in interface ITuplepublic int size()
ITuple
size in interface ITuplesize in interface Collection<Object>size in interface List<Object>size in class AbstractCollection<Object>public boolean contains(String field)
ITuple
contains in interface ITuplepublic Fields getFields()
ITuple
getFields in interface ITuplepublic int fieldIndex(String field)
ITuple
fieldIndex in interface ITuplepublic List<Object> select(Fields selector)
ITuple
select in interface ITuplepublic Object get(int i)
get in interface List<Object>get in class AbstractList<Object>public Object getValue(int i)
ITuple
getValue in interface ITuplepublic String getString(int i)
ITuple
getString in interface ITuplepublic Integer getInteger(int i)
ITuple
getInteger in interface ITuplepublic Long getLong(int i)
ITuple
getLong in interface ITuplepublic Boolean getBoolean(int i)
ITuple
getBoolean in interface ITuplepublic Short getShort(int i)
ITuple
getShort in interface ITuplepublic Byte getByte(int i)
ITuple
getByte in interface ITuplepublic Double getDouble(int i)
ITuple
getDouble in interface ITuplepublic Float getFloat(int i)
ITuple
getFloat in interface ITuplepublic byte[] getBinary(int i)
ITuple
getBinary in interface ITuplepublic Object getValueByField(String field)
getValueByField in interface ITuplepublic String getStringByField(String field)
getStringByField in interface ITuplepublic Integer getIntegerByField(String field)
getIntegerByField in interface ITuplepublic Long getLongByField(String field)
getLongByField in interface ITuplepublic Boolean getBooleanByField(String field)
getBooleanByField in interface ITuplepublic Short getShortByField(String field)
getShortByField in interface ITuplepublic Byte getByteByField(String field)
getByteByField in interface ITuplepublic Double getDoubleByField(String field)
getDoubleByField in interface ITuplepublic Float getFloatByField(String field)
getFloatByField in interface ITuplepublic byte[] getBinaryByField(String field)
getBinaryByField in interface ITuple
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||