Class ExtensibleStore<T extends DataStructureInterface,N extends NamespaceStoreInterface>
- java.lang.Object
-
- org.eclipse.rdf4j.sail.helpers.AbstractSail
-
- org.eclipse.rdf4j.sail.helpers.AbstractNotifyingSail
-
- org.eclipse.rdf4j.sail.extensiblestore.ExtensibleStore<T,N>
-
- All Implemented Interfaces:
FederatedServiceResolverClient,NotifyingSail,Sail
- Direct Known Subclasses:
ElasticsearchStore
@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.
- Author:
- HÃ¥vard Mikkelsen Ottestad
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExtensibleStore.Cache
-
Field Summary
Fields Modifier and Type Field Description protected TdataStructureprotected NnamespaceStoreprotected ExtensibleSailStoresailStore-
Fields inherited from class org.eclipse.rdf4j.sail.helpers.AbstractSail
connectionTimeOut, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_ITERATION_SYNC_THRESHOLD, initializationLock
-
-
Constructor Summary
Constructors Constructor Description ExtensibleStore()ExtensibleStore(ExtensibleStore.Cache cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IsolationLevelgetDefaultIsolationLevel()Retrieves the defaultIsolationLevellevel on which transactions in this Sail operate.EvaluationStatisticsEnumgetEvaluationStatisticsType()EvaluationStrategyFactorygetEvaluationStrategyFactory()ExtensibleStatementHelpergetExtensibleStatementHelper()FederatedServiceResolvergetFederatedServiceResolver()Gets theFederatedServiceResolverused by this client.List<IsolationLevel>getSupportedIsolationLevels()Retrieve theIsolationLevels supported by this SAIL, ordered by increasing complexity.ValueFactorygetValueFactory()Gets a ValueFactory object that can be used to create IRI-, blank node-, literal- and statement objects.protected voidinitializeInternal()Do store-specific operations to initialize the store.voidsetEvaluationStrategyFactory(EvaluationStrategyFactory evalStratFactory)voidsetFederatedServiceResolver(FederatedServiceResolver resolver)Sets theFederatedServiceResolverto use for this client.protected voidshutDownInternal()Do store-specific operations to ensure proper shutdown of the store.-
Methods inherited from class org.eclipse.rdf4j.sail.helpers.AbstractNotifyingSail
addSailChangedListener, getConnection, getConnectionInternal, notifySailChanged, removeSailChangedListener
-
Methods inherited from class org.eclipse.rdf4j.sail.helpers.AbstractSail
addSupportedIsolationLevel, connectionClosed, debugEnabled, getDataDir, getDefaultQueryEvaluationMode, getIterationCacheSyncThreshold, init, isInitialized, isTrackResultSize, removeSupportedIsolationLevel, setConnectionTimeOut, setDataDir, setDefaultIsolationLevel, setDefaultQueryEvaluationMode, setIterationCacheSyncThreshold, setSupportedIsolationLevels, setSupportedIsolationLevels, setTrackResultSize, shutDown, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.sail.Sail
getDataDir, init, isWritable, setDataDir, shutDown
-
-
-
-
Field Detail
-
sailStore
protected ExtensibleSailStore sailStore
-
namespaceStore
protected N extends NamespaceStoreInterface namespaceStore
-
dataStructure
protected T extends DataStructureInterface dataStructure
-
-
Constructor Detail
-
ExtensibleStore
public ExtensibleStore()
-
ExtensibleStore
public ExtensibleStore(ExtensibleStore.Cache cache)
-
-
Method Detail
-
initializeInternal
protected void initializeInternal() throws SailExceptionDescription copied from class:AbstractSailDo store-specific operations to initialize the store. The default implementation of this method does nothing.- Overrides:
initializeInternalin classAbstractSail- Throws:
SailException
-
getSupportedIsolationLevels
public List<IsolationLevel> getSupportedIsolationLevels()
Description copied from interface:SailRetrieve theIsolationLevels supported by this SAIL, ordered by increasing complexity.- Specified by:
getSupportedIsolationLevelsin interfaceSail- Overrides:
getSupportedIsolationLevelsin classAbstractSail- Returns:
- a non-empty List of supported Isolation Levels, in order of increasing complexity. Every SAIL supports at
least one
IsolationLevel.
-
getDefaultIsolationLevel
public IsolationLevel getDefaultIsolationLevel()
Description copied from interface:SailRetrieves the defaultIsolationLevellevel on which transactions in this Sail operate.- Specified by:
getDefaultIsolationLevelin interfaceSail- Overrides:
getDefaultIsolationLevelin classAbstractSail- Returns:
- the
IsolationLevelthat will be used withSailConnection.begin(), for SAIL connections returned bySail.getConnection().
-
setFederatedServiceResolver
public void setFederatedServiceResolver(FederatedServiceResolver resolver)
Description copied from interface:FederatedServiceResolverClientSets theFederatedServiceResolverto use for this client.- Specified by:
setFederatedServiceResolverin interfaceFederatedServiceResolverClient- Parameters:
resolver- The resolver to use.
-
getValueFactory
public ValueFactory getValueFactory()
Description copied from interface:SailGets a ValueFactory object that can be used to create IRI-, blank node-, literal- and statement objects.- Specified by:
getValueFactoryin interfaceSail- Returns:
- a ValueFactory object for this Sail object.
-
getEvaluationStrategyFactory
public EvaluationStrategyFactory getEvaluationStrategyFactory()
-
getFederatedServiceResolver
public FederatedServiceResolver getFederatedServiceResolver()
Description copied from interface:FederatedServiceResolverClientGets theFederatedServiceResolverused by this client.- Specified by:
getFederatedServiceResolverin interfaceFederatedServiceResolverClient
-
setEvaluationStrategyFactory
public void setEvaluationStrategyFactory(EvaluationStrategyFactory evalStratFactory)
-
shutDownInternal
protected void shutDownInternal() throws SailExceptionDescription copied from class:AbstractSailDo store-specific operations to ensure proper shutdown of the store.- Specified by:
shutDownInternalin classAbstractSail- Throws:
SailException
-
getEvaluationStatisticsType
public EvaluationStatisticsEnum getEvaluationStatisticsType()
-
getExtensibleStatementHelper
public ExtensibleStatementHelper getExtensibleStatementHelper()
-
-