public class RecordWriter
extends java.lang.Object
| Constructor | Description |
|---|---|
RecordWriter(java.io.OutputStream out,
java.lang.String format) |
Creates a new instance of RecordWriter
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
write(Record r) |
Serialize a record
|
public RecordWriter(java.io.OutputStream out,
java.lang.String format)
throws java.io.IOException
out - Output stream where the records will be serializedformat - Serialization format ("binary", "xml", or "csv")java.io.IOExceptionpublic void write(Record r) throws java.io.IOException
r - record to be serializedjava.io.IOExceptionCopyright © 2018 The Apache Software Foundation