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 org.apache.arrow.vector.complex.reader.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 org.apache.arrow.vector.complex.impl.UnionListReader
copyAsValue, getField, isSet, next, read, reader, readObject, setPosition, sizeMethods inherited from class org.apache.arrow.vector.complex.impl.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.arrow.vector.complex.reader.BaseReader
copyAsValue, copyAsValue, read, read, read, resetMethods inherited from interface org.apache.arrow.vector.complex.reader.BaseReader.RepeatedMapReader
copyAsValueMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.apache.arrow.vector.complex.Positionable
getPosition
-
Constructor Details
-
UnionMapReader
Construct a new reader for the given vector.- Parameters:
vector- Vector to read from.
-
-
Method Details
-
setKeyValueNames
Set the key, value field names to read.- Parameters:
key- Field name for key.value- Field name for value.
-
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
-