Package com.google.gerrit.server.index
Class IndexUtils
java.lang.Object
com.google.gerrit.server.index.IndexUtils
Set of index-related utility methods.
-
Method Summary
Modifier and TypeMethodDescriptionaccountFields
(QueryOptions opts, boolean useLegacyNumericFields) Returns a sanitized set of fields for account index queries by removing fields that the current index version doesn't support and accounting for numeric vs.accountFields
(Set<String> fields, boolean useLegacyNumericFields) Returns a sanitized set of fields for account index queries by removing fields that the current index version doesn't support and accounting for numeric vs.changeFields
(QueryOptions opts) Returns a sanitized set of fields for change index queries by removing fields that the current index version doesn't support.static String
describe
(CurrentUser user) Returns a index-friendly representation of aCurrentUser
to be used in queries.groupFields
(QueryOptions opts) Returns a sanitized set of fields for group index queries by removing fields that the index doesn't support and accounting for numeric vs.projectFields
(QueryOptions opts) Returns a sanitized set of fields for project index queries by removing fields that the index doesn't support.static void
Mark an index version as ready to serve queries.
-
Method Details
-
setReady
Mark an index version as ready to serve queries. -
accountFields
Returns a sanitized set of fields for account index queries by removing fields that the current index version doesn't support and accounting for numeric vs. string primary keys. The primary key situation is temporary and should be removed after the migration is done. -
accountFields
Returns a sanitized set of fields for account index queries by removing fields that the current index version doesn't support and accounting for numeric vs. string primary keys. The primary key situation is temporary and should be removed after the migration is done. -
changeFields
Returns a sanitized set of fields for change index queries by removing fields that the current index version doesn't support. -
groupFields
Returns a sanitized set of fields for group index queries by removing fields that the index doesn't support and accounting for numeric vs. string primary keys. The primary key situation is temporary and should be removed after the migration is done. -
describe
Returns a index-friendly representation of aCurrentUser
to be used in queries. -
projectFields
Returns a sanitized set of fields for project index queries by removing fields that the index doesn't support.
-