Class BinaryDecimalParquetValueWriter

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

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

    • BinaryDecimalParquetValueWriter

      public BinaryDecimalParquetValueWriter()
  • 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