Class AvroTimestampSecProducer

java.lang.Object
org.apache.arrow.adapter.avro.producers.BaseAvroProducer<TimeStampSecVector>
org.apache.arrow.adapter.avro.producers.logical.AvroTimestampSecProducer
All Implemented Interfaces:
Producer<TimeStampSecVector>

public class AvroTimestampSecProducer extends BaseAvroProducer<TimeStampSecVector>
Producer that converts epoch seconds from a TimeStampSecVector and produces local timestamp (milliseconds) values, writes data to an Avro encoder.
  • Constructor Details

    • AvroTimestampSecProducer

      public AvroTimestampSecProducer(TimeStampSecVector vector)
      Instantiate an AvroTimestampSecProducer.
  • 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