Class SingleRange
java.lang.Object
com.illumon.iris.db.v2.utils.singlerange.SingleRange
- All Implemented Interfaces:
TreeIndexImpl
- Direct Known Subclasses:
IntStartIntDeltaSingleRange,IntStartLongDeltaSingleRange,LongStartIntDeltaSingleRange,LongStartLongEndSingleRange,ShortStartShortDeltaSingleRange,SingleIntSingleRange,SingleLongSingleRange
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.utils.TreeIndexImpl
TreeIndexImpl.RandomBuilder, TreeIndexImpl.SequentialBuilder -
Field Summary
Fields inherited from interface com.illumon.iris.db.v2.utils.TreeIndexImpl
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SingleRangecopy()abstract longfinal TreeIndexImplixAppendRange(long startKey, long endKey) final longfinal SingleRangefinal booleanixContainsRange(long start, long end) final SingleRangeixCowRef()final longixFind(long key) final longfinal booleanfinal booleanfinal longixGet(long pos) final longfinal voidixGetKeysForPositions(PrimitiveIterator.OfLong inputPositions, LongConsumer outputKeys) final OrderedKeysixGetOrderedKeysByKeyRange(long startKeyInclusive, long endKeyInclusive) final OrderedKeysixGetOrderedKeysByPosition(long startPositionInclusive, long length) final OrderedKeys.Iteratorfinal TreeIndexImplixInsert(long key) final TreeIndexImplixInsert(TreeIndexImpl added) final TreeIndexImplixInsertRange(long startKey, long endKey) final TreeIndexImplixInsertSecondHalf(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length) final TreeIndexImplixInsertWithShift(long shiftAmount, TreeIndexImpl other) final TreeIndexImplixIntersectOnNew(TreeIndexImpl intersected) final TreeIndexImplixInvertOnNew(TreeIndexImpl keys, long maximumPosition) Invert the given index.final booleanfinal longfinal TreeIndexImplfinal booleanixOverlaps(TreeIndexImpl impl) final booleanixOverlapsRange(long start, long end) final longfinal intfinal voidfinal TreeIndexImplixRemove(long key) final TreeIndexImplixRemove(TreeIndexImpl removed) final TreeIndexImplixRemoveRange(long startKey, long endKey) final TreeIndexImplixRemoveSecondHalf(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length) final TreeIndexImplixRetain(TreeIndexImpl other) final TreeIndexImplixRetainRange(long start, long end) final TreeIndexImplixShiftInPlace(long shiftAmount) final TreeIndexImplixShiftOnNew(long shiftAmount) final TreeIndexImplixSubindexByKeyOnNew(long startKey, long endKey) final TreeIndexImplixSubindexByPosOnNew(long startPos, long endPosExclusive) final booleanixSubsetOf(TreeIndexImpl impl) final RspBitmapfinal TreeIndexImplfinal TreeIndexImplixUpdate(TreeIndexImpl added, TreeIndexImpl removed) final voidixValidate(String failMsg) protected static intlowBitsAsUnsignedInt(long v) protected static shortlowBitsAsUnsignedShort(long v) static SingleRangemake(long start, long end) protected static longprotected static longabstract longrangeEnd()abstract longfinal RspBitmaptoRsp()final SortedRangesprotected static longunsignedIntToLong(int unsignedInt) protected static longunsignedShortToLong(short unsignedShort) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.db.v2.utils.TreeIndexImpl
ixInsert, ixRemove, ixValidate
-
Constructor Details
-
SingleRange
public SingleRange()
-
-
Method Details
-
rangeStart
public abstract long rangeStart() -
rangeEnd
public abstract long rangeEnd() -
getCardinality
public abstract long getCardinality() -
copy
-
unsignedIntToLong
protected static long unsignedIntToLong(int unsignedInt) -
maxUnsignedInt
protected static long maxUnsignedInt() -
lowBitsAsUnsignedInt
protected static int lowBitsAsUnsignedInt(long v) -
maxUnsignedShort
protected static long maxUnsignedShort() -
unsignedShortToLong
protected static long unsignedShortToLong(short unsignedShort) -
lowBitsAsUnsignedShort
protected static short lowBitsAsUnsignedShort(long v) -
make
-
ixLastKey
public final long ixLastKey()- Specified by:
ixLastKeyin interfaceTreeIndexImpl
-
ixFirstKey
public final long ixFirstKey()- Specified by:
ixFirstKeyin interfaceTreeIndexImpl
-
ixCardinality
public final long ixCardinality()- Specified by:
ixCardinalityin interfaceTreeIndexImpl
-
ixForEachLong
- Specified by:
ixForEachLongin interfaceTreeIndexImpl
-
ixForEachLongRange
- Specified by:
ixForEachLongRangein interfaceTreeIndexImpl
-
ixCowRef
- Specified by:
ixCowRefin interfaceTreeIndexImpl
-
ixRelease
public final void ixRelease()- Specified by:
ixReleasein interfaceTreeIndexImpl
-
ixRefCount
public final int ixRefCount()- Specified by:
ixRefCountin interfaceTreeIndexImpl
-
ixInsert
- Specified by:
ixInsertin interfaceTreeIndexImpl
-
ixInsertRange
- Specified by:
ixInsertRangein interfaceTreeIndexImpl
-
ixInsertSecondHalf
public final TreeIndexImpl ixInsertSecondHalf(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length) - Specified by:
ixInsertSecondHalfin interfaceTreeIndexImpl
-
ixRemoveSecondHalf
public final TreeIndexImpl ixRemoveSecondHalf(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length) - Specified by:
ixRemoveSecondHalfin interfaceTreeIndexImpl
-
ixAppendRange
- Specified by:
ixAppendRangein interfaceTreeIndexImpl
-
ixRemove
- Specified by:
ixRemovein interfaceTreeIndexImpl
-
ixSubindexByPosOnNew
- Specified by:
ixSubindexByPosOnNewin interfaceTreeIndexImpl
-
ixSubindexByKeyOnNew
- Specified by:
ixSubindexByKeyOnNewin interfaceTreeIndexImpl
-
ixGet
public final long ixGet(long pos) - Specified by:
ixGetin interfaceTreeIndexImpl
-
ixGetKeysForPositions
public final void ixGetKeysForPositions(PrimitiveIterator.OfLong inputPositions, LongConsumer outputKeys) - Specified by:
ixGetKeysForPositionsin interfaceTreeIndexImpl
-
ixFind
public final long ixFind(long key) - Specified by:
ixFindin interfaceTreeIndexImpl
-
ixIterator
- Specified by:
ixIteratorin interfaceTreeIndexImpl
-
ixSearchIterator
- Specified by:
ixSearchIteratorin interfaceTreeIndexImpl
-
ixReverseIterator
- Specified by:
ixReverseIteratorin interfaceTreeIndexImpl
-
ixRangeIterator
- Specified by:
ixRangeIteratorin interfaceTreeIndexImpl
-
ixIsEmpty
public final boolean ixIsEmpty()- Specified by:
ixIsEmptyin interfaceTreeIndexImpl
-
ixUpdate
- Specified by:
ixUpdatein interfaceTreeIndexImpl
-
ixRemove
- Specified by:
ixRemovein interfaceTreeIndexImpl
-
ixRemoveRange
- Specified by:
ixRemoveRangein interfaceTreeIndexImpl
-
ixRetain
- Specified by:
ixRetainin interfaceTreeIndexImpl
-
ixRetainRange
- Specified by:
ixRetainRangein interfaceTreeIndexImpl
-
ixIntersectOnNew
- Specified by:
ixIntersectOnNewin interfaceTreeIndexImpl
-
ixContainsRange
public final boolean ixContainsRange(long start, long end) - Specified by:
ixContainsRangein interfaceTreeIndexImpl
-
ixOverlaps
- Specified by:
ixOverlapsin interfaceTreeIndexImpl
-
ixOverlapsRange
public final boolean ixOverlapsRange(long start, long end) - Specified by:
ixOverlapsRangein interfaceTreeIndexImpl
-
ixSubsetOf
- Specified by:
ixSubsetOfin interfaceTreeIndexImpl
-
ixMinusOnNew
- Specified by:
ixMinusOnNewin interfaceTreeIndexImpl
-
ixUnionOnNew
- Specified by:
ixUnionOnNewin interfaceTreeIndexImpl
-
ixShiftOnNew
- Specified by:
ixShiftOnNewin interfaceTreeIndexImpl
-
ixShiftInPlace
- Specified by:
ixShiftInPlacein interfaceTreeIndexImpl
-
ixInsert
- Specified by:
ixInsertin interfaceTreeIndexImpl
-
ixInsertWithShift
- Specified by:
ixInsertWithShiftin interfaceTreeIndexImpl
-
ixGetOrderedKeysByPosition
- Specified by:
ixGetOrderedKeysByPositionin interfaceTreeIndexImpl
-
ixGetOrderedKeysByKeyRange
- Specified by:
ixGetOrderedKeysByKeyRangein interfaceTreeIndexImpl
-
ixGetOrderedKeysIterator
- Specified by:
ixGetOrderedKeysIteratorin interfaceTreeIndexImpl
-
ixRangesCountUpperBound
public final long ixRangesCountUpperBound()- Specified by:
ixRangesCountUpperBoundin interfaceTreeIndexImpl
-
ixGetAverageRunLengthEstimate
public final long ixGetAverageRunLengthEstimate()- Specified by:
ixGetAverageRunLengthEstimatein interfaceTreeIndexImpl
-
ixInvertOnNew
Description copied from interface:TreeIndexImplInvert the given index.- Specified by:
ixInvertOnNewin interfaceTreeIndexImpl- Parameters:
keys- Index of keys to invertmaximumPosition- the largest position to add to indexBuilder, inclusive- Returns:
- the inverse of index
-
toRsp
-
toSortedRanges
-
ixToRspOnNew
- Specified by:
ixToRspOnNewin interfaceTreeIndexImpl
-
ixCompact
- Specified by:
ixCompactin interfaceTreeIndexImpl
-
ixValidate
- Specified by:
ixValidatein interfaceTreeIndexImpl
-