Package org.apache.iceberg
Class BaseMetastoreCatalog
- java.lang.Object
-
- org.apache.iceberg.BaseMetastoreCatalog
-
- All Implemented Interfaces:
Catalog
- Direct Known Subclasses:
DynamoDbCatalog
,GlueCatalog
,HadoopCatalog
,HiveCatalog
,JdbcCatalog
,NessieCatalog
public abstract class BaseMetastoreCatalog extends java.lang.Object implements Catalog
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
BaseMetastoreCatalog.BaseMetastoreCatalogTableBuilder
-
Nested classes/interfaces inherited from interface org.apache.iceberg.catalog.Catalog
Catalog.TableBuilder
-
-
Constructor Summary
Constructors Constructor Description BaseMetastoreCatalog()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Catalog.TableBuilder
buildTable(TableIdentifier identifier, Schema schema)
/** Instantiate a builder to either create a table or start a create/replace transaction.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 abstract TableOperations
newTableOps(TableIdentifier tableIdentifier)
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.iceberg.catalog.Catalog
createTable, createTable, createTable, createTable, dropTable, dropTable, initialize, invalidateTable, listTables, name, newCreateTableTransaction, newCreateTableTransaction, newCreateTableTransaction, newCreateTableTransaction, newReplaceTableTransaction, newReplaceTableTransaction, newReplaceTableTransaction, newReplaceTableTransaction, registerTable, renameTable, tableExists
-
-
-
-
Method Detail
-
loadTable
public Table loadTable(TableIdentifier identifier)
Description copied from interface:Catalog
Load a table.
-
buildTable
public Catalog.TableBuilder buildTable(TableIdentifier identifier, Schema schema)
Description copied from interface:Catalog
/** Instantiate a builder to either create a table or start a create/replace transaction.- Specified by:
buildTable
in interfaceCatalog
- Parameters:
identifier
- a table identifierschema
- a schema- Returns:
- the builder to create a table or start a create/replace transaction
-
isValidIdentifier
protected boolean isValidIdentifier(TableIdentifier tableIdentifier)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
newTableOps
protected abstract TableOperations newTableOps(TableIdentifier tableIdentifier)
-
defaultWarehouseLocation
protected abstract java.lang.String defaultWarehouseLocation(TableIdentifier tableIdentifier)
-
fullTableName
protected static java.lang.String fullTableName(java.lang.String catalogName, TableIdentifier identifier)
-
-