use of org.openrdf.query.impl.BindingImpl in project incubator-rya by apache.
the class AccumuloIndexSet method getConstantConstraints.
/**
* @return - all constraints which correspond to variables in
* {@link AccumuloIndexSet#getTupleExpr()} which are set equal to a
* constant, but are non-constant in Accumulo table
*/
private BindingSet getConstantConstraints() {
final Map<String, String> tableMap = this.getTableVarMap();
final Set<String> keys = tableMap.keySet();
final QueryBindingSet constants = new QueryBindingSet();
for (final String s : keys) {
if (s.startsWith("-const-")) {
constants.addBinding(new BindingImpl(s, getConstantValueMap().get(s)));
}
}
return constants;
}
Aggregations