Class ChangeField
Each field corresponds to both a field name supported by ChangeQueryBuilder
for
querying that field, and a method on ChangeData
used for populating the corresponding
document fields in the secondary index.
Field names are all lowercase alphanumeric plus underscore; index implementations may create unambiguous derived field names containing other characters.
Note that this class does not override Object.equals(Object)
. It relies on instances
being singletons so that the default (i.e. reference) comparison works.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
JSON type for storing SubmitRecords. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IndexedField<ChangeData,
Integer> The number of inserted lines in this change.static final IndexedField<ChangeData,
Integer>.SearchSpec static final IndexedField<ChangeData,
Iterable<com.google.gerrit.proto.Entities.PatchSetApproval>> static final IndexedField<ChangeData,
Iterable<com.google.gerrit.proto.Entities.PatchSetApproval>>.SearchSpec static final IndexedField<ChangeData,
Integer> Deprecated.static final IndexedField<ChangeData,
Integer>.SearchSpec Deprecated.static final IndexedField<ChangeData,
Iterable<byte[]>> The full attention set data including timestamp, reason and possible future fields.static final IndexedField<ChangeData,
Iterable<byte[]>>.SearchSpec static final IndexedField<ChangeData,
Iterable<Integer>>.SearchSpec static final IndexedField<ChangeData,
Integer>.SearchSpec static final IndexedField<ChangeData,
Integer> Number of changes that contain attention set.static final IndexedField<ChangeData,
Iterable<Integer>> Users included in the attention set of the change.static final IndexedField<ChangeData,
Iterable<String>> The exact email address, or any part of the author name or email address, in the current patch set.static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
com.google.gerrit.proto.Entities.Change> static final IndexedField<ChangeData,
String> Newer style Change-Id key.static final IndexedField<ChangeData,
String>.SearchSpec static final IndexedField<ChangeData,
com.google.gerrit.proto.Entities.Change>.SearchSpec static final IndexedField<ChangeData,
Integer> static final IndexedField<ChangeData,
Integer>.SearchSpec static final IndexedField<ChangeData,
String> Whether the change is a cherry pick of another change.static final IndexedField<ChangeData,
Integer>.SearchSpec static final IndexedField<ChangeData,
Integer> References the source change number that this change was cherry-picked from.static final IndexedField<ChangeData,
Integer>.SearchSpec static final IndexedField<ChangeData,
Integer> References the source change patch-set that this change was cherry-picked from.static final IndexedField<ChangeData,
String>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>> Summary or inline comment.static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
Iterable<Integer>> Users who have commented on this change.static final IndexedField<ChangeData,
Iterable<Integer>>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>> Commit ID of any patch set on the change, using prefix match.static final IndexedField<ChangeData,
String>.SearchSpec static final IndexedField<ChangeData,
String>.SearchSpec static final IndexedField<ChangeData,
String> Commit message of the current patch set, used to exactly match the commit messagestatic final IndexedField<ChangeData,
String> Commit message of the current patch set.static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>> The exact email address, or any part of the committer name or email address, in the current patch set.static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>> static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
Integer> The number of deleted lines in this change.static final IndexedField<ChangeData,
Integer>.SearchSpec static final IndexedField<ChangeData,
Integer> The total number of modified lines in this change.static final IndexedField<ChangeData,
Integer>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>> Folders that are touched by the current patch set.static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
Iterable<Integer>> Users who have draft comments on this change.static final IndexedField<ChangeData,
Iterable<Integer>>.SearchSpec static final IndexedField<ChangeData,
Iterable<Integer>> Users who have edits on this change.static final IndexedField<ChangeData,
Iterable<Integer>>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>> The exact name, email address and NameEmail of the author.static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec Commit ID of any patch set on the change, using exact match.static final IndexedField<ChangeData,
Iterable<String>> The exact name, email address, and NameEmail of the committer.static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
String>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>> File extensions of each file modified in the current patch set.static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>> Components of each file path modified in the current patch set.static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>> Footers from the commit message of the current patch set.static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>> Footers from the commit message of the current patch set.static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec Hashtags as fulltext field for in-string search.static final IndexedField<ChangeData,
String>.SearchSpec Topic, a short annotation on the branch.static final IndexedField<ChangeData,
Iterable<String>> Opaque group identifiers for this change's patch sets.static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
Iterable<byte[]>> Hashtags with original case.static final IndexedField<ChangeData,
Iterable<byte[]>>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>> Hashtags tied to a changestatic final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
String> static final IndexedField<ChangeData,
String>.SearchSpec static final IndexedField<ChangeData,
String> Determines if a change is submittable based onSubmitRequirement
s.static final IndexedField<ChangeData,
String>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>> List of labels on the current patch set including change owner votes.static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final int
To avoid the non-google dependency on org.apache.lucene.index.IndexWriter.MAX_TERM_LENGTH it is redefined here.static final IndexedField<ChangeData,
String> Whether the change is a merge commit.static final IndexedField<ChangeData,
String>.SearchSpec static final IndexedField<ChangeData,
String> Whether the change is mergeable.static final IndexedField<ChangeData,
String>.SearchSpec static final IndexedField<ChangeData,
Timestamp> When this change was merged, time since January 1, 1970.static final IndexedField<ChangeData,
Timestamp>.SearchSpec static final int
static final Integer
static final IndexedField<ChangeData,
String> Legacy change ID.static final IndexedField<ChangeData,
String>.SearchSpec static final IndexedField<ChangeData,
String> File extensions of each file modified in the current patch set as a sorted list.static final IndexedField<ChangeData,
String>.SearchSpec static final IndexedField<ChangeData,
Integer> Owner/creator of the change.static final IndexedField<ChangeData,
Integer>.SearchSpec static final IndexedField<ChangeData,
Iterable<com.google.gerrit.proto.Entities.PatchSet>> static final IndexedField<ChangeData,
Iterable<com.google.gerrit.proto.Entities.PatchSet>>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>> List of full file paths modified in the current patch set.static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>> Reviewer(s) by email modified during change's current WIP phase.static final IndexedField<ChangeData,
Iterable<String>> Reviewer(s) modified during change's current WIP phase.static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec Hashtags as prefix field for in-string search.static final IndexedField<ChangeData,
String>.SearchSpec static final IndexedField<ChangeData,
String>.SearchSpec Topic, a short annotation on the branch.static final IndexedField<ChangeData,
String> Determines if this change is private.static final IndexedField<ChangeData,
String>.SearchSpec static final IndexedField<ChangeData,
String> Project containing the change.static final IndexedField<ChangeData,
String>.SearchSpec static final IndexedField<ChangeData,
String>.SearchSpec Project containing the change, as a prefix field.static final IndexedField<ChangeData,
String> Reference (aka branch) the change will submit onto.static final IndexedField<ChangeData,
String>.SearchSpec static final IndexedField<ChangeData,
Iterable<byte[]>> All values of all refs that were used in the course of indexing this document.static final IndexedField<ChangeData,
Iterable<byte[]>> All ref wildcard patterns that were used in the course of indexing this document.static final IndexedField<ChangeData,
Iterable<byte[]>>.SearchSpec static final IndexedField<ChangeData,
Iterable<byte[]>>.SearchSpec static final IndexedField<ChangeData,
Integer>.SearchSpec static final IndexedField<ChangeData,
Integer> References a change that this change reverts.static final IndexedField<ChangeData,
Iterable<Integer>> Users the change was reviewed by since the last author update.static final IndexedField<ChangeData,
Iterable<Integer>>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>> Reviewer(s) associated with the change that do not have a gerrit account.static final IndexedField<ChangeData,
Iterable<String>> Reviewer(s) associated with the change.static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>> Star labels on this change in the format: <account-id>static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
Iterable<Integer>> Users that have starred the change with any label.static final IndexedField<ChangeData,
Iterable<Integer>>.SearchSpec static final IndexedField<ChangeData,
String> Determines if this change has started review.static final IndexedField<ChangeData,
String>.SearchSpec static final IndexedField<ChangeData,
String> Change status string, in the same format asstatus:
.static final IndexedField<ChangeData,
String>.SearchSpec static final IndexedField<ChangeData,
Iterable<byte[]>> static final IndexedField<ChangeData,
Iterable<byte[]>>.SearchSpec static final IndexedField<ChangeData,
Iterable<byte[]>> static final IndexedField<ChangeData,
Iterable<byte[]>>.SearchSpec static final IndexedField<ChangeData,
Iterable<com.google.gerrit.server.cache.proto.Cache.SubmitRequirementResultProto>> static final IndexedField<ChangeData,
Iterable<com.google.gerrit.server.cache.proto.Cache.SubmitRequirementResultProto>>.SearchSpec static final IndexedField<ChangeData,
String> Subject of the current patch set (aka first line of the commit message).static final IndexedField<ChangeData,
String>.SearchSpec static final IndexedField<ChangeData,
String> SubmissionId
assigned by MergeOp.static final IndexedField<ChangeData,
String>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>> static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final SubmitRuleOptions
static final SubmitRuleOptions
static final IndexedField<ChangeData,
Iterable<String>> All submit rules results in the form of "$ruleName,$status".static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
String> Topic, a short annotation on the branch.static final IndexedField<ChangeData,
Integer> Total number of published inline comments of the change, including robot comments.static final IndexedField<ChangeData,
Integer>.SearchSpec static final IndexedField<ChangeData,
Iterable<String>> Tracking id extracted from a footer.static final IndexedField<ChangeData,
Iterable<String>>.SearchSpec static final IndexedField<ChangeData,
Integer> Number of unresolved comment threads of the change, including robot comments.static final IndexedField<ChangeData,
Integer>.SearchSpec static final IndexedField<ChangeData,
Timestamp> Last update time since January 1, 1970.static final IndexedField<ChangeData,
Timestamp>.SearchSpec static final IndexedField<ChangeData,
Integer> Uploader of the latest patch set.static final IndexedField<ChangeData,
Integer>.SearchSpec static final IndexedField<ChangeData,
String> Determines if this change is work in progress.static final IndexedField<ChangeData,
String>.SearchSpec -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatLabel
(String label, int value) static String
formatLabel
(String label, int value, Account.Id accountId) static String
formatLabel
(String label, int value, Account.Id accountId, Integer count) static String
formatLabel
(String label, int value, Integer count) static String
formatLabel
(String label, String value, Account.Id accountId, Integer count) static String
formatLabel
(String label, String value, Integer count) static String
static com.google.common.collect.ImmutableSet<String>
static com.google.common.collect.ImmutableSet<String>
getFooters
(ChangeData cd) static String
getReviewerByEmailFieldValue
(ReviewerStateInternal state, Address adr) static String
getReviewerFieldValue
(ReviewerStateInternal state, Account.Id id) static void
parseAttentionSet
(Collection<String> storedAttentionSetEntriesJson, ChangeData changeData) Deserializes the specified attention set entries from JSON and stores them in the specified change.static ReviewerByEmailSet
parseReviewerByEmailFieldValues
(Change.Id changeId, Iterable<String> values) static ReviewerSet
parseReviewerFieldValues
(Change.Id changeId, Iterable<String> values) static void
parseSubmitRecords
(Collection<String> values, SubmitRuleOptions opts, ChangeData out)
-
Field Details
-
NO_ASSIGNEE
public static final int NO_ASSIGNEE- See Also:
-
MAX_TERM_LENGTH
public static final int MAX_TERM_LENGTHTo avoid the non-google dependency on org.apache.lucene.index.IndexWriter.MAX_TERM_LENGTH it is redefined here.- See Also:
-
NUMERIC_ID_STR_FIELD
Legacy change ID. -
NUMERIC_ID_STR_SPEC
-
CHANGENUM_FIELD
-
CHANGENUM_SPEC
-
CHANGE_ID_FIELD
Newer style Change-Id key. -
CHANGE_ID_SPEC
-
STATUS_FIELD
Change status string, in the same format asstatus:
. -
STATUS_SPEC
-
PROJECT_FIELD
Project containing the change. -
PROJECT_SPEC
-
PROJECTS_SPEC
Project containing the change, as a prefix field. -
REF_FIELD
Reference (aka branch) the change will submit onto. -
REF_SPEC
-
TOPIC_FIELD
Topic, a short annotation on the branch. -
EXACT_TOPIC
-
FUZZY_TOPIC
Topic, a short annotation on the branch. -
PREFIX_TOPIC
Topic, a short annotation on the branch. -
SUBMISSIONID_FIELD
SubmissionId
assigned by MergeOp. -
SUBMISSIONID_SPEC
-
UPDATED_FIELD
Last update time since January 1, 1970. -
UPDATED_SPEC
-
MERGED_ON_FIELD
When this change was merged, time since January 1, 1970. -
MERGED_ON_SPEC
-
PATH_FIELD
List of full file paths modified in the current patch set. -
PATH_SPEC
-
HASHTAG_FIELD
Hashtags tied to a change -
HASHTAG_SPEC
-
FUZZY_HASHTAG
Hashtags as fulltext field for in-string search. -
PREFIX_HASHTAG
Hashtags as prefix field for in-string search. -
HASHTAG_CASE_AWARE_FIELD
Hashtags with original case. -
HASHTAG_CASE_AWARE_SPEC
-
FILE_PART_FIELD
Components of each file path modified in the current patch set. -
FILE_PART_SPEC
-
EXTENSION_FIELD
File extensions of each file modified in the current patch set. -
EXTENSION_SPEC
-
ONLY_EXTENSIONS_FIELD
File extensions of each file modified in the current patch set as a sorted list. The purpose of this field is to allow matching changes that only touch files with certain file extensions. -
ONLY_EXTENSIONS_SPEC
-
FOOTER_FIELD
Footers from the commit message of the current patch set. -
FOOTER_SPEC
-
FOOTER_NAME_FIELD
Footers from the commit message of the current patch set. -
FOOTER_NAME
-
DIRECTORY_FIELD
Folders that are touched by the current patch set. -
DIRECTORY_SPEC
-
OWNER_FIELD
Owner/creator of the change. -
OWNER_SPEC
-
UPLOADER_FIELD
Uploader of the latest patch set. -
UPLOADER_SPEC
-
CHERRY_PICK_OF_CHANGE_FIELD
References the source change number that this change was cherry-picked from. -
CHERRY_PICK_OF_CHANGE
-
CHERRY_PICK_OF_PATCHSET_FIELD
References the source change patch-set that this change was cherry-picked from. -
CHERRY_PICK_OF_PATCHSET
-
ATTENTION_SET_USERS_FIELD
Users included in the attention set of the change. This omits timestamp, reason and possible future fields.- See Also:
-
ATTENTION_SET_USERS
-
ATTENTION_SET_USERS_COUNT_FIELD
Number of changes that contain attention set. -
ATTENTION_SET_USERS_COUNT
-
ATTENTION_SET_FULL_FIELD
The full attention set data including timestamp, reason and possible future fields.- See Also:
-
ATTENTION_SET_FULL_SPEC
-
ASSIGNEE_FIELD
Deprecated.The user assigned to the change. -
ASSIGNEE_SPEC
Deprecated. -
REVIEWER_FIELD
Reviewer(s) associated with the change. -
REVIEWER_SPEC
-
REVIEWER_BY_EMAIL_FIELD
Reviewer(s) associated with the change that do not have a gerrit account. -
REVIEWER_BY_EMAIL
-
PENDING_REVIEWER_FIELD
Reviewer(s) modified during change's current WIP phase. -
PENDING_REVIEWER_SPEC
-
PENDING_REVIEWER_BY_EMAIL_FIELD
Reviewer(s) by email modified during change's current WIP phase. -
PENDING_REVIEWER_BY_EMAIL
-
REVERT_OF_FIELD
References a change that this change reverts. -
REVERT_OF
-
IS_PURE_REVERT_FIELD
-
IS_PURE_REVERT_SPEC
-
IS_SUBMITTABLE_FIELD
Determines if a change is submittable based onSubmitRequirement
s. -
IS_SUBMITTABLE_SPEC
-
COMMIT_FIELD
Commit ID of any patch set on the change, using prefix match. -
COMMIT_SPEC
-
EXACT_COMMIT_SPEC
Commit ID of any patch set on the change, using exact match. -
TR_FIELD
Tracking id extracted from a footer. -
TR_SPEC
-
LABEL_FIELD
List of labels on the current patch set including change owner votes. -
LABEL_SPEC
-
AUTHOR_PARTS_FIELD
The exact email address, or any part of the author name or email address, in the current patch set. -
AUTHOR_PARTS_SPEC
-
EXACT_AUTHOR_FIELD
The exact name, email address and NameEmail of the author. -
EXACT_AUTHOR_SPEC
-
COMMITTER_PARTS_FIELD
The exact email address, or any part of the committer name or email address, in the current patch set. -
COMMITTER_PARTS_SPEC
-
EXACT_COMMITTER_FIELD
The exact name, email address, and NameEmail of the committer. -
EXACT_COMMITTER_SPEC
-
CHANGE_FIELD
-
CHANGE_SPEC
public static final IndexedField<ChangeData,com.google.gerrit.proto.Entities.Change>.SearchSpec CHANGE_SPEC -
APPROVAL_FIELD
public static final IndexedField<ChangeData,Iterable<com.google.gerrit.proto.Entities.PatchSetApproval>> APPROVAL_FIELD -
APPROVAL_SPEC
public static final IndexedField<ChangeData,Iterable<com.google.gerrit.proto.Entities.PatchSetApproval>>.SearchSpec APPROVAL_SPEC -
COMMIT_MESSAGE_FIELD
Commit message of the current patch set. -
COMMIT_MESSAGE
-
COMMIT_MESSAGE_EXACT_FIELD
Commit message of the current patch set, used to exactly match the commit message -
COMMIT_MESSAGE_EXACT
-
SUBJECT_FIELD
Subject of the current patch set (aka first line of the commit message). -
SUBJECT_SPEC
-
PREFIX_SUBJECT_SPEC
-
COMMENT_FIELD
Summary or inline comment. -
COMMENT_SPEC
-
UNRESOLVED_COMMENT_COUNT_FIELD
Number of unresolved comment threads of the change, including robot comments. -
UNRESOLVED_COMMENT_COUNT_SPEC
-
TOTAL_COMMENT_COUNT_FIELD
Total number of published inline comments of the change, including robot comments. -
TOTAL_COMMENT_COUNT_SPEC
-
MERGEABLE_FIELD
Whether the change is mergeable. -
MERGEABLE_SPEC
-
MERGE_FIELD
Whether the change is a merge commit. -
MERGE_SPEC
-
CHERRY_PICK_FIELD
Whether the change is a cherry pick of another change. -
CHERRY_PICK_SPEC
-
ADDED_LINES_FIELD
The number of inserted lines in this change. -
ADDED_LINES_SPEC
-
DELETED_LINES_FIELD
The number of deleted lines in this change. -
DELETED_LINES_SPEC
-
DELTA_LINES_FIELD
The total number of modified lines in this change. -
DELTA_LINES_SPEC
-
PRIVATE_FIELD
Determines if this change is private. -
PRIVATE_SPEC
-
WIP_FIELD
Determines if this change is work in progress. -
WIP_SPEC
-
STARTED_FIELD
Determines if this change has started review. -
STARTED_SPEC
-
COMMENTBY_FIELD
Users who have commented on this change. -
COMMENTBY_SPEC
-
STAR_FIELD
Star labels on this change in the format: <account-id> -
STAR_SPEC
-
STARBY_FIELD
Users that have starred the change with any label. -
STARBY_SPEC
-
GROUP_FIELD
Opaque group identifiers for this change's patch sets. -
GROUP_SPEC
-
PATCH_SET_FIELD
public static final IndexedField<ChangeData,Iterable<com.google.gerrit.proto.Entities.PatchSet>> PATCH_SET_FIELD -
PATCH_SET_SPEC
public static final IndexedField<ChangeData,Iterable<com.google.gerrit.proto.Entities.PatchSet>>.SearchSpec PATCH_SET_SPEC -
EDITBY_FIELD
Users who have edits on this change. -
EDITBY_SPEC
-
DRAFTBY_FIELD
Users who have draft comments on this change. -
DRAFTBY_SPEC
-
NOT_REVIEWED
-
REVIEWEDBY_FIELD
Users the change was reviewed by since the last author update.A change is considered reviewed by a user if the latest update by that user is newer than the latest update by the change author. Both top-level change messages and new patch sets are considered to be updates.
If the latest update is by the change owner, then the special value
NOT_REVIEWED
is emitted. -
REVIEWEDBY_SPEC
-
SUBMIT_RULE_OPTIONS_LENIENT
-
SUBMIT_RULE_OPTIONS_STRICT
-
SUBMIT_RULE_RESULT_FIELD
All submit rules results in the form of "$ruleName,$status". -
SUBMIT_RULE_RESULT_SPEC
-
SUBMIT_RECORD_FIELD
-
SUBMIT_RECORD_SPEC
-
STORED_SUBMIT_RECORD_STRICT_FIELD
-
STORED_SUBMIT_RECORD_STRICT_SPEC
public static final IndexedField<ChangeData,Iterable<byte[]>>.SearchSpec STORED_SUBMIT_RECORD_STRICT_SPEC -
STORED_SUBMIT_RECORD_LENIENT_FIELD
-
STORED_SUBMIT_RECORD_LENIENT_SPEC
public static final IndexedField<ChangeData,Iterable<byte[]>>.SearchSpec STORED_SUBMIT_RECORD_LENIENT_SPEC -
STORED_SUBMIT_REQUIREMENTS_FIELD
public static final IndexedField<ChangeData,Iterable<com.google.gerrit.server.cache.proto.Cache.SubmitRequirementResultProto>> STORED_SUBMIT_REQUIREMENTS_FIELD -
STORED_SUBMIT_REQUIREMENTS_SPEC
public static final IndexedField<ChangeData,Iterable<com.google.gerrit.server.cache.proto.Cache.SubmitRequirementResultProto>>.SearchSpec STORED_SUBMIT_REQUIREMENTS_SPEC -
REF_STATE_FIELD
All values of all refs that were used in the course of indexing this document.Emitted as UTF-8 encoded strings of the form
project:ref/name:[hex sha]
. -
REF_STATE_SPEC
-
REF_STATE_PATTERN_FIELD
All ref wildcard patterns that were used in the course of indexing this document.Emitted as UTF-8 encoded strings of the form
project:ref/name/*
. SeeStalenessChecker.RefStatePattern
for the pattern format. -
REF_STATE_PATTERN_SPEC
-
CUSTOM_KEYED_VALUES_FIELD
-
CUSTOM_KEYED_VALUES_SPEC
-
-
Constructor Details
-
ChangeField
public ChangeField()
-
-
Method Details
-
getFileParts
-
getExtensions
-
getAllExtensionsAsList
-
getDirectories
-
getReviewerFieldValue
-
getReviewerByEmailFieldValue
-
parseReviewerFieldValues
-
parseReviewerByEmailFieldValues
public static ReviewerByEmailSet parseReviewerByEmailFieldValues(Change.Id changeId, Iterable<String> values) -
parseAttentionSet
public static void parseAttentionSet(Collection<String> storedAttentionSetEntriesJson, ChangeData changeData) Deserializes the specified attention set entries from JSON and stores them in the specified change. -
getAuthorParts
-
getAuthorNameAndEmail
-
getCommitterParts
-
getCommitterNameAndEmail
public static com.google.common.collect.ImmutableSet<String> getCommitterNameAndEmail(ChangeData cd) -
formatLabel
-
formatLabel
-
formatLabel
-
formatLabel
-
formatLabel
-
formatLabel
-
parseSubmitRecords
public static void parseSubmitRecords(Collection<String> values, SubmitRuleOptions opts, ChangeData out) -
formatSubmitRecordValues
-