public interface Encoder<T>
Modifier and Type | Method and Description |
---|---|
void |
addValue(T value,
org.apache.parquet.io.api.RecordConsumer consumer)
Passes a supplied non-null value representing a cell
of this encoder's column to a record consumer.
|
String |
getColumnName()
Returns the name of the column that will be written to the parquet file.
|
org.apache.parquet.schema.Type |
getColumnType()
Returns the type of the top-level field that will be written.
|
T |
typedValue(Object obj)
Converts an object presented for record consumption
to an object of this encoder's parameterised class.
|
String getColumnName()
Note this name must obey the (undocumented?) parquet field syntax constraints; it seems that roughly it has to look like a java token.
org.apache.parquet.schema.Type getColumnType()
T typedValue(Object obj)
obj
- object for encoding, expected to be of this encoder's typevoid addValue(T value, org.apache.parquet.io.api.RecordConsumer consumer)
startField
and endField
calls, but if additional structuring calls
are required they must be done by this method.value
- non-null typed value to writeconsumer
- value consumerCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.