public class PrefetchingQueryIterator<T> extends Object implements MorphiumQueryIterator<T>
| Constructor and Description |
|---|
PrefetchingQueryIterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
ahead(int jump)
move the cursor position ahead
|
void |
back(int jump)
get back some positions
|
long |
getCount()
how many elements are to be processed.
|
List<T> |
getCurrentBuffer()
get the current buffer.
|
int |
getCurrentBufferSize()
retruns the number of elements now in buffer.
|
int |
getCursor()
returns current cursor position
|
int |
getNumberOfAvailableThreads() |
int |
getNumberOfThreads() |
List<List<T>> |
getPrefetchBuffer() |
Query<T> |
getQuery() |
int |
getWindowSize() |
boolean |
hasNext() |
boolean |
isMultithreaddedAccess() |
Iterator<T> |
iterator() |
T |
next() |
void |
setMultithreaddedAccess(boolean mu) |
void |
setNumberOfPrefetchWindows(int n) |
void |
setPrefetchBuffer(List<List<T>> prefetchBuffer) |
void |
setQuery(Query<T> q) |
void |
setWindowSize(int sz) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorforEachRemaining, removepublic int getWindowSize()
getWindowSize in interface MorphiumIterator<T>public void setWindowSize(int sz)
setWindowSize in interface MorphiumIterator<T>public Query<T> getQuery()
getQuery in interface MorphiumQueryIterator<T>public void setQuery(Query<T> q)
setQuery in interface MorphiumQueryIterator<T>public int getCurrentBufferSize()
MorphiumIteratorgetCurrentBufferSize in interface MorphiumIterator<T>public List<T> getCurrentBuffer()
MorphiumIteratorgetCurrentBuffer in interface MorphiumIterator<T>public long getCount()
MorphiumIteratorgetCount in interface MorphiumIterator<T>public int getCursor()
MorphiumIteratorgetCursor in interface MorphiumIterator<T>public void ahead(int jump)
MorphiumIteratorahead in interface MorphiumIterator<T>jump - number of elements to jumppublic void back(int jump)
MorphiumIteratorback in interface MorphiumIterator<T>jump - number of elements to jump backpublic void setNumberOfPrefetchWindows(int n)
setNumberOfPrefetchWindows in interface MorphiumIterator<T>public int getNumberOfAvailableThreads()
getNumberOfAvailableThreads in interface MorphiumIterator<T>public int getNumberOfThreads()
getNumberOfThreads in interface MorphiumIterator<T>public boolean isMultithreaddedAccess()
isMultithreaddedAccess in interface MorphiumIterator<T>public void setMultithreaddedAccess(boolean mu)
setMultithreaddedAccess in interface MorphiumIterator<T>Copyright © 2021. All rights reserved.