Package io.deephaven.engine.rowset.impl
Interface OrderedLongSet
- All Known Implementing Classes:
DisposableRspBitmap
,IntStartIntDeltaSingleRange
,IntStartLongDeltaSingleRange
,LongStartIntDeltaSingleRange
,LongStartLongEndSingleRange
,RspBitmap
,ShortStartShortDeltaSingleRange
,SingleIntSingleRange
,SingleLongSingleRange
,SingleRange
,SortedRanges
,SortedRangesInt
,SortedRangesLong
,SortedRangesPacked
,SortedRangesShort
,SortedRangesTyped
public interface OrderedLongSet
An ordered sequence of
long
values with set operations.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RspBitmap
static OrderedLongSet
fromChunk
(LongChunk<OrderedRowKeys> keys, int offset, int length, boolean disposable) ixAppendRange
(long startKey, long endKey) long
boolean
ixContainsRange
(long start, long end) ixCowRef()
long
ixFind
(long key) long
boolean
boolean
long
ixGet
(long pos) long
void
ixGetKeysForPositions
(PrimitiveIterator.OfLong inputPositions, LongConsumer outputKeys) ixGetRowSequenceByKeyRange
(long startKeyInclusive, long endKeyInclusive) ixGetRowSequenceByPosition
(long startPositionInclusive, long length) ixInsert
(long key) default OrderedLongSet
ixInsert
(LongChunk<OrderedRowKeys> keys, int offset, int length) ixInsert
(OrderedLongSet added) ixInsertRange
(long startKey, long endKey) ixInsertSecondHalf
(LongChunk<OrderedRowKeys> keys, int offset, int length) ixInsertWithShift
(long shiftAmount, OrderedLongSet other) ixIntersectOnNew
(OrderedLongSet range) ixInvertOnNew
(OrderedLongSet keys, long maximumPosition) Invert the given OrderedLongSet.boolean
long
boolean
ixOverlaps
(OrderedLongSet impl) boolean
ixOverlapsRange
(long start, long end) long
int
void
ixRemove
(long key) default OrderedLongSet
ixRemove
(LongChunk<OrderedRowKeys> keys, int offset, int length) ixRemove
(OrderedLongSet removed) ixRemoveRange
(long startKey, long endKey) ixRemoveSecondHalf
(LongChunk<OrderedRowKeys> keys, int offset, int length) ixRetain
(OrderedLongSet toIntersect) ixRetainRange
(long start, long end) ixShiftInPlace
(long shiftAmount) ixShiftOnNew
(long shiftAmount) ixSubindexByKeyOnNew
(long startKey, long endKey) ixSubindexByPosOnNew
(long startPos, long endPosExclusive) boolean
ixSubsetOf
(OrderedLongSet impl) ixUpdate
(OrderedLongSet added, OrderedLongSet removed) default void
void
ixValidate
(String failMsg) static OrderedLongSet
twoRanges
(long s1, long e1, long s2, long e2)
-
Field Details
-
EMPTY
-
-
Method Details
-
ixCowRef
OrderedLongSet ixCowRef() -
ixRelease
void ixRelease() -
ixRefCount
-
ixInsert
-
ixInsertRange
-
ixInsert
@FinalDefault default OrderedLongSet ixInsert(LongChunk<OrderedRowKeys> keys, int offset, int length) -
ixInsertSecondHalf
-
ixInsert
-
ixAppendRange
-
ixRemove
-
ixRemoveRange
-
ixRemove
@FinalDefault default OrderedLongSet ixRemove(LongChunk<OrderedRowKeys> keys, int offset, int length) -
ixRemoveSecondHalf
-
ixRemove
-
ixLastKey
long ixLastKey() -
ixFirstKey
long ixFirstKey() -
ixForEachLong
-
ixForEachLongRange
-
ixSubindexByPosOnNew
-
ixSubindexByKeyOnNew
-
ixGet
long ixGet(long pos) -
ixGetKeysForPositions
-
ixFind
long ixFind(long key) -
ixIterator
RowSet.Iterator ixIterator() -
ixSearchIterator
RowSet.SearchIterator ixSearchIterator() -
ixReverseIterator
RowSet.SearchIterator ixReverseIterator() -
ixRangeIterator
RowSet.RangeIterator ixRangeIterator() -
ixCardinality
long ixCardinality() -
ixIsEmpty
boolean ixIsEmpty() -
ixUpdate
-
ixRetain
-
ixRetainRange
-
ixIntersectOnNew
-
ixContainsRange
boolean ixContainsRange(long start, long end) -
ixOverlaps
-
ixOverlapsRange
boolean ixOverlapsRange(long start, long end) -
ixSubsetOf
-
ixMinusOnNew
-
ixUnionOnNew
-
ixShiftOnNew
-
ixShiftInPlace
-
ixInsertWithShift
-
ixGetRowSequenceByPosition
-
ixGetRowSequenceByKeyRange
-
ixGetRowSequenceIterator
RowSequence.Iterator ixGetRowSequenceIterator() -
ixRangesCountUpperBound
long ixRangesCountUpperBound() -
ixGetAverageRunLengthEstimate
long ixGetAverageRunLengthEstimate() -
ixToRspOnNew
RspBitmap ixToRspOnNew() -
ixInvertOnNew
Invert the given OrderedLongSet.- Parameters:
keys
- OrderedLongSet of keys to invertmaximumPosition
- the largest position to add to indexBuilder, inclusive- Returns:
- the inverse of
keys
-
ixCompact
OrderedLongSet ixCompact() -
ixValidate
-
ixValidate
default void ixValidate() -
fromChunk
static OrderedLongSet fromChunk(LongChunk<OrderedRowKeys> keys, int offset, int length, boolean disposable) - Parameters:
keys
- TheLongChunk
ofOrderedRowKeys
to build fromoffset
- The offset inkeys
to begin building fromlength
- The number of keys to include- Returns:
- A new
OrderedLongSet
containing the specified slice ofkeys
-
twoRanges
-
asRspBitmap
-