Merge "Document IndexPredicate and subclasses"
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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> {
|
||||
/**
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user