public interface MorphiumIterator<T> extends Iterable<T>, Iterator<T>
for (Object o:query.asIterable()) {
//do something here
};
| 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() |
Query<T> |
getQuery() |
int |
getWindowSize() |
boolean |
isMultithreaddedAccess() |
void |
setMultithreaddedAccess(boolean mu) |
void |
setNumberOfPrefetchWindows(int n) |
void |
setQuery(Query<T> q) |
void |
setWindowSize(int sz) |
void setWindowSize(int sz)
int getWindowSize()
int getCurrentBufferSize()
List<T> getCurrentBuffer()
long getCount()
int getCursor()
void ahead(int jump)
jump - number of elements to jumpvoid back(int jump)
jump - number of elements to jump backvoid setNumberOfPrefetchWindows(int n)
int getNumberOfAvailableThreads()
int getNumberOfThreads()
boolean isMultithreaddedAccess()
void setMultithreaddedAccess(boolean mu)
Copyright © 2015. All rights reserved.