java.lang.Object
org.apache.jena.sparql.graph.GraphWrapper
org.apache.jena.system.buffering.BufferingGraph
- All Implemented Interfaces:
org.apache.jena.graph.Graph
,BufferingCtl
A graph that buffers changes (including prefixes changes) until
flush()
or
flushDirect()
is called.-
Field Summary
Fields inherited from interface org.apache.jena.graph.Graph
emptyGraph
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(org.apache.jena.graph.Triple t) org.apache.jena.graph.Graph
base()
boolean
contains
(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) boolean
contains
(org.apache.jena.graph.Triple triple) static BufferingGraph
create
(org.apache.jena.graph.Graph graph) void
delete
(org.apache.jena.graph.Triple t) org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple>
find
(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple>
find
(org.apache.jena.graph.Triple m) void
flush()
Flush the changes to the base graph, using a Graph transaction if possible.void
Flush the changes directly to the base graph.org.apache.jena.graph.Graph
getAdded()
Set<org.apache.jena.graph.Triple>
org.apache.jena.shared.PrefixMapping
boolean
isEmpty()
int
size()
Methods inherited from class org.apache.jena.sparql.graph.GraphWrapper
clear, close, dependsOn, get, getCapabilities, getEventManager, getTransactionHandler, isClosed, isIsomorphicWith, remove
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jena.graph.Graph
add, delete, find, sizeLong, stream, stream
-
Constructor Details
-
BufferingGraph
public BufferingGraph(org.apache.jena.graph.Graph graph)
-
-
Method Details
-
create
-
base
public org.apache.jena.graph.Graph base() -
flush
public void flush()Flush the changes to the base graph, using a Graph transaction if possible.- Specified by:
flush
in interfaceBufferingCtl
-
flushDirect
public void flushDirect()Flush the changes directly to the base graph. -
add
public void add(org.apache.jena.graph.Triple t) - Specified by:
add
in interfaceorg.apache.jena.graph.Graph
- Overrides:
add
in classGraphWrapper
-
delete
public void delete(org.apache.jena.graph.Triple t) - Specified by:
delete
in interfaceorg.apache.jena.graph.Graph
- Overrides:
delete
in classGraphWrapper
-
getAdded
public org.apache.jena.graph.Graph getAdded() -
getDeleted
-
contains
public boolean contains(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) - Specified by:
contains
in interfaceorg.apache.jena.graph.Graph
- Overrides:
contains
in classGraphWrapper
-
contains
public boolean contains(org.apache.jena.graph.Triple triple) - Specified by:
contains
in interfaceorg.apache.jena.graph.Graph
- Overrides:
contains
in classGraphWrapper
-
find
public org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple> find(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) - Specified by:
find
in interfaceorg.apache.jena.graph.Graph
- Overrides:
find
in classGraphWrapper
-
find
public org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple> find(org.apache.jena.graph.Triple m) - Specified by:
find
in interfaceorg.apache.jena.graph.Graph
- Overrides:
find
in classGraphWrapper
-
getPrefixMapping
public org.apache.jena.shared.PrefixMapping getPrefixMapping()- Specified by:
getPrefixMapping
in interfaceorg.apache.jena.graph.Graph
- Overrides:
getPrefixMapping
in classGraphWrapper
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceorg.apache.jena.graph.Graph
- Overrides:
isEmpty
in classGraphWrapper
-
size
public int size()- Specified by:
size
in interfaceorg.apache.jena.graph.Graph
- Overrides:
size
in classGraphWrapper
-