Class VeniceAvroFileIterator
java.lang.Object
com.linkedin.venice.hadoop.input.recordreader.avro.VeniceAvroFileIterator
- All Implemented Interfaces:
VeniceRecordIterator
,Closeable
,AutoCloseable
-
Constructor Summary
ConstructorDescriptionVeniceAvroFileIterator
(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
-
Constructor Details
-
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 Details
-
getCurrentKey
public byte[] getCurrentKey()Description copied from interface:VeniceRecordIterator
Return the current key. This method should return same value until `next` is called.- Specified by:
getCurrentKey
in interfaceVeniceRecordIterator
-
getCurrentValue
public byte[] getCurrentValue()Description copied from interface:VeniceRecordIterator
Return the current value. This method should return same value until `next` is called.- Specified by:
getCurrentValue
in interfaceVeniceRecordIterator
-
next
public boolean next()Description copied from interface:VeniceRecordIterator
Proceed to next record, returns false if there is no more records.- Specified by:
next
in interfaceVeniceRecordIterator
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-