Class RankedSetIndexHelper.InstrumentedRankedSet
- java.lang.Object
-
- com.apple.foundationdb.async.RankedSet
-
- com.apple.foundationdb.record.provider.foundationdb.indexes.RankedSetIndexHelper.InstrumentedRankedSet
-
- Enclosing class:
- RankedSetIndexHelper
public static class RankedSetIndexHelper.InstrumentedRankedSet extends RankedSet
ARankedSet
that addsStoreTimer
instrumentation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.apple.foundationdb.async.RankedSet
RankedSet.Config, RankedSet.ConfigBuilder, RankedSet.Consistency, RankedSet.HashFunction, RankedSet.Lookup
-
-
Field Summary
-
Fields inherited from class com.apple.foundationdb.async.RankedSet
config, CRC_HASH, DEFAULT_CONFIG, DEFAULT_HASH_FUNCTION, DEFAULT_LEVELS, executor, JDK_ARRAY_HASH, MAX_LEVELS, RANDOM_HASH, subspace
-
-
Constructor Summary
Constructors Constructor Description InstrumentedRankedSet(IndexMaintainerState state, Subspace rankSubspace, RankedSet.Config config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CompletableFuture<Void>
addIncrementLevelKey(Transaction tr, byte[] key, int level, boolean orEqual)
protected CompletableFuture<Void>
addInsertLevelKey(Transaction tr, byte[] key, int level)
protected CompletableFuture<Void>
addLevelZeroKey(Transaction tr, byte[] key, int level, boolean increment)
CompletableFuture<Boolean>
contains(ReadTransactionContext tc, byte[] key)
protected int
getKeyHash(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)
-
Methods inherited from class com.apple.foundationdb.async.RankedSet
add, checkConsistency, clear, count, getNth, getRange, getRangeList, initNeeded, lookupIterator, newConfigBuilder, preloadForLookup, rank, rank, remove, size, toDebugString
-
-
-
-
Constructor Detail
-
InstrumentedRankedSet
public InstrumentedRankedSet(@Nonnull IndexMaintainerState state, @Nonnull Subspace rankSubspace, @Nonnull RankedSet.Config config)
-
-
Method Detail
-
init
public CompletableFuture<Void> init(TransactionContext tc)
-
contains
public CompletableFuture<Boolean> contains(ReadTransactionContext tc, byte[] key)
-
nextLookup
protected CompletableFuture<Boolean> nextLookup(RankedSet.Lookup lookup, ReadTransaction tr)
- Overrides:
nextLookup
in classRankedSet
-
nextLookupKey
protected void nextLookupKey(long duration, boolean newIter, boolean hasNext, int level, boolean rankLookup)
- Overrides:
nextLookupKey
in classRankedSet
-
getKeyHash
protected int getKeyHash(byte[] key)
- Overrides:
getKeyHash
in classRankedSet
-
addLevelZeroKey
protected CompletableFuture<Void> addLevelZeroKey(Transaction tr, byte[] key, int level, boolean increment)
- Overrides:
addLevelZeroKey
in classRankedSet
-
addIncrementLevelKey
protected CompletableFuture<Void> addIncrementLevelKey(Transaction tr, byte[] key, int level, boolean orEqual)
- Overrides:
addIncrementLevelKey
in classRankedSet
-
addInsertLevelKey
protected CompletableFuture<Void> addInsertLevelKey(Transaction tr, byte[] key, int level)
- Overrides:
addInsertLevelKey
in classRankedSet
-
-