Package org.neo4j.ogm.cypher.function
Interface FilterFunction<T>
- All Known Implementing Classes:
ContainsAnyComparison
,DistanceComparison
,NativeDistanceComparison
,PropertyComparison
,PropertyComparison.CaseInsensitiveEqualsComparison
public interface FilterFunction<T>
- Author:
- Jasper Blues, Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionexpression
(String nodeIdentifier, String filteredProperty, UnaryOperator<String> createUniqueParameterName) Generates a cypher expression for this functiongetValue()
parameters
(UnaryOperator<String> createUniqueParameterName, PropertyValueTransformer valueTransformer) Provides the map of parameters to use.
-
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 queryfilteredProperty
- The identifier of the filtered propertycreateUniqueParameterName
- An operator to create unique parameter names, the same as inparameters(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 namesvalueTransformer
- Transformer for adapting possible values to the domain- Returns:
- The map of parameters
-