Package com.arcadedb.utility
Class MultiIterator<T>
- java.lang.Object
-
- com.arcadedb.utility.MultiIterator<T>
-
- All Implemented Interfaces:
ResettableIterator<T>
,Iterable<T>
,Iterator<T>
public class MultiIterator<T> extends Object implements ResettableIterator<T>, Iterable<T>
Iterator that allow to iterate against multiple collection of elements.
-
-
Constructor Summary
Constructors Constructor Description MultiIterator()
MultiIterator(Iterator<? extends Collection<?>> iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiIterator<T>
addIterator(Object iValue)
boolean
checkForTimeout()
boolean
contains(Object value)
long
countEntries()
long
getBrowsed()
long
getLimit()
protected boolean
getNextPartial()
long
getSkip()
List<Object>
getSources()
boolean
hasNext()
Iterator<T>
iterator()
T
next()
void
remove()
void
reset()
void
setLimit(long limit)
void
setSkip(long skip)
void
setTimeout(long readTimeout, boolean exceptionOnTimeout)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
MultiIterator
public MultiIterator()
-
MultiIterator
public MultiIterator(Iterator<? extends Collection<?>> iterator)
-
-
Method Detail
-
reset
public void reset()
- Specified by:
reset
in interfaceResettableIterator<T>
-
addIterator
public MultiIterator<T> addIterator(Object iValue)
-
countEntries
public long countEntries()
- Specified by:
countEntries
in interfaceResettableIterator<T>
-
getBrowsed
public long getBrowsed()
- Specified by:
getBrowsed
in interfaceResettableIterator<T>
-
getLimit
public long getLimit()
-
setLimit
public void setLimit(long limit)
-
setTimeout
public void setTimeout(long readTimeout, boolean exceptionOnTimeout)
-
getSkip
public long getSkip()
-
setSkip
public void setSkip(long skip)
-
contains
public boolean contains(Object value)
-
getNextPartial
protected boolean getNextPartial()
-
checkForTimeout
public boolean checkForTimeout()
-
-