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 interfacestatic interface -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic RspBitmapstatic TreeIndexImplfromChunk(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length, boolean disposable) ixAppendRange(long startKey, long endKey) longbooleanixContainsRange(long start, long end) ixCowRef()longixFind(long key) longbooleanbooleanlongixGet(long pos) longvoidixGetKeysForPositions(PrimitiveIterator.OfLong inputPositions, LongConsumer outputKeys) ixGetOrderedKeysByKeyRange(long startKeyInclusive, long endKeyInclusive) ixGetOrderedKeysByPosition(long startPositionInclusive, long length) ixInsert(long key) default TreeIndexImplixInsert(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.booleanlongbooleanixOverlaps(TreeIndexImpl impl) booleanixOverlapsRange(long start, long end) longintvoidixRemove(long key) default TreeIndexImplixRemove(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) booleanixSubsetOf(TreeIndexImpl impl) ixUpdate(TreeIndexImpl added, TreeIndexImpl removed) default voidvoidixValidate(String failMsg) static TreeIndexImpltwoRanges(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- TheLongChunkofAttributes.OrderedKeyIndicesto build fromoffset- The offset inkeysto begin building fromlength- The number of keys to include- Returns:
- A new
TreeIndexImplcontaining the specified slice ofkeys
-
twoRanges
-
asRspBitmap
-