Class UnionMapReader
java.lang.Object
org.apache.arrow.vector.complex.impl.AbstractFieldReader
org.apache.arrow.vector.complex.impl.UnionListReader
org.apache.arrow.vector.complex.impl.UnionMapReader
- All Implemented Interfaces:
Iterable<String>, Positionable, BaseReader, BaseReader.ListReader, BaseReader.MapReader, BaseReader.RepeatedListReader, BaseReader.RepeatedMapReader, BaseReader.RepeatedStructReader, BaseReader.ScalarReader, BaseReader.StructReader, BigIntReader, BitReader, DateDayReader, DateMilliReader, Decimal256Reader, DecimalReader, DurationReader, ExtensionReader, FieldReader, FixedSizeBinaryReader, Float2Reader, Float4Reader, Float8Reader, IntervalDayReader, IntervalMonthDayNanoReader, IntervalYearReader, IntReader, LargeVarBinaryReader, LargeVarCharReader, SmallIntReader, TimeMicroReader, TimeMilliReader, TimeNanoReader, TimeSecReader, TimeStampMicroReader, TimeStampMicroTZReader, TimeStampMilliReader, TimeStampMilliTZReader, TimeStampNanoReader, TimeStampNanoTZReader, TimeStampSecReader, TimeStampSecTZReader, TinyIntReader, UInt1Reader, UInt2Reader, UInt4Reader, UInt8Reader, VarBinaryReader, VarCharReader, ViewVarBinaryReader, ViewVarCharReader
Reader for a MapVector.
-
Nested Class Summary
Nested classes/interfaces inherited from interface BaseReader
BaseReader.ComplexReader, BaseReader.ListReader, BaseReader.MapReader, BaseReader.RepeatedListReader, BaseReader.RepeatedMapReader, BaseReader.RepeatedStructReader, BaseReader.ScalarReader, BaseReader.StructReader -
Constructor Summary
ConstructorsConstructorDescriptionUnionMapReader(MapVector vector) Construct a new reader for the given vector. -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyAsValue(DenseUnionWriter writer) voidcopyAsValue(UnionWriter writer) voidcopyAsValue(BaseWriter.MapWriter writer) Return the MinorType of the reader as MAP.intprotected intidx()iterator()key()Start reading a key from the map entry.voidread(int index, DenseUnionHolder holder) voidread(DenseUnionHolder holder) voidread(UnionHolder holder) voidreset()voidsetKeyValueNames(String key, String value) Set the key, value field names to read.value()Start reading a value element from the map entry.Methods inherited from class UnionListReader
copyAsValue, getField, isSet, next, read, reader, readObject, setPosition, sizeMethods inherited from class AbstractFieldReader
copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, readBigDecimal, readBigDecimal, readBoolean, readBoolean, readByte, readByte, readByteArray, readByteArray, readCharacter, readCharacter, readDouble, readDouble, readDuration, readDuration, reader, readFloat, readFloat, readInteger, readInteger, readLocalDateTime, readLocalDateTime, readLong, readLong, readObject, readPeriod, readPeriod, readPeriodDuration, readPeriodDuration, readShort, readShort, readString, readString, readText, readTextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BaseReader
copyAsValue, copyAsValue, read, read, read, resetMethods inherited from interface BaseReader.RepeatedMapReader
copyAsValueMethods inherited from interface Iterable
forEach, iterator, spliteratorMethods inherited from interface Positionable
getPosition
-
Constructor Details
-
UnionMapReader
Construct a new reader for the given vector.- Parameters:
vector- Vector to read from.
-
-
Method Details
-
setKeyValueNames
-
key
Start reading a key from the map entry.- Returns:
- reader that can be used to read the key.
-
value
Start reading a value element from the map entry.- Returns:
- reader that can be used to read the value.
-
getMinorType
Return the MinorType of the reader as MAP.- Specified by:
getMinorTypein interfaceBaseReader- Overrides:
getMinorTypein classUnionListReader
-
getPosition
public int getPosition()- Specified by:
getPositionin interfacePositionable
-
idx
protected int idx() -
reset
public void reset()- Specified by:
resetin interfaceBaseReader
-
iterator
-
read
- Specified by:
readin interfaceBaseReader
-
copyAsValue
- Specified by:
copyAsValuein interfaceBaseReader
-
read
- Specified by:
readin interfaceBaseReader
-
read
- Specified by:
readin interfaceBaseReader
-
copyAsValue
- Specified by:
copyAsValuein interfaceBaseReader
-
copyAsValue
- Specified by:
copyAsValuein interfaceBaseReader.RepeatedMapReader
-