public abstract class BaseSessionCatalog extends java.lang.Object implements SessionCatalog
Modifier and Type | Class and Description |
---|---|
class |
BaseSessionCatalog.AsCatalog |
SessionCatalog.SessionContext
Constructor and Description |
---|
BaseSessionCatalog() |
Modifier and Type | Method and Description |
---|---|
Catalog |
asCatalog(SessionCatalog.SessionContext context) |
void |
initialize(java.lang.String catalogName,
java.util.Map<java.lang.String,java.lang.String> props)
Initialize given a custom name and a map of catalog properties.
|
java.lang.String |
name()
Return the name for this catalog.
|
java.util.Map<java.lang.String,java.lang.String> |
properties()
Return the properties for this catalog.
|
<T> T |
withContext(SessionCatalog.SessionContext context,
java.util.function.Function<Catalog,T> task) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildTable, createNamespace, createNamespace, dropNamespace, dropTable, invalidateTable, listNamespaces, listNamespaces, listTables, loadNamespaceMetadata, loadTable, namespaceExists, purgeTable, registerTable, renameTable, tableExists, updateNamespaceMetadata
public void initialize(java.lang.String catalogName, java.util.Map<java.lang.String,java.lang.String> props)
SessionCatalog
initialize
in interface SessionCatalog
catalogName
- a custom name for the catalogprops
- catalog propertiespublic java.lang.String name()
SessionCatalog
name
in interface SessionCatalog
public java.util.Map<java.lang.String,java.lang.String> properties()
SessionCatalog
properties
in interface SessionCatalog
public Catalog asCatalog(SessionCatalog.SessionContext context)
public <T> T withContext(SessionCatalog.SessionContext context, java.util.function.Function<Catalog,T> task)