@ThreadSafe public interface TableMasterClient extends Client
Modifier and Type | Interface and Description |
---|---|
static class |
TableMasterClient.Factory
Factory for
TableMasterClient . |
Modifier and Type | Method and Description |
---|---|
SyncStatus |
attachDatabase(String udbType,
String udbConnectionUri,
String udbDbName,
String dbName,
Map<String,String> configuration,
boolean ignoreSyncErrors)
Attaches an existing database.
|
boolean |
detachDatabase(String dbName)
Detaches an existing database in the catalog master.
|
List<String> |
getAllDatabases()
Get a list of all database names.
|
List<String> |
getAllTables(String databaseName)
Get a list of all table names.
|
List<TransformJobInfo> |
getAllTransformJobInfo() |
Database |
getDatabase(String databaseName)
Get database metadata.
|
Map<String,List<ColumnStatisticsInfo>> |
getPartitionColumnStatistics(String databaseName,
String tableName,
List<String> partitionNames,
List<String> columnNames)
Get column statistics for selected partition and column.
|
List<String> |
getPartitionNames(String databaseName,
String tableName)
Get partition names with given database name and table name.
|
TableInfo |
getTable(String databaseName,
String tableName)
Get table metadata.
|
List<ColumnStatisticsInfo> |
getTableColumnStatistics(String databaseName,
String tableName,
List<String> columnNames)
Get table column statistics with given database name,
table name and list of column names.
|
TransformJobInfo |
getTransformJobInfo(long jobId) |
List<Partition> |
readTable(String databaseName,
String tableName,
Constraint constraint)
Returns metadata for reading a table given constraints.
|
SyncStatus |
syncDatabase(String dbName)
Syncs an existing database in the catalog master.
|
long |
transformTable(String dbName,
String tableName,
String definition)
Transforms a table.
|
connect, disconnect, getAddress, getConfAddress, isClosed, isConnected
List<String> getAllDatabases() throws AlluxioStatusException
AlluxioStatusException
Database getDatabase(String databaseName) throws AlluxioStatusException
databaseName
- database nameAlluxioStatusException
List<String> getAllTables(String databaseName) throws AlluxioStatusException
databaseName
- database nameAlluxioStatusException
TableInfo getTable(String databaseName, String tableName) throws AlluxioStatusException
databaseName
- database nametableName
- table nameAlluxioStatusException
SyncStatus attachDatabase(String udbType, String udbConnectionUri, String udbDbName, String dbName, Map<String,String> configuration, boolean ignoreSyncErrors) throws AlluxioStatusException
udbType
- the database typeudbConnectionUri
- the udb connection uriudbDbName
- the database name in the udbdbName
- the database name in Alluxioconfiguration
- the configuration mapignoreSyncErrors
- will ignore sync errors if trueAlluxioStatusException
boolean detachDatabase(String dbName) throws AlluxioStatusException
dbName
- database nameAlluxioStatusException
SyncStatus syncDatabase(String dbName) throws AlluxioStatusException
dbName
- database nameAlluxioStatusException
List<Partition> readTable(String databaseName, String tableName, Constraint constraint) throws AlluxioStatusException
databaseName
- database nametableName
- table nameconstraint
- constraint on the columnsAlluxioStatusException
List<ColumnStatisticsInfo> getTableColumnStatistics(String databaseName, String tableName, List<String> columnNames) throws AlluxioStatusException
databaseName
- database nametableName
- table namecolumnNames
- column namesAlluxioStatusException
List<String> getPartitionNames(String databaseName, String tableName) throws AlluxioStatusException
databaseName
- database nametableName
- table nameAlluxioStatusException
Map<String,List<ColumnStatisticsInfo>> getPartitionColumnStatistics(String databaseName, String tableName, List<String> partitionNames, List<String> columnNames) throws AlluxioStatusException
databaseName
- database nametableName
- table namepartitionNames
- partition namescolumnNames
- column namesAlluxioStatusException
long transformTable(String dbName, String tableName, String definition) throws AlluxioStatusException
dbName
- the database nametableName
- the table namedefinition
- the transformation definitionAlluxioStatusException
TransformJobInfo getTransformJobInfo(long jobId) throws AlluxioStatusException
jobId
- the transformation job's IDAlluxioStatusException
List<TransformJobInfo> getAllTransformJobInfo() throws AlluxioStatusException
AlluxioStatusException
Copyright © 2023. All Rights Reserved.