T - the type of the incoming recordspublic abstract class WriteSupport<T> extends Object
ParquetOutputFormat to convert incoming records| Modifier and Type | Class and Description |
|---|---|
static class |
WriteSupport.FinalizedWriteContext
Information to be added in the file once all the records have been written
|
static class |
WriteSupport.WriteContext
information to be persisted in the file
|
| Constructor and Description |
|---|
WriteSupport() |
| Modifier and Type | Method and Description |
|---|---|
WriteSupport.FinalizedWriteContext |
finalizeWrite()
called once in the end after the last record was written
|
String |
getName()
Called to get a name to identify the WriteSupport object model.
|
abstract WriteSupport.WriteContext |
init(org.apache.hadoop.conf.Configuration configuration)
called first in the task
|
abstract void |
prepareForWrite(RecordConsumer recordConsumer)
This will be called once per row group
|
abstract void |
write(T record)
called once per record
|
public abstract WriteSupport.WriteContext init(org.apache.hadoop.conf.Configuration configuration)
configuration - the job's configurationpublic abstract void prepareForWrite(RecordConsumer recordConsumer)
recordConsumer - the recordConsumer to write topublic abstract void write(T record)
record - one record to write to the previously provided record consumerpublic String getName()
Defining this method will be required in a future API version.
public WriteSupport.FinalizedWriteContext finalizeWrite()
Copyright © 2018 The Apache Software Foundation. All rights reserved.