public interface ITuple
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String field)
Returns true if this tuple contains the specified name of the field.
|
int |
fieldIndex(String field)
Returns the position of the specified field in this tuple.
|
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.
|
int size()
boolean contains(String field)
Fields getFields()
int fieldIndex(String field)
List<Object> select(Fields selector)
Object getValue(int i)
String getString(int i)
Integer getInteger(int i)
Long getLong(int i)
Boolean getBoolean(int i)
Short getShort(int i)
Byte getByte(int i)
Double getDouble(int i)
Float getFloat(int i)
byte[] getBinary(int i)
byte[] getBinaryByField(String field)
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.