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
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.utils.OrderedKeys
OrderedKeys.Iterator -
Field Summary
Fields inherited from interface com.illumon.iris.db.v2.utils.OrderedKeys
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet aLongChunkrepresentation of the individual keys in thisOrderedKeys.Get aLongChunkrepresentation of key ranges in thisOrderedKeys.voidclose()Free any resources associated with this object.protected final voidprotected final voidabstract longlastKey()Get the last key in thisOrderedKeys.abstract longprotected longMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.db.util.LongSizedDataStructure
intSize, intSizeMethods 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()
-