public abstract class CachingIterator<T> extends Object implements ClosableIterator<T>
| Modifier and Type | Field and Description |
|---|---|
protected T |
nextRecord |
| Constructor and Description |
|---|
CachingIterator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
doHasNext() |
boolean |
hasNext() |
T |
next() |
static <U> CachingIterator<U> |
wrap(ClosableIterator<U> iterator) |
static <U> CachingIterator<U> |
wrap(ClosableIterator<U> iterator,
HoodieReaderContext<U> readerContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, wrapforEachRemaining, removeprotected T nextRecord
protected abstract boolean doHasNext()
public static <U> CachingIterator<U> wrap(ClosableIterator<U> iterator)
public static <U> CachingIterator<U> wrap(ClosableIterator<U> iterator, HoodieReaderContext<U> readerContext)
Copyright © 2024 The Apache Software Foundation. All rights reserved.