Class MapReader
java.lang.Object
org.apache.drill.exec.vector.accessor.reader.AbstractTupleReader
org.apache.drill.exec.vector.accessor.reader.MapReader
- All Implemented Interfaces:
ColumnReader
,ReaderEvents
,TupleReader
Reader for a Drill Map type. Maps are actually tuples, just like rows.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.vector.accessor.reader.AbstractTupleReader
AbstractTupleReader.TupleObjectReader
-
Field Summary
Fields inherited from class org.apache.drill.exec.vector.accessor.reader.AbstractTupleReader
nullStateReader, readers
-
Constructor Summary
ModifierConstructorDescriptionprotected
MapReader
(ColumnMetadata schema, AbstractObjectReader[] readers) protected
MapReader
(ColumnMetadata schema, VectorAccessor mapAccessor, AbstractObjectReader[] readers) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bindIndex
(ColumnReaderIndex index) static AbstractObjectReader
build
(ColumnMetadata schema, VectorAccessor mapAccessor, List<AbstractObjectReader> readers) build
(ColumnMetadata schema, VectorAccessor mapAccessor, AbstractObjectReader[] readers) schema()
Methods inherited from class org.apache.drill.exec.vector.accessor.reader.AbstractTupleReader
array, array, bindBuffer, bindNullState, column, column, columnCount, dict, dict, getAsString, getObject, isNull, nullStateReader, reposition, scalar, scalar, tuple, tuple, type, type, type, variant, variant
-
Field Details
-
schema
-
-
Constructor Details
-
MapReader
-
MapReader
protected MapReader(ColumnMetadata schema, VectorAccessor mapAccessor, AbstractObjectReader[] readers)
-
-
Method Details
-
build
public static AbstractTupleReader.TupleObjectReader build(ColumnMetadata schema, VectorAccessor mapAccessor, AbstractObjectReader[] readers) -
build
public static AbstractObjectReader build(ColumnMetadata schema, VectorAccessor mapAccessor, List<AbstractObjectReader> readers) -
bindIndex
- Specified by:
bindIndex
in interfaceReaderEvents
- Overrides:
bindIndex
in classAbstractTupleReader
-
schema
-
tupleSchema
-