public abstract class AbstractTuple extends Object implements Tuple
Constructor and Description |
---|
AbstractTuple() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
byte |
getType(int fieldNum)
Find the type of a given field.
|
boolean |
isNull(int fieldNum)
Find out if a given field is null.
|
Iterator<Object> |
iterator() |
void |
reference(Tuple t)
Make this tuple reference the contents of another.
|
String |
toDelimitedString(String delim)
Write a tuple of values into a string.
|
String |
toString() |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
append, get, getAll, getMemorySize, set, size
compareTo
public String toDelimitedString(String delim) throws ExecException
toDelimitedString
in interface Tuple
delim
- Delimiter to use in the string.ExecException
- this is never thrown. This only exists for backwards compatability reasons.public byte getType(int fieldNum) throws ExecException
getType
in interface Tuple
fieldNum
- Number of field to get the type for.DataType
. If the field is null, then DataType.UNKNOWN
will be returned.ExecException
- if the field number is greater than or equal to
the number of fields in the tuple.public boolean isNull(int fieldNum) throws ExecException
isNull
in interface Tuple
fieldNum
- Number of field to check for null.ExecException
- if the field number given is greater
than or equal to the number of fields in the tuple.Copyright © 2007-2012 The Apache Software Foundation