All Implemented Interfaces:
Producer<BaseFixedWidthVector>
Direct Known Subclasses:
AvroDateDayProducer, AvroTimeMilliProducer

public class AvroIntProducer extends BaseAvroProducer<BaseFixedWidthVector>
Producer that produces int values from an IntVector, writes data to an avro encoder.

Logical types are also supported, for vectors derived from BaseFixedWidthVector where the internal representation matches IntVector and requires no conversion.

  • Constructor Details

    • AvroIntProducer

      public AvroIntProducer(IntVector vector)
      Instantiate an AvroIntConsumer.
    • AvroIntProducer

      protected AvroIntProducer(BaseFixedWidthVector vector)
      Protected constructor for a logical types with an integer representation.
  • Method Details

    • produce

      public void produce(org.apache.avro.io.Encoder encoder) throws IOException
      Description copied from interface: Producer
      Produce a specific type value from the vector and write it to avro encoder.
      Parameters:
      encoder - avro encoder to write data
      Throws:
      IOException - on error