Search in sources :

Example 1 with BindingImpl

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;
}
Also used : BindingImpl(org.openrdf.query.impl.BindingImpl) QueryBindingSet(org.openrdf.query.algebra.evaluation.QueryBindingSet)

Aggregations

QueryBindingSet (org.openrdf.query.algebra.evaluation.QueryBindingSet)1 BindingImpl (org.openrdf.query.impl.BindingImpl)1