public class WrapperTuple extends Object implements Tuple
Constructor and Description |
---|
WrapperTuple(Tuple base)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanValue(int icol)
Returns the value of a given column as a boolean.
|
double |
getDoubleValue(int icol)
Returns the value of a given column as a double.
|
int |
getIntValue(int icol)
Returns the value of a given column as an integer.
|
long |
getLongValue(int icol)
Returns the value of a given column as a long.
|
Object |
getObjectValue(int icol)
Returns the value of a given column as an object.
|
long |
getRowIndex()
Returns the row index for the underlying data set.
|
public WrapperTuple(Tuple base)
base
- tuple to which all methods are delegatedpublic long getRowIndex()
Tuple
getRowIndex
in interface Tuple
public boolean getBooleanValue(int icol)
Tuple
getBooleanValue
in interface Tuple
icol
- column indexicol
,
presumed of boolean typepublic int getIntValue(int icol)
Tuple
getIntValue
in interface Tuple
icol
- column indexicol
,
presumed of numeric typepublic double getDoubleValue(int icol)
Tuple
getDoubleValue
in interface Tuple
icol
- column indexicol
,
presumed of numeric typepublic long getLongValue(int icol)
Tuple
getLongValue
in interface Tuple
icol
- column indexicol
,
presumed of numeric typepublic Object getObjectValue(int icol)
Tuple
If the result is a mutable object, its value may be overwritten by
subsequent calls to this method
(especially following calls to TupleSequence.next()
if this
object also implements TupleSequence
).
getObjectValue
in interface Tuple
icol
- column indexicol
,
presumed of object typeCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.