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) throws IOException
out - Output stream where the records will be serializedformat - Serialization format ("binary", "xml", or "csv")IOExceptionpublic void write(Record r) throws IOException
r - record to be serializedIOExceptionCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.