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
  • 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

      default String toSolrFunction(Function.Context context)
      Convert the Function to a Solr readable String in the given Function.Context.
      Parameters:
      context - must not be null.
      Returns:
      never null.
      Since:
      4.1
    • getArgumentMap

      default Map<String,String> getArgumentMap(Function.Context context)
      Get the Map of already Solr readable (converted) arguments for this Function in the given Function.Context.
      Parameters:
      context - must not be null.
      Returns:
      never null.
      Since:
      4.1