Class AbstractObjectReader
java.lang.Object
org.apache.drill.exec.vector.accessor.reader.AbstractObjectReader
- All Implemented Interfaces:
ColumnReader
,ObjectReader
- Direct Known Subclasses:
AbstractScalarReader.ScalarObjectReader
,AbstractTupleReader.TupleObjectReader
,ArrayReaderImpl.ArrayObjectReader
,UnionReaderImpl.UnionObjectReader
-
Constructor Details
-
AbstractObjectReader
public AbstractObjectReader()
-
-
Method Details
-
schema
- Specified by:
schema
in interfaceColumnReader
-
scalar
- Specified by:
scalar
in interfaceObjectReader
-
tuple
- Specified by:
tuple
in interfaceObjectReader
-
array
- Specified by:
array
in interfaceObjectReader
-
dict
- Specified by:
dict
in interfaceObjectReader
-
events
-
reader
Description copied from interface:ObjectReader
Gets the reader as a generic type, for dynamic programming.- Specified by:
reader
in interfaceObjectReader
- Returns:
- the untyped reader
-
variant
- Specified by:
variant
in interfaceObjectReader
-
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
- Returns:
- true if this value is null; false otherwise
-
type
Description copied from interface:ColumnReader
The type of this reader.- Specified by:
type
in interfaceColumnReader
- Returns:
- type of reader
-