Class VeniceAvroFileIterator

    • Constructor Summary

      Constructors 
      Constructor Description
      VeniceAvroFileIterator​(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path hdfsPath, AbstractAvroRecordReader<org.apache.avro.mapred.AvroWrapper<org.apache.avro.generic.IndexedRecord>,​org.apache.hadoop.io.NullWritable> recordReader)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      byte[] getCurrentKey()
      Return the current key.
      byte[] getCurrentValue()
      Return the current value.
      boolean next()
      Proceed to next record, returns false if there is no more records.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VeniceAvroFileIterator

        public VeniceAvroFileIterator​(org.apache.hadoop.fs.FileSystem fs,
                                      org.apache.hadoop.fs.Path hdfsPath,
                                      AbstractAvroRecordReader<org.apache.avro.mapred.AvroWrapper<org.apache.avro.generic.IndexedRecord>,​org.apache.hadoop.io.NullWritable> recordReader)
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException