Class Int32DecimalParquetValueWriter

java.lang.Object
org.apache.drill.exec.store.parquet.decimal.DecimalValueWriter
org.apache.drill.exec.store.parquet.decimal.Int32DecimalParquetValueWriter

public class Int32DecimalParquetValueWriter extends DecimalValueWriter
Parquet value writer for passing decimal values into RecordConsumer to be stored as INT32 type.
  • Constructor Details

    • Int32DecimalParquetValueWriter

      public Int32DecimalParquetValueWriter()
  • Method Details

    • writeValue

      public void writeValue(org.apache.parquet.io.api.RecordConsumer consumer, DrillBuf buffer, int start, int end, int precision)
      Description copied from class: DecimalValueWriter
      Takes value from specified DrillBuf buffer, converts it into required format if needed and passes the value into specified RecordConsumer consumer.
      Specified by:
      writeValue in class DecimalValueWriter
      Parameters:
      consumer - abstraction for writing records
      buffer - the source of data that should be written
      start - start position of data in buffer
      end - end position of data in buffer
      precision - precision of the value that should be stored