@Test public void accumuloIndexSetTestWithBindingSet() throws RepositoryException, PcjException, TableNotFoundException, RyaTypeResolverException, MalformedQueryException, SailException, QueryEvaluationException, AccumuloException, AccumuloSecurityException { final Set<Statement> triples = new HashSet<>(); triples.add( VF.createStatement(VF.createIRI("http: triples.add( VF.createStatement(VF.createIRI("http: triples.add( VF.createStatement(VF.createIRI("http: triples.add( VF.createStatement(VF.createIRI("http: triples.add( VF.createStatement(VF.createIRI("http: triples.add( VF.createStatement(VF.createIRI("http: triples.add( VF.createStatement(VF.createIRI("http: triples.add( VF.createStatement(VF.createIRI("http: for(final Statement triple : triples) { ryaConn.add(triple); } final String sparql = "SELECT ?name ?age " + "{" + "FILTER(?age < 30) ." + "?name <http: "?name <http: "}"; final String pcjTableName = new PcjTableNameFactory().makeTableName(prefix, "testPcj"); PcjIntegrationTestingUtil.createAndPopulatePcj(ryaConn, accumuloConn, pcjTableName, sparql, new String[]{"name", "age"}, Optional.absent()); final AccumuloIndexSet ais = new AccumuloIndexSet(conf, pcjTableName); final QueryBindingSet bs = new QueryBindingSet(); bs.addBinding("name",VF.createIRI("http: bs.addBinding("location",VF.createIRI("http: final CloseableIteration<BindingSet, QueryEvaluationException> results = ais.evaluate(bs); bs.addBinding("age",VF.createLiteral(BigInteger.valueOf(14))); Assert.assertEquals(bs, results.next()); }
@Override public CloseableIteration<BindingSet, QueryEvaluationException> evaluate( final BindingSet bindingset) throws QueryEvaluationException { return this.evaluate(Collections.singleton(bindingset)); }
AccumuloIndexSet extends ExternalTupleSet implements
		ExternalBatchingIterator { @Override public CloseableIteration<BindingSet, QueryEvaluationException> evaluate( final BindingSet bindingset) throws QueryEvaluationException { return this.evaluate(Collections.singleton(bindingset)); } }
AccumuloIndexSet extends ExternalTupleSet implements
		ExternalBatchingIterator { @Override public CloseableIteration<BindingSet, QueryEvaluationException> evaluate( final BindingSet bindingset) throws QueryEvaluationException { return this.evaluate(Collections.singleton(bindingset)); } AccumuloIndexSet(final String sparql, final Configuration conf,
			final String tablename);  AccumuloIndexSet(final Configuration conf, final String tablename); }
AccumuloIndexSet extends ExternalTupleSet implements
		ExternalBatchingIterator { @Override public CloseableIteration<BindingSet, QueryEvaluationException> evaluate( final BindingSet bindingset) throws QueryEvaluationException { return this.evaluate(Collections.singleton(bindingset)); } AccumuloIndexSet(final String sparql, final Configuration conf,
			final String tablename);  AccumuloIndexSet(final Configuration conf, final String tablename); @Override Map<String, Set<String>> getSupportedVariableOrders(); @Override String getSignature(); @Override double cardinality(); @Override CloseableIteration<BindingSet, QueryEvaluationException> evaluate(
			final BindingSet bindingset); @Override CloseableIteration<BindingSet, QueryEvaluationException> evaluate(
			final Collection<BindingSet> bindingset); }
AccumuloIndexSet extends ExternalTupleSet implements
		ExternalBatchingIterator { @Override public CloseableIteration<BindingSet, QueryEvaluationException> evaluate( final BindingSet bindingset) throws QueryEvaluationException { return this.evaluate(Collections.singleton(bindingset)); } AccumuloIndexSet(final String sparql, final Configuration conf,
			final String tablename);  AccumuloIndexSet(final Configuration conf, final String tablename); @Override Map<String, Set<String>> getSupportedVariableOrders(); @Override String getSignature(); @Override double cardinality(); @Override CloseableIteration<BindingSet, QueryEvaluationException> evaluate(
			final BindingSet bindingset); @Override CloseableIteration<BindingSet, QueryEvaluationException> evaluate(
			final Collection<BindingSet> bindingset);  }