Class NullStateReaders.ComplexMemberStateReader
java.lang.Object
org.apache.drill.exec.vector.accessor.reader.NullStateReaders.ComplexMemberStateReader
- All Implemented Interfaces:
NullStateReader
- Enclosing class:
- NullStateReaders
protected static class NullStateReaders.ComplexMemberStateReader
extends Object
implements NullStateReader
Handle the awkward situation with complex types. They don't carry their own
bits (null state) vector. Instead, we define them as null if the type of
the union is other than the type of the map or list. (Since the same vector
that holds state also holds the is-null value, this check includes the
check if the entire union is null.)
-
Constructor Summary
ConstructorDescriptionComplexMemberStateReader
(ColumnAccessors.UInt1ColumnReader typeReader, TypeProtos.MinorType type) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
bindIndex
(ColumnReaderIndex rowIndex) boolean
isNull()
-
Constructor Details
-
ComplexMemberStateReader
public ComplexMemberStateReader(ColumnAccessors.UInt1ColumnReader typeReader, TypeProtos.MinorType type)
-
-
Method Details
-
bindIndex
- Specified by:
bindIndex
in interfaceNullStateReader
-
isNull
public boolean isNull()- Specified by:
isNull
in interfaceNullStateReader
-
bindBuffer
public void bindBuffer()- Specified by:
bindBuffer
in interfaceNullStateReader
-