|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fuberlin.wiwiss.d2rq.rdql.ConstraintHandler
Handles variable node constraints for a TripleQuery conjunction. Assumption: Bound variables in conjunction allready have been bound. (This code could as well be kept in PatternQueryCombiner.)
Nested Class Summary | |
class |
ConstraintHandler.NodeMakerIterator
Iterates over all the nodes of a triple conjunction. |
Field Summary | |
VariableBindings |
bindings
|
(package private) TripleQuery[] |
conjunction
|
boolean |
possible
|
(package private) java.util.Collection |
rdqlConstraints
|
(package private) ExpressionTranslator |
rdqlTranslator
|
java.util.Map |
variableToConstraint
Mapping between a variable (Node) and its NodeConstraints. |
Constructor Summary | |
(package private) |
ConstraintHandler()
|
Method Summary | |
void |
addConstraintsToSQL(SQLStatementMaker sql)
Creates SQL code for the node constraints. |
(package private) void |
addRDQLConstraints(SQLStatementMaker sql)
Adds constraints that come from the RDQL expression. |
void |
makeConstraints()
Creates Node constraints for all shared Bind variables. |
ConstraintHandler.NodeMakerIterator |
makeNodeMakerIterator(java.util.Set indexSet)
|
void |
setRDQLConstraints(java.util.Collection rdqlConstraints)
|
void |
setTripleQueryConjunction(TripleQuery[] conjunction)
|
void |
setVariableBindings(VariableBindings bindings)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public boolean possible
public VariableBindings bindings
TripleQuery[] conjunction
public java.util.Map variableToConstraint
java.util.Collection rdqlConstraints
ExpressionTranslator rdqlTranslator
Constructor Detail |
ConstraintHandler()
Method Detail |
public void setVariableBindings(VariableBindings bindings)
public void setTripleQueryConjunction(TripleQuery[] conjunction)
public void setRDQLConstraints(java.util.Collection rdqlConstraints)
public void makeConstraints()
public void addConstraintsToSQL(SQLStatementMaker sql)
sql
- contains both the places where to store expressions
and the methods, how to format them.void addRDQLConstraints(SQLStatementMaker sql)
sql
- contains information about the SQL dialect of the database and aliases.public ConstraintHandler.NodeMakerIterator makeNodeMakerIterator(java.util.Set indexSet)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |