use of org.geotools.filter.FunctionImpl in project ddf by codice.
the class SolrFilterBuilderTest method proximity.
public Filter proximity(String attribute, int distance, String searchTerms) {
FunctionImpl function = new FunctionImpl();
function.setName(ProximityFunction.NAME.getName());
List<Expression> parameters = new ArrayList<>();
parameters.add(factory.literal(attribute));
parameters.add(factory.literal(distance));
parameters.add(factory.literal(searchTerms));
function.setParameters(parameters);
return factory.equals(function, factory.literal(true));
}
Aggregations