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 -
Field Summary
FieldsFields inherited from class org.eclipse.rdf4j.sail.helpers.AbstractSail
connectionTimeOut, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_ITERATION_SYNC_THRESHOLD, initializationLock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets a CollectionFactory that may be optimized for this store and may or may not use disk or other resources.Retrieves the defaultIsolationLevellevel on which transactions in this Sail operate.Gets theFederatedServiceResolverused by this client.Retrieve theIsolationLevels supported by this SAIL, ordered by increasing complexity.Gets a ValueFactory object that can be used to create IRI-, blank node-, literal- and statement objects.protected voidDo store-specific operations to initialize the store.voidsetEvaluationStrategyFactory(EvaluationStrategyFactory evalStratFactory) voidSets theFederatedServiceResolverto use for this client.protected voidDo store-specific operations to ensure proper shutdown of the store.Methods inherited from class org.eclipse.rdf4j.sail.helpers.AbstractNotifyingSail
addSailChangedListener, getConnection, getConnectionInternal, notifySailChanged, removeSailChangedListenerMethods 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.rdf4j.sail.Sail
getDataDir, init, isWritable, setDataDir, shutDown
-
Field Details
-
sailStore
-
namespaceStore
-
dataStructure
-
-
Constructor Details
-
ExtensibleStore
public ExtensibleStore() -
ExtensibleStore
-
-
Method Details
-
initializeInternal
Description 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
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
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
Description copied from interface:FederatedServiceResolverClientSets theFederatedServiceResolverto use for this client.- Specified by:
setFederatedServiceResolverin interfaceFederatedServiceResolverClient- Parameters:
resolver- The resolver to use.
-
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
-
getFederatedServiceResolver
Description copied from interface:FederatedServiceResolverClientGets theFederatedServiceResolverused by this client.- Specified by:
getFederatedServiceResolverin interfaceFederatedServiceResolverClient
-
setEvaluationStrategyFactory
-
shutDownInternal
Description copied from class:AbstractSailDo store-specific operations to ensure proper shutdown of the store.- Specified by:
shutDownInternalin classAbstractSail- Throws:
SailException
-
getEvaluationStatisticsType
-
getExtensibleStatementHelper
-
getCollectionFactory
Description copied from interface:SailGets a CollectionFactory that may be optimized for this store and may or may not use disk or other resources.- Specified by:
getCollectionFactoryin interfaceSail- Returns:
- a CollectionFactory
-