T
- The type of the elements accepted by the output format.@Deprecated @Public public class DiscardingOutputFormat<T> extends Object implements OutputFormat<T>
OutputFormat.InitializationContext
Constructor and Description |
---|
DiscardingOutputFormat()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
Method that marks the end of the life-cycle of parallel output instance.
|
void |
configure(Configuration parameters)
Deprecated.
Configures this output format.
|
void |
open(int taskNumber,
int numTasks)
Deprecated.
Opens a parallel instance of the output format to store the result of its parallel instance.
|
void |
writeRecord(T record)
Deprecated.
Adds a record to the output.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
open
public void configure(Configuration parameters)
OutputFormat
This method is always called first on a newly instantiated output format.
configure
in interface OutputFormat<T>
parameters
- The configuration with all parameters.public void open(int taskNumber, int numTasks)
OutputFormat
When this method is called, the output format it guaranteed to be configured.
open
in interface OutputFormat<T>
taskNumber
- The number of the parallel instance.numTasks
- The number of parallel tasks.public void writeRecord(T record)
OutputFormat
When this method is called, the output format it guaranteed to be opened.
writeRecord
in interface OutputFormat<T>
record
- The records to add to the output.public void close()
OutputFormat
When this method is called, the output format it guaranteed to be opened.
close
in interface OutputFormat<T>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.