Class LatLonPointSpatialField.LatLonPointSpatialStrategy

  • Enclosing class:
    LatLonPointSpatialField

    public static class LatLonPointSpatialField.LatLonPointSpatialStrategy
    extends org.apache.lucene.spatial.SpatialStrategy
    • Field Summary

      • Fields inherited from class org.apache.lucene.spatial.SpatialStrategy

        ctx
    • Constructor Summary

      Constructors 
      Constructor Description
      LatLonPointSpatialStrategy​(org.locationtech.spatial4j.context.SpatialContext ctx, String fieldName, boolean indexed, boolean docValues)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.lucene.document.Field[] createIndexableFields​(org.locationtech.spatial4j.shape.Shape shape)  
      org.apache.lucene.search.DoubleValuesSource makeDistanceValueSource​(org.locationtech.spatial4j.shape.Point queryPoint, double multiplier)  
      org.apache.lucene.search.Query makeQuery​(org.apache.lucene.spatial.query.SpatialArgs args)  
      protected org.apache.lucene.search.Query makeQueryFromDocValues​(org.locationtech.spatial4j.shape.Shape shape)  
      protected org.apache.lucene.search.Query makeQueryFromIndex​(org.locationtech.spatial4j.shape.Shape shape)  
      • Methods inherited from class org.apache.lucene.spatial.SpatialStrategy

        getFieldName, getSpatialContext, makeDistanceValueSource, makeRecipDistanceValueSource, toString
    • Constructor Detail

      • LatLonPointSpatialStrategy

        public LatLonPointSpatialStrategy​(org.locationtech.spatial4j.context.SpatialContext ctx,
                                          String fieldName,
                                          boolean indexed,
                                          boolean docValues)
    • Method Detail

      • createIndexableFields

        public org.apache.lucene.document.Field[] createIndexableFields​(org.locationtech.spatial4j.shape.Shape shape)
        Specified by:
        createIndexableFields in class org.apache.lucene.spatial.SpatialStrategy
      • makeQuery

        public org.apache.lucene.search.Query makeQuery​(org.apache.lucene.spatial.query.SpatialArgs args)
        Specified by:
        makeQuery in class org.apache.lucene.spatial.SpatialStrategy
      • makeQueryFromIndex

        protected org.apache.lucene.search.Query makeQueryFromIndex​(org.locationtech.spatial4j.shape.Shape shape)
      • makeQueryFromDocValues

        protected org.apache.lucene.search.Query makeQueryFromDocValues​(org.locationtech.spatial4j.shape.Shape shape)
      • makeDistanceValueSource

        public org.apache.lucene.search.DoubleValuesSource makeDistanceValueSource​(org.locationtech.spatial4j.shape.Point queryPoint,
                                                                                   double multiplier)
        Specified by:
        makeDistanceValueSource in class org.apache.lucene.spatial.SpatialStrategy