|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fuberlin.wiwiss.d2rq.fastpath.NodeConstraintImpl
public class NodeConstraintImpl
Holds constraint information for a variable node.
In a query a variable node is either a result value, or a shared variable
or both. If it is a shared variable, we collect into a NodeConstraint
all constraining information that we know about the different node positions
from the TripleRelation
s.
Field Summary | |
---|---|
static int |
BlankNodeType
|
static int |
LiteralNodeType
|
static int |
NotFixedNodeType
|
static int |
UriNodeType
|
Constructor Summary | |
---|---|
NodeConstraintImpl()
|
Method Summary | |
---|---|
void |
addConstraintsToSQL(SelectStatementBuilder sql)
The collected constraints are created as SQL constraints. |
Set |
columns()
|
Node |
fixedNode()
|
boolean |
infoAdded()
|
boolean |
isPossible()
|
void |
limitTo(Node node)
We see a fixed NodeMaker. |
void |
limitToBlankNodes()
Limits this node set to blank nodes. |
void |
limitToEmptySet()
Limits the node set to the empty set. |
void |
limitToLiterals(String language,
RDFDatatype datatype)
Limits this node set to literals having a particular language tag and datatype. |
void |
limitToURIs()
Limits this node set to URI nodes. |
void |
limitValuesToAttribute(Attribute c)
Constraints given on Nodes that are equal to Columns can be directly translated to Column constraints. |
void |
limitValuesToBlankNodeID(BlankNodeID id)
Limits this node set to nodes whose value matches the values produced by a blank node ID. |
void |
limitValuesToPattern(Pattern p)
Pattern-Constraints can be translated to column constraints. |
Set |
patterns()
|
void |
resetInfoAdded()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NotFixedNodeType
public static final int BlankNodeType
public static final int UriNodeType
public static final int LiteralNodeType
Constructor Detail |
---|
public NodeConstraintImpl()
Method Detail |
---|
public boolean isPossible()
public void limitToEmptySet()
NodeSetFilter
limitToEmptySet
in interface NodeSetFilter
public void resetInfoAdded()
public boolean infoAdded()
public Node fixedNode()
public Set patterns()
public Set columns()
public void limitToLiterals(String language, RDFDatatype datatype)
NodeSetFilter
limitToLiterals
in interface NodeSetFilter
language
- The language tag of all nodes in the set, or null
for plain or datatype literalsdatatype
- The datatype of all nodes in the set, or null
for plain literalspublic void limitTo(Node node)
limitTo
in interface NodeSetFilter
node
- public void limitToURIs()
NodeSetFilter
limitToURIs
in interface NodeSetFilter
public void limitToBlankNodes()
NodeSetFilter
limitToBlankNodes
in interface NodeSetFilter
public void limitValuesToAttribute(Attribute c)
ValueMaker
call this.
limitValuesToAttribute
in interface NodeSetFilter
c
- public void limitValuesToPattern(Pattern p)
ValueMaker
call this.
limitValuesToPattern
in interface NodeSetFilter
p
- public void limitValuesToBlankNodeID(BlankNodeID id)
NodeSetFilter
limitValuesToBlankNodeID
in interface NodeSetFilter
id
- The blank node ID producing possible valuespublic void addConstraintsToSQL(SelectStatementBuilder sql)
sql
- the statment maker that gets the constraints.
It knows about Alias and correct quoting of values for integer/string
database columns.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |