Class VeniceVsonFileIterator
java.lang.Object
com.linkedin.venice.hadoop.input.recordreader.vson.VeniceVsonFileIterator
- All Implemented Interfaces:
VeniceRecordIterator
,Closeable
,AutoCloseable
-
Constructor Summary
ConstructorDescriptionVeniceVsonFileIterator
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path hdfsPath, VeniceVsonRecordReader recordReader) -
Method Summary
-
Constructor Details
-
VeniceVsonFileIterator
public VeniceVsonFileIterator(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path hdfsPath, VeniceVsonRecordReader 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
-