Class BaseScalarReader
java.lang.Object
org.apache.drill.exec.vector.accessor.reader.AbstractScalarReader
org.apache.drill.exec.vector.accessor.reader.BaseScalarReader
- All Implemented Interfaces:
ColumnReader
,ReaderEvents
,ScalarReader
- Direct Known Subclasses:
BaseScalarReader.BaseFixedWidthReader
,BaseScalarReader.BaseVarWidthReader
Column reader implementation that acts as the basis for the
generated, vector-specific implementations. All set methods
throw an exception; subclasses simply override the supported
method(s).
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static interface
Provide access to the DrillBuf for the data vector.Nested classes/interfaces inherited from class org.apache.drill.exec.vector.accessor.reader.AbstractScalarReader
AbstractScalarReader.NullReader, AbstractScalarReader.ScalarObjectReader
-
Field Summary
Modifier and TypeFieldDescriptionprotected BaseScalarReader.BufferAccessor
protected ColumnMetadata
protected VectorAccessor
Fields inherited from class org.apache.drill.exec.vector.accessor.reader.AbstractScalarReader
nullStateReader, vectorIndex
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
bindIndex
(ColumnReaderIndex rowIndex) void
bindVector
(ColumnMetadata schema, VectorAccessor va) final DrillBuf
buffer()
protected BaseScalarReader.BufferAccessor
buildOptional
(ColumnMetadata schema, VectorAccessor va, BaseScalarReader reader) buildRequired
(ColumnMetadata schema, VectorAccessor va, BaseScalarReader reader) schema()
Methods inherited from class org.apache.drill.exec.vector.accessor.reader.AbstractScalarReader
bindNullState, conversionError, extendedType, getAsString, getBoolean, getBytes, getDate, getDecimal, getDouble, getFloat, getInt, getLong, getObject, getPeriod, getString, getTime, getTimestamp, getValue, isNull, nullReader, nullStateReader, reposition, type
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.ScalarReader
valueType
-
Field Details
-
schema
-
vectorAccessor
-
bufferAccessor
-
-
Constructor Details
-
BaseScalarReader
public BaseScalarReader()
-
-
Method Details
-
buildOptional
public static AbstractScalarReader.ScalarObjectReader buildOptional(ColumnMetadata schema, VectorAccessor va, BaseScalarReader reader) -
buildRequired
public static AbstractScalarReader.ScalarObjectReader buildRequired(ColumnMetadata schema, VectorAccessor va, BaseScalarReader reader) -
bindVector
-
bufferAccessor
-
bindIndex
- Specified by:
bindIndex
in interfaceReaderEvents
- Overrides:
bindIndex
in classAbstractScalarReader
-
schema
-
bindBuffer
public void bindBuffer() -
buffer
-