Class ChangeIndexRewriter

  • All Implemented Interfaces:
    com.google.gerrit.index.IndexRewriter<ChangeData>

    public class ChangeIndexRewriter
    extends Object
    implements com.google.gerrit.index.IndexRewriter<ChangeData>
    Rewriter that pushes boolean logic into the secondary index.
    • Field Detail

      • OPEN_STATUSES

        public static final Set<Change.Status> OPEN_STATUSES
        Set of all open change statuses.
      • CLOSED_STATUSES

        public static final Set<Change.Status> CLOSED_STATUSES
        Set of all closed change statuses.
    • Method Detail

      • getPossibleStatus

        public static EnumSet<Change.Status> getPossibleStatus​(com.google.gerrit.index.query.Predicate<ChangeData> in)
        Get the set of statuses that changes matching the given predicate may have.
        Parameters:
        in - predicate
        Returns:
        the maximal set of statuses that any changes matching the input predicates may have, based on examining boolean and ChangeStatusPredicates.