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 RedisClient
client
protected long
nextIterPos
protected E
value
-
Constructor Summary
Constructors Constructor Description BaseIterator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract V
getValue(E entry)
boolean
hasNext()
protected abstract ScanResult<E>
iterator(RedisClient client, long nextIterPos)
V
next()
void
remove()
protected abstract void
remove(E value)
protected boolean
tryAgain()
-
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)
-
-