public abstract class BaseMetastoreCatalog extends java.lang.Object implements Catalog, java.io.Closeable
| Modifier and Type | Class and Description |
|---|---|
protected class |
BaseMetastoreCatalog.BaseMetastoreCatalogTableBuilder |
Catalog.TableBuilder| Constructor and Description |
|---|
BaseMetastoreCatalog() |
| Modifier and Type | Method and Description |
|---|---|
Catalog.TableBuilder |
buildTable(TableIdentifier identifier,
Schema schema)
/** Instantiate a builder to either create a table or start a create/replace transaction.
|
void |
close() |
protected abstract java.lang.String |
defaultWarehouseLocation(TableIdentifier tableIdentifier) |
protected static java.lang.String |
fullTableName(java.lang.String catalogName,
TableIdentifier identifier) |
protected boolean |
isValidIdentifier(TableIdentifier tableIdentifier) |
Table |
loadTable(TableIdentifier identifier)
Load a table.
|
protected MetricsReporter |
metricsReporter() |
protected abstract TableOperations |
newTableOps(TableIdentifier tableIdentifier) |
protected java.util.Map<java.lang.String,java.lang.String> |
properties() |
Table |
registerTable(TableIdentifier identifier,
java.lang.String metadataFileLocation)
Register a table with the catalog if it does not exist.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateTable, createTable, createTable, createTable, dropTable, dropTable, initialize, invalidateTable, listTables, name, newCreateTableTransaction, newCreateTableTransaction, newCreateTableTransaction, newCreateTableTransaction, newReplaceTableTransaction, newReplaceTableTransaction, newReplaceTableTransaction, newReplaceTableTransaction, renameTable, tableExistspublic Table loadTable(TableIdentifier identifier)
Catalogpublic Table registerTable(TableIdentifier identifier, java.lang.String metadataFileLocation)
CatalogregisterTable in interface Catalogidentifier - a table identifiermetadataFileLocation - the location of a metadata filepublic Catalog.TableBuilder buildTable(TableIdentifier identifier, Schema schema)
CatalogbuildTable in interface Catalogidentifier - a table identifierschema - a schemaprotected boolean isValidIdentifier(TableIdentifier tableIdentifier)
protected java.util.Map<java.lang.String,java.lang.String> properties()
public java.lang.String toString()
toString in class java.lang.Objectprotected abstract TableOperations newTableOps(TableIdentifier tableIdentifier)
protected abstract java.lang.String defaultWarehouseLocation(TableIdentifier tableIdentifier)
protected static java.lang.String fullTableName(java.lang.String catalogName,
TableIdentifier identifier)
protected MetricsReporter metricsReporter()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException