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
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.illumon.iris.db.v2.utils.TreeIndexImpl
TreeIndexImpl.RandomBuilder, TreeIndexImpl.SequentialBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected long
protected int
static final boolean
static final int
protected static final int
static final int
protected static final int
static final int
static final int
protected static final int
static final int
static final int
protected static final boolean
protected static final int
static final int
static final boolean
Fields inherited from interface com.illumon.iris.db.v2.utils.TreeIndexImpl
EMPTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final long
absPackedGet
(int i) protected abstract long
absUnpackedGet
(int i) final SortedRanges
add
(long v) protected abstract SortedRanges
addInternal
(long v, boolean writeCheck) protected static SortedRanges
addPacked
(SortedRanges sar, long packedValue, long value, boolean writeCheck) protected static SortedRanges
addPackedWithStart
(SortedRanges sar, int iStart, long packedValue, long value, org.apache.commons.lang3.mutable.MutableInt iStartOut, boolean writeCheck) final SortedRanges
addRange
(long start, long end) protected abstract SortedRanges
addRangeInternal
(long start, long end, boolean writeCheck) protected static SortedRanges
addRangePacked
(SortedRanges sar, long packedStart, long packedEnd, long start, long end, boolean writeCheck) 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) final SortedRanges
addRangeUnsafe
(long start, long end) final SortedRanges
addUnsafe
(long v) final SortedRanges
append
(long v) protected abstract SortedRanges
appendInternal
(long v, boolean writeCheck) protected static SortedRanges
appendPacked
(SortedRanges sar, long packedValue, long value, boolean writeCheck) final SortedRanges
appendRange
(long start, long end) protected abstract SortedRanges
appendRangeInternal
(long start, long end, boolean writeCheck) protected static SortedRanges
appendRangePacked
(SortedRanges sar, long packedStart, long packedEnd, long start, long end, boolean writeCheck) protected static SortedRanges
appendRangeUnpacked
(SortedRanges sar, long start, long end, boolean writeCheck) final SortedRanges
appendRangeUnsafe
(long start, long end) final SortedRanges
appendUnsafe
(long v) abstract SortedRanges
applyShift
(long shift) abstract SortedRanges
applyShiftOnNew
(long shift) static int
arraySizeRoundingInt
(int sizeToRound) static int
arraySizeRoundingShort
(int sizeToRound) abstract int
abstract int
protected abstract SortedRanges
checkSizeAndMoveData
(int srcPos, int dstPos, int len, long first, boolean writeCheck) final void
clear()
protected final void
close
(int pos) protected final void
close2
(int pos) final boolean
contains
(long v) final boolean
containsRange
(long start, long end) protected abstract void
copyData
(int newCapacity) final int
count()
protected abstract int
protected void
abstract SortedRanges
deepCopy()
Get a deep copy of the current object, not shared with anybody.protected abstract SortedRanges
ensureCanAppend
(int newLastPosition, long unpackedNewLastKey, boolean writeCheck) final long
find
(long v) final long
first()
abstract boolean
fits
(long value) abstract boolean
fits
(long start, long end) abstract boolean
fitsForAppend
(long end) final boolean
final boolean
final long
get
(long targetPos) final long
final long
final ReadOnlyIndex.Iterator
final void
getKeysForPositions
(PrimitiveIterator.OfLong inputPositions, LongConsumer outputKeys) final OrderedKeys
getOrderedKeysByKeyRange
(long start, long end) final OrderedKeys
getOrderedKeysByPosition
(long pos, long length) final OrderedKeys
getOrderedKeysByPositionWithStart
(long iStartPos, int istart, long startPosForOK, long lengthForOK) final OrderedKeys.Iterator
protected abstract SortedRanges
growOnNew
(int capacity) final boolean
final TreeIndexImpl
insertImpl
(SortedRanges other) final TreeIndexImpl
insertImpl
(SortedRanges other, boolean writeCheck) protected static int
intArrayCapacityForLastIndex
(int lastIndex, boolean isDense) final TreeIndexImpl
intersectOnNew
(TreeIndexImpl toIntersect) final TreeIndexImpl
intersectOnNewImpl
(TreeIndexImpl other) final boolean
invertOnNew
(ReadOnlyIndex.RangeIterator rit, TreeIndexImplSequentialBuilder builder, long maxPosition) final TreeIndexImpl
invertRangeOnNew
(long start, long end, long maxPosition) abstract boolean
isDense()
static boolean
isDenseInt
(int[] data, int count) static boolean
isDenseLong
(long[] data, int count) protected static boolean
isDenseLongSample
(long v0, long v1, int count) static boolean
isDenseShort
(short[] data, int count) final boolean
isEmpty()
protected static boolean
isIntAllocationSize
(int length) protected static boolean
isLongAllocationSize
(int length) protected static boolean
isShortAllocationSize
(int length) final boolean
isSparse()
final TreeIndexImpl
ixAppendRange
(long startKey, long endKey) final long
final TreeIndexImpl
final boolean
ixContainsRange
(long start, long end) final SortedRanges
ixCowRef()
final long
ixFind
(long key) final long
final boolean
final boolean
final long
ixGet
(long pos) final long
final void
ixGetKeysForPositions
(PrimitiveIterator.OfLong inputPositions, LongConsumer outputKeys) final OrderedKeys
ixGetOrderedKeysByKeyRange
(long startKeyInclusive, long endKeyInclusive) final OrderedKeys
ixGetOrderedKeysByPosition
(long startPositionInclusive, long length) final OrderedKeys.Iterator
final TreeIndexImpl
ixInsert
(long key) final TreeIndexImpl
ixInsert
(TreeIndexImpl added) final TreeIndexImpl
ixInsertRange
(long startKey, long endKey) final TreeIndexImpl
ixInsertSecondHalf
(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length) final TreeIndexImpl
ixInsertWithShift
(long shiftAmount, TreeIndexImpl other) final TreeIndexImpl
ixIntersectOnNew
(TreeIndexImpl toIntersect) final TreeIndexImpl
ixInvertOnNew
(TreeIndexImpl keys, long maxPosition) Invert the given index.final boolean
final ReadOnlyIndex.Iterator
final long
final TreeIndexImpl
ixMinusOnNew
(TreeIndexImpl other) final boolean
ixOverlaps
(TreeIndexImpl impl) final boolean
ixOverlapsRange
(long start, long end) final long
final int
final void
final TreeIndexImpl
ixRemove
(long key) final TreeIndexImpl
ixRemove
(TreeIndexImpl removed) final TreeIndexImpl
ixRemoveRange
(long startKey, long endKey) final TreeIndexImpl
ixRemoveSecondHalf
(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length) final TreeIndexImpl
ixRetain
(TreeIndexImpl toIntersect) final TreeIndexImpl
ixRetainRange
(long start, long end) final TreeIndexImpl
ixShiftInPlace
(long shiftAmount) final TreeIndexImpl
ixShiftOnNew
(long shiftAmount) final TreeIndexImpl
ixSubindexByKeyOnNew
(long startKey, long endKey) final TreeIndexImpl
ixSubindexByPosOnNew
(long startPos, long endPosExclusive) final boolean
ixSubsetOf
(TreeIndexImpl other) final RspBitmap
final TreeIndexImpl
ixUnionOnNew
(TreeIndexImpl other) final TreeIndexImpl
ixUpdate
(TreeIndexImpl added, TreeIndexImpl removed) final void
ixValidate
(String failMsg) final long
last()
protected static int
longArrayCapacityForLastIndex
(int lastIndex, boolean isDense) static SortedRanges
static SortedRanges
makeForKnownRange
(long first, long last, boolean isDense) protected abstract SortedRanges
makeMyTypeAndOffset
(int initialCapacity) static SortedRanges
makeSingleElement
(long v) static SortedRanges
makeSingleRange
(long start, long end) final SortedRanges
mergeAppend
(SortedRanges other, boolean writeCheck) protected abstract void
moveData
(int srcPos, int dstPos, int len) protected void
final boolean
overlaps
(ReadOnlyIndex.RangeIterator rangeIter) final boolean
overlapsRange
(long start, long end) protected abstract long
pack
(long unpackedValue) protected abstract long
packedGet
(int i) protected abstract void
packedSet
(int i, long packedValue) protected abstract int
final SortedRanges
remove
(long v) final TreeIndexImpl
remove
(TreeIndexImpl removed) protected abstract SortedRanges
removeInternal
(long v) protected static SortedRanges
removePacked
(SortedRanges sar, long packedValue, long value) final SortedRanges
removeRange
(long start, long end) protected abstract SortedRanges
removeRangeInternal
(long start, long end) protected static SortedRanges
removeRangePacked
(SortedRanges sar, long packedStart, long packedEnd, long start, long end) 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) final SortedRanges
retainRange
(long start, long end) final SortedRanges
self()
Derived classes should implement self() by simply "return this" of the right type.protected static int
shortArrayCapacityForLastIndex
(int lastIndex) final SortedRanges
subRangesByKey
(long start, long end) final SortedRanges
subRangesByPos
(long startPosIn, long endPosIn) final boolean
subsetOf
(ReadOnlyIndex.RangeIterator ritOther) protected String
final RspBitmap
toRsp()
final String
toString()
final SortedRanges
tryCompact
(int k) abstract SortedRanges
tryCompactUnsafe
(int k) static SortedRanges
tryMakeForKnownRangeFinalCapacityLowerBound
(int initialCapacity, int finalCapacityLowerBound, long first, long last, boolean isDense) static SortedRanges
tryMakeForKnownRangeKnownCount
(int count, long first, long last) static SortedRanges
tryMakeForKnownRangeUnknownMaxCapacity
(int initialCapacity, long first, long last, boolean isDense) protected abstract SortedRanges
tryPack()
protected abstract SortedRanges
tryPackFor
(long first, long last, int maxPos, boolean isDense) protected final SortedRanges
tryPackWithNewLast
(long newLastKey, int maxPos, boolean isDense) static TreeIndexImpl
unionOnNew
(SortedRanges sar, SortedRanges otherSar) static SortedRanges
unionOnNewLegacy
(SortedRanges sar, SortedRanges otherSar) protected abstract long
unpack
(long packedValue) protected abstract long
unpackedGet
(int i) protected abstract void
unpackedSet
(int i, long unpackedValue) final void
validate()
protected final void
validate
(long iv1, long iv2) protected final void
Methods inherited from class com.illumon.iris.db.v2.utils.RefCountedCow
acquire, canWrite, cowRef, getWriteRef, notifyAfterRelease, notifyBeforeAcquire, refCount, release
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:RefCountedCow
Get a deep copy of the current object, not shared with anybody. Note this is not thread safe.- Specified by:
deepCopy
in classRefCountedCow<SortedRanges>
- Returns:
- A full, deep copy of this object with a reference count of 1 (not shared).
-
self
Description copied from class:RefCountedCow
Derived 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:
self
in 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
-
mergeAppend
-
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:
ixCowRef
in interfaceTreeIndexImpl
-
ixRelease
public final void ixRelease()- Specified by:
ixRelease
in interfaceTreeIndexImpl
-
ixRefCount
public final int ixRefCount()- Specified by:
ixRefCount
in interfaceTreeIndexImpl
-
ixInsert
- Specified by:
ixInsert
in interfaceTreeIndexImpl
-
ixInsertRange
- Specified by:
ixInsertRange
in interfaceTreeIndexImpl
-
ixInsertSecondHalf
public final TreeIndexImpl ixInsertSecondHalf(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length) - Specified by:
ixInsertSecondHalf
in interfaceTreeIndexImpl
-
ixRemoveSecondHalf
public final TreeIndexImpl ixRemoveSecondHalf(LongChunk<Attributes.OrderedKeyIndices> keys, int offset, int length) - Specified by:
ixRemoveSecondHalf
in interfaceTreeIndexImpl
-
ixAppendRange
- Specified by:
ixAppendRange
in interfaceTreeIndexImpl
-
ixRemove
- Specified by:
ixRemove
in interfaceTreeIndexImpl
-
ixLastKey
public final long ixLastKey()- Specified by:
ixLastKey
in interfaceTreeIndexImpl
-
ixFirstKey
public final long ixFirstKey()- Specified by:
ixFirstKey
in interfaceTreeIndexImpl
-
ixForEachLong
- Specified by:
ixForEachLong
in interfaceTreeIndexImpl
-
ixForEachLongRange
- Specified by:
ixForEachLongRange
in interfaceTreeIndexImpl
-
ixSubindexByPosOnNew
- Specified by:
ixSubindexByPosOnNew
in interfaceTreeIndexImpl
-
ixSubindexByKeyOnNew
- Specified by:
ixSubindexByKeyOnNew
in interfaceTreeIndexImpl
-
ixGet
public final long ixGet(long pos) - Specified by:
ixGet
in interfaceTreeIndexImpl
-
ixGetKeysForPositions
public final void ixGetKeysForPositions(PrimitiveIterator.OfLong inputPositions, LongConsumer outputKeys) - Specified by:
ixGetKeysForPositions
in interfaceTreeIndexImpl
-
ixFind
public final long ixFind(long key) - Specified by:
ixFind
in interfaceTreeIndexImpl
-
ixIterator
- Specified by:
ixIterator
in interfaceTreeIndexImpl
-
ixSearchIterator
- Specified by:
ixSearchIterator
in interfaceTreeIndexImpl
-
ixReverseIterator
- Specified by:
ixReverseIterator
in interfaceTreeIndexImpl
-
ixRangeIterator
- Specified by:
ixRangeIterator
in interfaceTreeIndexImpl
-
ixCardinality
public final long ixCardinality()- Specified by:
ixCardinality
in interfaceTreeIndexImpl
-
ixIsEmpty
public final boolean ixIsEmpty()- Specified by:
ixIsEmpty
in interfaceTreeIndexImpl
-
ixUpdate
- Specified by:
ixUpdate
in interfaceTreeIndexImpl
-
ixRemove
- Specified by:
ixRemove
in interfaceTreeIndexImpl
-
remove
-
ixRemoveRange
- Specified by:
ixRemoveRange
in interfaceTreeIndexImpl
-
ixRetain
- Specified by:
ixRetain
in interfaceTreeIndexImpl
-
ixRetainRange
- Specified by:
ixRetainRange
in interfaceTreeIndexImpl
-
ixIntersectOnNew
- Specified by:
ixIntersectOnNew
in interfaceTreeIndexImpl
-
intersectOnNew
-
ixContainsRange
public final boolean ixContainsRange(long start, long end) - Specified by:
ixContainsRange
in interfaceTreeIndexImpl
-
ixOverlaps
- Specified by:
ixOverlaps
in interfaceTreeIndexImpl
-
ixOverlapsRange
public final boolean ixOverlapsRange(long start, long end) - Specified by:
ixOverlapsRange
in interfaceTreeIndexImpl
-
ixSubsetOf
- Specified by:
ixSubsetOf
in interfaceTreeIndexImpl
-
ixMinusOnNew
- Specified by:
ixMinusOnNew
in interfaceTreeIndexImpl
-
ixUnionOnNew
- Specified by:
ixUnionOnNew
in interfaceTreeIndexImpl
-
ixShiftOnNew
- Specified by:
ixShiftOnNew
in interfaceTreeIndexImpl
-
ixShiftInPlace
- Specified by:
ixShiftInPlace
in interfaceTreeIndexImpl
-
ixInsertWithShift
- Specified by:
ixInsertWithShift
in interfaceTreeIndexImpl
-
ixInsert
- Specified by:
ixInsert
in interfaceTreeIndexImpl
-
ixGetOrderedKeysByPosition
- Specified by:
ixGetOrderedKeysByPosition
in interfaceTreeIndexImpl
-
ixGetOrderedKeysByKeyRange
- Specified by:
ixGetOrderedKeysByKeyRange
in interfaceTreeIndexImpl
-
ixGetOrderedKeysIterator
- Specified by:
ixGetOrderedKeysIterator
in interfaceTreeIndexImpl
-
ixRangesCountUpperBound
public final long ixRangesCountUpperBound()- Specified by:
ixRangesCountUpperBound
in interfaceTreeIndexImpl
-
ixGetAverageRunLengthEstimate
public final long ixGetAverageRunLengthEstimate()- Specified by:
ixGetAverageRunLengthEstimate
in interfaceTreeIndexImpl
-
ixToRspOnNew
- Specified by:
ixToRspOnNew
in interfaceTreeIndexImpl
-
toRsp
-
ixInvertOnNew
Description copied from interface:TreeIndexImpl
Invert the given index.- Specified by:
ixInvertOnNew
in interfaceTreeIndexImpl
- Parameters:
keys
- Index of keys to invertmaxPosition
- the largest position to add to indexBuilder, inclusive- Returns:
- the inverse of index
-
ixCompact
- Specified by:
ixCompact
in interfaceTreeIndexImpl
-
ixValidate
- Specified by:
ixValidate
in interfaceTreeIndexImpl
-