Interface SortDistanceNoFieldContext


@Deprecated public interface SortDistanceNoFieldContext
Deprecated.
See the deprecation note on SortContext.
Author:
Emmanuel Bernard emmanuel@hibernate.org, Yoann Rodiere
  • Method Summary

    Modifier and Type
    Method
    Description
    onField(String fieldName)
    Deprecated.
    Order elements by distance computed from the coordinates carried by the given field.
  • Method Details

    • onField

      SortDistanceFieldContext onField(String fieldName)
      Deprecated.
      Order elements by distance computed from the coordinates carried by the given field.

      The distance is computed between the value of the given field (which must be a Spatial field) and reference coordinates, to be provided in the next context.

      Parameters:
      fieldName - The name of the index field carrying the spatial coordinates.
      Returns:
      this for method chaining