public class LocalCollectionOutputFormat<T> extends RichOutputFormat<T> implements InputTypeConfigurable
Constructor and Description |
---|
LocalCollectionOutputFormat(Collection<T> out) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
configure(Configuration parameters) |
void |
open(int taskNumber,
int numTasks) |
void |
setInputType(TypeInformation<?> type,
ExecutionConfig executionConfig)
Method that is called on an
OutputFormat when it is passed to
the DataSet's output method. |
void |
writeRecord(T record) |
getRuntimeContext, setRuntimeContext
public LocalCollectionOutputFormat(Collection<T> out)
public void configure(Configuration parameters)
configure
in interface OutputFormat<T>
public void open(int taskNumber, int numTasks) throws IOException
open
in interface OutputFormat<T>
IOException
public void writeRecord(T record) throws IOException
writeRecord
in interface OutputFormat<T>
IOException
public void close() throws IOException
close
in interface OutputFormat<T>
IOException
public void setInputType(TypeInformation<?> type, ExecutionConfig executionConfig)
InputTypeConfigurable
OutputFormat
when it is passed to
the DataSet's output method. May be used to configures the output format based on the data type.setInputType
in interface InputTypeConfigurable
type
- The data type of the input.Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.