Class RankIndexMaintainer


  • @API(MAINTAINED)
    public class RankIndexMaintainer
    extends StandardIndexMaintainer
    An index maintainer for keeping a RankedSet of record field values. A rank index is used to implement these operations in queries:
    • rank: Given a record, where would its field value be in an ordered enumeration of all record's values.
    • select: Given a range of ranks, return (the primary keys for) the records with values in that range.

    Any number of fields in the index can optionally separate records into non-overlapping groups. Each group, determined by the values of those fields, has separate ranking.

    Physical layout:

    • primary subspace: an ordinary B-tree index by [group, ..., score, ...].
    • secondary subspace: a ranked set per group, that is, with any group key as a prefix.