public class RecordWriter extends Object
| Constructor and Description |
|---|
RecordWriter(OutputStream out,
String format)
Creates a new instance of RecordWriter.
|
public RecordWriter(OutputStream out, String format)
out - Output stream where the records will be serializedformat - Serialization format ("binary", "xml", or "csv")public void write(Record r) throws IOException
r - record to be serializedIOExceptionCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.