|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.common.rdb.query.NodeConverter
public class NodeConverter
Convert between Glitter and Anzo node types
| Constructor Summary | |
|---|---|
NodeConverter(CompositeNodeLayout nodeLayout)
Create a new NodeConverter |
|
| Method Summary | |
|---|---|
void |
clearCache()
Clear the node and bnode caches |
org.openrdf.model.Value |
convert(TriplePatternComponent glitterNode,
boolean blankNodesAsVariables,
java.util.Map<java.lang.Long,org.openrdf.model.Value> alreadyStored)
Convert the Glitter node into its corresponding Anzo value |
IRdbTerm |
getGlitterNode(long id)
Convert a node ID into the corresponding Glitter IRdbTerm |
Triple |
getGlitterTriple(long s,
long p,
long o)
Get a new Glitter triple for the given IDs |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeConverter(CompositeNodeLayout nodeLayout)
nodeLayout - source of data| Method Detail |
|---|
public org.openrdf.model.Value convert(TriplePatternComponent glitterNode,
boolean blankNodesAsVariables,
java.util.Map<java.lang.Long,org.openrdf.model.Value> alreadyStored)
glitterNode - Glitter node to convertblankNodesAsVariables - should blank nodes be converted to variables, or URIsalreadyStored - map of existing IDs to their Anzo Value
public IRdbTerm getGlitterNode(long id)
id - of node
public Triple getGlitterTriple(long s,
long p,
long o)
throws GlitterException
s - ID of subject nodep - ID of predicate nodeo - ID of object node
GlitterExceptionpublic void clearCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||