Class FixedLenDecimalParquetValueWriter

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

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

    • FixedLenDecimalParquetValueWriter

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