-
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.
Signed-off-by: Peng Huo <[email protected]>
- Loading branch information
Showing
38 changed files
with
805 additions
and
611 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
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.
30 changes: 0 additions & 30 deletions
30
core/src/main/java/org/opensearch/sql/catalog/model/CatalogMetadata.java
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
core/src/main/java/org/opensearch/sql/catalog/model/ConnectorType.java
This file was deleted.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
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,43 @@ | ||
/* | ||
* 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.datasource.model.DataSourceMetadata; | ||
|
||
/** | ||
* DataSource Service manage {@link DataSource}. | ||
*/ | ||
public interface DataSourceService { | ||
|
||
/** | ||
* Returns all DataSource objects. | ||
* | ||
* @return set of {@link DataSource}. | ||
*/ | ||
Set<DataSource> getDataSources(); | ||
|
||
/** | ||
* Returns {@link DataSource} with corresponding to the DataSource name. | ||
* | ||
* @param dataSourceName Name of the {@link DataSource}. | ||
* @return {@link DataSource}. | ||
*/ | ||
DataSource getDataSource(String dataSourceName); | ||
|
||
/** | ||
* Register {@link DataSource} defined by {@link DataSourceMetadata}. | ||
* | ||
* @param dataSourceMetadata {@link DataSourceMetadata}. | ||
*/ | ||
void addDataSource(DataSourceMetadata dataSourceMetadata); | ||
|
||
/** | ||
* remove all the registered {@link DataSource}. | ||
*/ | ||
void clear(); | ||
} |
Oops, something went wrong.