@PublicEvolving public class PrintingOutputFormat<T> extends 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(Configuration parameters) |
void |
open(int taskNumber,
int numTasks) |
void |
setTargetToStandardErr() |
void |
setTargetToStandardOut() |
String |
toString() |
void |
writeRecord(T record) |
getRuntimeContext, setRuntimeContext
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(Configuration parameters)
public void open(int taskNumber, int numTasks)
public void writeRecord(T record)
public void close()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.