public class TridentTupleView extends AbstractList<Object> implements TridentTuple
Modifier and Type | Class and Description |
---|---|
static class |
TridentTupleView.FreshOutputFactory |
static class |
TridentTupleView.OperationOutputFactory |
static class |
TridentTupleView.ProjectionFactory |
static class |
TridentTupleView.RootFactory |
TridentTuple.Factory
Modifier and Type | Field and Description |
---|---|
static TridentTupleView |
EMPTY_TUPLE |
modCount
Constructor and Description |
---|
TridentTupleView(clojure.lang.IPersistentVector delegates,
ValuePointer[] index,
Map<String,ValuePointer> fieldIndex) |
Modifier and Type | Method and Description |
---|---|
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.
|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
public static TridentTupleView EMPTY_TUPLE
public TridentTupleView(clojure.lang.IPersistentVector delegates, ValuePointer[] index, Map<String,ValuePointer> fieldIndex)
public static TridentTuple createFreshTuple(Fields fields, List<Object> values)
public static TridentTuple createFreshTuple(Fields fields, Object... values)
public List<Object> getValues()
ITuple
public int size()
ITuple
public boolean contains(String field)
ITuple
public Fields getFields()
ITuple
public int fieldIndex(String field)
ITuple
fieldIndex
in interface ITuple
public List<Object> select(Fields selector)
ITuple
public Object get(int i)
public Object getValue(int i)
ITuple
public String getString(int i)
ITuple
public Integer getInteger(int i)
ITuple
getInteger
in interface ITuple
public Long getLong(int i)
ITuple
public Boolean getBoolean(int i)
ITuple
getBoolean
in interface ITuple
public Short getShort(int i)
ITuple
public Byte getByte(int i)
ITuple
public Double getDouble(int i)
ITuple
public Float getFloat(int i)
ITuple
public byte[] getBinary(int i)
ITuple
public Object getValueByField(String field)
getValueByField
in interface ITuple
public String getStringByField(String field)
getStringByField
in interface ITuple
public Integer getIntegerByField(String field)
getIntegerByField
in interface ITuple
public Long getLongByField(String field)
getLongByField
in interface ITuple
public Boolean getBooleanByField(String field)
getBooleanByField
in interface ITuple
public Short getShortByField(String field)
getShortByField
in interface ITuple
public Byte getByteByField(String field)
getByteByField
in interface ITuple
public Double getDoubleByField(String field)
getDoubleByField
in interface ITuple
public Float getFloatByField(String field)
getFloatByField
in interface ITuple
public byte[] getBinaryByField(String field)
getBinaryByField
in interface ITuple
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.