Modifier and Type | Class and Description |
---|---|
static class |
RankedSetIndexHelper.Events
Instrumentation events specific to rank index maintenance.
|
static class |
RankedSetIndexHelper.InstrumentedRankedSet
A
RankedSet that adds StoreTimer instrumentation. |
Modifier and Type | Field and Description |
---|---|
static Tuple |
COMPARISON_SKIPPED_SCORE |
Modifier and Type | Method and Description |
---|---|
static RankedSet.Config |
getConfig(Index index)
Parse standard options into
RankedSet.Config . |
static CompletableFuture<Long> |
rankForScore(IndexMaintainerState state,
RankedSet rankedSet,
Tuple score,
boolean nullIfMissing) |
static CompletableFuture<TupleRange> |
rankRangeToScoreRange(IndexMaintainerState state,
int groupPrefixSize,
Subspace rankSubspace,
RankedSet.Config config,
TupleRange rankRange) |
static CompletableFuture<Tuple> |
scoreForRank(IndexMaintainerState state,
RankedSet rankedSet,
Number rank,
Tuple outOfRange) |
static CompletableFuture<Void> |
updateRankedSet(IndexMaintainerState state,
Subspace rankSubspace,
RankedSet.Config config,
Tuple valueKey,
Tuple scoreKey,
boolean remove) |
public static final Tuple COMPARISON_SKIPPED_SCORE
public static RankedSet.Config getConfig(@Nonnull Index index)
RankedSet.Config
.index
- the index definition to get options from@Nonnull public static CompletableFuture<TupleRange> rankRangeToScoreRange(@Nonnull IndexMaintainerState state, int groupPrefixSize, @Nonnull Subspace rankSubspace, @Nonnull RankedSet.Config config, @Nonnull TupleRange rankRange)
public static CompletableFuture<Tuple> scoreForRank(@Nonnull IndexMaintainerState state, @Nonnull RankedSet rankedSet, @Nullable Number rank, @Nullable Tuple outOfRange)
public static CompletableFuture<Long> rankForScore(@Nonnull IndexMaintainerState state, @Nonnull RankedSet rankedSet, @Nullable Tuple score, boolean nullIfMissing)
@Nonnull public static CompletableFuture<Void> updateRankedSet(@Nonnull IndexMaintainerState state, @Nonnull Subspace rankSubspace, @Nonnull RankedSet.Config config, @Nonnull Tuple valueKey, @Nonnull Tuple scoreKey, boolean remove)