public class DynamoDbCatalog
extends org.apache.iceberg.BaseMetastoreCatalog
implements java.io.Closeable, org.apache.iceberg.catalog.SupportsNamespaces, org.apache.hadoop.conf.Configurable
| Constructor and Description |
|---|
DynamoDbCatalog() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
createNamespace(org.apache.iceberg.catalog.Namespace namespace,
java.util.Map<java.lang.String,java.lang.String> metadata) |
static java.lang.String |
defaultLocationProperty()
The property used to set a default location for tables in a namespace.
|
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 name,
java.util.Map<java.lang.String,java.lang.String> properties) |
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() |
protected 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 to) |
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) |
buildTable, fullTableName, isValidIdentifier, loadTable, registerTable, toStringclone, 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 void initialize(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> properties)
initialize in interface org.apache.iceberg.catalog.Catalogpublic java.lang.String name()
name in interface org.apache.iceberg.catalog.Catalogprotected 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 void createNamespace(org.apache.iceberg.catalog.Namespace namespace,
java.util.Map<java.lang.String,java.lang.String> metadata)
createNamespace in interface org.apache.iceberg.catalog.SupportsNamespacespublic java.util.List<org.apache.iceberg.catalog.Namespace> listNamespaces(org.apache.iceberg.catalog.Namespace namespace)
throws org.apache.iceberg.exceptions.NoSuchNamespaceException
listNamespaces in interface org.apache.iceberg.catalog.SupportsNamespacesorg.apache.iceberg.exceptions.NoSuchNamespaceExceptionpublic java.util.Map<java.lang.String,java.lang.String> loadNamespaceMetadata(org.apache.iceberg.catalog.Namespace namespace)
throws org.apache.iceberg.exceptions.NoSuchNamespaceException
loadNamespaceMetadata in interface org.apache.iceberg.catalog.SupportsNamespacesorg.apache.iceberg.exceptions.NoSuchNamespaceExceptionpublic boolean dropNamespace(org.apache.iceberg.catalog.Namespace namespace)
throws org.apache.iceberg.exceptions.NamespaceNotEmptyException
dropNamespace in interface org.apache.iceberg.catalog.SupportsNamespacesorg.apache.iceberg.exceptions.NamespaceNotEmptyExceptionpublic boolean setProperties(org.apache.iceberg.catalog.Namespace namespace,
java.util.Map<java.lang.String,java.lang.String> properties)
throws org.apache.iceberg.exceptions.NoSuchNamespaceException
setProperties in interface org.apache.iceberg.catalog.SupportsNamespacesorg.apache.iceberg.exceptions.NoSuchNamespaceExceptionpublic boolean removeProperties(org.apache.iceberg.catalog.Namespace namespace,
java.util.Set<java.lang.String> properties)
throws org.apache.iceberg.exceptions.NoSuchNamespaceException
removeProperties in interface org.apache.iceberg.catalog.SupportsNamespacesorg.apache.iceberg.exceptions.NoSuchNamespaceExceptionpublic java.util.List<org.apache.iceberg.catalog.TableIdentifier> listTables(org.apache.iceberg.catalog.Namespace namespace)
listTables 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 to)
renameTable in interface org.apache.iceberg.catalog.Catalogpublic 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.Configurablepublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic static java.lang.String defaultLocationProperty()
setProperties(Namespace, Map) to set a path value using this property for a namespace, then
all tables in the namespace will have default table root path under that given path.protected java.util.Map<java.lang.String,java.lang.String> properties()
properties in class org.apache.iceberg.BaseMetastoreCatalog