-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Catalog to Datasource changes (#1086)
Signed-off-by: vamsi-amazon <[email protected]>
- Loading branch information
Showing
74 changed files
with
745 additions
and
739 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
40 changes: 0 additions & 40 deletions
40
core/src/main/java/org/opensearch/sql/catalog/CatalogService.java
This file was deleted.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
core/src/main/java/org/opensearch/sql/datasource/DataSourceService.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,40 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.opensearch.sql.datasource; | ||
|
||
import java.util.Set; | ||
import org.opensearch.sql.datasource.model.DataSource; | ||
import org.opensearch.sql.storage.StorageEngine; | ||
|
||
/** | ||
* DataSource Service manages datasources. | ||
*/ | ||
public interface DataSourceService { | ||
|
||
/** | ||
* Returns all datasource objects. | ||
* | ||
* @return DataSource datasources. | ||
*/ | ||
Set<DataSource> getDataSources(); | ||
|
||
/** | ||
* Returns DataSource with corresponding to the datasource name. | ||
* | ||
* @param dataSourceName Name of the datasource. | ||
* @return DataSource datasource. | ||
*/ | ||
DataSource getDataSource(String dataSourceName); | ||
|
||
/** | ||
* Default opensearch engine is not defined in datasources config. | ||
* So the registration of default datasource happens separately. | ||
* | ||
* @param storageEngine StorageEngine. | ||
*/ | ||
void registerDefaultOpenSearchDataSource(StorageEngine storageEngine); | ||
|
||
} |
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
Oops, something went wrong.