Class AvroDecimalConsumer.BytesDecimalConsumer

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

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

    • BytesDecimalConsumer

      public BytesDecimalConsumer(DecimalVector vector)
      Instantiate a BytesDecimalConsumer.
  • 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