Package com.illumon.iris.db.v2.utils
Class OrderedKeysAsChunkImpl
java.lang.Object
com.illumon.iris.db.v2.utils.OrderedKeysAsChunkImpl
- All Implemented Interfaces:
LongSizedDataStructure,OrderedKeys,SafeCloseable,AutoCloseable
- Direct Known Subclasses:
CurrentOnlyIndex,RspOrderedKeys,ShiftedOrderedKeys,SingleRangeOrderedKeys,SortedIndex,SortedRangesOrderedKeys
public abstract class OrderedKeysAsChunkImpl extends Object implements OrderedKeys
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.utils.OrderedKeys
OrderedKeys.Iterator -
Field Summary
-
Constructor Summary
Constructors Constructor Description OrderedKeysAsChunkImpl() -
Method Summary
Modifier and Type Method Description LongChunk<Attributes.OrderedKeyIndices>asKeyIndicesChunk()Get aLongChunkrepresentation of the individual keys in thisOrderedKeys.LongChunk<Attributes.OrderedKeyRanges>asKeyRangesChunk()Get aLongChunkrepresentation of key ranges in thisOrderedKeys.voidclose()Free any resources associated with this object.protected voidcloseOrderedKeysAsChunkImpl()protected voidinvalidateOrderedKeysAsChunkImpl()abstract longlastKey()Get the last key in thisOrderedKeys.abstract longrangesCountUpperBound()protected longrunsUpperBound()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.db.v2.utils.OrderedKeys
asIndex, fillKeyIndicesChunk, fillKeyRangesChunk, firstKey, forAllLongRanges, forAllLongs, forEachLong, forEachLongRange, getAverageRunLengthEstimate, getOrderedKeysByKeyRange, getOrderedKeysByPosition, getOrderedKeysIterator, isContiguous, isEmpty, size
-
Constructor Details
-
OrderedKeysAsChunkImpl
public OrderedKeysAsChunkImpl()
-
-
Method Details
-
runsUpperBound
protected long runsUpperBound() -
asKeyIndicesChunk
Description copied from interface:OrderedKeysGet aLongChunkrepresentation of the individual keys in thisOrderedKeys.- Specified by:
asKeyIndicesChunkin interfaceOrderedKeys- Returns:
- A
LongChunkcontaining the keys in thisOrderedKeys
-
asKeyRangesChunk
Description copied from interface:OrderedKeysGet aLongChunkrepresentation of key ranges in thisOrderedKeys.- Specified by:
asKeyRangesChunkin interfaceOrderedKeys- Returns:
- A
LongChunkcontaining the key ranges in thisOrderedKeys
-
lastKey
public abstract long lastKey()Description copied from interface:OrderedKeysGet the last key in thisOrderedKeys.- Specified by:
lastKeyin interfaceOrderedKeys- Returns:
- The last key, or
ReadOnlyIndex.NULL_KEYif there is none.
-
rangesCountUpperBound
public abstract long rangesCountUpperBound() -
close
public void close()Description copied from interface:OrderedKeysFree any resources associated with this object.
Using any
OrderedKeysmethods afterclose()is an error and may produce exceptions or undefined results.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceOrderedKeys- Specified by:
closein interfaceSafeCloseable
-
closeOrderedKeysAsChunkImpl
protected final void closeOrderedKeysAsChunkImpl() -
invalidateOrderedKeysAsChunkImpl
protected final void invalidateOrderedKeysAsChunkImpl()
-