|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcascading.tuple.TupleEntry
public class TupleEntry
Class TupleEntry allows a Tuple instance and its declarating Fields instance to be used as a single object.
Fields,
Tuple| Constructor Summary | |
|---|---|
TupleEntry()
Constructor TupleEntry creates a new TupleEntry instance. |
|
TupleEntry(boolean isUnmodifiable)
Constructor TupleEntry creates a new TupleEntry instance. |
|
TupleEntry(Fields fields)
Constructor TupleEntry creates a new TupleEntry instance. |
|
TupleEntry(Fields fields,
boolean isUnmodifiable)
Constructor TupleEntry creates a new TupleEntry instance. |
|
TupleEntry(Fields fields,
Tuple tuple)
Constructor TupleEntry creates a new TupleEntry instance. |
|
TupleEntry(Tuple tuple)
Constructor TupleEntry creates a new TupleEntry instance. |
|
TupleEntry(TupleEntry tupleEntry)
Constructor TupleEntry creates a new TupleEntry instance that is a safe copy of the given tupleEntry. |
|
| Method Summary | |
|---|---|
TupleEntry |
appendNew(TupleEntry entry)
Method appendNew appends the given TupleEntry instance to this instance. |
Comparable |
get(Comparable fieldName)
Method get returns the value in the given field or position. |
Comparable |
get(int pos)
Method get returns the value in the given position pos. |
boolean |
getBoolean(Comparable fieldName)
Method getBoolean returns the element for the given field name or position as a boolean. |
double |
getDouble(Comparable fieldName)
Method getDouble returns the element for the given field name or position as a double. |
Fields |
getFields()
Method getFields returns the fields of this TupleEntry object. |
float |
getFloat(Comparable fieldName)
Method getFloat returns the element for the given field name or position as a float. |
int |
getInteger(Comparable fieldName)
Method getInteger returns the element for the given field name or position as an int. |
long |
getLong(Comparable fieldName)
Method getLong returns the element for the given field name or position as a long. |
short |
getShort(Comparable fieldName)
Method getShort returns the element for the given field name or position as a short. |
String |
getString(Comparable fieldName)
Method getString returns the element for the given field name or position as a String. |
Tuple |
getTuple()
Method getTuple returns the tuple of this TupleEntry object. |
boolean |
isUnmodifiable()
Method isUnmodifiable returns true if this TupleEntry is unmodifiable. |
static Tuple |
select(Fields selector,
TupleEntry... entries)
Method select will select a new Tuple instance from the given set of entries. |
TupleEntry |
selectEntry(Fields selector)
Method selectEntry selects the fields specified in selector from this instance. |
Tuple |
selectTuple(Fields selector)
Method selectTuple selects the fields specified in selector from this instance. |
void |
set(Comparable fieldName,
Comparable value)
Method set sets the value in the given field or position. |
void |
set(TupleEntry tupleEntry)
Method set sets the values from the given tupleEntry into this TupleEntry instance based on the given tupleEntry field names. |
void |
setTuple(Fields selector,
Tuple tuple)
Method setTuple sets the values specified by the selector to the values given by the given tuple. |
void |
setTuple(Tuple tuple)
Method setTuple sets the tuple of this TupleEntry object. |
int |
size()
Method size returns the number of values in this instance. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TupleEntry()
public TupleEntry(boolean isUnmodifiable)
isUnmodifiable - of type booleanpublic TupleEntry(Fields fields)
fields - of type Fields
public TupleEntry(Fields fields,
boolean isUnmodifiable)
fields - of type FieldsisUnmodifiable - of type boolean
public TupleEntry(Fields fields,
Tuple tuple)
fields - of type Fieldstuple - of type Tuplepublic TupleEntry(TupleEntry tupleEntry)
tupleEntry - of type TupleEntrypublic TupleEntry(Tuple tuple)
tuple - of type Tuple| Method Detail |
|---|
public static Tuple select(Fields selector,
TupleEntry... entries)
selector - of type Fieldsentries - of type TupleEntry
public boolean isUnmodifiable()
public Fields getFields()
public Tuple getTuple()
public void setTuple(Tuple tuple)
tuple - the tuple of this TupleEntry object.public int size()
public Comparable get(int pos)
pos - position of the element to return.
public Comparable get(Comparable fieldName)
fieldName - field name or position to return
public void set(Comparable fieldName,
Comparable value)
fieldName - field name or position to setvalue - of type Comparablepublic String getString(Comparable fieldName)
fieldName - field name or position to return
public float getFloat(Comparable fieldName)
fieldName - field name or position to return
public double getDouble(Comparable fieldName)
fieldName - field name or position to return
public int getInteger(Comparable fieldName)
fieldName - field name or position to return
public long getLong(Comparable fieldName)
fieldName - field name or position to return
public short getShort(Comparable fieldName)
fieldName - field name or position to return
public boolean getBoolean(Comparable fieldName)
true value will be returned. false if null.
fieldName - field name or position to return
public TupleEntry selectEntry(Fields selector)
selector - Fields selector that selects the values to return
public Tuple selectTuple(Fields selector)
selector - Fields selector that selects the values to return
public void setTuple(Fields selector,
Tuple tuple)
selector - of type Fieldstuple - of type Tuplepublic void set(TupleEntry tupleEntry)
tupleEntry - of type TupleEntrypublic TupleEntry appendNew(TupleEntry entry)
entry - of type TupleEntry
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||