forked from opensearch-project/sql
-
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.
FlintIndexMetadataReader refactoring
Signed-off-by: Vamsi Manohar <reddyvam@amazon.com>
- Loading branch information
Showing
27 changed files
with
1,121 additions
and
262 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,6 +155,7 @@ DOT: '.'; | |
|
||
|
||
AS: 'AS'; | ||
ALTER: 'ALTER'; | ||
CREATE: 'CREATE'; | ||
DESC: 'DESC'; | ||
DESCRIBE: 'DESCRIBE'; | ||
|
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
21 changes: 8 additions & 13 deletions
21
spark/src/main/java/org/opensearch/sql/spark/flint/FlintIndexMetadataReader.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 |
---|---|---|
@@ -1,23 +1,18 @@ | ||
package org.opensearch.sql.spark.flint; | ||
|
||
import org.opensearch.sql.spark.dispatcher.model.IndexQueryDetails; | ||
import java.util.Map; | ||
import org.opensearch.sql.spark.flint.model.FlintIndexDetailsRequest; | ||
|
||
/** Interface for FlintIndexMetadataReader */ | ||
public interface FlintIndexMetadataReader { | ||
|
||
/** | ||
* Given Index details, get the streaming job Id. | ||
* Retrieves a map of {@link FlintIndexMetadata} instances matching the specified index pattern. | ||
* | ||
* @param indexQueryDetails indexDetails. | ||
* @return FlintIndexMetadata. | ||
* @param flintIndexDetailsRequest {@link FlintIndexDetailsRequest} | ||
* @return A map of {@link FlintIndexMetadata} instances against indexName, each providing | ||
* metadata access for a matched index. Returns an empty list if no indices match the pattern. | ||
*/ | ||
FlintIndexMetadata getFlintIndexMetadata(IndexQueryDetails indexQueryDetails); | ||
|
||
/** | ||
* Given Index name, get the streaming job Id. | ||
* | ||
* @param indexName indexName. | ||
* @return FlintIndexMetadata. | ||
*/ | ||
FlintIndexMetadata getFlintIndexMetadata(String indexName); | ||
Map<String, FlintIndexMetadata> getFlintIndexMetadata( | ||
FlintIndexDetailsRequest flintIndexDetailsRequest); | ||
} |
Oops, something went wrong.