Class AccountField
- java.lang.Object
-
- com.google.gerrit.server.index.account.AccountField
-
public class AccountField extends Object
Secondary index schemas for accounts.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.
-
-
Field Summary
-
-
-
Field Detail
-
ID_FIELD
public static final IndexedField<AccountState,Integer> ID_FIELD
-
ID_FIELD_SPEC
public static final IndexedField.SearchSpec ID_FIELD_SPEC
-
ID_STR_FIELD
public static final IndexedField<AccountState,String> ID_STR_FIELD
-
ID_STR_FIELD_SPEC
public static final IndexedField.SearchSpec ID_STR_FIELD_SPEC
-
EXTERNAL_ID_FIELD
public static final IndexedField<AccountState,Iterable<String>> EXTERNAL_ID_FIELD
External IDs.This field includes secondary emails. Use this field only if the current user is allowed to see secondary emails (requires the
GlobalCapability.MODIFY_ACCOUNT
capability).
-
EXTERNAL_ID_FIELD_SPEC
public static final IndexedField.SearchSpec EXTERNAL_ID_FIELD_SPEC
-
NAME_PART_FIELD
public static final IndexedField<AccountState,Iterable<String>> NAME_PART_FIELD
Fuzzy prefix match on name and email parts.This field includes parts from the secondary emails. Use this field only if the current user is allowed to see secondary emails (requires the
GlobalCapability.MODIFY_ACCOUNT
capability).Use the
NAME_PART_NO_SECONDARY_EMAIL_SPEC
if the current user can't see secondary emails.
-
NAME_PART_SPEC
public static final IndexedField.SearchSpec NAME_PART_SPEC
-
NAME_PART_NO_SECONDARY_EMAIL_FIELD
public static final IndexedField<AccountState,Iterable<String>> NAME_PART_NO_SECONDARY_EMAIL_FIELD
Fuzzy prefix match on name and preferred email parts. Parts of secondary emails are not included.
-
NAME_PART_NO_SECONDARY_EMAIL_SPEC
public static final IndexedField.SearchSpec NAME_PART_NO_SECONDARY_EMAIL_SPEC
-
FULL_NAME_FIELD
public static final IndexedField<AccountState,String> FULL_NAME_FIELD
-
FULL_NAME_SPEC
public static final IndexedField.SearchSpec FULL_NAME_SPEC
-
ACTIVE_FIELD
public static final IndexedField<AccountState,String> ACTIVE_FIELD
-
ACTIVE_FIELD_SPEC
public static final IndexedField.SearchSpec ACTIVE_FIELD_SPEC
-
EMAIL_FIELD
public static final IndexedField<AccountState,Iterable<String>> EMAIL_FIELD
All emails (preferred email + secondary emails). Use this field only if the current user is allowed to see secondary emails (requires the 'Modify Account' capability).Use the
PREFERRED_EMAIL_LOWER_CASE_SPEC
if the current user can't see secondary emails.
-
EMAIL_SPEC
public static final IndexedField.SearchSpec EMAIL_SPEC
-
PREFERRED_EMAIL_LOWER_CASE_FIELD
public static final IndexedField<AccountState,String> PREFERRED_EMAIL_LOWER_CASE_FIELD
-
PREFERRED_EMAIL_LOWER_CASE_SPEC
public static final IndexedField.SearchSpec PREFERRED_EMAIL_LOWER_CASE_SPEC
-
PREFERRED_EMAIL_EXACT_FIELD
public static final IndexedField<AccountState,String> PREFERRED_EMAIL_EXACT_FIELD
-
PREFERRED_EMAIL_EXACT_SPEC
public static final IndexedField.SearchSpec PREFERRED_EMAIL_EXACT_SPEC
-
REGISTERED_FIELD
public static final IndexedField<AccountState,Timestamp> REGISTERED_FIELD
-
REGISTERED_SPEC
public static final IndexedField.SearchSpec REGISTERED_SPEC
-
USERNAME_FIELD
public static final IndexedField<AccountState,String> USERNAME_FIELD
-
USERNAME_SPEC
public static final IndexedField.SearchSpec USERNAME_SPEC
-
WATCHED_PROJECT_FIELD
public static final IndexedField<AccountState,Iterable<String>> WATCHED_PROJECT_FIELD
-
WATCHED_PROJECT_SPEC
public static final IndexedField.SearchSpec WATCHED_PROJECT_SPEC
-
REF_STATE_FIELD
public static final IndexedField<AccountState,Iterable<byte[]>> REF_STATE_FIELD
All values of all refs that were used in the course of indexing this document, except the refs/meta/external-ids notes branch which is handled specially (seeEXTERNAL_ID_STATE_SPEC
).Emitted as UTF-8 encoded strings of the form
project:ref/name:[hex sha]
.
-
REF_STATE_SPEC
public static final IndexedField.SearchSpec REF_STATE_SPEC
-
EXTERNAL_ID_STATE_FIELD
public static final IndexedField<AccountState,Iterable<byte[]>> EXTERNAL_ID_STATE_FIELD
All note values of all external IDs that were used in the course of indexing this document.Emitted as UTF-8 encoded strings of the form
[hex sha of external ID]:[hex sha of note blob]
, or with other words[note ID]:[note data ID]
.
-
EXTERNAL_ID_STATE_SPEC
public static final IndexedField.SearchSpec EXTERNAL_ID_STATE_SPEC
-
-