Annotation Interface MDPrefixedIndex


@Repeatable(MDPrefixedIndexes.class) @Retention(RUNTIME) @Target(TYPE) public @interface MDPrefixedIndex
Annotation to define given fields to be indexed using ArangoDB's Multi-Dimensional Prefixed index.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    A list of attribute paths
    Attribute names used as search prefix
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    com.arangodb.model.MDIFieldValueTypes
    must be MDIFieldValueTypes.DOUBLE, currently only doubles are supported as values
    boolean
    If true, then create a sparse index
    boolean
    If true, then create a unique index
  • Element Details

    • fields

      String[] fields
      A list of attribute paths
    • prefixFields

      String[] prefixFields
      Attribute names used as search prefix
    • unique

      boolean unique
      If true, then create a unique index
      Default:
      false
    • fieldValueTypes

      com.arangodb.model.MDIFieldValueTypes fieldValueTypes
      must be MDIFieldValueTypes.DOUBLE, currently only doubles are supported as values
      Default:
      DOUBLE
    • sparse

      boolean sparse
      If true, then create a sparse index
      Default:
      false