public class RecordReader
extends java.lang.Object
| Constructor | Description |
|---|---|
RecordReader(java.io.InputStream in,
java.lang.String format) |
Creates a new instance of RecordReader.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
read(Record r) |
Deserialize a record
|
public RecordReader(java.io.InputStream in,
java.lang.String format)
throws java.io.IOException
in - Stream from which to deserialize a recordformat - Deserialization format ("binary", "xml", or "csv")java.io.IOExceptionpublic void read(Record r) throws java.io.IOException
r - Record to be deserializedjava.io.IOExceptionCopyright © 2018 The Apache Software Foundation