Package com.illumon.iris.db.v2.utils.rsp
Class RspReverseIterator
java.lang.Object
com.illumon.iris.db.v2.utils.rsp.RspReverseIterator
- All Implemented Interfaces:
SafeCloseable
,AutoCloseable
public class RspReverseIterator extends Object implements SafeCloseable
-
Constructor Summary
Constructors Constructor Description RspReverseIterator(RspArray.SpanCursor rp)
-
Method Summary
Modifier and Type Method Description boolean
advance(long v)
void
close()
long
current()
boolean
hasNext()
This method should be called: * After the iterator is created and before calling any other methods; if it returns false, calling any other methods results in undefined behavior.void
next()
void
release()
-
Constructor Details
-
Method Details
-
current
public long current()- Returns:
- current iterator value, without advancing it. A valid call to next() should have happened before calling this method.
-
hasNext
public boolean hasNext()This method should be called: * After the iterator is created and before calling any other methods; if it returns false, calling any other methods results in undefined behavior. * Right after a call to next, similar to above.- Returns:
- true if a call to next leads to a valid next iterator value.
-
next
public void next() -
advance
public boolean advance(long v) -
release
public void release() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSafeCloseable
-