/** Parse a string to obtain a list of SPARQL expressions */ public static ExprList parseExprList(String s) { return parseExprList(s, null) ; }
protected void testJoin(String var, Table left, Table right, String conditions, Table tableOut) { JoinKey joinKey ; if ( var != null ) { if ( var.startsWith("?") ) var = var.substring(1) ; joinKey = JoinKey.create(Var.alloc(var)) ; } else { // No vars in join key. Allow implementation to decide // if needed. Join keys are only needed for hash join // (and related algorithms). joinKey = null ; } ExprList exprs = null ; if ( conditions != null ) exprs = SSE.parseExprList(conditions) ; executeTest(joinKey, left, right, exprs, tableOut) ; }
@Test public void leftjoin_condition_03() { // Never match ExprList exprs = SSE.parseExprList("((= ?b 99))") ; testJoin("a", table1(), tableD1(), "((= ?b 99))", table1()) ; } }