Module org.apache.jena.dboe.storage
Class DatasetGraphStorage
java.lang.Object
org.apache.jena.sparql.core.DatasetGraphBase
org.apache.jena.sparql.core.DatasetGraphBaseFind
org.apache.jena.dboe.storage.system.DatasetGraphStorage
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable,DatabaseRDF,DatasetGraph,Transactional
- Direct Known Subclasses:
SimpleDB.DatasetGraphSimpleDB
Alternative: DatasetGraph over RDFStorage, using DatasetGraphBaseFind
Collapses DatasetGraphTriplesQuads into this adapter class.
DatasetGraph
DatasetGraphBase
DatasetGraphBaseFind
DatasetGraphStorage
A DatasetGraph base class for triples+quads storage. The machinery is really
the splitting between default and named graphs. This happens in two classes,
DatasetGraphBaseFind (for find splitting) and
DatasetGraphTriplesQuads add/delete splitting (it inherits DatasetGraphBaseFind).
Because storage is usually decomposing quads and triples, the default behaviour is to work in s/p/o and g/s/p/o.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional
Transactional.Promote -
Constructor Summary
ConstructorsConstructorDescriptionDatasetGraphStorage(StorageRDF storage, StoragePrefixes prefixes, Transactional transactional) -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()voidvoidvoidvoidbegin()voidvoidvoidcommit()voidvoidvoidend()getData()booleanProvide a general implementation of "listGraphNodes".prefixes()booleanpromote(Transactional.Promote mode) voidremoveGraph(Node graphName) longsize()booleanbooleantoString()Methods inherited from class org.apache.jena.sparql.core.DatasetGraphBaseFind
find, findInUnionGraph, findNG, findQuadsInUnionGraphMethods inherited from class org.apache.jena.sparql.core.DatasetGraphBase
clear, close, contains, contains, containsGraph, deleteAny, deleteAny, find, find, getContext, getLock, isEmpty, setDefaultGraphMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.jena.sparql.core.DatasetGraph
addAll, stream, streamMethods inherited from interface org.apache.jena.sparql.core.Transactional
calc, calculate, calculateRead, calculateWrite, exec, execute, executeRead, executeWrite, promote
-
Constructor Details
-
DatasetGraphStorage
public DatasetGraphStorage(StorageRDF storage, StoragePrefixes prefixes, Transactional transactional)
-
-
Method Details
-
begin
public void begin()- Specified by:
beginin interfaceTransactional
-
begin
- Specified by:
beginin interfaceTransactional
-
begin
- Specified by:
beginin interfaceTransactional
-
promote
- Specified by:
promotein interfaceTransactional
-
commit
public void commit()- Specified by:
commitin interfaceTransactional
-
abort
public void abort()- Specified by:
abortin interfaceTransactional
-
isInTransaction
public boolean isInTransaction()- Specified by:
isInTransactionin interfaceTransactional
-
end
public void end()- Specified by:
endin interfaceTransactional
-
transactionMode
- Specified by:
transactionModein interfaceTransactional
-
transactionType
- Specified by:
transactionTypein interfaceTransactional
-
supportsTransactions
public boolean supportsTransactions()- Specified by:
supportsTransactionsin interfaceDatasetGraph
-
supportsTransactionAbort
public boolean supportsTransactionAbort()- Specified by:
supportsTransactionAbortin interfaceDatasetGraph
-
getData
- Specified by:
getDatain interfaceDatabaseRDF- Returns:
- the triples/quads storage.
-
getStoragePrefixes
- Specified by:
getStoragePrefixesin interfaceDatabaseRDF- Returns:
- the prefixes storage.
-
getTransactional
- Specified by:
getTransactionalin interfaceDatabaseRDF- Returns:
- the
Transactionalfor this database.
-
prefixes
- Specified by:
prefixesin interfaceDatasetGraph
-
listGraphNodes
Provide a general implementation of "listGraphNodes". Implementations may wish to override and do this operation in a more efficient manner.- Specified by:
listGraphNodesin interfaceDatasetGraph
-
getDefaultGraph
- Specified by:
getDefaultGraphin interfaceDatasetGraph- Specified by:
getDefaultGraphin classDatasetGraphBase
-
getUnionGraph
- Specified by:
getUnionGraphin interfaceDatasetGraph- Overrides:
getUnionGraphin classDatasetGraphBase
-
getGraph
- Specified by:
getGraphin interfaceDatasetGraph- Specified by:
getGraphin classDatasetGraphBase
-
add
- Specified by:
addin interfaceDatasetGraph- Overrides:
addin classDatasetGraphBase
-
delete
- Specified by:
deletein interfaceDatasetGraph- Overrides:
deletein classDatasetGraphBase
-
add
- Specified by:
addin interfaceDatasetGraph- Overrides:
addin classDatasetGraphBase
-
delete
- Specified by:
deletein interfaceDatasetGraph- Overrides:
deletein classDatasetGraphBase
-
addGraph
- Specified by:
addGraphin interfaceDatasetGraph- Specified by:
addGraphin classDatasetGraphBase
-
removeGraph
- Specified by:
removeGraphin interfaceDatasetGraph- Specified by:
removeGraphin classDatasetGraphBase
-
size
public long size()- Specified by:
sizein interfaceDatasetGraph- Overrides:
sizein classDatasetGraphBase
-
toString
- Overrides:
toStringin classDatasetGraphBase
-