Class AvroDecimalConsumer.FixedDecimalConsumer
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.FixedDecimalConsumer
- All Implemented Interfaces:
AutoCloseable
,Consumer<DecimalVector>
- Enclosing class:
- AvroDecimalConsumer
Consumer for decimal logical type with original fixed 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
ConstructorDescriptionFixedDecimalConsumer
(DecimalVector vector, int size) Instantiate a FixedDecimalConsumer. -
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
-
FixedDecimalConsumer
Instantiate a FixedDecimalConsumer.
-
-
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
-