T
- Input record type@PublicEvolving
public class PrintingOutputFormat<T>
extends org.apache.flink.api.common.io.RichOutputFormat<T>
Four possible format options:
sinkIdentifier
:taskId> output <- sinkIdentifier
provided, parallelism > 1
sinkIdentifier
> output <- sinkIdentifier
provided, parallelism == 1
taskId> output <- no sinkIdentifier
provided, parallelism > 1
output <- no sinkIdentifier
provided, parallelism == 1
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) |
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.Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.