@PublicEvolving
public class PrintingOutputFormat<T>
extends org.apache.flink.api.common.io.RichOutputFormat<T>
| Constructor and Description |
|---|
PrintingOutputFormat()
Instantiates a printing output format that prints to standard out.
|
PrintingOutputFormat(boolean stdErr)
Instantiates a printing output format that prints to standard out.
|
PrintingOutputFormat(String sinkIdentifier,
boolean stdErr)
Instantiates a printing output format that prints to standard out with a prefixed message.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(org.apache.flink.configuration.Configuration parameters) |
void |
open(int taskNumber,
int numTasks) |
void |
setTargetToStandardErr() |
void |
setTargetToStandardOut() |
String |
toString() |
void |
writeRecord(T record) |
public PrintingOutputFormat()
public PrintingOutputFormat(boolean stdErr)
stdErr - True, if the format should print to standard error instead of standard out.public PrintingOutputFormat(String sinkIdentifier, boolean stdErr)
sinkIdentifier - Message that is prefixed to the output of the value.stdErr - True, if the format should print to standard error instead of standard out.public void setTargetToStandardOut()
public void setTargetToStandardErr()
public void configure(org.apache.flink.configuration.Configuration parameters)
public void open(int taskNumber,
int numTasks)
public void writeRecord(T record)
public void close()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.