Class AccountField
- java.lang.Object
-
- com.google.gerrit.server.index.account.AccountField
-
public class AccountField extends Object
Secondary index schemas for accounts.
-
-
Field Summary
Fields Modifier and Type Field Description static FieldDef<AccountState,String>
ACTIVE
static FieldDef<AccountState,Iterable<String>>
EMAIL
All emails (preferred email + secondary emails).static FieldDef<AccountState,Iterable<String>>
EXTERNAL_ID
External IDs.static FieldDef<AccountState,Iterable<byte[]>>
EXTERNAL_ID_STATE
All note values of all external IDs that were used in the course of indexing this document.static FieldDef<AccountState,String>
FULL_NAME
static FieldDef<AccountState,Integer>
ID
static FieldDef<AccountState,String>
ID_STR
static FieldDef<AccountState,Iterable<String>>
NAME_PART
Fuzzy prefix match on name and email parts.static FieldDef<AccountState,Iterable<String>>
NAME_PART_NO_SECONDARY_EMAIL
Fuzzy prefix match on name and preferred email parts.static FieldDef<AccountState,String>
PREFERRED_EMAIL
static FieldDef<AccountState,String>
PREFERRED_EMAIL_EXACT
static FieldDef<AccountState,Iterable<byte[]>>
REF_STATE
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
).static FieldDef<AccountState,Timestamp>
REGISTERED
static FieldDef<AccountState,String>
USERNAME
static FieldDef<AccountState,Iterable<String>>
WATCHED_PROJECT
-
-
-
Field Detail
-
ID
public static final FieldDef<AccountState,Integer> ID
-
ID_STR
public static final FieldDef<AccountState,String> ID_STR
-
EXTERNAL_ID
public static final FieldDef<AccountState,Iterable<String>> EXTERNAL_ID
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).
-
NAME_PART
public static final FieldDef<AccountState,Iterable<String>> NAME_PART
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
if the current user can't see secondary emails.
-
NAME_PART_NO_SECONDARY_EMAIL
public static final FieldDef<AccountState,Iterable<String>> NAME_PART_NO_SECONDARY_EMAIL
Fuzzy prefix match on name and preferred email parts. Parts of secondary emails are not included.
-
FULL_NAME
public static final FieldDef<AccountState,String> FULL_NAME
-
ACTIVE
public static final FieldDef<AccountState,String> ACTIVE
-
EMAIL
public static final FieldDef<AccountState,Iterable<String>> EMAIL
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
if the current user can't see secondary emails.
-
PREFERRED_EMAIL
public static final FieldDef<AccountState,String> PREFERRED_EMAIL
-
PREFERRED_EMAIL_EXACT
public static final FieldDef<AccountState,String> PREFERRED_EMAIL_EXACT
-
REGISTERED
public static final FieldDef<AccountState,Timestamp> REGISTERED
-
USERNAME
public static final FieldDef<AccountState,String> USERNAME
-
WATCHED_PROJECT
public static final FieldDef<AccountState,Iterable<String>> WATCHED_PROJECT
-
REF_STATE
public static final FieldDef<AccountState,Iterable<byte[]>> REF_STATE
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
).Emitted as UTF-8 encoded strings of the form
project:ref/name:[hex sha]
.
-
EXTERNAL_ID_STATE
public static final FieldDef<AccountState,Iterable<byte[]>> EXTERNAL_ID_STATE
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]
.
-
-