use of com.apple.foundationdb.async.RankedSet in project fdb-record-layer by FoundationDB.
the class RankIndexMaintainer method evaluateEqualRange.
private CompletableFuture<Tuple> evaluateEqualRange(@Nonnull TupleRange range, @Nonnull EvaluateEqualRange function) {
Subspace rankSubspace = getSecondarySubspace();
Tuple values = range.getLow();
final int groupingCount = getGroupingCount();
if (groupingCount > 0) {
rankSubspace = rankSubspace.subspace(TupleHelpers.subTuple(values, 0, groupingCount));
values = TupleHelpers.subTuple(values, groupingCount, values.size());
}
final RankedSet rankedSet = new RankedSetIndexHelper.InstrumentedRankedSet(state, rankSubspace, config);
return function.apply(rankedSet, values);
}
Aggregations