Skip to content

Commit c259bde

Browse files
committed
deprecate elasticsearch code to allow for changing the elasticsearch client in a future update
1 parent 3ab8523 commit c259bde

14 files changed

Lines changed: 55 additions & 1 deletion

core/sail/elasticsearch-store/src/main/java/org/eclipse/rdf4j/sail/elasticsearchstore/ElasticsearchStore.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@
5252
* @see <a href="https://www.elastic.co/licensing/elastic-license/faq">Elastic License FAQ</a>
5353
*
5454
* @author Håvard Mikkelsen Ottestad
55+
* @deprecated Deprecated in preparation for an Elasticsearch client upgrade; this API will change or be removed in a
56+
* future release.
5557
*/
58+
@Deprecated(since = "5.3.0", forRemoval = true)
5659
@Experimental
5760
public class ElasticsearchStore extends ExtensibleStore<ElasticsearchDataStructure, ElasticsearchNamespaceStore> {
5861

core/sail/elasticsearch-store/src/main/java/org/eclipse/rdf4j/sail/elasticsearchstore/ElasticsearchStoreConnection.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515

1616
/**
1717
* @author Håvard Mikkelsen Ottestad
18+
* @deprecated Deprecated in preparation for an Elasticsearch client upgrade; this API will change or be removed in a
19+
* future release.
1820
*/
19-
21+
@Deprecated(since = "5.3.0", forRemoval = true)
2022
@Experimental
2123
public class ElasticsearchStoreConnection extends ExtensibleStoreConnection<ElasticsearchStore> {
2224

core/sail/elasticsearch-store/src/main/java/org/eclipse/rdf4j/sail/elasticsearchstore/SingletonClientProvider.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222

2323
/**
2424
* @author Håvard Mikkelsen Ottestad
25+
* @deprecated Deprecated in preparation for an Elasticsearch client upgrade; this API will change or be removed in a
26+
* future release.
2527
*/
28+
@Deprecated(since = "5.3.0", forRemoval = true)
2629
public class SingletonClientProvider implements ClientProvider {
2730

2831
transient private Client client;

core/sail/elasticsearch-store/src/main/java/org/eclipse/rdf4j/sail/elasticsearchstore/UserProvidedClientProvider.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
* cluster information. The client provided by the user is not closed by the ElasticsearchStore.
1818
*
1919
* @author Håvard Mikkelsen Ottestad
20+
* @deprecated Deprecated in preparation for an Elasticsearch client upgrade; this API will change or be removed in a
21+
* future release.
2022
*/
23+
@Deprecated(since = "5.3.0", forRemoval = true)
2124
public class UserProvidedClientProvider implements ClientProvider {
2225

2326
final private Client client;

core/sail/elasticsearch-store/src/main/java/org/eclipse/rdf4j/sail/elasticsearchstore/config/ElasticsearchStoreConfig.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525

2626
/**
2727
* @author Håvard Mikkelsen Ottestad
28+
* @deprecated Deprecated in preparation for an Elasticsearch client upgrade; this API will change or be removed in a
29+
* future release.
2830
*/
31+
@Deprecated(since = "5.3.0", forRemoval = true)
2932
public class ElasticsearchStoreConfig extends BaseSailConfig {
3033

3134
private String hostname;

core/sail/elasticsearch-store/src/main/java/org/eclipse/rdf4j/sail/elasticsearchstore/config/ElasticsearchStoreFactory.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
* configuration data.
2323
*
2424
* @author Håvard Mikkelsen Ottestad
25+
* @deprecated Deprecated in preparation for an Elasticsearch client upgrade; this API will change or be removed in a
26+
* future release.
2527
*/
28+
@Deprecated(since = "5.3.0", forRemoval = true)
2629
public class ElasticsearchStoreFactory implements SailFactory {
2730

2831
/**

core/sail/elasticsearch/src/main/java/org/eclipse/rdf4j/sail/elasticsearch/ElasticsearchBulkUpdater.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
import org.elasticsearch.action.bulk.BulkResponse;
1919
import org.elasticsearch.client.Client;
2020

21+
/**
22+
* @deprecated Deprecated in preparation for an Elasticsearch client upgrade; this API will change or be removed in a
23+
* future release.
24+
*/
25+
@Deprecated(since = "5.3.0", forRemoval = true)
2126
public class ElasticsearchBulkUpdater implements BulkUpdater {
2227

2328
private final Client client;

core/sail/elasticsearch/src/main/java/org/eclipse/rdf4j/sail/elasticsearch/ElasticsearchDocument.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131

3232
import com.google.common.base.Function;
3333

34+
/**
35+
* @deprecated Deprecated in preparation for an Elasticsearch client upgrade; this API will change or be removed in a
36+
* future release.
37+
*/
38+
@Deprecated(since = "5.3.0", forRemoval = true)
3439
public class ElasticsearchDocument implements SearchDocument {
3540

3641
private final String id;

core/sail/elasticsearch/src/main/java/org/eclipse/rdf4j/sail/elasticsearch/ElasticsearchDocumentDistance.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222

2323
import com.google.common.base.Function;
2424

25+
/**
26+
* @deprecated Deprecated in preparation for an Elasticsearch client upgrade; this API will change or be removed in a
27+
* future release.
28+
*/
29+
@Deprecated(since = "5.3.0", forRemoval = true)
2530
public class ElasticsearchDocumentDistance extends ElasticsearchDocumentResult implements DocumentDistance {
2631

2732
private final String geoPointField;

core/sail/elasticsearch/src/main/java/org/eclipse/rdf4j/sail/elasticsearch/ElasticsearchDocumentResult.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717

1818
import com.google.common.base.Function;
1919

20+
/**
21+
* @deprecated Deprecated in preparation for an Elasticsearch client upgrade; this API will change or be removed in a
22+
* future release.
23+
*/
24+
@Deprecated(since = "5.3.0", forRemoval = true)
2025
public class ElasticsearchDocumentResult implements DocumentResult {
2126

2227
protected final SearchHit hit;

0 commit comments

Comments
 (0)