de.fuberlin.wiwiss.d2rq.engine
Class OpUnionTableSQL

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.OpExt
              extended by de.fuberlin.wiwiss.d2rq.engine.OpUnionTableSQL
All Implemented Interfaces:
Op, Named, PrintSerializable, org.openjena.atlas.io.Printable

public class OpUnionTableSQL
extends OpExt

An Op that wraps a union of multiple NodeRelations. This is typically, but not necessarily, the result of matching a BGP against a D2RQ-mapped database.

Author:
Richard Cyganiak (richard@cyganiak.de)

Field Summary
 
Fields inherited from class com.hp.hpl.jena.sparql.algebra.op.OpExt
tag
 
Constructor Summary
OpUnionTableSQL(Collection<OpTableSQL> tableOps)
           
OpUnionTableSQL(Collection<OpTableSQL> tableOps, Op effectiveOp)
           
 
Method Summary
static Op create(Collection<NodeRelation> tables)
          Creates a new instance from a collection of NodeRelations, or a simpler equivalent Op if optimizations are possible.
 Op effectiveOp()
           
 boolean equalTo(Op other, NodeIsomorphismMap labelMap)
           
 QueryIterator eval(QueryIterator input, ExecutionContext execCxt)
           
 int hashCode()
           
 void outputArgs(org.openjena.atlas.io.IndentedWriter out, SerializationContext sCxt)
           
 
Methods inherited from class com.hp.hpl.jena.sparql.algebra.op.OpExt
getName, output, visit
 
Methods inherited from class com.hp.hpl.jena.sparql.algebra.op.OpBase
equals, output
 
Methods inherited from class com.hp.hpl.jena.sparql.util.PrintSerializableBase
toString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.sparql.util.PrintSerializable
toString
 

Constructor Detail

OpUnionTableSQL

public OpUnionTableSQL(Collection<OpTableSQL> tableOps)

OpUnionTableSQL

public OpUnionTableSQL(Collection<OpTableSQL> tableOps,
                       Op effectiveOp)
Method Detail

create

public static Op create(Collection<NodeRelation> tables)
Creates a new instance from a collection of NodeRelations, or a simpler equivalent Op if optimizations are possible.


eval

public QueryIterator eval(QueryIterator input,
                          ExecutionContext execCxt)
Specified by:
eval in class OpExt

effectiveOp

public Op effectiveOp()
Specified by:
effectiveOp in class OpExt

outputArgs

public void outputArgs(org.openjena.atlas.io.IndentedWriter out,
                       SerializationContext sCxt)
Specified by:
outputArgs in class OpExt

hashCode

public int hashCode()
Specified by:
hashCode in class OpBase

equalTo

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