public boolean isEmpty() { return pattern.isEmpty() ; }
public boolean isEmpty() { return pattern.isEmpty() ; }
static private Op flush(BasicPattern bp, Op op) { if ( bp == null || bp.isEmpty() ) return op ; OpBGP opBGP = new OpBGP(bp) ; op = OpSequence.create(op, opBGP) ; return op ; }
static private Op flush(BasicPattern bp, Op op) { if ( bp == null || bp.isEmpty() ) return op ; OpBGP opBGP = new OpBGP(bp) ; op = OpSequence.create(op, opBGP) ; return op ; }
public static Op buildPropertyFunctions(PropertyFunctionRegistry registry, OpBGP opBGP, Context context) { if ( opBGP.getPattern().isEmpty() ) return opBGP ; return compilePattern(registry, opBGP.getPattern(), context) ; }
public static Op buildPropertyFunctions(OpBGP opBGP, Context context) { if ( opBGP.getPattern().isEmpty() ) return opBGP ; return compilePattern(opBGP.getPattern(), context) ; }
private static Op flush(BasicPattern pattern, Op op) { if ( pattern == null || pattern.isEmpty() ) { if ( op == null ) return OpTable.unit() ; return op ; } OpBGP opBGP = new OpBGP(pattern) ; return OpSequence.create(op, opBGP) ; }
private static Op flush(BasicPattern pattern, Op op) { if ( pattern == null || pattern.isEmpty() ) { if ( op == null ) return OpTable.unit() ; return op ; } OpBGP opBGP = new OpBGP(pattern) ; return OpSequence.create(op, opBGP) ; }
private static QueryIterator executeBGP(BasicPattern pattern, QueryIterator input, ExecutionContext execCxt) { if (pattern.isEmpty()) return input ; boolean hideBNodeVars = execCxt.getContext().isTrue(ARQ.hideNonDistiguishedVariables) ; StageGenerator gen = StageBuilder.executeInline ; QueryIterator qIter = gen.execute(pattern, input, execCxt) ; // Remove non-distinguished variables here. // Project out only named variables. if (hideBNodeVars) qIter = new QueryIterDistinguishedVars(qIter, execCxt) ; return qIter ; }
if ( triples.isEmpty() ) return ;
if ( triples.isEmpty() ) return ;
public static QueryIterator execute(BasicPattern pattern, QueryIterator input, ExecutionContext execCxt) { if ( pattern.isEmpty() ) return input ; boolean hideBNodeVars = execCxt.getContext().isTrue(ARQ.hideNonDistiguishedVariables) ; StageGenerator gen = chooseStageGenerator(execCxt.getContext()) ; QueryIterator qIter = gen.execute(pattern, input, execCxt) ; // Remove non-distinguished variables here. // Project out only named variables. if ( hideBNodeVars ) qIter = new QueryIterDistinguishedVars(qIter, execCxt) ; return qIter ; }
if (p.isEmpty()) { return union;
if ( ((OpBGP)op).getPattern().isEmpty() ) noPattern = true ;
if ( ((OpBGP)op).getPattern().isEmpty() ) noPattern = true ;