Class AvroDecimalConsumer.FixedDecimalConsumer

All Implemented Interfaces:
AutoCloseable, Consumer<DecimalVector>
Enclosing class:
AvroDecimalConsumer

public static class AvroDecimalConsumer.FixedDecimalConsumer extends AvroDecimalConsumer
Consumer for decimal logical type with original fixed type.
  • Constructor Details

    • FixedDecimalConsumer

      public FixedDecimalConsumer(DecimalVector vector, int size)
      Instantiate a FixedDecimalConsumer.
  • Method Details

    • consume

      public void consume(org.apache.avro.io.Decoder decoder) throws IOException
      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