Package org.apache.beam.sdk.fn.stream
Interface PrefetchableIterator<T>
-
- All Superinterfaces:
java.util.Iterator<T>
- All Known Implementing Classes:
DataStreams.DataStreamDecoder
public interface PrefetchableIterator<T> extends java.util.Iterator<T>Iteratorthat supports prefetching the next set of records.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisReady()Returnstrueif and only ifIterator.hasNext()andIterator.next()will not require an expensive operation.voidprefetch()
-