Merge "Document IndexPredicate and subclasses"

This commit is contained in:
Luca Milanesio
2020-01-06 08:10:00 +00:00
committed by Gerrit Code Review
5 changed files with 5 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ package com.google.gerrit.index.project;
import com.google.gerrit.index.FieldDef;
import com.google.gerrit.index.query.IndexPredicate;
/** Predicate that is mapped to a field in the project index. */
public class ProjectPredicate extends IndexPredicate<ProjectData> {
public ProjectPredicate(FieldDef<ProjectData, ?> def, String value) {
super(def, value);

View File

@@ -17,7 +17,7 @@ package com.google.gerrit.index.query;
import com.google.gerrit.index.FieldDef;
import com.google.gerrit.index.FieldType;
/** Index-aware predicate that includes a field type annotation. */
/** Predicate that is mapped to a field in the index. */
public abstract class IndexPredicate<I> extends OperatorPredicate<I> {
private final FieldDef<I, ?> def;

View File

@@ -130,6 +130,7 @@ public class AccountPredicates {
return new CanSeeChangePredicate(args.permissionBackend, changeNotes);
}
/** Predicate that is mapped to a field in the account index. */
static class AccountPredicate extends IndexPredicate<AccountState>
implements Matchable<AccountState> {
AccountPredicate(FieldDef<AccountState, ?> def, String value) {

View File

@@ -19,6 +19,7 @@ import com.google.gerrit.index.query.IndexPredicate;
import com.google.gerrit.index.query.Matchable;
import com.google.gerrit.index.query.Predicate;
/** Predicate that is mapped to a field in the change index. */
public abstract class ChangeIndexPredicate extends IndexPredicate<ChangeData>
implements Matchable<ChangeData> {
/**

View File

@@ -63,6 +63,7 @@ public class GroupPredicates {
return new GroupPredicate(GroupField.SUBGROUP, subgroupUuid.get());
}
/** Predicate that is mapped to a field in the group index. */
static class GroupPredicate extends IndexPredicate<InternalGroup> {
GroupPredicate(FieldDef<InternalGroup, ?> def, String value) {
super(def, value);