public interface BaseReader extends Positionable
Modifier and Type | Interface and Description |
---|---|
static interface |
BaseReader.ComplexReader |
static interface |
BaseReader.DictReader |
static interface |
BaseReader.ListReader |
static interface |
BaseReader.MapReader |
static interface |
BaseReader.RepeatedListReader |
static interface |
BaseReader.RepeatedMapReader |
static interface |
BaseReader.ScalarReader |
Modifier and Type | Method and Description |
---|---|
void |
copyAsValue(UnionWriter writer) |
MaterializedField |
getField() |
TypeProtos.MajorType |
getType() |
String |
getTypeString()
Returns
String representation of the reader's type. |
TypeProtos.MinorType |
getVectorType()
Returns the type of the vector, not value.
|
boolean |
isSet() |
void |
read(int index,
UnionHolder holder) |
void |
read(UnionHolder holder) |
void |
read(ValueHolder holder) |
void |
reset() |
setPosition
TypeProtos.MajorType getType()
MaterializedField getField()
void reset()
void read(UnionHolder holder)
void read(int index, UnionHolder holder)
void copyAsValue(UnionWriter writer)
boolean isSet()
void read(ValueHolder holder)
String getTypeString()
String
representation of the reader's type. In case if
getType()
is primitive, the method is equivalent to
#getType().getMinorType().name()
. If the reader has minor type
equal to TypeProtos.MinorType.DICT
,
DICT<keyMinorType,valueMinorType>
, with keyMinorType
and valueMinorType
being key's and value's minor types
respectively, will be returned. Used in typeOf
UDF.String
representation of reader's type.TypeProtos.MinorType getVectorType()
Copyright © 1970 The Apache Software Foundation. All rights reserved.