public class AvroMapConsumer extends BaseAvroConsumer<MapVector>
MapVector.currentIndex, vector| Constructor and Description |
|---|
AvroMapConsumer(MapVector vector,
Consumer delegate)
Instantiate a AvroMapConsumer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this consumer when occurs exception to avoid potential leak.
|
void |
consume(org.apache.avro.io.Decoder decoder)
Consume a specific type value from avro decoder and write it to vector.
|
boolean |
resetValueVector(MapVector vector)
Reset the vector within consumer for partial read purpose.
|
addNull, getVector, setPositionpublic void consume(org.apache.avro.io.Decoder decoder)
throws IOException
Consumerdecoder - avro decoder to read dataIOException - on errorpublic void close()
throws Exception
Consumerclose in interface AutoCloseableclose in interface Consumer<MapVector>close in class BaseAvroConsumer<MapVector>Exceptionpublic boolean resetValueVector(MapVector vector)
ConsumerresetValueVector in interface Consumer<MapVector>resetValueVector in class BaseAvroConsumer<MapVector>Copyright © 2024 The Apache Software Foundation. All rights reserved.