Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missed API visibility annotations for public APIs #12920

Merged
merged 1 commit into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
package org.opensearch.common.blobstore;

import org.opensearch.common.Nullable;
import org.opensearch.common.annotation.PublicApi;

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

private static final String SEPARATOR = "/";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

package org.opensearch.index.remote;

import org.opensearch.common.annotation.PublicApi;

import java.util.Set;

import static org.opensearch.index.remote.RemoteStoreDataEnums.DataType.DATA;
Expand All @@ -16,13 +18,14 @@
/**
* This class contains the different enums related to remote store data categories and types.
*
* @opensearch.internal
* @opensearch.api
*/
public class RemoteStoreDataEnums {

/**
* Categories of the data in Remote store.
*/
@PublicApi(since = "2.14.0")
public enum DataCategory {
SEGMENTS("segments", Set.of(DataType.values())),
TRANSLOG("translog", Set.of(DATA, METADATA));
Expand All @@ -47,6 +50,7 @@ public String getName() {
/**
* Types of data in remote store.
*/
@PublicApi(since = "2.14.0")
public enum DataType {
DATA("data"),
METADATA("metadata"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

package org.opensearch.index.remote;

import org.opensearch.common.annotation.PublicApi;
import org.opensearch.common.blobstore.BlobPath;
import org.opensearch.index.remote.RemoteStoreDataEnums.DataCategory;
import org.opensearch.index.remote.RemoteStoreDataEnums.DataType;
Expand All @@ -20,6 +21,7 @@
*
* @opensearch.internal
*/
@PublicApi(since = "2.14.0")
public enum RemoteStorePathType {

FIXED {
Expand Down
Loading