Interface Function
- All Known Implementing Classes:
AbstractFunction,CurrencyFunction,DefaultValueFunction,DistanceFunction,DivideFunction,ExistsFunction,GeoDistanceFunction,GeoHashFunction,IfFunction,MaxFunction,NotFunction,ProductFunction,QueryFunction,TermFrequencyFunction
public interface Function
- Since:
- 1.1
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceTheFunction.ContexttheFunctionis used in. -
Method Summary
Modifier and TypeMethodDescriptiongetArgumentMap(Function.Context context) Get theMapof already Solr readable (converted) arguments for thisFunctionin the givenFunction.Context.Iterable<?>solr readable representation of functionbooleandefault StringtoSolrFunction(Function.Context context) Convert the Function to a Solr readableStringin the givenFunction.Context.
-
Method Details
-
getOperation
String getOperation()solr readable representation of function- Returns:
-
getArguments
Iterable<?> getArguments()- Returns:
-
hasArguments
boolean hasArguments()- Returns:
- true if
getArguments()is not empty
-
toSolrFunction
Convert the Function to a Solr readableStringin the givenFunction.Context.- Parameters:
context- must not be null.- Returns:
- never null.
- Since:
- 4.1
-
getArgumentMap
Get theMapof already Solr readable (converted) arguments for thisFunctionin the givenFunction.Context.- Parameters:
context- must not be null.- Returns:
- never null.
- Since:
- 4.1
-