Package com.illumon.iris.db.v2.utils.rsp
Interface RspArray.SpanCursorForward
- All Superinterfaces:
RspArray.SpanCursor
public static interface RspArray.SpanCursorForward extends RspArray.SpanCursor
-
Method Summary
Modifier and Type Method Description RspArray.SpanCursorForward
copy()
Saner clone.void
prev()
Move the current position one step backwards.void
search(IndexUtilities.Comparator comp)
Advances the pointer forward to the last span in the sequence whose interval range has a value v such that comp.directionToTargetFrom(v) >= 0.
-
Method Details
-
prev
void prev()Move the current position one step backwards. -
search
Advances the pointer forward to the last span in the sequence whose interval range has a value v such that comp.directionToTargetFrom(v) >= 0. This operation is O(log(cardinality)). This operation never invalidates a valid cursor, it may only move it forward from its current position but never exhaust it. Note also search should only be called on a non-empty cursor, after having called hasNext() and next() at least once.- Parameters:
comp
- a Comparator used to search forward from the current span position.
-
copy
RspArray.SpanCursorForward copy()Saner clone.- Returns:
- a SpanCursorForward that is a copy of this one.
-