T - the Java class of objects written with this WriteSupportpublic class DelegatingWriteSupport<T> extends WriteSupport<T>
WriteSupport.FinalizedWriteContext, WriteSupport.WriteContext| Constructor and Description |
|---|
DelegatingWriteSupport(WriteSupport<T> delegate) |
| 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.
|
WriteSupport.WriteContext |
init(org.apache.hadoop.conf.Configuration configuration)
called first in the task
|
void |
prepareForWrite(RecordConsumer recordConsumer)
This will be called once per row group
|
String |
toString() |
void |
write(T record)
called once per record
|
public DelegatingWriteSupport(WriteSupport<T> delegate)
public WriteSupport.WriteContext init(org.apache.hadoop.conf.Configuration configuration)
WriteSupportinit in class WriteSupport<T>configuration - the job's configurationpublic void prepareForWrite(RecordConsumer recordConsumer)
WriteSupportprepareForWrite in class WriteSupport<T>recordConsumer - the recordConsumer to write topublic void write(T record)
WriteSupportwrite in class WriteSupport<T>record - one record to write to the previously provided record consumerpublic String getName()
WriteSupportDefining this method will be required in a future API version.
getName in class WriteSupport<T>public WriteSupport.FinalizedWriteContext finalizeWrite()
WriteSupportfinalizeWrite in class WriteSupport<T>Copyright © 2019 The Apache Software Foundation. All rights reserved.