public final class CustomCatalogs
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ICEBERG_CATALOG_PREFIX |
static java.lang.String |
ICEBERG_DEFAULT_CATALOG |
Modifier and Type | Method and Description |
---|---|
static Catalog |
loadCatalog(org.apache.spark.sql.SparkSession spark,
java.lang.String name)
Build an Iceberg
Catalog to be used by this Spark source adapter. |
static Table |
table(org.apache.spark.sql.SparkSession spark,
java.lang.String path) |
public static final java.lang.String ICEBERG_DEFAULT_CATALOG
public static final java.lang.String ICEBERG_CATALOG_PREFIX
public static Catalog loadCatalog(org.apache.spark.sql.SparkSession spark, java.lang.String name)
Catalog
to be used by this Spark source adapter.
The cache is to facilitate reuse of catalogs, especially if wrapped in CachingCatalog. For non-Hive catalogs all custom parameters passed to the catalog are considered in the cache key. Hive catalogs only cache based on the Metastore URIs as per previous behaviour.
spark
- Spark Sessionname
- Catalog Namepublic static Table table(org.apache.spark.sql.SparkSession spark, java.lang.String path)