public class HiveCatalog
extends org.apache.iceberg.BaseMetastoreCatalog
implements org.apache.iceberg.catalog.SupportsNamespaces, org.apache.hadoop.conf.Configurable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HMS_DB_OWNER |
static java.lang.String |
HMS_DB_OWNER_TYPE |
static java.lang.String |
HMS_TABLE_OWNER |
static java.lang.String |
LIST_ALL_TABLES |
static java.lang.String |
LIST_ALL_TABLES_DEFAULT |
| Constructor and Description |
|---|
HiveCatalog() |
| Modifier and Type | Method and Description |
|---|---|
void |
createNamespace(org.apache.iceberg.catalog.Namespace namespace,
java.util.Map<java.lang.String,java.lang.String> meta) |
protected java.lang.String |
defaultWarehouseLocation(org.apache.iceberg.catalog.TableIdentifier tableIdentifier) |
boolean |
dropNamespace(org.apache.iceberg.catalog.Namespace namespace) |
boolean |
dropTable(org.apache.iceberg.catalog.TableIdentifier identifier,
boolean purge) |
org.apache.hadoop.conf.Configuration |
getConf() |
void |
initialize(java.lang.String inputName,
java.util.Map<java.lang.String,java.lang.String> properties) |
protected boolean |
isValidIdentifier(org.apache.iceberg.catalog.TableIdentifier tableIdentifier) |
java.util.List<org.apache.iceberg.catalog.Namespace> |
listNamespaces(org.apache.iceberg.catalog.Namespace namespace) |
java.util.List<org.apache.iceberg.catalog.TableIdentifier> |
listTables(org.apache.iceberg.catalog.Namespace namespace) |
java.util.Map<java.lang.String,java.lang.String> |
loadNamespaceMetadata(org.apache.iceberg.catalog.Namespace namespace) |
java.lang.String |
name() |
org.apache.iceberg.TableOperations |
newTableOps(org.apache.iceberg.catalog.TableIdentifier tableIdentifier) |
protected java.util.Map<java.lang.String,java.lang.String> |
properties() |
boolean |
removeProperties(org.apache.iceberg.catalog.Namespace namespace,
java.util.Set<java.lang.String> properties) |
void |
renameTable(org.apache.iceberg.catalog.TableIdentifier from,
org.apache.iceberg.catalog.TableIdentifier originalTo) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
boolean |
setProperties(org.apache.iceberg.catalog.Namespace namespace,
java.util.Map<java.lang.String,java.lang.String> properties) |
java.lang.String |
toString() |
buildTable, fullTableName, loadTable, registerTableclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateNamespace, listNamespaces, namespaceExistscreateTable, createTable, createTable, createTable, dropTable, invalidateTable, newCreateTableTransaction, newCreateTableTransaction, newCreateTableTransaction, newCreateTableTransaction, newReplaceTableTransaction, newReplaceTableTransaction, newReplaceTableTransaction, newReplaceTableTransaction, tableExistspublic static final java.lang.String LIST_ALL_TABLES
public static final java.lang.String LIST_ALL_TABLES_DEFAULT
public static final java.lang.String HMS_TABLE_OWNER
public static final java.lang.String HMS_DB_OWNER
public static final java.lang.String HMS_DB_OWNER_TYPE
public void initialize(java.lang.String inputName,
java.util.Map<java.lang.String,java.lang.String> properties)
initialize in interface org.apache.iceberg.catalog.Catalogpublic java.util.List<org.apache.iceberg.catalog.TableIdentifier> listTables(org.apache.iceberg.catalog.Namespace namespace)
listTables in interface org.apache.iceberg.catalog.Catalogpublic java.lang.String name()
name in interface org.apache.iceberg.catalog.Catalogpublic boolean dropTable(org.apache.iceberg.catalog.TableIdentifier identifier,
boolean purge)
dropTable in interface org.apache.iceberg.catalog.Catalogpublic void renameTable(org.apache.iceberg.catalog.TableIdentifier from,
org.apache.iceberg.catalog.TableIdentifier originalTo)
renameTable in interface org.apache.iceberg.catalog.Catalogpublic void createNamespace(org.apache.iceberg.catalog.Namespace namespace,
java.util.Map<java.lang.String,java.lang.String> meta)
createNamespace in interface org.apache.iceberg.catalog.SupportsNamespacespublic java.util.List<org.apache.iceberg.catalog.Namespace> listNamespaces(org.apache.iceberg.catalog.Namespace namespace)
listNamespaces in interface org.apache.iceberg.catalog.SupportsNamespacespublic boolean dropNamespace(org.apache.iceberg.catalog.Namespace namespace)
dropNamespace in interface org.apache.iceberg.catalog.SupportsNamespacespublic boolean setProperties(org.apache.iceberg.catalog.Namespace namespace,
java.util.Map<java.lang.String,java.lang.String> properties)
setProperties in interface org.apache.iceberg.catalog.SupportsNamespacespublic boolean removeProperties(org.apache.iceberg.catalog.Namespace namespace,
java.util.Set<java.lang.String> properties)
removeProperties in interface org.apache.iceberg.catalog.SupportsNamespacespublic java.util.Map<java.lang.String,java.lang.String> loadNamespaceMetadata(org.apache.iceberg.catalog.Namespace namespace)
loadNamespaceMetadata in interface org.apache.iceberg.catalog.SupportsNamespacesprotected boolean isValidIdentifier(org.apache.iceberg.catalog.TableIdentifier tableIdentifier)
isValidIdentifier in class org.apache.iceberg.BaseMetastoreCatalogpublic org.apache.iceberg.TableOperations newTableOps(org.apache.iceberg.catalog.TableIdentifier tableIdentifier)
newTableOps in class org.apache.iceberg.BaseMetastoreCatalogprotected java.lang.String defaultWarehouseLocation(org.apache.iceberg.catalog.TableIdentifier tableIdentifier)
defaultWarehouseLocation in class org.apache.iceberg.BaseMetastoreCatalogpublic java.lang.String toString()
toString in class org.apache.iceberg.BaseMetastoreCatalogpublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurablepublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurableprotected java.util.Map<java.lang.String,java.lang.String> properties()
properties in class org.apache.iceberg.BaseMetastoreCatalog