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, setPosition
public AvroStructConsumer(StructVector vector, Consumer[] delegates)
public void consume(org.apache.avro.io.Decoder decoder) throws IOException
Consumer
decoder
- avro decoder to read dataIOException
- on errorpublic void close() throws Exception
Consumer
close
in interface AutoCloseable
close
in interface Consumer<StructVector>
close
in class BaseAvroConsumer<StructVector>
Exception
public boolean resetValueVector(StructVector vector)
Consumer
resetValueVector
in interface Consumer<StructVector>
resetValueVector
in class BaseAvroConsumer<StructVector>
Copyright © 2023 The Apache Software Foundation. All rights reserved.