Class AvroDecimalConsumer.BytesDecimalConsumer
java.lang.Object
org.apache.arrow.adapter.avro.consumers.BaseAvroConsumer<DecimalVector>
org.apache.arrow.adapter.avro.consumers.logical.AvroDecimalConsumer
org.apache.arrow.adapter.avro.consumers.logical.AvroDecimalConsumer.BytesDecimalConsumer
- All Implemented Interfaces:
AutoCloseable
,Consumer<DecimalVector>
- Enclosing class:
- AvroDecimalConsumer
Consumer for decimal logical type with original bytes type.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.arrow.adapter.avro.consumers.logical.AvroDecimalConsumer
AvroDecimalConsumer.BytesDecimalConsumer, AvroDecimalConsumer.FixedDecimalConsumer
-
Field Summary
Fields inherited from class org.apache.arrow.adapter.avro.consumers.BaseAvroConsumer
currentIndex, vector
-
Constructor Summary
ConstructorDescriptionBytesDecimalConsumer
(DecimalVector vector) Instantiate a BytesDecimalConsumer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
consume
(org.apache.avro.io.Decoder decoder) Consume a specific type value from avro decoder and write it to vector.Methods inherited from class org.apache.arrow.adapter.avro.consumers.BaseAvroConsumer
addNull, close, getVector, resetValueVector, setPosition
-
Constructor Details
-
BytesDecimalConsumer
Instantiate a BytesDecimalConsumer.
-
-
Method Details
-
consume
Description copied from interface:Consumer
Consume a specific type value from avro decoder and write it to vector.- Parameters:
decoder
- avro decoder to read data- Throws:
IOException
- on error
-