Class SubmitRequirementChangeQueryBuilder
java.lang.Object
com.google.gerrit.index.query.QueryBuilder<ChangeData,ChangeQueryBuilder>
com.google.gerrit.server.query.change.ChangeQueryBuilder
com.google.gerrit.server.query.change.SubmitRequirementChangeQueryBuilder
A query builder for submit requirement expressions that includes all
ChangeQueryBuilder
operators, in addition to extra operators contributed by this class.
Operators defined in this class cannot be used in change queries.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.server.query.change.ChangeQueryBuilder
ChangeQueryBuilder.Arguments, ChangeQueryBuilder.ChangeHasOperandFactory, ChangeQueryBuilder.ChangeIsOperandFactory, ChangeQueryBuilder.ChangeOperandFactory, ChangeQueryBuilder.ChangeOperatorFactoryNested 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
FieldsFields inherited from class com.google.gerrit.server.query.change.ChangeQueryBuilder
ARG_COUNT, ARG_ID_GROUP, ARG_ID_NAME, ARG_ID_NON_CONTRIBUTOR, ARG_ID_NON_UPLOADER, ARG_ID_OWNER, ARG_ID_USER, ARG_USERS, args, FIELD_ADDED, FIELD_AGE, FIELD_ASSIGNEE, FIELD_ATTENTION_SET_FULL, FIELD_ATTENTION_SET_USERS, FIELD_ATTENTION_SET_USERS_COUNT, FIELD_AUTHOR, FIELD_CHANGE, FIELD_CHANGE_ID, FIELD_CHANGE_NUMBER, FIELD_CHERRY_PICK_OF_CHANGE, FIELD_CHERRY_PICK_OF_PATCHSET, FIELD_CHERRYPICK, FIELD_COMMENT, FIELD_COMMENTBY, FIELD_COMMIT, FIELD_COMMITTER, FIELD_CONFLICTS, FIELD_CUSTOM_KEYED_VALUES, FIELD_DELETED, FIELD_DELTA, FIELD_DESTINATION, FIELD_DIRECTORY, FIELD_DRAFTBY, FIELD_EDITBY, FIELD_EXACTAUTHOR, FIELD_EXACTCOMMIT, FIELD_EXACTCOMMITTER, FIELD_EXTENSION, FIELD_FILE, FIELD_FILEPART, FIELD_FOOTER, FIELD_FOOTER_NAME, FIELD_GROUP, FIELD_HASHTAG, FIELD_IS_SUBMITTABLE, FIELD_LABEL, FIELD_LIMIT, FIELD_MERGE, FIELD_MERGEABLE, FIELD_MERGED_ON, FIELD_MESSAGE, FIELD_MESSAGE_EXACT, FIELD_ONLY_EXTENSIONS, FIELD_OWNER, FIELD_OWNERIN, FIELD_PARENTOF, FIELD_PARENTPROJECT, FIELD_PENDING_REVIEWER, FIELD_PENDING_REVIEWER_BY_EMAIL, FIELD_PREFIX_SUBJECT, FIELD_PRIVATE, FIELD_PROJECT, FIELD_PROJECTS, FIELD_PURE_REVERT, FIELD_REF, FIELD_REVERTOF, FIELD_REVIEWEDBY, FIELD_REVIEWERIN, FIELD_STAR, FIELD_STARBY, FIELD_STARTED, FIELD_STATUS, FIELD_SUBJECT, FIELD_SUBMISSIONID, FIELD_TR, FIELD_UNRESOLVED_COMMENT_COUNT, FIELD_UPLOADER, FIELD_UPLOADERIN, FIELD_VISIBLETO, FIELD_WATCHEDBY, FIELD_WIP, hasOperandAliases, LABEL_SPLITTER, NON_CONTRIBUTOR_ACCOUNT_ID, NON_EXISTING_ACCOUNT_ID, NON_UPLOADER_ACCOUNT_ID, OPERATOR_AFTER, OPERATOR_BEFORE, OPERATOR_MERGED_AFTER, OPERATOR_MERGED_BEFORE, OWNER_ACCOUNT_IDFields inherited from class com.google.gerrit.index.query.QueryBuilder
builderDef, opAliases -
Method Summary
Modifier and TypeMethodDescriptionauthoremail(String who) protected voidcheckFieldAvailable(SchemaFieldDefs.SchemaField<ChangeData, ?> field, String operator) committerEmail(String who) distinctvoters(String value) A SR operator that can match with file path and content pattern.uploaderEmail(String who) protected voidvalidateLabelArgs(Set<Account.Id> accountIds) Methods inherited from class com.google.gerrit.server.query.change.ChangeQueryBuilder
a, added, after, age, asUser, attention, author, before, branch, bug, cc, change, cherryPickOf, comment, commentby, commit, committer, conflicts, d, defaultField, deleted, delta, description, destination, dir, directory, ext, extension, f, footer, from, getArgs, getDestinationList, getQueryList, hasfooter, hashtag, inhashtag, intopic, isVisible, limit, loadDestinationList, loadQueryList, m, mergedAfter, mergedBefore, message, o, onlyextensions, onlyexts, owner, ownerin, p, parentof, parentproject, parentrepo, parentrepository, path, prefixhashtag, prefixsubject, prefixtopic, project, projects, query, r, ref, repo, repos, repositories, repository, revertof, reviewedby, reviewer, reviewerByState, reviewerin, rule, since, size, status, statusOpen, subject, submissionId, topic, tr, unresolved, until, uploader, uploaderin, visibleto, visibletoMethods inherited from class com.google.gerrit.index.query.QueryBuilder
error, error, find, find, parse, parse, setOperatorAliases
-
Field Details
-
SUBMODULE_UPDATE_HAS_ARG
- See Also:
-
-
Method Details
-
checkFieldAvailable
protected void checkFieldAvailable(SchemaFieldDefs.SchemaField<ChangeData, ?> field, String operator) - Overrides:
checkFieldAvailablein classChangeQueryBuilder
-
is
- Overrides:
isin classChangeQueryBuilder- Throws:
QueryParseException
-
has
- Overrides:
hasin classChangeQueryBuilder- Throws:
QueryParseException
-
authoremail
- Throws:
QueryParseException
-
committerEmail
- Throws:
QueryParseException
-
uploaderEmail
- Throws:
QueryParseException
-
distinctvoters
- Throws:
QueryParseException
-
label
public Predicate<ChangeData> label(String value) throws QueryParseException, IOException, org.eclipse.jgit.errors.ConfigInvalidException - Overrides:
labelin classChangeQueryBuilder- Throws:
QueryParseExceptionIOExceptionorg.eclipse.jgit.errors.ConfigInvalidException
-
file
A SR operator that can match with file path and content pattern. The value should be of the form:file:"'$filePattern',withDiffContaining='$contentPattern'"
The operator matches with changes that have their latest PS vs. base diff containing a file path matching the
filePatternwith an edit (added, deleted, modified) matching thecontentPattern.filePatternandcontentPatterncan start with "^" to use regular expression matching.If the specified value does not match this form, we fall back to the operator's implementation in
ChangeQueryBuilder.- Overrides:
filein classChangeQueryBuilder- Parameters:
value- the value of thefilequery operator- Throws:
QueryParseException- thrown if parsing the value fails (may be thrown by subclasses)
-
validateLabelArgs
- Overrides:
validateLabelArgsin classChangeQueryBuilder- Throws:
QueryParseException
-