Class SortedRanges
java.lang.Object
com.illumon.iris.db.v2.utils.RefCountedCow<SortedRanges>
com.illumon.iris.db.v2.utils.sortedranges.SortedRanges
- All Implemented Interfaces:
TreeIndexImpl
- Direct Known Subclasses:
SortedRangesTyped
public abstract class SortedRanges extends RefCountedCow<SortedRanges> implements TreeIndexImpl
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSortedRanges.RangeIteratorNested classes/interfaces inherited from interface com.illumon.iris.db.v2.utils.TreeIndexImpl
TreeIndexImpl.RandomBuilder, TreeIndexImpl.SequentialBuilder -
Field Summary
Fields Modifier and Type Field Description protected longcardinalityprotected intcountstatic booleanDEBUGstatic intELEMENTS_PER_BLOCK_DENSE_THRESHOLDprotected static intINITIAL_SIZEstatic intINT_DENSE_MAX_CAPACITYprotected static intINT_EXTENTstatic intINT_SPARSE_MAX_CAPACITYstatic intLONG_DENSE_MAX_CAPACITYprotected static intLONG_EXTENTstatic intLONG_SPARSE_MAX_CAPACITYstatic intMAX_CAPACITYprotected static booleanPOOL_ARRAYSprotected static intSHORT_EXTENTstatic intSHORT_MAX_CAPACITYstatic booleanUSE_RANGES_ARRAY -
Constructor Summary
Constructors Modifier Constructor Description protectedSortedRanges() -
Method Summary
Modifier and Type Method Description protected longabsPackedGet(int i)protected abstract longabsUnpackedGet(int i)SortedRangesadd(long v)protected abstract SortedRangesaddInternal(long v, boolean writeCheck)protected static SortedRangesaddPacked(SortedRanges sar, long packedValue, long value, boolean writeCheck)protected static SortedRangesaddPackedWithStart(SortedRanges sar, int iStart, long packedValue, long value, org.apache.commons.lang3.mutable.MutableInt iStartOut, boolean writeCheck)SortedRangesaddRange(long start, long end)protected abstract SortedRangesaddRangeInternal(long start, long end, boolean writeCheck)protected static SortedRangesaddRangePacked(SortedRanges sar, long packedStart, long packedEnd, long start, long end, boolean writeCheck)protected static SortedRangesaddRangePackedWithStart(SortedRanges sar, int iStart, long packedStart, long packedEnd, long start, long end, long deltaCard, org.apache.commons.lang3.mutable.MutableInt iStartOut, boolean writeCheck)SortedRangesaddRangeUnsafe(long start, long end)SortedRangesaddUnsafe(long v)SortedRangesappend(long v)protected abstract SortedRangesappendInternal(long v, boolean writeCheck)protected static SortedRangesappendPacked(SortedRanges sar, long packedValue, long value, boolean writeCheck)SortedRangesappendRange(long start, long end)protected abstract SortedRangesappendRangeInternal(long start, long end, boolean writeCheck)protected static SortedRangesappendRangePacked(SortedRanges sar, long packedStart, long packedEnd, long start, long end, boolean writeCheck)protected static SortedRangesappendRangeUnpacked(SortedRanges sar, long start, long end, boolean writeCheck)SortedRangesappendRangeUnsafe(long start, long end)SortedRangesappendUnsafe(long v)abstract SortedRangesapplyShift(long shift)abstract SortedRangesapplyShiftOnNew(long shift)static intarraySizeRoundingInt(int sizeToRound)static intarraySizeRoundingShort(int sizeToRound)abstract intbytesAllocated()abstract intbytesUsed()protected abstract SortedRangescheckSizeAndMoveData(int srcPos, int dstPos, int len, long first, boolean writeCheck)voidclear()protected voidclose(int pos)protected voidclose2(int pos)booleancontains(long v)booleancontainsRange(long start, long end)protected abstract voidcopyData(int newCapacity)intcount()protected abstract intdataLength()protected voiddataToDebugString(StringBuilder sb)abstract SortedRangesdeepCopy()Get a deep copy of the current object, not shared with anybody.protected abstract SortedRangesensureCanAppend(int newLastPosition, long unpackedNewLastKey, boolean writeCheck)longfind(long v)longfirst()abstract booleanfits(long value)abstract booleanfits(long start, long end)abstract booleanfitsForAppend(long end)booleanforEachLong(LongAbortableConsumer lac)booleanforEachLongRange(LongRangeAbortableConsumer lrac)longget(long targetPos)longgetAverageRunLengthEstimate()longgetCardinality()ReadOnlyIndex.IteratorgetIterator()voidgetKeysForPositions(PrimitiveIterator.OfLong inputPositions, LongConsumer outputKeys)OrderedKeysgetOrderedKeysByKeyRange(long start, long end)OrderedKeysgetOrderedKeysByPosition(long pos, long length)OrderedKeysgetOrderedKeysByPositionWithStart(long iStartPos, int istart, long startPosForOK, long lengthForOK)OrderedKeys.IteratorgetOrderedKeysIterator()ReadOnlyIndex.RangeIteratorgetRangeIterator()ReadOnlyIndex.SearchIteratorgetReverseIterator()ReadOnlyIndex.SearchIteratorgetSearchIterator()protected abstract SortedRangesgrowOnNew(int capacity)booleanhasMoreThanOneRange()TreeIndexImplinsertImpl(SortedRanges other)TreeIndexImplinsertImpl(SortedRanges other, boolean writeCheck)protected static intintArrayCapacityForLastIndex(int lastIndex, boolean isDense)TreeIndexImplintersectOnNew(TreeIndexImpl toIntersect)TreeIndexImplintersectOnNewImpl(TreeIndexImpl other)booleaninvertOnNew(ReadOnlyIndex.RangeIterator rit, TreeIndexImplSequentialBuilder builder, long maxPosition)TreeIndexImplinvertRangeOnNew(long start, long end, long maxPosition)abstract booleanisDense()static booleanisDenseInt(int[] data, int count)static booleanisDenseLong(long[] data, int count)protected static booleanisDenseLongSample(long v0, long v1, int count)static booleanisDenseShort(short[] data, int count)booleanisEmpty()protected static booleanisIntAllocationSize(int length)protected static booleanisLongAllocationSize(int length)protected static booleanisShortAllocationSize(int length)booleanisSparse()TreeIndexImplixAppendRange(long startKey, long endKey)longixCardinality()TreeIndexImplixCompact()booleanixContainsRange(long start, long end)SortedRangesixCowRef()longixFind(long key)longixFirstKey()booleanixForEachLong(LongAbortableConsumer lc)booleanixForEachLongRange(LongRangeAbortableConsumer lrac)longixGet(long pos)longixGetAverageRunLengthEstimate()voidixGetKeysForPositions(PrimitiveIterator.OfLong inputPositions, LongConsumer outputKeys)OrderedKeysixGetOrderedKeysByKeyRange(long startKeyInclusive, long endKeyInclusive)OrderedKeysixGetOrderedKeysByPosition(long startPositionInclusive, long length)OrderedKeys.IteratorixGetOrderedKeysIterator()TreeIndexImplixInsert(long key)TreeIndexImplixInsert(TreeIndexImpl added)TreeIndexImplixInsertRange(long startKey, long endKey)TreeIndexImplixInsertSecondHalf(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length)TreeIndexImplixInsertWithShift(long shiftAmount, TreeIndexImpl other)TreeIndexImplixIntersectOnNew(TreeIndexImpl toIntersect)TreeIndexImplixInvertOnNew(TreeIndexImpl keys, long maxPosition)Invert the given index.booleanixIsEmpty()ReadOnlyIndex.IteratorixIterator()longixLastKey()TreeIndexImplixMinusOnNew(TreeIndexImpl other)booleanixOverlaps(TreeIndexImpl impl)booleanixOverlapsRange(long start, long end)ReadOnlyIndex.RangeIteratorixRangeIterator()longixRangesCountUpperBound()intixRefCount()voidixRelease()TreeIndexImplixRemove(long key)TreeIndexImplixRemove(TreeIndexImpl removed)TreeIndexImplixRemoveRange(long startKey, long endKey)TreeIndexImplixRemoveSecondHalf(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length)TreeIndexImplixRetain(TreeIndexImpl toIntersect)TreeIndexImplixRetainRange(long start, long end)ReadOnlyIndex.SearchIteratorixReverseIterator()ReadOnlyIndex.SearchIteratorixSearchIterator()TreeIndexImplixShiftInPlace(long shiftAmount)TreeIndexImplixShiftOnNew(long shiftAmount)TreeIndexImplixSubindexByKeyOnNew(long startKey, long endKey)TreeIndexImplixSubindexByPosOnNew(long startPos, long endPosExclusive)booleanixSubsetOf(TreeIndexImpl other)RspBitmapixToRspOnNew()TreeIndexImplixUnionOnNew(TreeIndexImpl other)TreeIndexImplixUpdate(TreeIndexImpl added, TreeIndexImpl removed)voidixValidate(String failMsg)longlast()protected static intlongArrayCapacityForLastIndex(int lastIndex, boolean isDense)static SortedRangesmakeEmpty()static SortedRangesmakeForKnownRange(long first, long last, boolean isDense)protected abstract SortedRangesmakeMyTypeAndOffset(int initialCapacity)static SortedRangesmakeSingleElement(long v)static SortedRangesmakeSingleRange(long start, long end)protected abstract voidmoveData(int srcPos, int dstPos, int len)protected voidoffsetToDebugString(StringBuilder sb)booleanoverlaps(ReadOnlyIndex.RangeIterator rangeIter)booleanoverlapsRange(long start, long end)protected abstract longpack(long unpackedValue)protected abstract longpackedGet(int i)protected abstract voidpackedSet(int i, long packedValue)protected abstract intpackedValuesPerCacheLine()SortedRangesremove(long v)TreeIndexImplremove(TreeIndexImpl removed)protected abstract SortedRangesremoveInternal(long v)protected static SortedRangesremovePacked(SortedRanges sar, long packedValue, long value)SortedRangesremoveRange(long start, long end)protected abstract SortedRangesremoveRangeInternal(long start, long end)protected static SortedRangesremoveRangePacked(SortedRanges sar, long packedStart, long packedEnd, long start, long end)protected static SortedRangesremoveRangePackedWithStart(SortedRanges sar, int iStart, long packedStart, long packedEnd, long start, long end, org.apache.commons.lang3.mutable.MutableInt iStartOut, boolean writeCheck)SortedRangesretainRange(long start, long end)SortedRangesself()Derived classes should implement self() by simply "return this" of the right type.protected static intshortArrayCapacityForLastIndex(int lastIndex)SortedRangessubRangesByKey(long start, long end)SortedRangessubRangesByPos(long startPosIn, long endPosIn)booleansubsetOf(ReadOnlyIndex.RangeIterator ritOther)protected StringtoDebugString()RspBitmaptoRsp()StringtoString()SortedRangestryCompact(int k)abstract SortedRangestryCompactUnsafe(int k)static SortedRangestryMakeForKnownRangeFinalCapacityLowerBound(int initialCapacity, int finalCapacityLowerBound, long first, long last, boolean isDense)static SortedRangestryMakeForKnownRangeKnownCount(int count, long first, long last)static SortedRangestryMakeForKnownRangeUnknownMaxCapacity(int initialCapacity, long first, long last, boolean isDense)protected abstract SortedRangestryPack()protected abstract SortedRangestryPackFor(long first, long last, int maxPos, boolean isDense)protected SortedRangestryPackWithNewLast(long newLastKey, int maxPos, boolean isDense)static TreeIndexImplunionOnNew(SortedRanges sar, SortedRanges otherSar)static SortedRangesunionOnNewLegacy(SortedRanges sar, SortedRanges otherSar)protected abstract longunpack(long packedValue)protected abstract longunpackedGet(int i)protected abstract voidunpackedSet(int i, long unpackedValue)voidvalidate()protected voidvalidate(long iv1, long iv2)protected voidvalidate(String strArg, long iv1, long iv2)Methods inherited from class com.illumon.iris.db.v2.utils.RefCountedCow
acquire, canWrite, cowRef, getWriteRef, notifyAfterRelease, notifyBeforeAcquire, refCount, releaseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.illumon.iris.db.v2.utils.TreeIndexImpl
ixInsert, ixRemove, ixValidate
-
Field Details
-
INITIAL_SIZE
protected static final int INITIAL_SIZE -
DEBUG
public static final boolean DEBUG -
LONG_DENSE_MAX_CAPACITY
public static final int LONG_DENSE_MAX_CAPACITY -
LONG_SPARSE_MAX_CAPACITY
public static final int LONG_SPARSE_MAX_CAPACITY -
INT_DENSE_MAX_CAPACITY
public static final int INT_DENSE_MAX_CAPACITY -
INT_SPARSE_MAX_CAPACITY
public static final int INT_SPARSE_MAX_CAPACITY -
SHORT_MAX_CAPACITY
public static final int SHORT_MAX_CAPACITY -
ELEMENTS_PER_BLOCK_DENSE_THRESHOLD
public static final int ELEMENTS_PER_BLOCK_DENSE_THRESHOLD -
MAX_CAPACITY
public static final int MAX_CAPACITY -
LONG_EXTENT
protected static final int LONG_EXTENT -
INT_EXTENT
protected static final int INT_EXTENT -
SHORT_EXTENT
protected static final int SHORT_EXTENT -
POOL_ARRAYS
protected static final boolean POOL_ARRAYS -
USE_RANGES_ARRAY
public static final boolean USE_RANGES_ARRAY -
cardinality
protected long cardinality -
count
protected int count
-
-
Constructor Details
-
SortedRanges
protected SortedRanges()
-
-
Method Details
-
deepCopy
Description copied from class:RefCountedCowGet a deep copy of the current object, not shared with anybody. Note this is not thread safe.- Specified by:
deepCopyin classRefCountedCow<SortedRanges>- Returns:
- A full, deep copy of this object with a reference count of 1 (not shared).
-
self
Description copied from class:RefCountedCowDerived classes should implement self() by simply "return this" of the right type. This method exists only as an implementation artifact for a type safe implementation of the curiously recurring generic pattern.- Specified by:
selfin classRefCountedCow<SortedRanges>- Returns:
- this object, with the right, most derived type.
-
arraySizeRoundingInt
public static int arraySizeRoundingInt(int sizeToRound) -
arraySizeRoundingShort
public static int arraySizeRoundingShort(int sizeToRound) -
makeSingleRange
-
makeSingleElement
-
makeEmpty
-
tryMakeForKnownRangeFinalCapacityLowerBound
public static SortedRanges tryMakeForKnownRangeFinalCapacityLowerBound(int initialCapacity, int finalCapacityLowerBound, long first, long last, boolean isDense) -
makeForKnownRange
-
tryMakeForKnownRangeUnknownMaxCapacity
public static SortedRanges tryMakeForKnownRangeUnknownMaxCapacity(int initialCapacity, long first, long last, boolean isDense) -
tryMakeForKnownRangeKnownCount
-
isEmpty
public final boolean isEmpty() -
clear
public final void clear() -
first
public final long first() -
last
public final long last() -
hasMoreThanOneRange
public final boolean hasMoreThanOneRange() -
validate
public final void validate() -
offsetToDebugString
-
toDebugString
-
dataToDebugString
-
toString
-
contains
public final boolean contains(long v) -
containsRange
public final boolean containsRange(long start, long end) -
find
public final long find(long v) -
get
public final long get(long targetPos) -
applyShift
-
applyShiftOnNew
-
add
-
addUnsafe
-
addRange
-
addRangeUnsafe
-
append
-
appendUnsafe
-
appendRange
-
appendRangeUnsafe
-
remove
-
removeRange
-
forEachLongRange
-
forEachLong
-
getIterator
-
getRangeIterator
-
getSearchIterator
-
getReverseIterator
-
getCardinality
public final long getCardinality() -
getKeysForPositions
public final void getKeysForPositions(PrimitiveIterator.OfLong inputPositions, LongConsumer outputKeys) -
subRangesByPos
-
subRangesByKey
-
overlapsRange
public final boolean overlapsRange(long start, long end) -
overlaps
-
retainRange
-
isDenseShort
public static boolean isDenseShort(short[] data, int count) -
isDenseLongSample
protected static boolean isDenseLongSample(long v0, long v1, int count) -
isDenseInt
public static boolean isDenseInt(int[] data, int count) -
isDenseLong
public static boolean isDenseLong(long[] data, int count) -
isDense
public abstract boolean isDense() -
isSparse
public final boolean isSparse() -
intersectOnNewImpl
-
count
public final int count() -
subsetOf
-
unionOnNew
-
unionOnNewLegacy
-
insertImpl
-
insertImpl
-
invertRangeOnNew
-
invertOnNew
public final boolean invertOnNew(ReadOnlyIndex.RangeIterator rit, TreeIndexImplSequentialBuilder builder, long maxPosition) -
getOrderedKeysByPosition
-
getOrderedKeysByPositionWithStart
public final OrderedKeys getOrderedKeysByPositionWithStart(long iStartPos, int istart, long startPosForOK, long lengthForOK) -
getOrderedKeysByKeyRange
-
getOrderedKeysIterator
-
getAverageRunLengthEstimate
public final long getAverageRunLengthEstimate() -
shortArrayCapacityForLastIndex
protected static int shortArrayCapacityForLastIndex(int lastIndex) -
intArrayCapacityForLastIndex
protected static int intArrayCapacityForLastIndex(int lastIndex, boolean isDense) -
longArrayCapacityForLastIndex
protected static int longArrayCapacityForLastIndex(int lastIndex, boolean isDense) -
fits
public abstract boolean fits(long value) -
fits
public abstract boolean fits(long start, long end) -
fitsForAppend
public abstract boolean fitsForAppend(long end) -
makeMyTypeAndOffset
-
growOnNew
-
packedValuesPerCacheLine
protected abstract int packedValuesPerCacheLine() -
packedGet
protected abstract long packedGet(int i) -
absPackedGet
protected final long absPackedGet(int i) -
packedSet
protected abstract void packedSet(int i, long packedValue) -
pack
protected abstract long pack(long unpackedValue) -
unpackedGet
protected abstract long unpackedGet(int i) -
absUnpackedGet
protected abstract long absUnpackedGet(int i) -
unpackedSet
protected abstract void unpackedSet(int i, long unpackedValue) -
unpack
protected abstract long unpack(long packedValue) -
dataLength
protected abstract int dataLength() -
ensureCanAppend
protected abstract SortedRanges ensureCanAppend(int newLastPosition, long unpackedNewLastKey, boolean writeCheck) -
moveData
protected abstract void moveData(int srcPos, int dstPos, int len) -
copyData
protected abstract void copyData(int newCapacity) -
addInternal
-
addRangeInternal
-
appendInternal
-
appendRangeInternal
-
removeInternal
-
removeRangeInternal
-
tryPackFor
-
tryPackWithNewLast
-
tryPack
-
bytesAllocated
public abstract int bytesAllocated() -
bytesUsed
public abstract int bytesUsed() -
tryCompactUnsafe
- Parameters:
k- if k == 0, compact if count < capacity. k > 0, compact if (capacity - count > (capacity >> k).
-
tryCompact
-
isLongAllocationSize
protected static boolean isLongAllocationSize(int length) -
isIntAllocationSize
protected static boolean isIntAllocationSize(int length) -
isShortAllocationSize
protected static boolean isShortAllocationSize(int length) -
checkSizeAndMoveData
protected abstract SortedRanges checkSizeAndMoveData(int srcPos, int dstPos, int len, long first, boolean writeCheck) -
close
protected final void close(int pos) -
close2
protected final void close2(int pos) -
addPacked
protected static SortedRanges addPacked(SortedRanges sar, long packedValue, long value, boolean writeCheck) -
addPackedWithStart
protected static SortedRanges addPackedWithStart(SortedRanges sar, int iStart, long packedValue, long value, org.apache.commons.lang3.mutable.MutableInt iStartOut, boolean writeCheck) -
addRangePacked
protected static SortedRanges addRangePacked(SortedRanges sar, long packedStart, long packedEnd, long start, long end, boolean writeCheck) -
addRangePackedWithStart
protected static SortedRanges addRangePackedWithStart(SortedRanges sar, int iStart, long packedStart, long packedEnd, long start, long end, long deltaCard, org.apache.commons.lang3.mutable.MutableInt iStartOut, boolean writeCheck) -
appendPacked
protected static SortedRanges appendPacked(SortedRanges sar, long packedValue, long value, boolean writeCheck) -
appendRangeUnpacked
protected static SortedRanges appendRangeUnpacked(SortedRanges sar, long start, long end, boolean writeCheck) -
appendRangePacked
protected static SortedRanges appendRangePacked(SortedRanges sar, long packedStart, long packedEnd, long start, long end, boolean writeCheck) -
removePacked
-
removeRangePacked
protected static SortedRanges removeRangePacked(SortedRanges sar, long packedStart, long packedEnd, long start, long end) -
removeRangePackedWithStart
protected static SortedRanges removeRangePackedWithStart(SortedRanges sar, int iStart, long packedStart, long packedEnd, long start, long end, org.apache.commons.lang3.mutable.MutableInt iStartOut, boolean writeCheck) -
validate
protected final void validate(long iv1, long iv2) -
validate
-
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
-
ixLastKey
public final long ixLastKey()- Specified by:
ixLastKeyin interfaceTreeIndexImpl
-
ixFirstKey
public final long ixFirstKey()- Specified by:
ixFirstKeyin interfaceTreeIndexImpl
-
ixForEachLong
- Specified by:
ixForEachLongin interfaceTreeIndexImpl
-
ixForEachLongRange
- Specified by:
ixForEachLongRangein 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
-
ixCardinality
public final long ixCardinality()- Specified by:
ixCardinalityin interfaceTreeIndexImpl
-
ixIsEmpty
public final boolean ixIsEmpty()- Specified by:
ixIsEmptyin interfaceTreeIndexImpl
-
ixUpdate
- Specified by:
ixUpdatein interfaceTreeIndexImpl
-
ixRemove
- Specified by:
ixRemovein interfaceTreeIndexImpl
-
remove
-
ixRemoveRange
- Specified by:
ixRemoveRangein interfaceTreeIndexImpl
-
ixRetain
- Specified by:
ixRetainin interfaceTreeIndexImpl
-
ixRetainRange
- Specified by:
ixRetainRangein interfaceTreeIndexImpl
-
ixIntersectOnNew
- Specified by:
ixIntersectOnNewin interfaceTreeIndexImpl
-
intersectOnNew
-
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
-
ixInsertWithShift
- Specified by:
ixInsertWithShiftin interfaceTreeIndexImpl
-
ixInsert
- Specified by:
ixInsertin 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
-
ixToRspOnNew
- Specified by:
ixToRspOnNewin interfaceTreeIndexImpl
-
toRsp
-
ixInvertOnNew
Description copied from interface:TreeIndexImplInvert the given index.- Specified by:
ixInvertOnNewin interfaceTreeIndexImpl- Parameters:
keys- Index of keys to invertmaxPosition- the largest position to add to indexBuilder, inclusive- Returns:
- the inverse of index
-
ixCompact
- Specified by:
ixCompactin interfaceTreeIndexImpl
-
ixValidate
- Specified by:
ixValidatein interfaceTreeIndexImpl
-