Interface FilterFunction<T>

All Known Implementing Classes:
ContainsAnyComparison, DistanceComparison, NativeDistanceComparison, PropertyComparison, PropertyComparison.CaseInsensitiveEqualsComparison

public interface FilterFunction<T>
Author:
Jasper Blues, Michael J. Simons
  • Method Details

    • getValue

      T getValue()
    • expression

      String expression(String nodeIdentifier, String filteredProperty, UnaryOperator<String> createUniqueParameterName)
      Generates a cypher expression for this function
      Parameters:
      nodeIdentifier - The identifier of the node to be filtered in the query
      filteredProperty - The identifier of the filtered property
      createUniqueParameterName - An operator to create unique parameter names, the same as in parameters(UnaryOperator, PropertyValueTransformer)
      Returns:
      The fragment to use
    • parameters

      Map<String,Object> parameters(UnaryOperator<String> createUniqueParameterName, PropertyValueTransformer valueTransformer)
      Provides the map of parameters to use. It is advised to use the provided operator for creating unique parameter names
      Parameters:
      createUniqueParameterName - An operator to create unique parameter names
      valueTransformer - Transformer for adapting possible values to the domain
      Returns:
      The map of parameters