Interface LookupDef._FinalStage

All Known Implementing Classes:
LookupDef.Builder
Enclosing class:
LookupDef

public static interface LookupDef._FinalStage
  • Method Details

    • build

      LookupDef build()
    • additionalProperty

      LookupDef._FinalStage additionalProperty(String key, Object value)
    • additionalProperties

      LookupDef._FinalStage additionalProperties(Map<String,Object> additionalProperties)
    • unique

      If true, enforces that this field's value is unique within your account.

    • unique

    • rangeEnabled

      LookupDef._FinalStage rangeEnabled(Optional<Boolean> 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.

    • rangeEnabled

      LookupDef._FinalStage rangeEnabled(Boolean rangeEnabled)
    • 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.

    • sortBy

      LookupDef._FinalStage sortBy(String sortBy)
    • allowOverflow

      LookupDef._FinalStage allowOverflow(Optional<Boolean> 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.

    • allowOverflow

      LookupDef._FinalStage allowOverflow(Boolean allowOverflow)