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 SummaryNested Classes Modifier and Type Class Description protected classBaseMetastoreCatalog.BaseMetastoreCatalogTableBuilder- 
Nested classes/interfaces inherited from interface org.apache.iceberg.catalog.CatalogCatalog.TableBuilder
 
- 
 - 
Constructor SummaryConstructors Constructor Description BaseMetastoreCatalog()
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Catalog.TableBuilderbuildTable(TableIdentifier identifier, Schema schema)Instantiate a builder to either create a table or start a create/replace transaction.TablecreateTable(TableIdentifier identifier, Schema schema, PartitionSpec spec, java.lang.String location, java.util.Map<java.lang.String,java.lang.String> properties)Create a table.protected abstract java.lang.StringdefaultWarehouseLocation(TableIdentifier tableIdentifier)protected static java.lang.StringfullTableName(java.lang.String catalogName, TableIdentifier identifier)protected booleanisValidIdentifier(TableIdentifier tableIdentifier)TableloadTable(TableIdentifier identifier)Load a table.TransactionnewCreateTableTransaction(TableIdentifier identifier, Schema schema, PartitionSpec spec, java.lang.String location, java.util.Map<java.lang.String,java.lang.String> properties)Start a transaction to create a table.TransactionnewReplaceTableTransaction(TableIdentifier identifier, Schema schema, PartitionSpec spec, java.lang.String location, java.util.Map<java.lang.String,java.lang.String> properties, boolean orCreate)Start a transaction to replace a table.protected abstract TableOperationsnewTableOps(TableIdentifier tableIdentifier)java.lang.StringtoString()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.iceberg.catalog.CatalogcreateTable, createTable, createTable, dropTable, dropTable, initialize, listTables, name, newCreateTableTransaction, newCreateTableTransaction, newCreateTableTransaction, newReplaceTableTransaction, newReplaceTableTransaction, newReplaceTableTransaction, renameTable, tableExists
 
- 
 
- 
- 
- 
Method Detail- 
createTablepublic Table createTable(TableIdentifier identifier, Schema schema, PartitionSpec spec, java.lang.String location, java.util.Map<java.lang.String,java.lang.String> properties) Description copied from interface:CatalogCreate a table.- Specified by:
- createTablein interface- Catalog
- Parameters:
- identifier- a table identifier
- schema- a schema
- spec- a partition spec
- location- a location for the table; leave null if unspecified
- properties- a string map of table properties
- Returns:
- a Table instance
 
 - 
newCreateTableTransactionpublic Transaction newCreateTableTransaction(TableIdentifier identifier, Schema schema, PartitionSpec spec, java.lang.String location, java.util.Map<java.lang.String,java.lang.String> properties) Description copied from interface:CatalogStart a transaction to create a table.- Specified by:
- newCreateTableTransactionin interface- Catalog
- Parameters:
- identifier- a table identifier
- schema- a schema
- spec- a partition spec
- location- a location for the table; leave null if unspecified
- properties- a string map of table properties
- Returns:
- a Transactionto create the table
 
 - 
newReplaceTableTransactionpublic Transaction newReplaceTableTransaction(TableIdentifier identifier, Schema schema, PartitionSpec spec, java.lang.String location, java.util.Map<java.lang.String,java.lang.String> properties, boolean orCreate) Description copied from interface:CatalogStart a transaction to replace a table.- Specified by:
- newReplaceTableTransactionin interface- Catalog
- Parameters:
- identifier- a table identifier
- schema- a schema
- spec- a partition spec
- location- a location for the table; leave null if unspecified
- properties- a string map of table properties
- orCreate- whether to create the table if not exists
- Returns:
- a Transactionto replace the table
 
 - 
loadTablepublic Table loadTable(TableIdentifier identifier) Description copied from interface:CatalogLoad a table.
 - 
buildTablepublic Catalog.TableBuilder buildTable(TableIdentifier identifier, Schema schema) Description copied from interface:CatalogInstantiate a builder to either create a table or start a create/replace transaction.- Specified by:
- buildTablein interface- Catalog
- Parameters:
- identifier- a table identifier
- schema- a schema
- Returns:
- the builder to create a table or start a create/replace transaction
 
 - 
isValidIdentifierprotected boolean isValidIdentifier(TableIdentifier tableIdentifier) 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
newTableOpsprotected abstract TableOperations newTableOps(TableIdentifier tableIdentifier) 
 - 
defaultWarehouseLocationprotected abstract java.lang.String defaultWarehouseLocation(TableIdentifier tableIdentifier) 
 - 
fullTableNameprotected static java.lang.String fullTableName(java.lang.String catalogName, TableIdentifier identifier)
 
- 
 
-