forked from opensearch-project/opensearch-spark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into parse-command
- Loading branch information
Showing
106 changed files
with
3,317 additions
and
1,008 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
...ommons/src/main/scala/org/opensearch/flint/common/metadata/FlintIndexMetadataService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.opensearch.flint.common.metadata; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* Flint index metadata service provides API for index metadata related operations on a Flint index | ||
* regardless of underlying storage. | ||
* <p> | ||
* Custom implementations of this interface are expected to provide a public constructor with | ||
* the signature {@code public MyCustomService(SparkConf sparkConf)} to be instantiated by | ||
* the FlintIndexMetadataServiceBuilder. | ||
*/ | ||
public interface FlintIndexMetadataService { | ||
|
||
/** | ||
* Retrieve metadata for a Flint index. | ||
* | ||
* @param indexName index name | ||
* @return index metadata | ||
*/ | ||
FlintMetadata getIndexMetadata(String indexName); | ||
|
||
/** | ||
* Retrieve all metadata for Flint index whose name matches the given pattern. | ||
* | ||
* @param indexNamePattern index name pattern | ||
* @return map where the keys are the matched index names, and the values are | ||
* corresponding index metadata | ||
*/ | ||
Map<String, FlintMetadata> getAllIndexMetadata(String... indexNamePattern); | ||
|
||
/** | ||
* Update metadata for a Flint index. | ||
* | ||
* @param indexName index name | ||
* @param metadata index metadata to update | ||
*/ | ||
void updateIndexMetadata(String indexName, FlintMetadata metadata); | ||
|
||
/** | ||
* Delete metadata for a Flint index. | ||
* | ||
* @param indexName index name | ||
*/ | ||
void deleteIndexMetadata(String indexName); | ||
} |
Oops, something went wrong.