public class ObjectManager extends ObjectMgrModel
IObjectManager for use with an embedded database, including JSP
pages running in the same webapp as the NanoSparqlServer and applications
that do not expose a public web interface.m_maxDirtyListSize, m_valueFactory| Constructor and Description |
|---|
ObjectManager(String endpoint,
BigdataSailRepository cxn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the object manager, which terminates its connection with the
backing store.
|
ICloseableIterator<org.openrdf.query.BindingSet> |
evaluate(String query) |
ICloseableIterator<org.openrdf.model.Statement> |
evaluateGraph(String query) |
void |
execute(String updateStr) |
protected void |
flushStatements(List<org.openrdf.model.Statement> m_inserts,
List<org.openrdf.model.Statement> m_removes)
Flush statements to be inserted and removed to the backing store..
|
BigdataSailRepository |
getRepository() |
boolean |
isPersistent()
Return
true iff the object manager is backed by some
persistence layer. |
protected void |
materializeWithDescribe(IGPO gpo) |
void |
setMaxDataListSize(int newValue)
This may be used to break ACID and perform incremental eviction of dirty
objects to the backing store.
|
addToDirtyList, beginNativeTransaction, bestEffortIntern, clearCache, commitNativeTransaction, createGPO, encode, getDefaultNameMgr, getDirtyObjectCount, getGPO, getGPO, getGPOs, getID, getNames, getNativeTransactionCounter, getValueFactory, initGPO, initGPOs, internKey, materialize, materializeWithSelect, recall, recallAsGPO, remove, rollbackNativeTransaction, savepublic ObjectManager(String endpoint, BigdataSailRepository cxn) throws org.openrdf.repository.RepositoryException
endpoint - A SPARQL endpoint that may be used to communicate with the
database.cxn - A connection to the database.org.openrdf.repository.RepositoryExceptionpublic void setMaxDataListSize(int newValue)
newValue - The new maximum dirty list size (default is
Integer.MAX_VALUE).public BigdataSailRepository getRepository()
public void close()
IObjectManagerclose in interface IObjectManagerclose in class ObjectMgrModelpublic ICloseableIterator<org.openrdf.query.BindingSet> evaluate(String query)
public ICloseableIterator<org.openrdf.model.Statement> evaluateGraph(String query)
public void execute(String updateStr)
public boolean isPersistent()
IObjectManagertrue iff the object manager is backed by some
persistence layer.protected void materializeWithDescribe(IGPO gpo)
materializeWithDescribe in class ObjectMgrModelprotected void flushStatements(List<org.openrdf.model.Statement> m_inserts, List<org.openrdf.model.Statement> m_removes)
ObjectMgrModelflushStatements in class ObjectMgrModelm_inserts - The list of statements to be added.m_removes - The list of statements to be removed.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.