Annotation Interface GeoField


@Retention(RUNTIME) @Target({METHOD,FIELD,TYPE}) @Documented @Repeatable(GeoField.GeoFields.class) @PropertyMapping(processor=@PropertyMappingAnnotationProcessorRef(type=GeoFieldProcessor.class,retrieval=CONSTRUCTOR)) public @interface GeoField
Defines a LatLng binding from a type or a property to a LatLng field representing a point on earth.

@GeoField can be used on a property of type LatLng:

public class User {
    @GeoField
    public LatLng getHome() { ... }
}
Since:
15.1
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
     
  • Optional Element Summary

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

    • name

      String name
      Returns:
      The name of the index field.
      Default:
      ""
    • projectable

      boolean projectable
      Returns:
      Whether projections are enabled for this field.
      See Also:
      Default:
      false
    • sortable

      boolean sortable
      Returns:
      Whether this field should be sortable.
      See Also:
      Default:
      false