public class FlinkCatalogFactory
extends java.lang.Object
implements org.apache.flink.table.factories.CatalogFactory
FlinkCatalog
.
This supports the following catalog configuration options:
To use a custom catalog that is not a Hive or Hadoop catalog, extend this class and override
createCatalogLoader(String, Map, Configuration)
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE_NAMESPACE |
static java.lang.String |
CACHE_ENABLED |
static java.lang.String |
DEFAULT_DATABASE |
static java.lang.String |
HIVE_CONF_DIR |
static java.lang.String |
ICEBERG_CATALOG_TYPE |
static java.lang.String |
ICEBERG_CATALOG_TYPE_HADOOP |
static java.lang.String |
ICEBERG_CATALOG_TYPE_HIVE |
Constructor and Description |
---|
FlinkCatalogFactory() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.conf.Configuration |
clusterHadoopConf() |
org.apache.flink.table.catalog.Catalog |
createCatalog(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> properties) |
protected org.apache.flink.table.catalog.Catalog |
createCatalog(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> properties,
org.apache.hadoop.conf.Configuration hadoopConf) |
protected CatalogLoader |
createCatalogLoader(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> properties,
org.apache.hadoop.conf.Configuration hadoopConf)
Create an Iceberg
Catalog loader to be used by this Flink catalog adapter. |
java.util.Map<java.lang.String,java.lang.String> |
requiredContext() |
java.util.List<java.lang.String> |
supportedProperties() |
public static final java.lang.String ICEBERG_CATALOG_TYPE
public static final java.lang.String ICEBERG_CATALOG_TYPE_HADOOP
public static final java.lang.String ICEBERG_CATALOG_TYPE_HIVE
public static final java.lang.String HIVE_CONF_DIR
public static final java.lang.String DEFAULT_DATABASE
public static final java.lang.String BASE_NAMESPACE
public static final java.lang.String CACHE_ENABLED
protected CatalogLoader createCatalogLoader(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> properties, org.apache.hadoop.conf.Configuration hadoopConf)
Catalog
loader to be used by this Flink catalog adapter.name
- Flink's catalog nameproperties
- Flink's catalog propertieshadoopConf
- Hadoop configuration for catalogpublic java.util.Map<java.lang.String,java.lang.String> requiredContext()
requiredContext
in interface org.apache.flink.table.factories.TableFactory
public java.util.List<java.lang.String> supportedProperties()
supportedProperties
in interface org.apache.flink.table.factories.TableFactory
public org.apache.flink.table.catalog.Catalog createCatalog(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> properties)
createCatalog
in interface org.apache.flink.table.factories.CatalogFactory
protected org.apache.flink.table.catalog.Catalog createCatalog(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> properties, org.apache.hadoop.conf.Configuration hadoopConf)
public static org.apache.hadoop.conf.Configuration clusterHadoopConf()