public static interface BaseReader.DictReader extends BaseReader.RepeatedMapReader
BaseReader.ComplexReader, BaseReader.DictReader, BaseReader.ListReader, BaseReader.MapReader, BaseReader.RepeatedListReader, BaseReader.RepeatedMapReader, BaseReader.ScalarReader
Modifier and Type | Method and Description |
---|---|
void |
copyAsValue(BaseWriter.DictWriter writer) |
int |
find(int key)
Obtain the index for given key in current row used to find a corresponding value with.
|
int |
find(Object key)
Obtain the index for given key in current row used to find a corresponding value with.
|
int |
find(String key)
Obtain the index for given key in current row used to find a corresponding value with.
|
void |
read(int key,
ValueHolder holder)
Reads a value corresponding to a
key into the holder . |
void |
read(Object key,
ValueHolder holder)
Reads a value corresponding to a
key into the holder . |
void |
read(String key,
ValueHolder holder)
Reads a value corresponding to a
key into the holder . |
copyAsValue, next, size
reader
copyAsValue, getField, getType, getTypeString, getVectorType, isSet, read, read, read, reset
setPosition
forEach, iterator, spliterator
void copyAsValue(BaseWriter.DictWriter writer)
int find(String key)
PathSegment.NameSegment
in cases when DictVector.getValueType()
is complex.
Despite key
is passed as String
the value is converted to
actual type based on DictVector.getKeyType()
.
key
- literal representing key valueDictVector
int find(int key)
PathSegment.ArraySegment
in cases when DictVector.getValueType()
is complex.
Despite key
is passed as int
the value is converted to
actual type based on DictVector.getKeyType()
.
key
- literal representing key valueDictVector
int find(Object key)
PathSegment
with provided PathSegment.getOriginalValue()
in cases when DictVector.getValueType()
is complex.
The key
is assumed to be of actual type, is not converted and used as is.
key
- key valueDictVector
void read(String key, ValueHolder holder)
key
into the holder
.
If there is no entry in the row with the given key
, value is set to null.
Used in generated code when retrieving value from Dict with
PathSegment.NameSegment
in cases when DictVector.getValueType()
is primitive.
Despite key
is passed as String
the value is converted to
actual type based on DictVector.getKeyType()
.
key
- literal representing key valueholder
- a holder to write value's value intoDictVector
void read(int key, ValueHolder holder)
key
into the holder
.
If there is no entry in the row with the given key
, value is set to null.
Used in generated code when retrieving value from Dict with
PathSegment.ArraySegment
in cases when DictVector.getValueType()
is primitive.
Despite key
is passed as int
the value is converted to
actual type based on DictVector.getKeyType()
.
key
- literal representing key valueholder
- a holder to write value's value intoDictVector
void read(Object key, ValueHolder holder)
key
into the holder
.
If there is no entry in the row with the given key
, value is set to null.
Used in generated code when retrieving value from Dict using PathSegment
with provided PathSegment.getOriginalValue()
in cases when DictVector.getValueType()
is primitive.
The key
is assumed to be of actual type, is not converted and used as is.
key
- key valueholder
- a holder to write value's value intoDictVector
Copyright © 1970 The Apache Software Foundation. All rights reserved.