Class DictReaderImpl
java.lang.Object
org.apache.drill.exec.vector.accessor.reader.ArrayReaderImpl
org.apache.drill.exec.vector.accessor.reader.DictReaderImpl
- All Implemented Interfaces:
ArrayReader
,ColumnReader
,DictReader
,ReaderEvents
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.vector.accessor.reader.ArrayReaderImpl
ArrayReaderImpl.ArrayObjectReader, ArrayReaderImpl.ElementReaderIndex
-
Field Summary
Fields inherited from class org.apache.drill.exec.vector.accessor.reader.ArrayReaderImpl
elementIndex, elementReader, nullStateReader
-
Constructor Summary
ConstructorDescriptionDictReaderImpl
(ColumnMetadata metadata, VectorAccessor va, AbstractTupleReader.TupleObjectReader entryObjectReader) -
Method Summary
Modifier and TypeMethodDescriptionbuild
(ColumnMetadata schema, VectorAccessor dictAccessor, List<AbstractObjectReader> readers) Return the entire object as a string.Return the value of the underlying data as a Java object.Methods inherited from class org.apache.drill.exec.vector.accessor.reader.ArrayReaderImpl
array, bindBuffer, bindIndex, bindNullState, buildList, buildRepeatedList, buildScalar, buildTuple, elementIndex, entry, entryType, isNull, next, nullStateReader, reposition, rewind, scalar, schema, setPosn, size, tuple, type, variant
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.drill.exec.vector.accessor.ArrayReader
array, entry, entryType, next, rewind, scalar, setPosn, tuple, variant
Methods inherited from interface org.apache.drill.exec.vector.accessor.ColumnReader
isNull, schema, type
Methods inherited from interface org.apache.drill.exec.vector.accessor.DictReader
size
Methods inherited from interface org.apache.drill.exec.vector.accessor.reader.ReaderEvents
bindBuffer, bindIndex, bindNullState, nullStateReader, reposition
-
Constructor Details
-
DictReaderImpl
public DictReaderImpl(ColumnMetadata metadata, VectorAccessor va, AbstractTupleReader.TupleObjectReader entryObjectReader)
-
-
Method Details
-
build
public static DictReaderImpl.DictObjectReader build(ColumnMetadata schema, VectorAccessor dictAccessor, List<AbstractObjectReader> readers) -
keyAccessor
- Specified by:
keyAccessor
in interfaceDictReader
-
valueReader
- Specified by:
valueReader
in interfaceDictReader
-
keyColumnType
- Specified by:
keyColumnType
in interfaceDictReader
-
valueColumnType
- Specified by:
valueColumnType
in interfaceDictReader
-
getObject
Description copied from interface:ColumnReader
Return the value of the underlying data as a Java object. Primarily for testing- Array: Return the entire array as an List of objects. Note, even if the array is scalar, the elements are still returned as a list.
- Specified by:
getObject
in interfaceColumnReader
- Overrides:
getObject
in classArrayReaderImpl
- Returns:
- the value as a Java object
-
getAsString
Description copied from interface:ColumnReader
Return the entire object as a string. Primarily for debugging.- Specified by:
getAsString
in interfaceColumnReader
- Overrides:
getAsString
in classArrayReaderImpl
- Returns:
- string representation of the object
-