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 serializedIOException
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.