public class PrintingOutputFormat<T> extends Object implements OutputFormat<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.
|
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) |
public PrintingOutputFormat()
public PrintingOutputFormat(boolean stdErr)
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)
configure
in interface OutputFormat<T>
public void open(int taskNumber, int numTasks)
open
in interface OutputFormat<T>
public void writeRecord(T record)
writeRecord
in interface OutputFormat<T>
public void close()
close
in interface OutputFormat<T>
Copyright © 2015 The Apache Software Foundation. All rights reserved.