Class ElasticsearchStore
java.lang.Object
org.eclipse.rdf4j.sail.helpers.AbstractSail
org.eclipse.rdf4j.sail.helpers.AbstractNotifyingSail
org.eclipse.rdf4j.sail.extensiblestore.ExtensibleStore<org.eclipse.rdf4j.sail.elasticsearchstore.ElasticsearchDataStructure, org.eclipse.rdf4j.sail.elasticsearchstore.ElasticsearchNamespaceStore>
org.eclipse.rdf4j.sail.elasticsearchstore.ElasticsearchStore
- All Implemented Interfaces:
FederatedServiceResolverClient, NotifyingSail, Sail
@Deprecated(since="5.3.0",
forRemoval=true)
@Experimental
public class ElasticsearchStore
extends ExtensibleStore<org.eclipse.rdf4j.sail.elasticsearchstore.ElasticsearchDataStructure, org.eclipse.rdf4j.sail.elasticsearchstore.ElasticsearchNamespaceStore>
Deprecated, for removal: This API element is subject to removal in a future version.
Deprecated in preparation for an Elasticsearch client upgrade; this API will change or be removed in a
future release.
An RDF4J SailStore persisted to Elasticsearch.
This is an EXPERIMENTAL feature. Use at your own risk!
Note that, while RDF4J is licensed under the EDL, several ElasticSearch dependencies are licensed under the Elastic
License or the SSPL, which may have implications for some projects.
Please consult the ElasticSearch website and Elastic license FAQ for more information.
There is no write-ahead logging, so a failure during a transaction may result in partially persisted changes.
- Author:
- HÃ¥vard Mikkelsen Ottestad
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ExtensibleStore
ExtensibleStore.Cache -
Field Summary
Fields inherited from class ExtensibleStore
dataStructure, namespaceStore, sailStoreFields inherited from class AbstractSail
connectionTimeOut, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_ITERATION_SYNC_THRESHOLD, initializationLock -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchStore(String hostname, int port, String clusterName, String index) Deprecated, for removal: This API element is subject to removal in a future version.ElasticsearchStore(String hostname, int port, String clusterName, String index, ExtensibleStore.Cache cache) Deprecated, for removal: This API element is subject to removal in a future version.ElasticsearchStore(org.eclipse.rdf4j.sail.elasticsearchstore.ClientProvider clientPool, String index) Deprecated, for removal: This API element is subject to removal in a future version.ElasticsearchStore(org.eclipse.rdf4j.sail.elasticsearchstore.ClientProvider clientPool, String index, ExtensibleStore.Cache cache) Deprecated, for removal: This API element is subject to removal in a future version.ElasticsearchStore(org.elasticsearch.client.Client client, String index) Deprecated, for removal: This API element is subject to removal in a future version.ElasticsearchStore(org.elasticsearch.client.Client client, String index, ExtensibleStore.Cache cache) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.protected NotifyingSailConnectionDeprecated, for removal: This API element is subject to removal in a future version.Returns a store-specific SailConnection object.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getIndex()Deprecated, for removal: This API element is subject to removal in a future version.intgetPort()Deprecated, for removal: This API element is subject to removal in a future version.protected voidDeprecated, for removal: This API element is subject to removal in a future version.Do store-specific operations to initialize the store.booleanDeprecated, for removal: This API element is subject to removal in a future version.Checks whether this Sail object is writable, i.e. if the data contained in this Sail object can be changed.voidsetElasticsearchBulkSize(int size) Deprecated, for removal: This API element is subject to removal in a future version.voidsetElasticsearchScrollTimeout(int timeout) Deprecated, for removal: This API element is subject to removal in a future version.protected voidDeprecated, for removal: This API element is subject to removal in a future version.Do store-specific operations to ensure proper shutdown of the store.voidwaitForElasticsearch(int time, TemporalUnit timeUnit) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class ExtensibleStore
getCollectionFactory, getDefaultIsolationLevel, getEvaluationStatisticsType, getEvaluationStrategyFactory, getFederatedServiceResolver, getSupportedIsolationLevels, getValueFactory, setEvaluationStrategyFactory, setFederatedServiceResolverMethods inherited from class AbstractNotifyingSail
addSailChangedListener, getConnection, notifySailChanged, removeSailChangedListenerMethods inherited from class AbstractSail
addSupportedIsolationLevel, connectionClosed, debugEnabled, getDataDir, getDefaultQueryEvaluationMode, getIterationCacheSyncThreshold, init, isInitialized, isTrackResultSize, removeSupportedIsolationLevel, setConnectionTimeOut, setDataDir, setDefaultIsolationLevel, setDefaultQueryEvaluationMode, setIterationCacheSyncThreshold, setSupportedIsolationLevels, setSupportedIsolationLevels, setTrackResultSize, shutDown, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Sail
getDataDir, init, setDataDir, shutDown
-
Constructor Details
-
ElasticsearchStore
-
ElasticsearchStore
public ElasticsearchStore(String hostname, int port, String clusterName, String index, ExtensibleStore.Cache cache) Deprecated, for removal: This API element is subject to removal in a future version. -
ElasticsearchStore
public ElasticsearchStore(org.eclipse.rdf4j.sail.elasticsearchstore.ClientProvider clientPool, String index) Deprecated, for removal: This API element is subject to removal in a future version. -
ElasticsearchStore
public ElasticsearchStore(org.eclipse.rdf4j.sail.elasticsearchstore.ClientProvider clientPool, String index, ExtensibleStore.Cache cache) Deprecated, for removal: This API element is subject to removal in a future version. -
ElasticsearchStore
Deprecated, for removal: This API element is subject to removal in a future version. -
ElasticsearchStore
public ElasticsearchStore(org.elasticsearch.client.Client client, String index, ExtensibleStore.Cache cache) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
initializeInternal
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractSailDo store-specific operations to initialize the store. The default implementation of this method does nothing.- Overrides:
initializeInternalin classExtensibleStore<org.eclipse.rdf4j.sail.elasticsearchstore.ElasticsearchDataStructure, org.eclipse.rdf4j.sail.elasticsearchstore.ElasticsearchNamespaceStore>- Throws:
SailException
-
shutDownInternal
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractSailDo store-specific operations to ensure proper shutdown of the store.- Overrides:
shutDownInternalin classExtensibleStore<org.eclipse.rdf4j.sail.elasticsearchstore.ElasticsearchDataStructure, org.eclipse.rdf4j.sail.elasticsearchstore.ElasticsearchNamespaceStore>- Throws:
SailException
-
waitForElasticsearch
Deprecated, for removal: This API element is subject to removal in a future version. -
setElasticsearchScrollTimeout
public void setElasticsearchScrollTimeout(int timeout) Deprecated, for removal: This API element is subject to removal in a future version. -
getConnectionInternal
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractSailReturns a store-specific SailConnection object.- Specified by:
getConnectionInternalin classAbstractNotifyingSail- Returns:
- A connection to the store.
- Throws:
SailException
-
isWritable
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SailChecks whether this Sail object is writable, i.e. if the data contained in this Sail object can be changed.- Throws:
SailException
-
getHostname
Deprecated, for removal: This API element is subject to removal in a future version. -
getPort
public int getPort()Deprecated, for removal: This API element is subject to removal in a future version. -
getClusterName
Deprecated, for removal: This API element is subject to removal in a future version. -
getIndex
Deprecated, for removal: This API element is subject to removal in a future version. -
setElasticsearchBulkSize
public void setElasticsearchBulkSize(int size) Deprecated, for removal: This API element is subject to removal in a future version. -
getExtensibleStatementHelper
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getExtensibleStatementHelperin classExtensibleStore<org.eclipse.rdf4j.sail.elasticsearchstore.ElasticsearchDataStructure, org.eclipse.rdf4j.sail.elasticsearchstore.ElasticsearchNamespaceStore>
-