public abstract class SailSourceConnection extends NotifyingSailConnectionBase implements InferencerConnection, FederatedServiceResolverClient
SailConnection implementation that is based on an SailStore .connectionLock, updateLock| Modifier | Constructor and Description |
|---|---|
protected |
SailSourceConnection(AbstractSail sail,
SailStore store,
EvaluationStrategyFactory evalStratFactory)
Creates a new
SailConnection, using the given SailStore to manage the state. |
protected |
SailSourceConnection(AbstractSail sail,
SailStore store,
FederatedServiceResolver resolver)
Creates a new
SailConnection, using the given SailStore to manage the state. |
addConnectionListener, hasConnectionListeners, notifyStatementAdded, notifyStatementRemoved, removeConnectionListeneraddStatement, addStatementInternal, autoStartTransaction, begin, begin, clear, clearNamespaces, close, commit, endUpdate, evaluate, flush, getContextIDs, getExclusiveConnectionLock, getNamespace, getNamespaces, getSharedConnectionLock, getStatements, getTransactionIsolation, getTransactionLock, isActive, isActiveOperation, isOpen, iterationClosed, pendingAdds, pendingRemovals, prepare, registerIteration, removeNamespace, removeStatements, removeStatementsInternal, rollback, setNamespace, size, transactionActive, verifyIsActive, verifyIsOpenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddConnectionListener, removeConnectionListeneraddStatement, addStatement, addStatement, begin, begin, clear, clearNamespaces, close, commit, endUpdate, evaluate, flush, getContextIDs, getNamespace, getNamespaces, getStatements, getStatements, hasStatement, isActive, isOpen, pendingRemovals, prepare, prepareQuery, removeNamespace, removeStatement, removeStatements, removeStatements, rollback, setNamespace, setTransactionSettings, sizeprotected SailSourceConnection(AbstractSail sail, SailStore store, FederatedServiceResolver resolver)
SailConnection, using the given SailStore to manage the state.sail - store - resolver - the FederatedServiceResolver to use with the default
EvaluationStrategy.protected SailSourceConnection(AbstractSail sail, SailStore store, EvaluationStrategyFactory evalStratFactory)
SailConnection, using the given SailStore to manage the state.sail - store - evalStratFactory - the EvaluationStrategyFactory to use.public FederatedServiceResolver getFederatedServiceResolver()
FederatedServiceResolver being used.EvaluationStrategyFactory is being used.public void setFederatedServiceResolver(FederatedServiceResolver resolver)
FederatedServiceResolver to use. If a custom EvaluationStrategyFactory is being used
then this only has an effect if it implements FederatedServiceResolverClient.setFederatedServiceResolver in interface FederatedServiceResolverClientprotected EvaluationStrategy getEvaluationStrategy(Dataset dataset, TripleSource tripleSource)
protected CloseableIteration<? extends BindingSet,QueryEvaluationException> evaluateInternal(TupleExpr tupleExpr, Dataset dataset, BindingSet bindings, boolean includeInferred) throws SailException
evaluateInternal in class AbstractSailConnectionSailExceptionpublic Explanation explain(Explanation.Level level, TupleExpr tupleExpr, Dataset dataset, BindingSet bindings, boolean includeInferred, int timeoutSeconds)
explain in interface SailConnectionprotected void closeInternal()
throws SailException
closeInternal in class AbstractSailConnectionSailExceptionprotected CloseableIteration<? extends org.eclipse.rdf4j.model.Resource,SailException> getContextIDsInternal() throws SailException
getContextIDsInternal in class AbstractSailConnectionSailExceptionprotected CloseableIteration<? extends org.eclipse.rdf4j.model.Statement,SailException> getStatementsInternal(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, boolean includeInferred, org.eclipse.rdf4j.model.Resource... contexts) throws SailException
getStatementsInternal in class AbstractSailConnectionSailExceptionprotected long sizeInternal(org.eclipse.rdf4j.model.Resource... contexts) throws SailException
sizeInternal in class AbstractSailConnectionSailExceptionprotected CloseableIteration<? extends org.eclipse.rdf4j.model.Namespace,SailException> getNamespacesInternal() throws SailException
getNamespacesInternal in class AbstractSailConnectionSailExceptionprotected String getNamespaceInternal(String prefix) throws SailException
getNamespaceInternal in class AbstractSailConnectionSailExceptionprotected void startTransactionInternal()
throws SailException
startTransactionInternal in class AbstractSailConnectionSailExceptionprotected void prepareInternal()
throws SailException
prepareInternal in class AbstractSailConnectionSailExceptionprotected void commitInternal()
throws SailException
commitInternal in class AbstractSailConnectionSailExceptionprotected void rollbackInternal()
throws SailException
rollbackInternal in class AbstractSailConnectionSailExceptionpublic void startUpdate(UpdateContext op) throws SailException
startUpdate in interface SailConnectionstartUpdate in class AbstractSailConnectionSailExceptionpublic void addStatement(UpdateContext op, org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts) throws SailException
addStatement in interface SailConnectionaddStatement in class AbstractSailConnectionSailExceptionpublic void removeStatement(UpdateContext op, org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts) throws SailException
removeStatement in interface SailConnectionremoveStatement in class AbstractSailConnectionSailExceptionprotected void endUpdateInternal(UpdateContext op) throws SailException
endUpdateInternal in class AbstractSailConnectionSailExceptionpublic boolean addInferredStatement(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts) throws SailException
InferencerConnectionaddInferredStatement in interface InferencerConnectionsubj - The subject of the statement to add.pred - The predicate of the statement to add.obj - The object of the statement to add.contexts - The context(s) to add the statement to. Note that this parameter is a vararg and as such is
optional. If no contexts are supplied the method operates on the entire repository.SailException - If the statement could not be added.public boolean removeInferredStatement(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts) throws SailException
InferencerConnectionremoveInferredStatement in interface InferencerConnectionsubj - The subject of the statement that should be removed.pred - The predicate of the statement that should be removed.obj - The object of the statement that should be removed.contexts - The context(s) from which to remove the statements. Note that this parameter is a vararg and as
such is optional. If no contexts are supplied the method operates on the entire repository.SailException - If the statement could not be removed.protected void clearInternal(org.eclipse.rdf4j.model.Resource... contexts) throws SailException
clearInternal in class AbstractSailConnectionSailExceptionpublic void clearInferred(org.eclipse.rdf4j.model.Resource... contexts) throws SailException
InferencerConnectionclearInferred in interface InferencerConnectioncontexts - The context(s) from which to remove the statements. Note that this parameter is a vararg and as
such is optional. If no contexts are supplied the method operates on the entire repository.SailException - If the statements could not be removed.public void flushUpdates()
throws SailException
InferencerConnectionSailConnectionListeners.flushUpdates in interface InferencerConnectionSailException - If the updates could not be processed.protected void setNamespaceInternal(String prefix, String name) throws SailException
setNamespaceInternal in class AbstractSailConnectionSailExceptionprotected void removeNamespaceInternal(String prefix) throws SailException
removeNamespaceInternal in class AbstractSailConnectionSailExceptionprotected void clearNamespacesInternal()
throws SailException
clearNamespacesInternal in class AbstractSailConnectionSailExceptionCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.