Package org.apache.wayang.flink.compiler
Class OutputFormatConsumer<T>
- java.lang.Object
-
- org.apache.wayang.flink.compiler.OutputFormatConsumer<T>
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.flink.api.common.io.OutputFormat<T>
public class OutputFormatConsumer<T> extends java.lang.Object implements org.apache.flink.api.common.io.OutputFormat<T>, java.io.Serializable
Wrapper forOutputFormat
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OutputFormatConsumer(FunctionDescriptor.SerializableConsumer<T> consumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
configure(org.apache.flink.configuration.Configuration configuration)
void
open(int i, int i1)
void
writeRecord(T o)
-
-
-
Constructor Detail
-
OutputFormatConsumer
public OutputFormatConsumer(FunctionDescriptor.SerializableConsumer<T> consumer)
-
-
Method Detail
-
configure
public void configure(org.apache.flink.configuration.Configuration configuration)
- Specified by:
configure
in interfaceorg.apache.flink.api.common.io.OutputFormat<T>
-
open
public void open(int i, int i1) throws java.io.IOException
- Specified by:
open
in interfaceorg.apache.flink.api.common.io.OutputFormat<T>
- Throws:
java.io.IOException
-
writeRecord
public void writeRecord(T o) throws java.io.IOException
- Specified by:
writeRecord
in interfaceorg.apache.flink.api.common.io.OutputFormat<T>
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfaceorg.apache.flink.api.common.io.OutputFormat<T>
- Throws:
java.io.IOException
-
-