public class MemoryStoreConnection extends NotifyingSailConnectionBase implements InferencerConnection
| Modifier and Type | Class and Description |
|---|---|
protected class |
MemoryStoreConnection.MemEvaluationStatistics
Uses the MemoryStore's statement sizes to give cost estimates based on the
size of the expected results.
|
| Modifier and Type | Field and Description |
|---|---|
protected MemoryStore |
store |
connectionLock, logger, updateLock| Modifier | Constructor and Description |
|---|---|
protected |
MemoryStoreConnection(MemoryStore store) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addInferredStatement(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
protected boolean |
addStatementInternal(Resource subj,
URI pred,
Value obj,
boolean explicit,
Resource... contexts)
Adds the specified statement to this MemoryStore.
|
protected void |
addStatementInternal(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
void |
clearInferred(Resource... contexts) |
protected void |
clearInternal(Resource... contexts) |
protected void |
clearNamespacesInternal() |
protected void |
closeInternal() |
protected void |
commitInternal() |
protected CloseableIteration<? extends BindingSet,QueryEvaluationException> |
evaluateInternal(TupleExpr tupleExpr,
Dataset dataset,
BindingSet bindings,
boolean includeInferred) |
void |
flushUpdates() |
protected CloseableIteration<? extends Resource,SailException> |
getContextIDsInternal() |
protected String |
getNamespaceInternal(String prefix) |
protected CloseableIteration<? extends Namespace,SailException> |
getNamespacesInternal() |
protected CloseableIteration<? extends Statement,SailException> |
getStatementsInternal(Resource subj,
URI pred,
Value obj,
boolean includeInferred,
Resource... contexts) |
boolean |
hasStatement(Resource subj,
URI pred,
Value obj,
boolean includeInferred,
Resource... contexts) |
boolean |
removeInferredStatement(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
protected boolean |
removeIteratorStatements(CloseableIteration<MemStatement,SailException> stIter,
boolean explicit) |
protected void |
removeNamespaceInternal(String prefix) |
protected boolean |
removeStatementsInternal(Resource subj,
URI pred,
Value obj,
boolean explicit,
Resource... contexts)
Removes the statements that match the specified pattern of subject,
predicate, object and context.
|
protected void |
removeStatementsInternal(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
protected void |
rollbackInternal() |
protected void |
setNamespaceInternal(String prefix,
String name) |
protected long |
sizeInternal(Resource... contexts) |
protected void |
startTransactionInternal() |
addConnectionListener, hasConnectionListeners, notifyStatementAdded, notifyStatementRemoved, removeConnectionListeneraddStatement, addStatement, autoStartTransaction, begin, clear, clearNamespaces, close, commit, endUpdate, evaluate, finalize, getContextIDs, getExclusiveConnectionLock, getNamespace, getNamespaces, getSharedConnectionLock, getStatements, getTransactionLock, isActive, isOpen, iterationClosed, prepare, registerIteration, removeNamespace, removeStatement, removeStatements, rollback, setNamespace, size, startUpdate, transactionActive, verifyIsActive, verifyIsOpenclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddConnectionListener, removeConnectionListeneraddStatement, addStatement, begin, clear, clearNamespaces, close, commit, endUpdate, evaluate, getContextIDs, getNamespace, getNamespaces, getStatements, isActive, isOpen, prepare, removeNamespace, removeStatement, removeStatements, rollback, setNamespace, size, startUpdateprotected final MemoryStore store
protected MemoryStoreConnection(MemoryStore store)
protected CloseableIteration<? extends BindingSet,QueryEvaluationException> evaluateInternal(TupleExpr tupleExpr, Dataset dataset, BindingSet bindings, boolean includeInferred) throws SailException
evaluateInternal in class SailConnectionBaseSailExceptionprotected void closeInternal()
throws SailException
closeInternal in class SailConnectionBaseSailExceptionprotected CloseableIteration<? extends Resource,SailException> getContextIDsInternal() throws SailException
getContextIDsInternal in class SailConnectionBaseSailExceptionprotected CloseableIteration<? extends Statement,SailException> getStatementsInternal(Resource subj, URI pred, Value obj, boolean includeInferred, Resource... contexts) throws SailException
getStatementsInternal in class SailConnectionBaseSailExceptionpublic boolean hasStatement(Resource subj, URI pred, Value obj, boolean includeInferred, Resource... contexts) throws SailException
SailExceptionprotected long sizeInternal(Resource... contexts) throws SailException
sizeInternal in class SailConnectionBaseSailExceptionprotected CloseableIteration<? extends Namespace,SailException> getNamespacesInternal() throws SailException
getNamespacesInternal in class SailConnectionBaseSailExceptionprotected String getNamespaceInternal(String prefix) throws SailException
getNamespaceInternal in class SailConnectionBaseSailExceptionprotected void startTransactionInternal()
throws SailException
startTransactionInternal in class SailConnectionBaseSailExceptionprotected void commitInternal()
throws SailException
commitInternal in class SailConnectionBaseSailExceptionprotected void rollbackInternal()
throws SailException
rollbackInternal in class SailConnectionBaseSailExceptionprotected void addStatementInternal(Resource subj, URI pred, Value obj, Resource... contexts) throws SailException
addStatementInternal in class SailConnectionBaseSailExceptionpublic boolean addInferredStatement(Resource subj, URI pred, Value obj, Resource... contexts) throws SailException
addInferredStatement in interface InferencerConnectionSailExceptionprotected boolean addStatementInternal(Resource subj, URI pred, Value obj, boolean explicit, Resource... contexts) throws SailException
SailExceptionprotected void removeStatementsInternal(Resource subj, URI pred, Value obj, Resource... contexts) throws SailException
removeStatementsInternal in class SailConnectionBaseSailExceptionpublic boolean removeInferredStatement(Resource subj, URI pred, Value obj, Resource... contexts) throws SailException
removeInferredStatement in interface InferencerConnectionSailExceptionprotected void clearInternal(Resource... contexts) throws SailException
clearInternal in class SailConnectionBaseSailExceptionpublic void clearInferred(Resource... contexts) throws SailException
clearInferred in interface InferencerConnectionSailExceptionpublic void flushUpdates()
flushUpdates in interface InferencerConnectionprotected boolean removeStatementsInternal(Resource subj, URI pred, Value obj, boolean explicit, Resource... contexts) throws SailException
subj - The subject for the pattern, or null for a wildcard.pred - The predicate for the pattern, or null for a wildcard.obj - The object for the pattern, or null for a wildcard.explicit - Flag indicating whether explicit or inferred statements should be
removed; true removes explicit statements that match the
pattern, false removes inferred statements that match the
pattern.SailExceptionprotected boolean removeIteratorStatements(CloseableIteration<MemStatement,SailException> stIter, boolean explicit) throws SailException
SailExceptionprotected void setNamespaceInternal(String prefix, String name) throws SailException
setNamespaceInternal in class SailConnectionBaseSailExceptionprotected void removeNamespaceInternal(String prefix) throws SailException
removeNamespaceInternal in class SailConnectionBaseSailExceptionprotected void clearNamespacesInternal()
throws SailException
clearNamespacesInternal in class SailConnectionBaseSailExceptionCopyright © 2001-2014 Aduna. All Rights Reserved.