Package org.apache.jena.sparql.graph
Class GraphUnionRead
- java.lang.Object
-
- org.apache.jena.graph.impl.GraphBase
-
- org.apache.jena.sparql.graph.GraphUnionRead
-
- All Implemented Interfaces:
Graph,GraphWithPerform
public class GraphUnionRead extends GraphBase
Immutable graph that is the view of a union of graphs in a dataset. This union can be a fixed set of graph or all named graph. This union iterates over graphs.GraphViewprovides a view over a dataset and does support union graph but assumes quad access is efficient and does not end up looping.- See Also:
GraphView,DatasetGraphMap
-
-
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 GraphUnionRead(DatasetGraph dsg)Read-only graph view of all named graphs in the dataset.GraphUnionRead(DatasetGraph dsg, java.util.Collection<Node> graphs)Read-only graph view of a set of graphs from the dataset
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionHandlergetTransactionHandler()voidperformAdd(Triple t)voidperformDelete(Triple t)-
Methods inherited from class org.apache.jena.graph.impl.GraphBase
add, clear, close, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getCapabilities, getEventManager, getPrefixMapping, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, remove, size, toString, toString
-
-
-
-
Constructor Detail
-
GraphUnionRead
public GraphUnionRead(DatasetGraph dsg)
Read-only graph view of all named graphs in the dataset. If graphs are added after this view if created, then this is reflected in thefindcall.
-
GraphUnionRead
public GraphUnionRead(DatasetGraph dsg, java.util.Collection<Node> graphs)
Read-only graph view of a set of graphs from the dataset
-
-
Method Detail
-
getTransactionHandler
public TransactionHandler getTransactionHandler()
- Specified by:
getTransactionHandlerin interfaceGraph- Overrides:
getTransactionHandlerin classGraphBase
-
performAdd
public void performAdd(Triple t)
- Specified by:
performAddin interfaceGraphWithPerform- Overrides:
performAddin classGraphBase
-
performDelete
public void performDelete(Triple t)
- Specified by:
performDeletein interfaceGraphWithPerform- Overrides:
performDeletein classGraphBase
-
-