public class RecordWriter
extends java.lang.Object
Constructor and Description |
---|
RecordWriter(java.io.OutputStream out,
java.lang.String format)
Creates a new instance of RecordWriter
|
Modifier and Type | Method and 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.IOException
public void write(Record r) throws java.io.IOException
r
- record to be serializedjava.io.IOException
Copyright © 2019 The Apache Software Foundation