Annotation Interface PersistentIndex


@Repeatable(PersistentIndexes.class) @Retention(RUNTIME) @Target(TYPE) public @interface PersistentIndex
Annotation to define given fields to be indexed using ArangoDB's Persistent index.
Author:
Mark Vollmary
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    A list of attribute paths
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    If true, then set deduplicate to index
    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
    • unique

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

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

      boolean deduplicate
      If true, then set deduplicate to index
      Default:
      true