com.hp.hpl.jena.sparql.algebra.op
Class OpConditional

java.lang.Object
  extended by com.hp.hpl.jena.sparql.util.PrintSerializableBase
      extended by com.hp.hpl.jena.sparql.algebra.op.OpBase
          extended by com.hp.hpl.jena.sparql.algebra.op.Op2
              extended by com.hp.hpl.jena.sparql.algebra.op.OpConditional
All Implemented Interfaces:
Op, Named, PrintSerializable, Printable

public class OpConditional
extends Op2

Conditional execution - works with streamed execution and is known to safe to evaluate that way (no issues from nested optionals). For each element in the input stream, execute the expression (i.e. index-join it to the element in the input stream). If it matches, return those results. If it does not, return the input stream element.


Constructor Summary
OpConditional(Op left, Op right)
           
 
Method Summary
 Op apply(Transform transform, Op left, Op right)
           
 Op copy(Op newLeft, Op newRight)
           
 boolean equalTo(Op op2, NodeIsomorphismMap labelMap)
           
 String getName()
           
 void visit(OpVisitor opVisitor)
           
 
Methods inherited from class com.hp.hpl.jena.sparql.algebra.op.Op2
getLeft, getRight, hashCode, setLeft, setRight
 
Methods inherited from class com.hp.hpl.jena.sparql.algebra.op.OpBase
equals, output, output
 
Methods inherited from class com.hp.hpl.jena.sparql.util.PrintSerializableBase
toString, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.sparql.util.PrintSerializable
toString
 

Constructor Detail

OpConditional

public OpConditional(Op left,
                     Op right)
Method Detail

apply

public Op apply(Transform transform,
                Op left,
                Op right)
Specified by:
apply in class Op2

visit

public void visit(OpVisitor opVisitor)

copy

public Op copy(Op newLeft,
               Op newRight)
Specified by:
copy in class Op2

equalTo

public boolean equalTo(Op op2,
                       NodeIsomorphismMap labelMap)
Specified by:
equalTo in interface Op
Specified by:
equalTo in class OpBase

getName

public String getName()


Licenced under the Apache License, Version 2.0