Class GeoDistanceFunction
java.lang.Object
org.springframework.data.solr.core.query.AbstractFunction
org.springframework.data.solr.core.query.GeoDistanceFunction
- All Implemented Interfaces:
Function
Implementation of
geodist(sfield, latitude, longitude)- Since:
- 1.1
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.springframework.data.solr.core.query.Function
Function.Context -
Method Summary
Modifier and TypeMethodDescriptionstatic GeoDistanceFunction.BuilderdistanceFrom(String fieldName) Creates newGeoDistanceFunction.Builderstatic GeoDistanceFunction.BuilderdistanceFrom(Field field) Creates newGeoDistanceFunction.Builderstatic GeoDistanceFunctiongeodist()getArgumentMap(Function.Context context) Get theMapof already Solr readable (converted) arguments for thisFunctionin the givenFunction.Context.solr readable representation of functiontoSolrFunction(Function.Context context) Convert the Function to a Solr readableStringin the givenFunction.Context.Methods inherited from class org.springframework.data.solr.core.query.AbstractFunction
addArgument, getArguments, hasArguments, toString
-
Method Details
-
geodist
-
distanceFrom
Creates newGeoDistanceFunction.Builder- Parameters:
fieldName-- Returns:
-
distanceFrom
Creates newGeoDistanceFunction.Builder- Parameters:
field- must not be null- Returns:
-
toSolrFunction
Description copied from interface:FunctionConvert the Function to a Solr readableStringin the givenFunction.Context.- Parameters:
context- must not be null.- Returns:
- never null.
-
getArgumentMap
Description copied from interface:FunctionGet theMapof already Solr readable (converted) arguments for thisFunctionin the givenFunction.Context.- Parameters:
context- must not be null.- Returns:
- never null.
-
getOperation
Description copied from interface:Functionsolr readable representation of function- Returns:
-