public abstract class AbstractTupleReader extends Object implements TupleReader, ReaderEvents
Modifier and Type | Class and Description |
---|---|
static class |
AbstractTupleReader.TupleObjectReader |
Modifier and Type | Field and Description |
---|---|
protected NullStateReader |
nullStateReader |
protected AbstractObjectReader[] |
readers |
Modifier | Constructor and Description |
---|---|
protected |
AbstractTupleReader(AbstractObjectReader[] readers) |
Modifier and Type | Method and Description |
---|---|
ArrayReader |
array(int colIndex) |
ArrayReader |
array(String colName) |
void |
bindBuffer() |
void |
bindIndex(ColumnReaderIndex index) |
void |
bindNullState(NullStateReader nullStateReader) |
ObjectReader |
column(int colIndex)
Return a column reader by column index as reported by the
associated metadata.
|
ObjectReader |
column(String colName)
Return a column reader by name.
|
int |
columnCount() |
DictReader |
dict(int colIndex) |
DictReader |
dict(String colName) |
String |
getAsString()
Return the entire object as a string.
|
Object |
getObject()
Return the value of the underlying data as a Java object.
|
boolean |
isNull()
Determine if this value is null.
|
NullStateReader |
nullStateReader() |
void |
reposition() |
ScalarReader |
scalar(int colIndex) |
ScalarReader |
scalar(String colName) |
TupleReader |
tuple(int colIndex) |
TupleReader |
tuple(String colName) |
ObjectType |
type()
The type of this reader.
|
ObjectType |
type(int colIndex) |
ObjectType |
type(String colName) |
VariantReader |
variant(int colIndex) |
VariantReader |
variant(String colName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
tupleSchema
schema
protected final AbstractObjectReader[] readers
protected NullStateReader nullStateReader
protected AbstractTupleReader(AbstractObjectReader[] readers)
public ObjectType type()
ColumnReader
type
in interface ColumnReader
public void bindIndex(ColumnReaderIndex index)
bindIndex
in interface ReaderEvents
public void bindNullState(NullStateReader nullStateReader)
bindNullState
in interface ReaderEvents
public void bindBuffer()
bindBuffer
in interface ReaderEvents
public NullStateReader nullStateReader()
nullStateReader
in interface ReaderEvents
public boolean isNull()
ColumnReader
isNull
in interface ColumnReader
public int columnCount()
columnCount
in interface TupleReader
public ObjectReader column(int colIndex)
TupleReader
column
in interface TupleReader
colIndex
- column indexpublic ObjectReader column(String colName)
TupleReader
column
in interface TupleReader
colName
- column namepublic ObjectType type(int colIndex)
type
in interface TupleReader
public ObjectType type(String colName)
type
in interface TupleReader
public ScalarReader scalar(int colIndex)
scalar
in interface TupleReader
public ScalarReader scalar(String colName)
scalar
in interface TupleReader
public TupleReader tuple(int colIndex)
tuple
in interface TupleReader
public TupleReader tuple(String colName)
tuple
in interface TupleReader
public ArrayReader array(int colIndex)
array
in interface TupleReader
public ArrayReader array(String colName)
array
in interface TupleReader
public VariantReader variant(int colIndex)
variant
in interface TupleReader
public VariantReader variant(String colName)
variant
in interface TupleReader
public DictReader dict(int colIndex)
dict
in interface TupleReader
public DictReader dict(String colName)
dict
in interface TupleReader
public void reposition()
reposition
in interface ReaderEvents
public Object getObject()
ColumnReader
getObject
in interface ColumnReader
public String getAsString()
ColumnReader
getAsString
in interface ColumnReader
Copyright © 1970 The Apache Software Foundation. All rights reserved.