|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.btree.AbstractBTreeTupleCursor<IndexSegment,IndexSegment.ImmutableNodeFactory.ImmutableLeaf,E>
com.bigdata.btree.IndexSegment.IndexSegmentTupleCursor<E>
E - The generic type for the objects de-serialized from the index.public static class IndexSegment.IndexSegmentTupleCursor<E>
Implementation for an immutable 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.bigdata.btree.AbstractBTreeTupleCursor |
|---|
AbstractBTreeTupleCursor.MutableBTreeTupleCursor<E>, AbstractBTreeTupleCursor.ReadOnlyBTreeTupleCursor<E> |
| Field Summary |
|---|
| Fields inherited from class com.bigdata.btree.AbstractBTreeTupleCursor |
|---|
btree, currentPosition, DEBUG, fromKey, INFO, log, toKey, tuple, visitDeleted |
| Constructor Summary | |
|---|---|
IndexSegment.IndexSegmentTupleCursor(IndexSegment btree,
Tuple<E> tuple,
byte[] fromKey,
byte[] toKey)
|
|
| Method Summary | |
|---|---|
protected IndexSegment.ImmutableNodeFactory.ImmutableLeaf |
getLeafSpanningFromKey()
Return the leaf that spans the optional AbstractBTreeTupleCursor.getFromKey()
constraint and the first leaf if there is no AbstractBTreeTupleCursor.getFromKey()
constraint. |
protected IndexSegment.ImmutableNodeFactory.ImmutableLeaf |
getLeafSpanningKey(byte[] key)
Return the leaf that spans the key. |
protected IndexSegmentStore |
getStore()
The IndexSegmentStore backing the IndexSegment for
that is being traversed by the ITupleCursor. |
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). |
| Methods inherited from class com.bigdata.btree.AbstractBTreeTupleCursor |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IndexSegment.IndexSegmentTupleCursor(IndexSegment btree,
Tuple<E> tuple,
byte[] fromKey,
byte[] toKey)
| Method Detail |
|---|
protected final com.bigdata.btree.IndexSegment.CursorPosition<E> newPosition(ILeafCursor<IndexSegment.ImmutableNodeFactory.ImmutableLeaf> leafCursor,
int index,
byte[] key)
AbstractBTreeTupleCursorICursorPosition from the leafCursor, tuple
index, and key
newPosition 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)
AbstractBTreeTupleCursorICursorPosition 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.
protected IndexSegmentStore getStore()
IndexSegmentStore backing the IndexSegment for
that is being traversed by the ITupleCursor.
protected IndexSegment.ImmutableNodeFactory.ImmutableLeaf getLeafSpanningFromKey()
AbstractBTreeTupleCursor.getFromKey()
constraint and the first leaf if there is no AbstractBTreeTupleCursor.getFromKey()
constraint.
Leaf.getKeys(),
IKeyBuffer#search(byte[])protected IndexSegment.ImmutableNodeFactory.ImmutableLeaf getLeafSpanningKey(byte[] key)
key - The key.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||