public class ChangeIndexRewriter extends java.lang.Object implements com.google.gerrit.index.IndexRewriter<ChangeData>
Modifier and Type | Field and Description |
---|---|
static java.util.Set<Change.Status> |
CLOSED_STATUSES
Set of all closed change statuses.
|
static java.util.Set<Change.Status> |
OPEN_STATUSES
Set of all open change statuses.
|
Modifier and Type | Method and Description |
---|---|
static java.util.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.
|
com.google.gerrit.index.query.Predicate<ChangeData> |
rewrite(com.google.gerrit.index.query.Predicate<ChangeData> in,
com.google.gerrit.index.QueryOptions opts) |
public static final java.util.Set<Change.Status> OPEN_STATUSES
public static final java.util.Set<Change.Status> CLOSED_STATUSES
public static java.util.EnumSet<Change.Status> getPossibleStatus(com.google.gerrit.index.query.Predicate<ChangeData> in)
in
- predicateChangeStatusPredicate
s.public com.google.gerrit.index.query.Predicate<ChangeData> rewrite(com.google.gerrit.index.query.Predicate<ChangeData> in, com.google.gerrit.index.QueryOptions opts) throws QueryParseException
rewrite
in interface com.google.gerrit.index.IndexRewriter<ChangeData>
QueryParseException