Class BinaryDecimalParquetValueWriter
java.lang.Object
org.apache.drill.exec.store.parquet.decimal.DecimalValueWriter
org.apache.drill.exec.store.parquet.decimal.BinaryDecimalParquetValueWriter
Parquet value writer for passing decimal values
into
RecordConsumer
to be stored as BINARY type.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
writeValue
(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
-
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 specifiedDrillBuf buffer
, converts it into required format if needed and passes the value into specifiedRecordConsumer consumer
.- Specified by:
writeValue
in 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
-