Package org.redisson.iterator
Class BaseIterator<V,E>
- java.lang.Object
-
- org.redisson.iterator.BaseIterator<V,E>
-
- Type Parameters:
E- entry typeV- value type
- All Implemented Interfaces:
Iterator<V>
- Direct Known Subclasses:
RedissonBaseIterator,RedissonBaseMapIterator
public abstract class BaseIterator<V,E> extends Object implements Iterator<V>
- Author:
- Nikita Koksharov
-
-
Field Summary
Fields Modifier and Type Field Description protected RedisClientclientprotected longnextIterPosprotected Evalue
-
Constructor Summary
Constructors Constructor Description BaseIterator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract VgetValue(E entry)booleanhasNext()protected abstract ScanResult<E>iterator(RedisClient client, long nextIterPos)Vnext()voidremove()protected abstract voidremove(E value)protected booleantryAgain()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
nextIterPos
protected long nextIterPos
-
client
protected RedisClient client
-
value
protected E value
-
-
Method Detail
-
tryAgain
protected boolean tryAgain()
-
iterator
protected abstract ScanResult<E> iterator(RedisClient client, long nextIterPos)
-
remove
protected abstract void remove(E value)
-
-