Class GroupQueryBuilder
java.lang.Object
com.google.gerrit.index.query.QueryBuilder<InternalGroup,GroupQueryBuilder>
com.google.gerrit.server.query.group.GroupQueryBuilder
Parses a query string meant to be applied to group objects.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.gerrit.index.query.QueryBuilder
QueryBuilder.Definition<T,
Q extends QueryBuilder<T, Q>>, QueryBuilder.Operator, QueryBuilder.OperatorFactory<T, Q extends QueryBuilder<T, Q>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class com.google.gerrit.index.query.QueryBuilder
builderDef, opAliases
-
Method Summary
Modifier and TypeMethodDescriptionprotected Predicate<InternalGroup>
defaultField
(String query) Handle a value present outside of an operator.description
(String description) Methods inherited from class com.google.gerrit.index.query.QueryBuilder
error, error, find, find, parse, parse, setOperatorAliases
-
Field Details
-
FIELD_UUID
- See Also:
-
FIELD_DESCRIPTION
- See Also:
-
FIELD_INNAME
- See Also:
-
FIELD_NAME
- See Also:
-
FIELD_OWNER
- See Also:
-
FIELD_LIMIT
- See Also:
-
-
Method Details
-
uuid
-
description
- Throws:
QueryParseException
-
inname
-
name
-
owner
- Throws:
QueryParseException
-
is
- Throws:
QueryParseException
-
defaultField
Description copied from class:QueryBuilder
Handle a value present outside of an operator.This default implementation always throws an "Unsupported query: " message containing the input text. Subclasses may override this method to perform do-what-i-mean guesses based on the input string.
- Overrides:
defaultField
in classQueryBuilder<InternalGroup,
GroupQueryBuilder> - Parameters:
query
- the value supplied by itself in the query.- Returns:
- predicate representing this value.
- Throws:
QueryParseException
- the parser does not recognize this value.
-
member
public Predicate<InternalGroup> member(String query) throws QueryParseException, org.eclipse.jgit.errors.ConfigInvalidException, IOException - Throws:
QueryParseException
org.eclipse.jgit.errors.ConfigInvalidException
IOException
-
subgroup
- Throws:
QueryParseException
-
limit
- Throws:
QueryParseException
-