Class SingleRange
java.lang.Object
io.deephaven.engine.rowset.impl.singlerange.SingleRange
- All Implemented Interfaces:
OrderedLongSet
- Direct Known Subclasses:
IntStartIntDeltaSingleRange,IntStartLongDeltaSingleRange,LongStartIntDeltaSingleRange,LongStartLongEndSingleRange,ShortStartShortDeltaSingleRange,SingleIntSingleRange,SingleLongSingleRange
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.engine.rowset.impl.OrderedLongSet
OrderedLongSet.BuilderRandom, OrderedLongSet.BuilderSequential -
Field Summary
Fields inherited from interface io.deephaven.engine.rowset.impl.OrderedLongSet
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SingleRangecopy()abstract longfinal OrderedLongSetixAppendRange(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 RowSequenceixGetRowSequenceByKeyRange(long startKeyInclusive, long endKeyInclusive) final RowSequenceixGetRowSequenceByPosition(long startPositionInclusive, long length) final RowSequence.Iteratorfinal OrderedLongSetixInsert(long key) final OrderedLongSetixInsert(OrderedLongSet added) final OrderedLongSetixInsertRange(long startKey, long endKey) final OrderedLongSetixInsertSecondHalf(LongChunk<OrderedRowKeys> keys, int offset, int length) final OrderedLongSetixInsertWithShift(long shiftAmount, OrderedLongSet other) final OrderedLongSetixIntersectOnNew(OrderedLongSet intersected) final OrderedLongSetixInvertOnNew(OrderedLongSet keys, long maximumPosition) Invert the given OrderedLongSet.final booleanfinal longfinal OrderedLongSetfinal booleanixOverlaps(OrderedLongSet impl) final booleanixOverlapsRange(long start, long end) final RowSet.RangeIteratorfinal longfinal intfinal voidfinal OrderedLongSetixRemove(long key) final OrderedLongSetixRemove(OrderedLongSet removed) final OrderedLongSetixRemoveRange(long startKey, long endKey) final OrderedLongSetixRemoveSecondHalf(LongChunk<OrderedRowKeys> keys, int offset, int length) final OrderedLongSetixRetain(OrderedLongSet other) final OrderedLongSetixRetainRange(long start, long end) final RowSet.SearchIteratorfinal RowSet.SearchIteratorfinal OrderedLongSetixShiftInPlace(long shiftAmount) final OrderedLongSetixShiftOnNew(long shiftAmount) final OrderedLongSetixSubindexByKeyOnNew(long startKey, long endKey) final OrderedLongSetixSubindexByPosOnNew(long startPos, long endPosExclusive) final booleanixSubsetOf(OrderedLongSet impl) final RspBitmapfinal OrderedLongSetfinal OrderedLongSetixUpdate(OrderedLongSet added, OrderedLongSet 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 io.deephaven.engine.rowset.impl.OrderedLongSet
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 interfaceOrderedLongSet
-
ixFirstKey
public final long ixFirstKey()- Specified by:
ixFirstKeyin interfaceOrderedLongSet
-
ixCardinality
public final long ixCardinality()- Specified by:
ixCardinalityin interfaceOrderedLongSet
-
ixForEachLong
- Specified by:
ixForEachLongin interfaceOrderedLongSet
-
ixForEachLongRange
- Specified by:
ixForEachLongRangein interfaceOrderedLongSet
-
ixCowRef
- Specified by:
ixCowRefin interfaceOrderedLongSet
-
ixRelease
public final void ixRelease()- Specified by:
ixReleasein interfaceOrderedLongSet
-
ixRefCount
public final int ixRefCount()- Specified by:
ixRefCountin interfaceOrderedLongSet
-
ixInsert
- Specified by:
ixInsertin interfaceOrderedLongSet
-
ixInsertRange
- Specified by:
ixInsertRangein interfaceOrderedLongSet
-
ixInsertSecondHalf
public final OrderedLongSet ixInsertSecondHalf(LongChunk<OrderedRowKeys> keys, int offset, int length) - Specified by:
ixInsertSecondHalfin interfaceOrderedLongSet
-
ixRemoveSecondHalf
public final OrderedLongSet ixRemoveSecondHalf(LongChunk<OrderedRowKeys> keys, int offset, int length) - Specified by:
ixRemoveSecondHalfin interfaceOrderedLongSet
-
ixAppendRange
- Specified by:
ixAppendRangein interfaceOrderedLongSet
-
ixRemove
- Specified by:
ixRemovein interfaceOrderedLongSet
-
ixSubindexByPosOnNew
- Specified by:
ixSubindexByPosOnNewin interfaceOrderedLongSet
-
ixSubindexByKeyOnNew
- Specified by:
ixSubindexByKeyOnNewin interfaceOrderedLongSet
-
ixGet
public final long ixGet(long pos) - Specified by:
ixGetin interfaceOrderedLongSet
-
ixGetKeysForPositions
public final void ixGetKeysForPositions(PrimitiveIterator.OfLong inputPositions, LongConsumer outputKeys) - Specified by:
ixGetKeysForPositionsin interfaceOrderedLongSet
-
ixFind
public final long ixFind(long key) - Specified by:
ixFindin interfaceOrderedLongSet
-
ixIterator
- Specified by:
ixIteratorin interfaceOrderedLongSet
-
ixSearchIterator
- Specified by:
ixSearchIteratorin interfaceOrderedLongSet
-
ixReverseIterator
- Specified by:
ixReverseIteratorin interfaceOrderedLongSet
-
ixRangeIterator
- Specified by:
ixRangeIteratorin interfaceOrderedLongSet
-
ixIsEmpty
public final boolean ixIsEmpty()- Specified by:
ixIsEmptyin interfaceOrderedLongSet
-
ixUpdate
- Specified by:
ixUpdatein interfaceOrderedLongSet
-
ixRemove
- Specified by:
ixRemovein interfaceOrderedLongSet
-
ixRemoveRange
- Specified by:
ixRemoveRangein interfaceOrderedLongSet
-
ixRetain
- Specified by:
ixRetainin interfaceOrderedLongSet
-
ixRetainRange
- Specified by:
ixRetainRangein interfaceOrderedLongSet
-
ixIntersectOnNew
- Specified by:
ixIntersectOnNewin interfaceOrderedLongSet
-
ixContainsRange
public final boolean ixContainsRange(long start, long end) - Specified by:
ixContainsRangein interfaceOrderedLongSet
-
ixOverlaps
- Specified by:
ixOverlapsin interfaceOrderedLongSet
-
ixOverlapsRange
public final boolean ixOverlapsRange(long start, long end) - Specified by:
ixOverlapsRangein interfaceOrderedLongSet
-
ixSubsetOf
- Specified by:
ixSubsetOfin interfaceOrderedLongSet
-
ixMinusOnNew
- Specified by:
ixMinusOnNewin interfaceOrderedLongSet
-
ixUnionOnNew
- Specified by:
ixUnionOnNewin interfaceOrderedLongSet
-
ixShiftOnNew
- Specified by:
ixShiftOnNewin interfaceOrderedLongSet
-
ixShiftInPlace
- Specified by:
ixShiftInPlacein interfaceOrderedLongSet
-
ixInsert
- Specified by:
ixInsertin interfaceOrderedLongSet
-
ixInsertWithShift
- Specified by:
ixInsertWithShiftin interfaceOrderedLongSet
-
ixGetRowSequenceByPosition
- Specified by:
ixGetRowSequenceByPositionin interfaceOrderedLongSet
-
ixGetRowSequenceByKeyRange
- Specified by:
ixGetRowSequenceByKeyRangein interfaceOrderedLongSet
-
ixGetRowSequenceIterator
- Specified by:
ixGetRowSequenceIteratorin interfaceOrderedLongSet
-
ixRangesCountUpperBound
public final long ixRangesCountUpperBound()- Specified by:
ixRangesCountUpperBoundin interfaceOrderedLongSet
-
ixGetAverageRunLengthEstimate
public final long ixGetAverageRunLengthEstimate()- Specified by:
ixGetAverageRunLengthEstimatein interfaceOrderedLongSet
-
ixInvertOnNew
Description copied from interface:OrderedLongSetInvert the given OrderedLongSet.- Specified by:
ixInvertOnNewin interfaceOrderedLongSet- Parameters:
keys- OrderedLongSet of keys to invertmaximumPosition- the largest position to add to indexBuilder, inclusive- Returns:
- the inverse of
keys
-
toRsp
-
toSortedRanges
-
ixToRspOnNew
- Specified by:
ixToRspOnNewin interfaceOrderedLongSet
-
ixCompact
- Specified by:
ixCompactin interfaceOrderedLongSet
-
ixValidate
- Specified by:
ixValidatein interfaceOrderedLongSet
-