public class ElasticSearchCatalog extends Object implements Catalog
In ElasticSearch, we use the index as the database and table.
| 构造器和说明 |
|---|
ElasticSearchCatalog(String catalogName,
String defaultDatabase,
ReadonlyConfig config) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
createDatabase(TablePath tablePath,
boolean ignoreIfExists) |
void |
createTable(TablePath tablePath,
CatalogTable table,
boolean ignoreIfExists) |
boolean |
databaseExists(String databaseName) |
void |
dropDatabase(TablePath tablePath,
boolean ignoreIfNotExists) |
void |
dropTable(TablePath tablePath,
boolean ignoreIfNotExists) |
String |
getDefaultDatabase() |
CatalogTable |
getTable(TablePath tablePath) |
boolean |
isExistsData(TablePath tablePath) |
List<String> |
listDatabases() |
List<String> |
listTables(String databaseName) |
String |
name() |
void |
open() |
boolean |
tableExists(TablePath tablePath) |
void |
truncateTable(TablePath tablePath,
boolean ignoreIfNotExists) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildCatalogTablesWithErrorCheck, buildColumnsWithErrorCheck, executeSql, getFactory, getTablespublic ElasticSearchCatalog(String catalogName, String defaultDatabase, ReadonlyConfig config)
public void open()
throws CatalogException
open 在接口中 CatalogCatalogExceptionpublic void close()
throws CatalogException
close 在接口中 AutoCloseableclose 在接口中 CatalogCatalogExceptionpublic String getDefaultDatabase() throws CatalogException
getDefaultDatabase 在接口中 CatalogCatalogExceptionpublic boolean databaseExists(String databaseName) throws CatalogException
databaseExists 在接口中 CatalogCatalogExceptionpublic List<String> listDatabases() throws CatalogException
listDatabases 在接口中 CatalogCatalogExceptionpublic List<String> listTables(String databaseName) throws CatalogException, DatabaseNotExistException
listTables 在接口中 CatalogCatalogExceptionDatabaseNotExistExceptionpublic boolean tableExists(TablePath tablePath) throws CatalogException
tableExists 在接口中 CatalogCatalogExceptionpublic CatalogTable getTable(TablePath tablePath) throws CatalogException, TableNotExistException
getTable 在接口中 CatalogCatalogExceptionTableNotExistExceptionpublic void createTable(TablePath tablePath, CatalogTable table, boolean ignoreIfExists) throws TableAlreadyExistException, DatabaseNotExistException, CatalogException
public void dropTable(TablePath tablePath, boolean ignoreIfNotExists) throws TableNotExistException, CatalogException
dropTable 在接口中 CatalogTableNotExistExceptionCatalogExceptionpublic void createDatabase(TablePath tablePath, boolean ignoreIfExists) throws DatabaseAlreadyExistException, CatalogException
createDatabase 在接口中 CatalogDatabaseAlreadyExistExceptionCatalogExceptionpublic void dropDatabase(TablePath tablePath, boolean ignoreIfNotExists) throws DatabaseNotExistException, CatalogException
dropDatabase 在接口中 CatalogDatabaseNotExistExceptionCatalogExceptionpublic void truncateTable(TablePath tablePath, boolean ignoreIfNotExists)
truncateTable 在接口中 Catalogpublic boolean isExistsData(TablePath tablePath)
isExistsData 在接口中 CatalogCopyright © 2024 The Apache Software Foundation. All rights reserved.