public class LocalCollectionOutputFormat<T> extends Object implements OutputFormat<T>, 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)
Method that is called on an
OutputFormat when it is passed to
the DataSet's output method. |
void |
writeRecord(T record) |
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)
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 © 2015 The Apache Software Foundation. All rights reserved.