Skip to content

Commit f6d6fd3

Browse files
authored
Add missed API visibility annotations for public APIs (opensearch-project#12920)
Signed-off-by: Ashish Singh <ssashish@amazon.com>
1 parent 3907ec9 commit f6d6fd3

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

server/src/main/java/org/opensearch/common/blobstore/BlobPath.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
package org.opensearch.common.blobstore;
3434

3535
import org.opensearch.common.Nullable;
36+
import org.opensearch.common.annotation.PublicApi;
3637

3738
import java.util.ArrayList;
3839
import java.util.Collections;
@@ -42,8 +43,9 @@
4243
/**
4344
* The list of paths where a blob can reside. The contents of the paths are dependent upon the implementation of {@link BlobContainer}.
4445
*
45-
* @opensearch.internal
46+
* @opensearch.api
4647
*/
48+
@PublicApi(since = "1.0.0")
4749
public class BlobPath implements Iterable<String> {
4850

4951
private static final String SEPARATOR = "/";

server/src/main/java/org/opensearch/index/remote/RemoteStoreDataEnums.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
package org.opensearch.index.remote;
1010

11+
import org.opensearch.common.annotation.PublicApi;
12+
1113
import java.util.Set;
1214

1315
import static org.opensearch.index.remote.RemoteStoreDataEnums.DataType.DATA;
@@ -16,13 +18,14 @@
1618
/**
1719
* This class contains the different enums related to remote store data categories and types.
1820
*
19-
* @opensearch.internal
21+
* @opensearch.api
2022
*/
2123
public class RemoteStoreDataEnums {
2224

2325
/**
2426
* Categories of the data in Remote store.
2527
*/
28+
@PublicApi(since = "2.14.0")
2629
public enum DataCategory {
2730
SEGMENTS("segments", Set.of(DataType.values())),
2831
TRANSLOG("translog", Set.of(DATA, METADATA));
@@ -47,6 +50,7 @@ public String getName() {
4750
/**
4851
* Types of data in remote store.
4952
*/
53+
@PublicApi(since = "2.14.0")
5054
public enum DataType {
5155
DATA("data"),
5256
METADATA("metadata"),

server/src/main/java/org/opensearch/index/remote/RemoteStorePathType.java

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
package org.opensearch.index.remote;
1010

11+
import org.opensearch.common.annotation.PublicApi;
1112
import org.opensearch.common.blobstore.BlobPath;
1213
import org.opensearch.index.remote.RemoteStoreDataEnums.DataCategory;
1314
import org.opensearch.index.remote.RemoteStoreDataEnums.DataType;
@@ -20,6 +21,7 @@
2021
*
2122
* @opensearch.internal
2223
*/
24+
@PublicApi(since = "2.14.0")
2325
public enum RemoteStorePathType {
2426

2527
FIXED {

0 commit comments

Comments
 (0)