E
- The generic type for the objects de-serialized from the index.public static class IndexSegment.IndexSegmentTupleCursor<E> extends AbstractBTreeTupleCursor<IndexSegment,IndexSegment.ImmutableNodeFactory.ImmutableLeaf,E>
IndexSegment
. This
implementation uses the prior/next leaf references for fast forward and
reference scans of the IndexSegment
.
Note: Since the IndexSegment
is immutable it does not maintain
listeners for concurrent modifications.
AbstractBTreeTupleCursor.MutableBTreeTupleCursor<E>, AbstractBTreeTupleCursor.ReadOnlyBTreeTupleCursor<E>
btree, currentPosition, DEBUG, fromKey, INFO, log, toKey, tuple, visitDeleted
Constructor and Description |
---|
IndexSegment.IndexSegmentTupleCursor(IndexSegment btree,
Tuple<E> tuple,
byte[] fromKey,
byte[] toKey) |
Modifier and Type | Method and Description |
---|---|
protected com.bigdata.btree.IndexSegment.CursorPosition<E> |
newPosition(ILeafCursor<IndexSegment.ImmutableNodeFactory.ImmutableLeaf> leafCursor,
int index,
byte[] key)
Return a new
ICursorPosition from the leafCursor, tuple
index, and key |
protected com.bigdata.btree.IndexSegment.CursorPosition<E> |
newTemporaryPosition(com.bigdata.btree.AbstractBTreeTupleCursor.ICursorPosition<IndexSegment.ImmutableNodeFactory.ImmutableLeaf,E> p)
Return a clone of the given
ICursorPosition designed for use by
AbstractBTreeTupleCursor.hasNext() and AbstractBTreeTupleCursor.hasPrior() (temporary test without
side-effects). |
assertCursorPositionDefined, currentKey, first, firstPosition, getExclusiveUpperBound, getFromKey, getInclusiveLowerBound, getIndex, getToKey, hasNext, hasPrior, isCursorPositionDefined, isDeletedTupleVisitor, last, lastPosition, newPosition, next, nextTuple, prior, priorTuple, rangeCheck, remove, seek, seek, toString, tuple
public IndexSegment.IndexSegmentTupleCursor(IndexSegment btree, Tuple<E> tuple, byte[] fromKey, byte[] toKey)
protected final com.bigdata.btree.IndexSegment.CursorPosition<E> newPosition(ILeafCursor<IndexSegment.ImmutableNodeFactory.ImmutableLeaf> leafCursor, int index, byte[] key)
AbstractBTreeTupleCursor
ICursorPosition
from the leafCursor, tuple
index, and keynewPosition
in class AbstractBTreeTupleCursor<IndexSegment,IndexSegment.ImmutableNodeFactory.ImmutableLeaf,E>
leafCursor
- The ILeafCursor
(already positioned on the desired
leaf).index
- The index of the tuple corresponding to the key within
the current leaf of the leafCursor -or- a negative
integer representing the insertion point for the key
if the key is spanned by that leaf but there is no
tuple for that key in the leaf.key
- The key.ICursorPosition
.protected com.bigdata.btree.IndexSegment.CursorPosition<E> newTemporaryPosition(com.bigdata.btree.AbstractBTreeTupleCursor.ICursorPosition<IndexSegment.ImmutableNodeFactory.ImmutableLeaf,E> p)
AbstractBTreeTupleCursor
ICursorPosition
designed for use by
AbstractBTreeTupleCursor.hasNext()
and AbstractBTreeTupleCursor.hasPrior()
(temporary test without
side-effects).newTemporaryPosition
in class AbstractBTreeTupleCursor<IndexSegment,IndexSegment.ImmutableNodeFactory.ImmutableLeaf,E>
p
- The cursor position.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.