Annotation Interface MongoCompoundIndexField


@Retention(RUNTIME) @Documented public @interface MongoCompoundIndexField
Declares a field within a compound MongoDB index.
Since:
5.0.0
Author:
radovanradic
  • Element Details

    • value

      String value
      Returns:
      The property path.
    • direction

      Returns:
      The field direction.
      Default:
      ASC
    • geoType

      Returns:
      The geospatial key kind when this field should use a geospatial index key inside a compound index.
      Default:
      GEO_2DSPHERE
    • geo

      boolean geo
      Returns:
      Whether the field should use the geospatial key kind instead of the numeric direction.
      Default:
      false
    • bits

      int bits
      Returns:
      The 2d index bits setting, or -1 if unset.
      Default:
      -1
    • min

      double min
      Returns:
      The 2d index minimum value, or NaN if unset.
      Default:
      0.0/0.0
    • max

      double max
      Returns:
      The 2d index maximum value, or NaN if unset.
      Default:
      0.0/0.0