E - the element type of the iteratorprotected abstract class RAMDictionary.HotSwappableIterator<E> extends Object implements Iterator<E>
| Constructor and Description |
|---|
HotSwappableIterator(Iterator<E> itr,
boolean checkForLoad)
Constructs a new hot swappable iterator.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkForLoad()
Checks to see if the data has been loaded into memory; is so,
replaces the original iterator with one that iterates over the
in-memory data structures.
|
boolean |
hasNext() |
protected abstract Iterator<E> |
makeIterator()
Constructs the iterator that will iterate over the loaded data.
|
E |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic HotSwappableIterator(Iterator<E> itr, boolean checkForLoad)
itr - the wrapped iteratorcheckForLoad - if true, on each call the iterator checks to
see if the dictionary has been loaded into memory,
switching data sources if soNullPointerException - if the specified iterator is nullprotected void checkForLoad()
protected abstract Iterator<E> makeIterator()
Copyright © 2018. All rights reserved.