Class RecordReader


  • public class RecordReader
    extends java.lang.Object
    Front-end interface to deserializers. Also acts as a factory for deserializers.
    • Constructor Summary

      Constructors 
      Constructor Description
      RecordReader​(java.io.InputStream in, java.lang.String format)
      Creates a new instance of RecordReader.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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​(java.io.InputStream in,
                            java.lang.String format)
        Creates a new instance of RecordReader.
        Parameters:
        in - Stream from which to deserialize a record
        format - Deserialization format ("binary", "xml", or "csv")
    • Method Detail

      • read

        public void read​(Record r)
                  throws java.io.IOException
        Deserialize a record.
        Parameters:
        r - Record to be deserialized
        Throws:
        java.io.IOException