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
-
Field Summary
Fields inherited from class org.eclipse.rdf4j.sail.helpers.AbstractSail
connectionTimeOut, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_ITERATION_SYNC_THRESHOLD, initializationLock
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the defaultIsolationLevel
level on which transactions in this Sail operate.Retrieve theIsolationLevel
s 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 void
Do store-specific operations to initialize the store.void
setEvaluationStrategyFactory
(EvaluationStrategyFactory evalStratFactory) void
Sets theFederatedServiceResolver
to use for this client.protected void
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, getIterationCacheSyncThreshold, init, isInitialized, isTrackResultSize, removeSupportedIsolationLevel, setConnectionTimeOut, setDataDir, setDefaultIsolationLevel, 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 Details
-
sailStore
-
namespaceStore
-
dataStructure
-
-
Constructor Details
-
ExtensibleStore
public ExtensibleStore() -
ExtensibleStore
public ExtensibleStore(boolean cacheEnabled)
-
-
Method Details
-
initializeInternal
Description copied from class:AbstractSail
Do store-specific operations to initialize the store. The default implementation of this method does nothing.- Overrides:
initializeInternal
in classAbstractSail
- Throws:
SailException
-
getSupportedIsolationLevels
Description copied from interface:Sail
Retrieve theIsolationLevel
s supported by this SAIL, ordered by increasing complexity.- Specified by:
getSupportedIsolationLevels
in interfaceSail
- Overrides:
getSupportedIsolationLevels
in 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:Sail
Retrieves the defaultIsolationLevel
level on which transactions in this Sail operate.- Specified by:
getDefaultIsolationLevel
in interfaceSail
- Overrides:
getDefaultIsolationLevel
in classAbstractSail
- Returns:
- the
IsolationLevel
that will be used withSailConnection.begin()
, for SAIL connections returned bySail.getConnection()
.
-
setFederatedServiceResolver
Description copied from interface:FederatedServiceResolverClient
Sets theFederatedServiceResolver
to use for this client.- Specified by:
setFederatedServiceResolver
in interfaceFederatedServiceResolverClient
- Parameters:
resolver
- The resolver to use.
-
getValueFactory
Description copied from interface:Sail
Gets a ValueFactory object that can be used to create IRI-, blank node-, literal- and statement objects.- Specified by:
getValueFactory
in interfaceSail
- Returns:
- a ValueFactory object for this Sail object.
-
getEvaluationStrategyFactory
-
getFederatedServiceResolver
-
setEvaluationStrategyFactory
-
shutDownInternal
Description copied from class:AbstractSail
Do store-specific operations to ensure proper shutdown of the store.- Specified by:
shutDownInternal
in classAbstractSail
- Throws:
SailException
-
getEvaluationStatisticsType
-
getExtensibleStatementHelper
-