public class AvroStructConsumer extends BaseAvroConsumer<StructVector>
StructVector.currentIndex, vector| Constructor and Description |
|---|
AvroStructConsumer(StructVector vector,
Consumer[] delegates)
Instantiate a AvroStructConsumer.
|
| 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(StructVector vector)
Reset the vector within consumer for partial read purpose.
|
addNull, getVector, setPositionpublic AvroStructConsumer(StructVector vector, Consumer[] delegates)
public 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<StructVector>close in class BaseAvroConsumer<StructVector>Exceptionpublic boolean resetValueVector(StructVector vector)
ConsumerresetValueVector in interface Consumer<StructVector>resetValueVector in class BaseAvroConsumer<StructVector>Copyright © 2024 The Apache Software Foundation. All rights reserved.