public class GridTupleV extends Object implements Iterable<Object>, Externalizable, Cloneable
GridFunc.tv(Object...),
Serialized Form| Constructor and Description |
|---|
GridTupleV()
Empty constructor required by
Externalizable. |
GridTupleV(int cnt)
Initializes tuple with given object count.
|
GridTupleV(Object... vals)
Constructs tuple around passed in array.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
boolean |
equals(Object o) |
<V> V |
get(int i)
Retrieves value at given index.
|
Object[] |
getAll()
Gets internal array.
|
int |
hashCode() |
Iterator<Object> |
iterator() |
void |
readExternal(ObjectInput in) |
void |
set(int pos,
Object... v)
Sets given values starting at provided position in the tuple.
|
<V> void |
set(int i,
V v)
Sets value at given index.
|
void |
set(Object... v)
Sets given values starting at
0 position. |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public GridTupleV()
Externalizable.public GridTupleV(int cnt)
cnt - Count of objects to be stored in the tuple.public GridTupleV(Object... vals)
vals - Values.public <V> V get(int i)
V - Value type.i - Index of the value to get.public <V> void set(int i,
V v)
V - Value type.i - Index to set.v - Value to set.public void set(Object... v)
0 position.v - Values to set.public void set(int pos,
Object... v)
pos - Position to start from.v - Values to set.public Object[] getAll()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015