|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fuberlin.wiwiss.d2rq.map.FixedNodeMaker
NodeMaker that returns a fixed node.
History:
08-03-2004: Initial version of this class.
Field Summary | |
private com.hp.hpl.jena.graph.Node |
fixedNode
|
Constructor Summary | |
FixedNodeMaker(com.hp.hpl.jena.graph.Node fixedNode)
|
Method Summary | |
boolean |
couldFit(com.hp.hpl.jena.graph.Node node)
Checks if a node could fit this NodeMaker without querying the database. |
java.util.Set |
getColumns()
Returns a set of all columns containing data necessary for this NodeMaker to build its nodes. |
java.util.Map |
getColumnValues(com.hp.hpl.jena.graph.Node node)
Returns a map of database fields and values corresponding to the argument node. |
com.hp.hpl.jena.graph.Node |
getNode(java.lang.String[] row,
java.util.Map columnNameNumberMap)
Creates a new Node from a database result row. |
boolean |
isURIPattern()
|
void |
matchConstraint(NodeConstraint c)
Adds constraint information to a NodeConstraint . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private com.hp.hpl.jena.graph.Node fixedNode
Constructor Detail |
public FixedNodeMaker(com.hp.hpl.jena.graph.Node fixedNode)
Method Detail |
public void matchConstraint(NodeConstraint c)
NodeMaker
NodeConstraint
.
In a RDQL query a shared variable generally corresponds to different
NodeMakers.
matchConstraint
in interface NodeMaker
c
- NodeConstraint
public boolean isURIPattern()
public boolean couldFit(com.hp.hpl.jena.graph.Node node)
NodeMaker
couldFit
in interface NodeMaker
public java.util.Set getColumns()
NodeMaker
getColumns
in interface NodeMaker
public java.util.Map getColumnValues(com.hp.hpl.jena.graph.Node node)
NodeMaker
For example, a NodeMaker that corresponds directly to a single DB column would return a single-entry map with that column as the key, and the DB value corresponding to the node as the value.
getColumnValues
in interface NodeMaker
node
- a concrete, non-null RDF node
Column
keys, and string values.public com.hp.hpl.jena.graph.Node getNode(java.lang.String[] row, java.util.Map columnNameNumberMap)
NodeMaker
getNode
in interface NodeMaker
row
- a database result rowcolumnNameNumberMap
- a map from Table.Column style column names
to Integers representing indices within the row array
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |