Interface TupleReader
- All Superinterfaces:
ColumnReader
- All Known Subinterfaces:
RowSetReader
- All Known Implementing Classes:
AbstractTupleReader
,DictEntryReader
,MapReader
,RowSetReaderImpl
Interface for reading from tuples (rows or maps). Provides
a column reader for each column that can be obtained either
by name or column index (as defined in the tuple schema.)
Also provides two generic methods to get the value as a
Java object or as a string.
-
Method Summary
Methods inherited from interface org.apache.drill.exec.vector.accessor.ColumnReader
getAsString, getObject, isNull, schema, type
-
Method Details
-
tupleSchema
TupleMetadata tupleSchema() -
columnCount
int columnCount() -
column
Return a column reader by column index as reported by the associated metadata.- Parameters:
colIndex
- column index- Returns:
- reader for the column
-
column
Return a column reader by name.- Parameters:
colName
- column name- Returns:
- reader for the column, or null if no such column exists
-
type
-
type
-
scalar
-
scalar
-
tuple
-
tuple
-
array
-
array
-
variant
-
variant
-
dict
-
dict
-