public abstract class AbstractTuple extends java.lang.Object implements Tuple
Constructor and Description |
---|
AbstractTuple() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.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.
|
java.util.Iterator<java.lang.Object> |
iterator() |
void |
reference(Tuple t)
Make this tuple reference the contents of another.
|
java.lang.String |
toDelimitedString(java.lang.String delim)
Write a tuple of values into a string.
|
java.lang.String |
toString() |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public java.util.Iterator<java.lang.Object> iterator()
iterator
in interface java.lang.Iterable<java.lang.Object>
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toDelimitedString(java.lang.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.public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
Copyright © 2007-2017 The Apache Software Foundation