public class Catalog extends Object implements AutoCloseable
Constructor and Description |
---|
Catalog(Supplier<Snapshot> snapshotProvider,
boolean showRowId,
String dbPrefix) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
TiDBInfo |
getDatabase(String dbName) |
TiTableInfo |
getTable(String dbName,
String tableName) |
TiTableInfo |
getTable(TiDBInfo database,
long tableId) |
TiTableInfo |
getTable(TiDBInfo database,
String tableName) |
List<TiDBInfo> |
listDatabases() |
List<TiTableInfo> |
listTables(TiDBInfo database) |
public void close()
close
in interface AutoCloseable
public List<TiTableInfo> listTables(TiDBInfo database)
public TiTableInfo getTable(String dbName, String tableName)
public TiTableInfo getTable(TiDBInfo database, String tableName)
public TiTableInfo getTable(TiDBInfo database, long tableId)
Copyright © 2024 PingCAP. All rights reserved.