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
-
Method Summary
Modifier and TypeMethodDescriptionabstract SingleRange
copy()
abstract long
final OrderedLongSet
ixAppendRange
(long startKey, long endKey) final long
final SingleRange
final boolean
ixContainsRange
(long start, long end) final SingleRange
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 RowSequence
ixGetRowSequenceByKeyRange
(long startKeyInclusive, long endKeyInclusive) final RowSequence
ixGetRowSequenceByPosition
(long startPositionInclusive, long length) final RowSequence.Iterator
final OrderedLongSet
ixInsert
(long key) final OrderedLongSet
ixInsert
(OrderedLongSet added) final OrderedLongSet
ixInsertRange
(long startKey, long endKey) final OrderedLongSet
ixInsertSecondHalf
(LongChunk<OrderedRowKeys> keys, int offset, int length) final OrderedLongSet
ixInsertWithShift
(long shiftAmount, OrderedLongSet other) final OrderedLongSet
ixIntersectOnNew
(OrderedLongSet intersected) final OrderedLongSet
ixInvertOnNew
(OrderedLongSet keys, long maximumPosition) Invert the given OrderedLongSet.final boolean
final long
final OrderedLongSet
final boolean
ixOverlaps
(OrderedLongSet impl) final boolean
ixOverlapsRange
(long start, long end) final RowSet.RangeIterator
final long
final int
final void
final OrderedLongSet
ixRemove
(long key) final OrderedLongSet
ixRemove
(OrderedLongSet removed) final OrderedLongSet
ixRemoveRange
(long startKey, long endKey) final OrderedLongSet
ixRemoveSecondHalf
(LongChunk<OrderedRowKeys> keys, int offset, int length) final OrderedLongSet
ixRetain
(OrderedLongSet other) final OrderedLongSet
ixRetainRange
(long start, long end) final RowSet.SearchIterator
final RowSet.SearchIterator
final OrderedLongSet
ixShiftInPlace
(long shiftAmount) final OrderedLongSet
ixShiftOnNew
(long shiftAmount) final OrderedLongSet
ixSubindexByKeyOnNew
(long startKey, long endKey) final OrderedLongSet
ixSubindexByPosOnNew
(long startPos, long endPosExclusive) final boolean
ixSubsetOf
(OrderedLongSet impl) final RspBitmap
final OrderedLongSet
final OrderedLongSet
ixUpdate
(OrderedLongSet added, OrderedLongSet removed) final void
ixValidate
(String failMsg) protected static int
lowBitsAsUnsignedInt
(long v) protected static short
lowBitsAsUnsignedShort
(long v) static SingleRange
make
(long start, long end) protected static long
protected static long
abstract long
rangeEnd()
abstract long
final RspBitmap
toRsp()
final SortedRanges
protected static long
unsignedIntToLong
(int unsignedInt) protected static long
unsignedShortToLong
(short unsignedShort) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
ixLastKey
in interfaceOrderedLongSet
-
ixFirstKey
public final long ixFirstKey()- Specified by:
ixFirstKey
in interfaceOrderedLongSet
-
ixCardinality
public final long ixCardinality()- Specified by:
ixCardinality
in interfaceOrderedLongSet
-
ixForEachLong
- Specified by:
ixForEachLong
in interfaceOrderedLongSet
-
ixForEachLongRange
- Specified by:
ixForEachLongRange
in interfaceOrderedLongSet
-
ixCowRef
- Specified by:
ixCowRef
in interfaceOrderedLongSet
-
ixRelease
public final void ixRelease()- Specified by:
ixRelease
in interfaceOrderedLongSet
-
ixRefCount
public final int ixRefCount()- Specified by:
ixRefCount
in interfaceOrderedLongSet
-
ixInsert
- Specified by:
ixInsert
in interfaceOrderedLongSet
-
ixInsertRange
- Specified by:
ixInsertRange
in interfaceOrderedLongSet
-
ixInsertSecondHalf
public final OrderedLongSet ixInsertSecondHalf(LongChunk<OrderedRowKeys> keys, int offset, int length) - Specified by:
ixInsertSecondHalf
in interfaceOrderedLongSet
-
ixRemoveSecondHalf
public final OrderedLongSet ixRemoveSecondHalf(LongChunk<OrderedRowKeys> keys, int offset, int length) - Specified by:
ixRemoveSecondHalf
in interfaceOrderedLongSet
-
ixAppendRange
- Specified by:
ixAppendRange
in interfaceOrderedLongSet
-
ixRemove
- Specified by:
ixRemove
in interfaceOrderedLongSet
-
ixSubindexByPosOnNew
- Specified by:
ixSubindexByPosOnNew
in interfaceOrderedLongSet
-
ixSubindexByKeyOnNew
- Specified by:
ixSubindexByKeyOnNew
in interfaceOrderedLongSet
-
ixGet
public final long ixGet(long pos) - Specified by:
ixGet
in interfaceOrderedLongSet
-
ixGetKeysForPositions
public final void ixGetKeysForPositions(PrimitiveIterator.OfLong inputPositions, LongConsumer outputKeys) - Specified by:
ixGetKeysForPositions
in interfaceOrderedLongSet
-
ixFind
public final long ixFind(long key) - Specified by:
ixFind
in interfaceOrderedLongSet
-
ixIterator
- Specified by:
ixIterator
in interfaceOrderedLongSet
-
ixSearchIterator
- Specified by:
ixSearchIterator
in interfaceOrderedLongSet
-
ixReverseIterator
- Specified by:
ixReverseIterator
in interfaceOrderedLongSet
-
ixRangeIterator
- Specified by:
ixRangeIterator
in interfaceOrderedLongSet
-
ixIsEmpty
public final boolean ixIsEmpty()- Specified by:
ixIsEmpty
in interfaceOrderedLongSet
-
ixUpdate
- Specified by:
ixUpdate
in interfaceOrderedLongSet
-
ixRemove
- Specified by:
ixRemove
in interfaceOrderedLongSet
-
ixRemoveRange
- Specified by:
ixRemoveRange
in interfaceOrderedLongSet
-
ixRetain
- Specified by:
ixRetain
in interfaceOrderedLongSet
-
ixRetainRange
- Specified by:
ixRetainRange
in interfaceOrderedLongSet
-
ixIntersectOnNew
- Specified by:
ixIntersectOnNew
in interfaceOrderedLongSet
-
ixContainsRange
public final boolean ixContainsRange(long start, long end) - Specified by:
ixContainsRange
in interfaceOrderedLongSet
-
ixOverlaps
- Specified by:
ixOverlaps
in interfaceOrderedLongSet
-
ixOverlapsRange
public final boolean ixOverlapsRange(long start, long end) - Specified by:
ixOverlapsRange
in interfaceOrderedLongSet
-
ixSubsetOf
- Specified by:
ixSubsetOf
in interfaceOrderedLongSet
-
ixMinusOnNew
- Specified by:
ixMinusOnNew
in interfaceOrderedLongSet
-
ixUnionOnNew
- Specified by:
ixUnionOnNew
in interfaceOrderedLongSet
-
ixShiftOnNew
- Specified by:
ixShiftOnNew
in interfaceOrderedLongSet
-
ixShiftInPlace
- Specified by:
ixShiftInPlace
in interfaceOrderedLongSet
-
ixInsert
- Specified by:
ixInsert
in interfaceOrderedLongSet
-
ixInsertWithShift
- Specified by:
ixInsertWithShift
in interfaceOrderedLongSet
-
ixGetRowSequenceByPosition
- Specified by:
ixGetRowSequenceByPosition
in interfaceOrderedLongSet
-
ixGetRowSequenceByKeyRange
- Specified by:
ixGetRowSequenceByKeyRange
in interfaceOrderedLongSet
-
ixGetRowSequenceIterator
- Specified by:
ixGetRowSequenceIterator
in interfaceOrderedLongSet
-
ixRangesCountUpperBound
public final long ixRangesCountUpperBound()- Specified by:
ixRangesCountUpperBound
in interfaceOrderedLongSet
-
ixGetAverageRunLengthEstimate
public final long ixGetAverageRunLengthEstimate()- Specified by:
ixGetAverageRunLengthEstimate
in interfaceOrderedLongSet
-
ixInvertOnNew
Description copied from interface:OrderedLongSet
Invert the given OrderedLongSet.- Specified by:
ixInvertOnNew
in 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:
ixToRspOnNew
in interfaceOrderedLongSet
-
ixCompact
- Specified by:
ixCompact
in interfaceOrderedLongSet
-
ixValidate
- Specified by:
ixValidate
in interfaceOrderedLongSet
-