public class ContainsAnyComparison extends Object implements FilterFunction<Object>
Filter f = new Filter("specialities", new ContainsAnyComparison(Arrays.asList("burger", "sushi")));
Collection<Restaurant> all = session.loadAll(Restaurant.class, new Filters(f));
will match all restaurant having burger OR sushi as a speciality.| Constructor and Description |
|---|
ContainsAnyComparison(Object value) |
| Modifier and Type | Method and Description |
|---|---|
String |
expression(String nodeIdentifier)
Generates a cypher expresion for this function
|
Filter |
getFilter() |
Object |
getValue() |
Map<String,Object> |
parameters() |
void |
setFilter(Filter filter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexpression, parameterspublic ContainsAnyComparison(Object value)
public Filter getFilter()
getFilter in interface FilterFunction<Object>public void setFilter(Filter filter)
setFilter in interface FilterFunction<Object>filter - The filter to usepublic Object getValue()
getValue in interface FilterFunction<Object>public String expression(String nodeIdentifier)
FilterFunctionexpression in interface FilterFunction<Object>nodeIdentifier - The identifier of the node to be filtered in the querypublic Map<String,Object> parameters()
parameters in interface FilterFunction<Object>Copyright © 2015–2020 Neo Technology, Inc.. All rights reserved.