Package org.apache.flink.runtime.io.disk
Class FileBasedBufferIterator
- java.lang.Object
-
- org.apache.flink.runtime.io.disk.FileBasedBufferIterator
-
- All Implemented Interfaces:
AutoCloseable
,Iterator<Buffer>
,CloseableIterator<Buffer>
@Internal public class FileBasedBufferIterator extends Object implements CloseableIterator<Buffer>
CloseableIterator
ofbuffers
over file content.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.util.CloseableIterator
CloseableIterator.IteratorAdapter<E>
-
-
Field Summary
-
Fields inherited from interface org.apache.flink.util.CloseableIterator
EMPTY_INSTANCE
-
-
Constructor Summary
Constructors Constructor Description FileBasedBufferIterator(RefCountedFile file, int bytesToRead, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
hasNext()
Buffer
next()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Constructor Detail
-
FileBasedBufferIterator
public FileBasedBufferIterator(RefCountedFile file, int bytesToRead, int bufferSize) throws FileNotFoundException
- Throws:
FileNotFoundException
-
-