public static class RankedSetIndexHelper.InstrumentedRankedSet extends RankedSet
RankedSet
that adds StoreTimer
instrumentation.RankedSet.Consistency, RankedSet.Lookup
DEFAULT_LEVELS, executor, MAX_LEVELS, nlevels, subspace
Constructor and Description |
---|
InstrumentedRankedSet(IndexMaintainerState state,
Subspace rankSubspace,
int nlevels) |
Modifier and Type | Method and Description |
---|---|
protected CompletableFuture<Void> |
addIncrementLevelKey(Transaction tr,
byte[] key,
int level) |
protected CompletableFuture<Void> |
addInsertLevelKey(Transaction tr,
byte[] key,
int level) |
protected CompletableFuture<Void> |
addLevelZeroKey(Transaction tr,
byte[] key,
int level) |
CompletableFuture<Boolean> |
contains(ReadTransactionContext tc,
byte[] key) |
CompletableFuture<Void> |
init(TransactionContext tc) |
protected CompletableFuture<Boolean> |
nextLookup(RankedSet.Lookup lookup,
ReadTransaction tr) |
protected void |
nextLookupKey(long duration,
boolean newIter,
boolean hasNext,
int level,
boolean rankLookup) |
add, checkConsistency, clear, getNth, getRange, getRangeList, initNeeded, lookupIterator, preloadForLookup, rank, rank, remove, size, toDebugString
public InstrumentedRankedSet(@Nonnull IndexMaintainerState state, @Nonnull Subspace rankSubspace, int nlevels)
public CompletableFuture<Void> init(TransactionContext tc)
public CompletableFuture<Boolean> contains(ReadTransactionContext tc, byte[] key)
protected CompletableFuture<Boolean> nextLookup(RankedSet.Lookup lookup, ReadTransaction tr)
nextLookup
in class RankedSet
protected void nextLookupKey(long duration, boolean newIter, boolean hasNext, int level, boolean rankLookup)
nextLookupKey
in class RankedSet
protected CompletableFuture<Void> addLevelZeroKey(Transaction tr, byte[] key, int level)
addLevelZeroKey
in class RankedSet
protected CompletableFuture<Void> addIncrementLevelKey(Transaction tr, byte[] key, int level)
addIncrementLevelKey
in class RankedSet
protected CompletableFuture<Void> addInsertLevelKey(Transaction tr, byte[] key, int level)
addInsertLevelKey
in class RankedSet