public abstract class BaseMetastoreCatalog extends java.lang.Object implements Catalog
Modifier | Constructor and Description |
---|---|
protected |
BaseMetastoreCatalog(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
Table |
createTable(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.String |
defaultWarehouseLocation(org.apache.hadoop.conf.Configuration hadoopConf,
TableIdentifier tableIdentifier) |
Table |
loadTable(TableIdentifier identifier)
Load a table.
|
protected abstract TableOperations |
newTableOps(org.apache.hadoop.conf.Configuration newConf,
TableIdentifier tableIdentifier) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTable, createTable, createTable, dropTable, renameTable, tableExists
protected BaseMetastoreCatalog(org.apache.hadoop.conf.Configuration conf)
public Table createTable(TableIdentifier identifier, Schema schema, PartitionSpec spec, java.lang.String location, java.util.Map<java.lang.String,java.lang.String> properties)
Catalog
createTable
in interface Catalog
identifier
- a table identifierschema
- a schemaspec
- a partition speclocation
- a location for the table; leave null if unspecifiedproperties
- a string map of table propertiespublic Table loadTable(TableIdentifier identifier)
Catalog
protected abstract TableOperations newTableOps(org.apache.hadoop.conf.Configuration newConf, TableIdentifier tableIdentifier)
protected abstract java.lang.String defaultWarehouseLocation(org.apache.hadoop.conf.Configuration hadoopConf, TableIdentifier tableIdentifier)