T
- the type of the incoming recordspublic abstract class WriteSupport<T> extends Object
ParquetOutputFormat
to convert incoming recordsModifier 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
|
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 WriteSupport.FinalizedWriteContext finalizeWrite()
Copyright © 2015 The Apache Software Foundation. All rights reserved.