Class LookupDef.Builder
- All Implemented Interfaces:
LookupDef._FinalStage,LookupDef.FieldNameStage
- Enclosing class:
LookupDef
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) allowOverflow(Boolean allowOverflow) Each schema has a fixed budget of fast exact-match lookup indexes.allowOverflow(Optional<Boolean> allowOverflow) Each schema has a fixed budget of fast exact-match lookup indexes.build()Name of the payload field to index.rangeEnabled(Boolean rangeEnabled) If true, this field also supports ordered range and prefix lookups (from/to/prefix) in addition to exact-match lookups.rangeEnabled(Optional<Boolean> rangeEnabled) If true, this field also supports ordered range and prefix lookups (from/to/prefix) in addition to exact-match lookups.For an exact-match lookup, the index sort key:createdAt(the default),lastUpdated, or a declared field on this schema.For an exact-match lookup, the index sort key:createdAt(the default),lastUpdated, or a declared field on this schema.If true, enforces that this field's value is unique within your account.If true, enforces that this field's value is unique within your account.
-
Method Details
-
from
- Specified by:
fromin interfaceLookupDef.FieldNameStage
-
fieldName
Name of the payload field to index.
Name of the payload field to index.
- Specified by:
fieldNamein interfaceLookupDef.FieldNameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
allowOverflow
Each schema has a fixed budget of fast exact-match lookup indexes. An exact-match lookup beyond that budget is rejected unless you set this flag, which opts the field into a higher-cost secondary index (more storage and transactional writes). Range-enabled lookups do not count against the budget. This flag has no effect on a field that fits within the budget.
- Specified by:
allowOverflowin interfaceLookupDef._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
allowOverflow
Each schema has a fixed budget of fast exact-match lookup indexes. An exact-match lookup beyond that budget is rejected unless you set this flag, which opts the field into a higher-cost secondary index (more storage and transactional writes). Range-enabled lookups do not count against the budget. This flag has no effect on a field that fits within the budget.
- Specified by:
allowOverflowin interfaceLookupDef._FinalStage
-
sortBy
For an exact-match lookup, the index sort key:
createdAt(the default),lastUpdated, or a declared field on this schema. This setting is locked once the field is created.- Specified by:
sortByin interfaceLookupDef._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
sortBy
For an exact-match lookup, the index sort key:
createdAt(the default),lastUpdated, or a declared field on this schema. This setting is locked once the field is created.- Specified by:
sortByin interfaceLookupDef._FinalStage
-
rangeEnabled
If true, this field also supports ordered range and prefix lookups (
from/to/prefix) in addition to exact-match lookups. Range-enabled fields are billed at the range-index rate. Cannot be set on a sensitive field, because a blind index is not orderable. This setting is locked once the field is created.- Specified by:
rangeEnabledin interfaceLookupDef._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
rangeEnabled
If true, this field also supports ordered range and prefix lookups (
from/to/prefix) in addition to exact-match lookups. Range-enabled fields are billed at the range-index rate. Cannot be set on a sensitive field, because a blind index is not orderable. This setting is locked once the field is created.- Specified by:
rangeEnabledin interfaceLookupDef._FinalStage
-
unique
If true, enforces that this field's value is unique within your account.
- Specified by:
uniquein interfaceLookupDef._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
unique
If true, enforces that this field's value is unique within your account.
- Specified by:
uniquein interfaceLookupDef._FinalStage
-
build
- Specified by:
buildin interfaceLookupDef._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceLookupDef._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceLookupDef._FinalStage
-