Annotation Interface Field


Define a field to be used in an index;
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
    int
     
  • Element Details

    • value

      String value
      Returns:
      Field name to index
    • type

      IndexType type
      Returns:
      "Direction" of the indexing. Defaults to IndexType.ASC.
      See Also:
      Default:
      ASC
    • weight

      int weight
      Returns:
      The weight to use when creating a text index. This value only makes sense when direction is IndexType.TEXT
      Default:
      -1