public interface Encoder
Modifier and Type | Method and Description |
---|---|
void |
addValue(Object value,
org.apache.parquet.io.api.RecordConsumer consumer)
Passes a supplied 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.
|
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()
void addValue(Object 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
- typed value to writeconsumer
- value consumerCopyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.