@Experimental public abstract class ExtensibleStore<T extends DataStructureInterface,N extends NamespaceStoreInterface> extends AbstractNotifyingSail implements FederatedServiceResolverClient
A store where the backing storage can be implemented by the user. Supports up to ReadCommitted.
Extend this class and extend ExtensibleStoreConnection. Implement getConnection().
Implement the DataStructureInterface and the NamespaceStoreInterface. In your ExtensibleStore-extending class implement a constructor and set the following variables: namespaceStore, dataStructure, dataStructureInferred.
Note that the entire ExtensibleStore and all code in this package is experimental. Method signatures, class names, interfaces and the like are likely to change in future releases.
Modifier and Type | Field and Description |
---|---|
protected T |
dataStructure |
protected N |
namespaceStore |
protected ExtensibleSailStore |
sailStore |
connectionTimeOut, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_ITERATION_SYNC_THRESHOLD, initializationLock
Constructor and Description |
---|
ExtensibleStore() |
ExtensibleStore(boolean cacheEnabled) |
Modifier and Type | Method and Description |
---|---|
IsolationLevel |
getDefaultIsolationLevel()
Retrieves the default
IsolationLevel level on which transactions in this Sail operate. |
EvaluationStatisticsEnum |
getEvaluationStatisticsType() |
EvaluationStrategyFactory |
getEvaluationStrategyFactory() |
ExtensibleStatementHelper |
getExtensibleStatementHelper() |
FederatedServiceResolver |
getFederatedServiceResolver() |
List<IsolationLevel> |
getSupportedIsolationLevels()
Retrieve the
IsolationLevel s supported by this SAIL, ordered by increasing complexity. |
ValueFactory |
getValueFactory()
Gets a ValueFactory object that can be used to create IRI-, blank node-, literal- and statement objects.
|
protected void |
initializeInternal()
Do store-specific operations to initialize the store.
|
void |
setEvaluationStrategyFactory(EvaluationStrategyFactory evalStratFactory) |
void |
setFederatedServiceResolver(FederatedServiceResolver resolver)
Sets the
FederatedServiceResolver to use for this client. |
protected void |
shutDownInternal()
Do store-specific operations to ensure proper shutdown of the store.
|
addSailChangedListener, getConnection, getConnectionInternal, notifySailChanged, removeSailChangedListener
addSupportedIsolationLevel, connectionClosed, debugEnabled, getDataDir, getIterationCacheSyncThreshold, init, initialize, isInitialized, isTrackResultSize, removeSupportedIsolationLevel, setConnectionTimeOut, setDataDir, setDefaultIsolationLevel, setIterationCacheSyncThreshold, setSupportedIsolationLevels, setSupportedIsolationLevels, setTrackResultSize, shutDown, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDataDir, init, initialize, isWritable, setDataDir, shutDown
protected ExtensibleSailStore sailStore
protected N extends NamespaceStoreInterface namespaceStore
protected T extends DataStructureInterface dataStructure
public ExtensibleStore()
public ExtensibleStore(boolean cacheEnabled)
protected void initializeInternal() throws SailException
AbstractSail
initializeInternal
in class AbstractSail
SailException
public List<IsolationLevel> getSupportedIsolationLevels()
Sail
IsolationLevel
s supported by this SAIL, ordered by increasing complexity.getSupportedIsolationLevels
in interface Sail
getSupportedIsolationLevels
in class AbstractSail
IsolationLevel
.public IsolationLevel getDefaultIsolationLevel()
Sail
IsolationLevel
level on which transactions in this Sail operate.getDefaultIsolationLevel
in interface Sail
getDefaultIsolationLevel
in class AbstractSail
IsolationLevel
that will be used with SailConnection.begin()
, for SAIL connections
returned by Sail.getConnection()
.public void setFederatedServiceResolver(FederatedServiceResolver resolver)
FederatedServiceResolverClient
FederatedServiceResolver
to use for this client.setFederatedServiceResolver
in interface FederatedServiceResolverClient
resolver
- The resolver to use.public ValueFactory getValueFactory()
Sail
getValueFactory
in interface Sail
public EvaluationStrategyFactory getEvaluationStrategyFactory()
public FederatedServiceResolver getFederatedServiceResolver()
public void setEvaluationStrategyFactory(EvaluationStrategyFactory evalStratFactory)
protected void shutDownInternal() throws SailException
AbstractSail
shutDownInternal
in class AbstractSail
SailException
public EvaluationStatisticsEnum getEvaluationStatisticsType()
public ExtensibleStatementHelper getExtensibleStatementHelper()
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.