Class FixedLenDecimalParquetValueWriter
java.lang.Object
org.apache.drill.exec.store.parquet.decimal.DecimalValueWriter
org.apache.drill.exec.store.parquet.decimal.FixedLenDecimalParquetValueWriter
Parquet value writer for passing decimal values
into
RecordConsumer to be stored as FIXED_LEN_BYTE_ARRAY type.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteValue(org.apache.parquet.io.api.RecordConsumer consumer, DrillBuf buffer, int start, int end, int precision) Takes value from specifiedDrillBuf buffer, converts it into required format if needed and passes the value into specifiedRecordConsumer consumer.Methods inherited from class org.apache.drill.exec.store.parquet.decimal.DecimalValueWriter
getDecimalValueWriterForType
-
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:DecimalValueWriterTakes value from specifiedDrillBuf buffer, converts it into required format if needed and passes the value into specifiedRecordConsumer consumer.- Specified by:
writeValuein classDecimalValueWriter- Parameters:
consumer- abstraction for writing recordsbuffer- the source of data that should be writtenstart- start position of data in bufferend- end position of data in bufferprecision- precision of the value that should be stored
-