public class UnlimitedNullTuple extends AbstractTuple
Constructor and Description |
---|
UnlimitedNullTuple() |
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.Object val)
Append a field to a tuple.
|
int |
compareTo(java.lang.Object o) |
java.lang.Object |
get(int fieldNum)
Get the value in a given field.
|
java.util.List<java.lang.Object> |
getAll()
Get all of the fields in the tuple as a list.
|
long |
getMemorySize()
Determine the size of tuple in memory.
|
void |
readFields(java.io.DataInput arg0) |
void |
set(int fieldNum,
java.lang.Object val)
Set the value in a given field.
|
int |
size()
Find the size of the tuple.
|
void |
write(java.io.DataOutput arg0) |
equals, getType, isNull, iterator, reference, toDelimitedString, toString
public int size()
Tuple
public java.lang.Object get(int fieldNum) throws ExecException
Tuple
fieldNum
- Number of the field to get the value for.ExecException
- if the field number is greater than or equal to
the number of fields in the tuple.public java.util.List<java.lang.Object> getAll()
Tuple
public void set(int fieldNum, java.lang.Object val) throws ExecException
Tuple
TupleFactory.newTuple(int)
with an
argument greater than the fieldNum being passed here. This call will
not automatically expand the tuple size. That is if you called
TupleFactory.newTuple(int)
with a 2, it is okay to call
this function with a 1, but not with a 2 or greater.fieldNum
- Number of the field to set the value for.val
- Object to put in the indicated field.ExecException
- if the field number is greater than or equal to
the number of fields in the tuple.public void append(java.lang.Object val)
Tuple
TupleFactory.newTuple(int)
and then fill in the values with
Tuple.set(int, Object)
, rather
than construct it with TupleFactory.newTuple()
and append values.val
- Object to append to the tuple.public long getMemorySize()
Tuple
public void readFields(java.io.DataInput arg0) throws java.io.IOException
java.io.IOException
public void write(java.io.DataOutput arg0) throws java.io.IOException
java.io.IOException
public int compareTo(java.lang.Object o)
Copyright © 2007-2017 The Apache Software Foundation