类 ElasticSearchCatalog
- java.lang.Object
-
- org.apache.seatunnel.connectors.seatunnel.elasticsearch.catalog.ElasticSearchCatalog
-
- 所有已实现的接口:
AutoCloseable,org.apache.seatunnel.api.table.catalog.Catalog
public class ElasticSearchCatalog extends Object implements org.apache.seatunnel.api.table.catalog.Catalog
Elasticsearch catalog implementation.In ElasticSearch, we use the index as the database and table.
-
-
构造器概要
构造器 构造器 说明 ElasticSearchCatalog(String catalogName, String defaultDatabase, org.apache.seatunnel.api.configuration.ReadonlyConfig config)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()voidcreateDatabase(org.apache.seatunnel.api.table.catalog.TablePath tablePath, boolean ignoreIfExists)voidcreateTable(org.apache.seatunnel.api.table.catalog.TablePath tablePath, org.apache.seatunnel.api.table.catalog.CatalogTable table, boolean ignoreIfExists)booleandatabaseExists(String databaseName)voiddropDatabase(org.apache.seatunnel.api.table.catalog.TablePath tablePath, boolean ignoreIfNotExists)voiddropTable(org.apache.seatunnel.api.table.catalog.TablePath tablePath, boolean ignoreIfNotExists)StringgetDefaultDatabase()org.apache.seatunnel.api.table.catalog.CatalogTablegetTable(org.apache.seatunnel.api.table.catalog.TablePath tablePath)booleanisExistsData(org.apache.seatunnel.api.table.catalog.TablePath tablePath)List<String>listDatabases()List<String>listTables(String databaseName)Stringname()voidopen()org.apache.seatunnel.api.table.catalog.PreviewResultpreviewAction(org.apache.seatunnel.api.table.catalog.Catalog.ActionType actionType, org.apache.seatunnel.api.table.catalog.TablePath tablePath, Optional<org.apache.seatunnel.api.table.catalog.CatalogTable> catalogTable)booleantableExists(org.apache.seatunnel.api.table.catalog.TablePath tablePath)voidtruncateTable(org.apache.seatunnel.api.table.catalog.TablePath tablePath, boolean ignoreIfNotExists)
-
-
-
方法详细资料
-
open
public void open() throws org.apache.seatunnel.api.table.catalog.exception.CatalogException- 指定者:
open在接口中org.apache.seatunnel.api.table.catalog.Catalog- 抛出:
org.apache.seatunnel.api.table.catalog.exception.CatalogException
-
close
public void close() throws org.apache.seatunnel.api.table.catalog.exception.CatalogException- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中org.apache.seatunnel.api.table.catalog.Catalog- 抛出:
org.apache.seatunnel.api.table.catalog.exception.CatalogException
-
name
public String name()
- 指定者:
name在接口中org.apache.seatunnel.api.table.catalog.Catalog
-
getDefaultDatabase
public String getDefaultDatabase() throws org.apache.seatunnel.api.table.catalog.exception.CatalogException
- 指定者:
getDefaultDatabase在接口中org.apache.seatunnel.api.table.catalog.Catalog- 抛出:
org.apache.seatunnel.api.table.catalog.exception.CatalogException
-
databaseExists
public boolean databaseExists(String databaseName) throws org.apache.seatunnel.api.table.catalog.exception.CatalogException
- 指定者:
databaseExists在接口中org.apache.seatunnel.api.table.catalog.Catalog- 抛出:
org.apache.seatunnel.api.table.catalog.exception.CatalogException
-
listDatabases
public List<String> listDatabases() throws org.apache.seatunnel.api.table.catalog.exception.CatalogException
- 指定者:
listDatabases在接口中org.apache.seatunnel.api.table.catalog.Catalog- 抛出:
org.apache.seatunnel.api.table.catalog.exception.CatalogException
-
listTables
public List<String> listTables(String databaseName) throws org.apache.seatunnel.api.table.catalog.exception.CatalogException, org.apache.seatunnel.api.table.catalog.exception.DatabaseNotExistException
- 指定者:
listTables在接口中org.apache.seatunnel.api.table.catalog.Catalog- 抛出:
org.apache.seatunnel.api.table.catalog.exception.CatalogExceptionorg.apache.seatunnel.api.table.catalog.exception.DatabaseNotExistException
-
tableExists
public boolean tableExists(org.apache.seatunnel.api.table.catalog.TablePath tablePath) throws org.apache.seatunnel.api.table.catalog.exception.CatalogException- 指定者:
tableExists在接口中org.apache.seatunnel.api.table.catalog.Catalog- 抛出:
org.apache.seatunnel.api.table.catalog.exception.CatalogException
-
getTable
public org.apache.seatunnel.api.table.catalog.CatalogTable getTable(org.apache.seatunnel.api.table.catalog.TablePath tablePath) throws org.apache.seatunnel.api.table.catalog.exception.CatalogException, org.apache.seatunnel.api.table.catalog.exception.TableNotExistException- 指定者:
getTable在接口中org.apache.seatunnel.api.table.catalog.Catalog- 抛出:
org.apache.seatunnel.api.table.catalog.exception.CatalogExceptionorg.apache.seatunnel.api.table.catalog.exception.TableNotExistException
-
createTable
public void createTable(org.apache.seatunnel.api.table.catalog.TablePath tablePath, org.apache.seatunnel.api.table.catalog.CatalogTable table, boolean ignoreIfExists) throws org.apache.seatunnel.api.table.catalog.exception.TableAlreadyExistException, org.apache.seatunnel.api.table.catalog.exception.DatabaseNotExistException, org.apache.seatunnel.api.table.catalog.exception.CatalogException- 指定者:
createTable在接口中org.apache.seatunnel.api.table.catalog.Catalog- 抛出:
org.apache.seatunnel.api.table.catalog.exception.TableAlreadyExistExceptionorg.apache.seatunnel.api.table.catalog.exception.DatabaseNotExistExceptionorg.apache.seatunnel.api.table.catalog.exception.CatalogException
-
dropTable
public void dropTable(org.apache.seatunnel.api.table.catalog.TablePath tablePath, boolean ignoreIfNotExists) throws org.apache.seatunnel.api.table.catalog.exception.TableNotExistException, org.apache.seatunnel.api.table.catalog.exception.CatalogException- 指定者:
dropTable在接口中org.apache.seatunnel.api.table.catalog.Catalog- 抛出:
org.apache.seatunnel.api.table.catalog.exception.TableNotExistExceptionorg.apache.seatunnel.api.table.catalog.exception.CatalogException
-
createDatabase
public void createDatabase(org.apache.seatunnel.api.table.catalog.TablePath tablePath, boolean ignoreIfExists) throws org.apache.seatunnel.api.table.catalog.exception.DatabaseAlreadyExistException, org.apache.seatunnel.api.table.catalog.exception.CatalogException- 指定者:
createDatabase在接口中org.apache.seatunnel.api.table.catalog.Catalog- 抛出:
org.apache.seatunnel.api.table.catalog.exception.DatabaseAlreadyExistExceptionorg.apache.seatunnel.api.table.catalog.exception.CatalogException
-
dropDatabase
public void dropDatabase(org.apache.seatunnel.api.table.catalog.TablePath tablePath, boolean ignoreIfNotExists) throws org.apache.seatunnel.api.table.catalog.exception.DatabaseNotExistException, org.apache.seatunnel.api.table.catalog.exception.CatalogException- 指定者:
dropDatabase在接口中org.apache.seatunnel.api.table.catalog.Catalog- 抛出:
org.apache.seatunnel.api.table.catalog.exception.DatabaseNotExistExceptionorg.apache.seatunnel.api.table.catalog.exception.CatalogException
-
truncateTable
public void truncateTable(org.apache.seatunnel.api.table.catalog.TablePath tablePath, boolean ignoreIfNotExists)- 指定者:
truncateTable在接口中org.apache.seatunnel.api.table.catalog.Catalog
-
isExistsData
public boolean isExistsData(org.apache.seatunnel.api.table.catalog.TablePath tablePath)
- 指定者:
isExistsData在接口中org.apache.seatunnel.api.table.catalog.Catalog
-
previewAction
public org.apache.seatunnel.api.table.catalog.PreviewResult previewAction(org.apache.seatunnel.api.table.catalog.Catalog.ActionType actionType, org.apache.seatunnel.api.table.catalog.TablePath tablePath, Optional<org.apache.seatunnel.api.table.catalog.CatalogTable> catalogTable)- 指定者:
previewAction在接口中org.apache.seatunnel.api.table.catalog.Catalog
-
-