Package de.caluga.morphium.query
Schnittstelle MorphiumIterator<T>
- Alle bekannten Unterschnittstellen:
MorphiumAggregationIterator<T,R>
- Alle bekannten Implementierungsklassen:
AggregationIterator,QueryIterator
User: Stephan Bösebeck
Date: 23.11.12
Time: 11:35
iterator, makes paging through huge collections a lot easier. Default Window (~page) size is 10.
This iterator only reads as many objects from mongo as specified in window-size. It can be used like a
normal java iterator:
for (Object o:query.asIterable()) {
//do something here
};
-
Methodenübersicht
Von Schnittstelle geerbte Methoden java.lang.Iterable
forEach, iterator, spliteratorVon Schnittstelle geerbte Methoden java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Methodendetails
-
available
int available()retruns the number of elements now in buffer. Max windowsize- Gibt zurück:
- list
-
getCurrentBuffer
get the current buffer. Maximum length is specified windowsize- Gibt zurück:
- list
-
getCursor
int getCursor()returns current cursor position- Gibt zurück:
- int
-
ahead
void ahead(int jump) move the cursor position ahead- Parameter:
jump- number of elements to jump
-
back
void back(int jump) get back some positions- Parameter:
jump- number of elements to jump back
-
close
void close() -
nextMap
-