org.apache.hadoop.record
Class RecordReader

java.lang.Object
  extended by org.apache.hadoop.record.RecordReader

public class RecordReader
extends Object

Front-end interface to deserializers. Also acts as a factory for deserializers.

Author:
milindb

Constructor Summary
RecordReader(InputStream in, String format)
          Creates a new instance of RecordReader.
 
Method Summary
 void read(Record r)
          Deserialize a record
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordReader

public RecordReader(InputStream in,
                    String format)
             throws IOException
Creates a new instance of RecordReader.

Parameters:
in - Stream from which to deserialize a record
format - Deserialization format ("binary", "xml", or "csv")
Throws:
IOException
Method Detail

read

public void read(Record r)
          throws IOException
Deserialize a record

Parameters:
r - Record to be deserialized
Throws:
IOException


Copyright © 2006 The Apache Software Foundation