public interface TableMaster extends Master
Modifier and Type | Method and Description |
---|---|
SyncStatus |
attachDatabase(String udbType,
String udbConnectionUri,
String udbDbName,
String dbName,
Map<String,String> configuration,
boolean ignoreSyncErrors)
Attach an existing database to the catalog.
|
boolean |
detachDatabase(String dbName)
Remove an existing database in the catalog.
|
List<String> |
getAllDatabases()
Get a listing of all databases.
|
List<String> |
getAllTables(String databaseName)
Get a listing of all tables in a database.
|
List<TransformJobInfo> |
getAllTransformJobInfo() |
Database |
getDatabase(String dbName)
Gets a database object.
|
Map<String,ColumnStatisticsList> |
getPartitionColumnStatistics(String dbName,
String tableName,
List<String> partNamesList,
List<String> colNamesList)
Get statistics on the partitions.
|
Table |
getTable(String databaseName,
String tableName)
Get a table.
|
List<ColumnStatisticsInfo> |
getTableColumnStatistics(String databaseName,
String tableName,
List<String> colNames)
Get statistics on the table.
|
TransformJobInfo |
getTransformJobInfo(long jobId) |
List<Partition> |
readTable(String dbName,
String tableName,
Constraint constraint)
Returns metadata for reading a table given constraints.
|
SyncStatus |
syncDatabase(String dbName)
Syncs a database.
|
long |
transformTable(String dbName,
String tableName,
String definition)
Transforms a table to a new table.
|
createJournalContext, getMasterContext
applyAndJournal, processJournalEntry, resetState, restoreFromCheckpoint, writeToCheckpoint
getCheckpointName
getJournalEntryIterator
close, getDependencies, getName, getServices, start, stop
SyncStatus attachDatabase(String udbType, String udbConnectionUri, String udbDbName, String dbName, Map<String,String> configuration, boolean ignoreSyncErrors) throws IOException
udbType
- the database typeudbConnectionUri
- the udb connection uriudbDbName
- the database name in the udbdbName
- the database name in Alluxioconfiguration
- the configurationignoreSyncErrors
- if true, will ignore sync errors during the attachIOException
boolean detachDatabase(String dbName) throws IOException
dbName
- the database name to removeIOException
List<String> getAllDatabases() throws IOException
IOException
List<String> getAllTables(String databaseName) throws IOException
databaseName
- database nameIOException
Database getDatabase(String dbName) throws IOException
dbName
- the database nameIOException
Table getTable(String databaseName, String tableName) throws IOException
databaseName
- database nametableName
- table nameIOException
List<ColumnStatisticsInfo> getTableColumnStatistics(String databaseName, String tableName, List<String> colNames) throws IOException
databaseName
- database nametableName
- table namecolNames
- column namesIOException
List<Partition> readTable(String dbName, String tableName, Constraint constraint) throws IOException
dbName
- database nametableName
- table nameconstraint
- constraintIOException
Map<String,ColumnStatisticsList> getPartitionColumnStatistics(String dbName, String tableName, List<String> partNamesList, List<String> colNamesList) throws IOException
dbName
- database nametableName
- table namepartNamesList
- partition namescolNamesList
- column namesIOException
long transformTable(String dbName, String tableName, String definition) throws IOException
dbName
- the database nametableName
- the table namedefinition
- the transformation definitionIOException
TransformJobInfo getTransformJobInfo(long jobId) throws IOException
jobId
- the job IDIOException
List<TransformJobInfo> getAllTransformJobInfo() throws IOException
IOException
SyncStatus syncDatabase(String dbName) throws IOException
dbName
- the database nameIOException
Copyright © 2023. All Rights Reserved.