Class AbstractScalarReader.NullReader
java.lang.Object
org.apache.drill.exec.vector.accessor.reader.AbstractScalarReader
org.apache.drill.exec.vector.accessor.reader.AbstractScalarReader.NullReader
- All Implemented Interfaces:
ColumnReader
,ReaderEvents
,ScalarReader
- Enclosing class:
- AbstractScalarReader
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.vector.accessor.reader.AbstractScalarReader
AbstractScalarReader.NullReader, AbstractScalarReader.ScalarObjectReader
-
Field Summary
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) boolean
isNull()
Determine if this value is null.schema()
Describe the type of the value.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, nullReader, nullStateReader, reposition, type
-
Field Details
-
schema
-
-
Constructor Details
-
NullReader
-
-
Method Details
-
valueType
Description copied from interface:ScalarReader
Describe the type of the value. This is a compression of the value vector type: it describes which method will return the vector value.- Returns:
- the value type which indicates which get method is valid for the column
-
isNull
public boolean isNull()Description copied from interface:ColumnReader
Determine if this value is null.- Nullable scalar: determine if the value is null.
- Non-nullable scalar: always returns false.
- Arrays: always returns false</tt.>
- Lists: determine if the list for the current row is null. In a list, an array entry can be null, empty, or can contain items. In repeated types, the array itself is never null. If the array is null, then it implicitly has no entries.
- Map or Repeated Map: Always returns false.
- Map inside a union, or in a list that contains a union, the tuple itself can be null.
- Union: Determine if the current value is null. Null values have no type and no associated reader.
- Specified by:
isNull
in interfaceColumnReader
- Overrides:
isNull
in classAbstractScalarReader
- Returns:
- true if this value is null; false otherwise
-
bindIndex
- Specified by:
bindIndex
in interfaceReaderEvents
- Overrides:
bindIndex
in classAbstractScalarReader
-
schema
-
bindBuffer
public void bindBuffer()
-