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 SummaryNested classes/interfaces inherited from interface com.illumon.iris.db.v2.utils.TreeIndexImplTreeIndexImpl.RandomBuilder, TreeIndexImpl.SequentialBuilder
- 
Field SummaryFields inherited from interface com.illumon.iris.db.v2.utils.TreeIndexImplEMPTY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.db.v2.utils.TreeIndexImplixInsert, ixRemove, ixValidate
- 
Constructor Details- 
SingleRangepublic SingleRange()
 
- 
- 
Method Details- 
rangeStartpublic abstract long rangeStart()
- 
rangeEndpublic abstract long rangeEnd()
- 
getCardinalitypublic abstract long getCardinality()
- 
copy
- 
unsignedIntToLongprotected static long unsignedIntToLong(int unsignedInt) 
- 
maxUnsignedIntprotected static long maxUnsignedInt()
- 
lowBitsAsUnsignedIntprotected static int lowBitsAsUnsignedInt(long v) 
- 
maxUnsignedShortprotected static long maxUnsignedShort()
- 
unsignedShortToLongprotected static long unsignedShortToLong(short unsignedShort) 
- 
lowBitsAsUnsignedShortprotected static short lowBitsAsUnsignedShort(long v) 
- 
make
- 
ixLastKeypublic final long ixLastKey()- Specified by:
- ixLastKeyin interface- TreeIndexImpl
 
- 
ixFirstKeypublic final long ixFirstKey()- Specified by:
- ixFirstKeyin interface- TreeIndexImpl
 
- 
ixCardinalitypublic final long ixCardinality()- Specified by:
- ixCardinalityin interface- TreeIndexImpl
 
- 
ixForEachLong- Specified by:
- ixForEachLongin interface- TreeIndexImpl
 
- 
ixForEachLongRange- Specified by:
- ixForEachLongRangein interface- TreeIndexImpl
 
- 
ixCowRef- Specified by:
- ixCowRefin interface- TreeIndexImpl
 
- 
ixReleasepublic final void ixRelease()- Specified by:
- ixReleasein interface- TreeIndexImpl
 
- 
ixRefCountpublic final int ixRefCount()- Specified by:
- ixRefCountin interface- TreeIndexImpl
 
- 
ixInsert- Specified by:
- ixInsertin interface- TreeIndexImpl
 
- 
ixInsertRange- Specified by:
- ixInsertRangein interface- TreeIndexImpl
 
- 
ixInsertSecondHalfpublic final TreeIndexImpl ixInsertSecondHalf(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length) - Specified by:
- ixInsertSecondHalfin interface- TreeIndexImpl
 
- 
ixRemoveSecondHalfpublic final TreeIndexImpl ixRemoveSecondHalf(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length) - Specified by:
- ixRemoveSecondHalfin interface- TreeIndexImpl
 
- 
ixAppendRange- Specified by:
- ixAppendRangein interface- TreeIndexImpl
 
- 
ixRemove- Specified by:
- ixRemovein interface- TreeIndexImpl
 
- 
ixSubindexByPosOnNew- Specified by:
- ixSubindexByPosOnNewin interface- TreeIndexImpl
 
- 
ixSubindexByKeyOnNew- Specified by:
- ixSubindexByKeyOnNewin interface- TreeIndexImpl
 
- 
ixGetpublic final long ixGet(long pos) - Specified by:
- ixGetin interface- TreeIndexImpl
 
- 
ixGetKeysForPositionspublic final void ixGetKeysForPositions(PrimitiveIterator.OfLong inputPositions, LongConsumer outputKeys) - Specified by:
- ixGetKeysForPositionsin interface- TreeIndexImpl
 
- 
ixFindpublic final long ixFind(long key) - Specified by:
- ixFindin interface- TreeIndexImpl
 
- 
ixIterator- Specified by:
- ixIteratorin interface- TreeIndexImpl
 
- 
ixSearchIterator- Specified by:
- ixSearchIteratorin interface- TreeIndexImpl
 
- 
ixReverseIterator- Specified by:
- ixReverseIteratorin interface- TreeIndexImpl
 
- 
ixRangeIterator- Specified by:
- ixRangeIteratorin interface- TreeIndexImpl
 
- 
ixIsEmptypublic final boolean ixIsEmpty()- Specified by:
- ixIsEmptyin interface- TreeIndexImpl
 
- 
ixUpdate- Specified by:
- ixUpdatein interface- TreeIndexImpl
 
- 
ixRemove- Specified by:
- ixRemovein interface- TreeIndexImpl
 
- 
ixRemoveRange- Specified by:
- ixRemoveRangein interface- TreeIndexImpl
 
- 
ixRetain- Specified by:
- ixRetainin interface- TreeIndexImpl
 
- 
ixRetainRange- Specified by:
- ixRetainRangein interface- TreeIndexImpl
 
- 
ixIntersectOnNew- Specified by:
- ixIntersectOnNewin interface- TreeIndexImpl
 
- 
ixContainsRangepublic final boolean ixContainsRange(long start, long end) - Specified by:
- ixContainsRangein interface- TreeIndexImpl
 
- 
ixOverlaps- Specified by:
- ixOverlapsin interface- TreeIndexImpl
 
- 
ixOverlapsRangepublic final boolean ixOverlapsRange(long start, long end) - Specified by:
- ixOverlapsRangein interface- TreeIndexImpl
 
- 
ixSubsetOf- Specified by:
- ixSubsetOfin interface- TreeIndexImpl
 
- 
ixMinusOnNew- Specified by:
- ixMinusOnNewin interface- TreeIndexImpl
 
- 
ixUnionOnNew- Specified by:
- ixUnionOnNewin interface- TreeIndexImpl
 
- 
ixShiftOnNew- Specified by:
- ixShiftOnNewin interface- TreeIndexImpl
 
- 
ixShiftInPlace- Specified by:
- ixShiftInPlacein interface- TreeIndexImpl
 
- 
ixInsert- Specified by:
- ixInsertin interface- TreeIndexImpl
 
- 
ixInsertWithShift- Specified by:
- ixInsertWithShiftin interface- TreeIndexImpl
 
- 
ixGetOrderedKeysByPosition- Specified by:
- ixGetOrderedKeysByPositionin interface- TreeIndexImpl
 
- 
ixGetOrderedKeysByKeyRange- Specified by:
- ixGetOrderedKeysByKeyRangein interface- TreeIndexImpl
 
- 
ixGetOrderedKeysIterator- Specified by:
- ixGetOrderedKeysIteratorin interface- TreeIndexImpl
 
- 
ixRangesCountUpperBoundpublic final long ixRangesCountUpperBound()- Specified by:
- ixRangesCountUpperBoundin interface- TreeIndexImpl
 
- 
ixGetAverageRunLengthEstimatepublic final long ixGetAverageRunLengthEstimate()- Specified by:
- ixGetAverageRunLengthEstimatein interface- TreeIndexImpl
 
- 
ixInvertOnNewDescription copied from interface:TreeIndexImplInvert the given index.- Specified by:
- ixInvertOnNewin interface- TreeIndexImpl
- Parameters:
- keys- Index of keys to invert
- maximumPosition- the largest position to add to indexBuilder, inclusive
- Returns:
- the inverse of index
 
- 
toRsp
- 
toSortedRanges
- 
ixToRspOnNew- Specified by:
- ixToRspOnNewin interface- TreeIndexImpl
 
- 
ixCompact- Specified by:
- ixCompactin interface- TreeIndexImpl
 
- 
ixValidate- Specified by:
- ixValidatein interface- TreeIndexImpl
 
 
-