Package org.apache.jena.graph.compose
Class DisjointUnion
- java.lang.Object
-
- org.apache.jena.graph.impl.GraphBase
-
- org.apache.jena.graph.compose.CompositionBase
-
- org.apache.jena.graph.compose.Dyadic
-
- org.apache.jena.graph.compose.DisjointUnion
-
- All Implemented Interfaces:
Graph
,GraphWithPerform
public class DisjointUnion extends Dyadic
DisjointUnion - a version of Union that assumes the graphs are disjoint, and hence thatfind
need not do duplicate-removal. Adding things to the graph adds them to the left component, and does not add triples that are already in the right component.
-
-
Field Summary
-
Fields inherited from class org.apache.jena.graph.impl.GraphBase
TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMIT
-
Fields inherited from interface org.apache.jena.graph.Graph
emptyGraph
-
-
Constructor Summary
Constructors Constructor Description DisjointUnion(Graph L, Graph R)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
graphBaseContains(Triple t)
void
performAdd(Triple t)
Add a triple to the triple store.void
performDelete(Triple t)
Remove a triple from the triple store.-
Methods inherited from class org.apache.jena.graph.compose.Dyadic
close, dependsOn, getL, getR, union
-
Methods inherited from class org.apache.jena.graph.compose.CompositionBase
butNot, ifIn, ifIn, recording, reject, rejecting, rejecting
-
Methods inherited from class org.apache.jena.graph.impl.GraphBase
add, clear, contains, contains, delete, find, find, forTestingOnly_graphBaseFind, getCapabilities, getEventManager, getPrefixMapping, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, remove, size, toString, toString
-
-
-
-
Method Detail
-
graphBaseContains
public boolean graphBaseContains(Triple t)
-
performDelete
public void performDelete(Triple t)
Description copied from class:GraphBase
Remove a triple from the triple store. The default implementation throws a DeleteDeniedException; subclasses must override if they want to be able to remove triples.- Specified by:
performDelete
in interfaceGraphWithPerform
- Overrides:
performDelete
in classGraphBase
-
performAdd
public void performAdd(Triple t)
Description copied from class:GraphBase
Add a triple to the triple store. The default implementation throws an AddDeniedException; subclasses must override if they want to be able to add triples.- Specified by:
performAdd
in interfaceGraphWithPerform
- Overrides:
performAdd
in classGraphBase
-
-