Package com.illumon.iris.db.v2.utils
Interface TreeIndexImpl
- All Known Implementing Classes:
DisposableRspBitmap
,IntStartIntDeltaSingleRange
,IntStartLongDeltaSingleRange
,LongStartIntDeltaSingleRange
,LongStartLongEndSingleRange
,RspBitmap
,ShortStartShortDeltaSingleRange
,SingleIntSingleRange
,SingleLongSingleRange
,SingleRange
,SortedRanges
,SortedRangesInt
,SortedRangesLong
,SortedRangesPacked
,SortedRangesShort
,SortedRangesTyped
public interface TreeIndexImpl
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
static interface
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic RspBitmap
static TreeIndexImpl
fromChunk
(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length, boolean disposable) ixAppendRange
(long startKey, long endKey) long
boolean
ixContainsRange
(long start, long end) ixCowRef()
long
ixFind
(long key) long
boolean
boolean
long
ixGet
(long pos) long
void
ixGetKeysForPositions
(PrimitiveIterator.OfLong inputPositions, LongConsumer outputKeys) ixGetOrderedKeysByKeyRange
(long startKeyInclusive, long endKeyInclusive) ixGetOrderedKeysByPosition
(long startPositionInclusive, long length) ixInsert
(long key) default TreeIndexImpl
ixInsert
(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length) ixInsert
(TreeIndexImpl added) ixInsertRange
(long startKey, long endKey) ixInsertSecondHalf
(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length) ixInsertWithShift
(long shiftAmount, TreeIndexImpl other) ixIntersectOnNew
(TreeIndexImpl range) ixInvertOnNew
(TreeIndexImpl keys, long maximumPosition) Invert the given index.boolean
long
boolean
ixOverlaps
(TreeIndexImpl impl) boolean
ixOverlapsRange
(long start, long end) long
int
void
ixRemove
(long key) default TreeIndexImpl
ixRemove
(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length) ixRemove
(TreeIndexImpl removed) ixRemoveRange
(long startKey, long endKey) ixRemoveSecondHalf
(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length) ixRetain
(TreeIndexImpl toIntersect) ixRetainRange
(long start, long end) ixShiftInPlace
(long shiftAmount) ixShiftOnNew
(long shiftAmount) ixSubindexByKeyOnNew
(long startKey, long endKey) ixSubindexByPosOnNew
(long startPos, long endPosExclusive) boolean
ixSubsetOf
(TreeIndexImpl impl) ixUpdate
(TreeIndexImpl added, TreeIndexImpl removed) default void
void
ixValidate
(String failMsg) static TreeIndexImpl
twoRanges
(long s1, long e1, long s2, long e2)
-
Field Details
-
EMPTY
-
-
Method Details
-
ixCowRef
TreeIndexImpl ixCowRef() -
ixRelease
void ixRelease() -
ixRefCount
-
ixInsert
-
ixInsertRange
-
ixInsert
@FinalDefault default TreeIndexImpl ixInsert(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length) -
ixInsertSecondHalf
TreeIndexImpl ixInsertSecondHalf(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length) -
ixInsert
-
ixAppendRange
-
ixRemove
-
ixRemoveRange
-
ixRemove
@FinalDefault default TreeIndexImpl ixRemove(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length) -
ixRemoveSecondHalf
TreeIndexImpl ixRemoveSecondHalf(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length) -
ixRemove
-
ixLastKey
long ixLastKey() -
ixFirstKey
long ixFirstKey() -
ixForEachLong
-
ixForEachLongRange
-
ixSubindexByPosOnNew
-
ixSubindexByKeyOnNew
-
ixGet
long ixGet(long pos) -
ixGetKeysForPositions
-
ixFind
long ixFind(long key) -
ixIterator
ReadOnlyIndex.Iterator ixIterator() -
ixSearchIterator
ReadOnlyIndex.SearchIterator ixSearchIterator() -
ixReverseIterator
ReadOnlyIndex.SearchIterator ixReverseIterator() -
ixRangeIterator
ReadOnlyIndex.RangeIterator ixRangeIterator() -
ixCardinality
long ixCardinality() -
ixIsEmpty
boolean ixIsEmpty() -
ixUpdate
-
ixRetain
-
ixRetainRange
-
ixIntersectOnNew
-
ixContainsRange
boolean ixContainsRange(long start, long end) -
ixOverlaps
-
ixOverlapsRange
boolean ixOverlapsRange(long start, long end) -
ixSubsetOf
-
ixMinusOnNew
-
ixUnionOnNew
-
ixShiftOnNew
-
ixShiftInPlace
-
ixInsertWithShift
-
ixGetOrderedKeysByPosition
-
ixGetOrderedKeysByKeyRange
-
ixGetOrderedKeysIterator
OrderedKeys.Iterator ixGetOrderedKeysIterator() -
ixRangesCountUpperBound
long ixRangesCountUpperBound() -
ixGetAverageRunLengthEstimate
long ixGetAverageRunLengthEstimate() -
ixToRspOnNew
RspBitmap ixToRspOnNew() -
ixInvertOnNew
Invert the given index.- Parameters:
keys
- Index of keys to invertmaximumPosition
- the largest position to add to indexBuilder, inclusive- Returns:
- the inverse of index
-
ixCompact
TreeIndexImpl ixCompact() -
ixValidate
-
ixValidate
default void ixValidate() -
fromChunk
static TreeIndexImpl fromChunk(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length, boolean disposable) - Parameters:
keys
- TheLongChunk
ofAttributes.OrderedKeyIndices
to build fromoffset
- The offset inkeys
to begin building fromlength
- The number of keys to include- Returns:
- A new
TreeIndexImpl
containing the specified slice ofkeys
-
twoRanges
-
asRspBitmap
-