public class DatasetGraphStorage extends DatasetGraphBaseFind implements DatabaseRDF
DatasetGraph
DatasetGraphBase
DatasetGraphBaseFind
DatasetGraphStorageDirect
/**
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.
Transactional.Promote| Constructor and Description |
|---|
DatasetGraphStorage(StorageRDF storage,
StoragePrefixes prefixes,
Transactional transactional) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
void |
add(Node g,
Node s,
Node p,
Node o) |
void |
add(Quad quad) |
void |
addGraph(Node graphName,
Graph graph) |
void |
begin() |
void |
begin(ReadWrite mode) |
void |
begin(TxnType txnType) |
void |
commit() |
void |
delete(Node g,
Node s,
Node p,
Node o) |
void |
delete(Quad quad) |
void |
end() |
StorageRDF |
getData() |
Graph |
getDefaultGraph() |
Graph |
getGraph(Node graphNode) |
StoragePrefixes |
getPrefixes() |
Transactional |
getTransactional() |
Graph |
getUnionGraph() |
boolean |
isInTransaction() |
Iterator<Node> |
listGraphNodes() |
boolean |
promote(Transactional.Promote mode) |
void |
removeGraph(Node graphName) |
boolean |
supportsTransactionAbort() |
boolean |
supportsTransactions() |
ReadWrite |
transactionMode() |
TxnType |
transactionType() |
find, findInUnionGraph, findNG, findQuadsInUnionGraphclear, close, contains, contains, containsGraph, deleteAny, deleteAny, find, find, getContext, getLock, isEmpty, setDefaultGraph, size, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitpromotepublic DatasetGraphStorage(StorageRDF storage, StoragePrefixes prefixes, Transactional transactional)
public void begin()
begin in interface Transactionalpublic void begin(TxnType txnType)
begin in interface Transactionalpublic void begin(ReadWrite mode)
begin in interface Transactionalpublic boolean promote(Transactional.Promote mode)
promote in interface Transactionalpublic void commit()
commit in interface Transactionalpublic void abort()
abort in interface Transactionalpublic boolean isInTransaction()
isInTransaction in interface Transactionalpublic void end()
end in interface Transactionalpublic ReadWrite transactionMode()
transactionMode in interface Transactionalpublic TxnType transactionType()
transactionType in interface Transactionalpublic boolean supportsTransactions()
supportsTransactions in interface DatasetGraphpublic boolean supportsTransactionAbort()
supportsTransactionAbort in interface DatasetGraphpublic StorageRDF getData()
getData in interface DatabaseRDFpublic StoragePrefixes getPrefixes()
getPrefixes in interface DatabaseRDFpublic Transactional getTransactional()
getTransactional in interface DatabaseRDFTransactional for this database.public Iterator<Node> listGraphNodes()
listGraphNodes in interface DatasetGraphpublic Graph getDefaultGraph()
getDefaultGraph in interface DatasetGraphgetDefaultGraph in class DatasetGraphBasepublic Graph getUnionGraph()
getUnionGraph in interface DatasetGraphgetUnionGraph in class DatasetGraphBasepublic Graph getGraph(Node graphNode)
getGraph in interface DatasetGraphgetGraph in class DatasetGraphBasepublic void add(Quad quad)
add in interface DatasetGraphadd in class DatasetGraphBasepublic void delete(Quad quad)
delete in interface DatasetGraphdelete in class DatasetGraphBasepublic void add(Node g, Node s, Node p, Node o)
add in interface DatasetGraphadd in class DatasetGraphBasepublic void delete(Node g, Node s, Node p, Node o)
delete in interface DatasetGraphdelete in class DatasetGraphBasepublic void addGraph(Node graphName, Graph graph)
addGraph in interface DatasetGraphaddGraph in class DatasetGraphBasepublic void removeGraph(Node graphName)
removeGraph in interface DatasetGraphremoveGraph in class DatasetGraphBaseLicensed under the Apache License, Version 2.0