Package org.apache.iceberg.spark
Class SparkCachedTableCatalog
- java.lang.Object
- 
- org.apache.iceberg.spark.SparkCachedTableCatalog
 
- 
- All Implemented Interfaces:
- org.apache.spark.sql.connector.catalog.CatalogPlugin,- org.apache.spark.sql.connector.catalog.FunctionCatalog,- org.apache.spark.sql.connector.catalog.TableCatalog
 
 public class SparkCachedTableCatalog extends java.lang.Object implements org.apache.spark.sql.connector.catalog.TableCatalogAn internal table catalog that is capable of loading tables from a cache.
- 
- 
Constructor SummaryConstructors Constructor Description SparkCachedTableCatalog()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description SparkTablealterTable(org.apache.spark.sql.connector.catalog.Identifier ident, org.apache.spark.sql.connector.catalog.TableChange... changes)SparkTablecreateTable(org.apache.spark.sql.connector.catalog.Identifier ident, org.apache.spark.sql.types.StructType schema, org.apache.spark.sql.connector.expressions.Transform[] partitions, java.util.Map<java.lang.String,java.lang.String> properties)booleandropTable(org.apache.spark.sql.connector.catalog.Identifier ident)voidinitialize(java.lang.String catalogName, org.apache.spark.sql.util.CaseInsensitiveStringMap options)voidinvalidateTable(org.apache.spark.sql.connector.catalog.Identifier ident)default booleanisExistingNamespace(java.lang.String[] namespace)default booleanisFunctionNamespace(java.lang.String[] namespace)default org.apache.spark.sql.connector.catalog.Identifier[]listFunctions(java.lang.String[] namespace)org.apache.spark.sql.connector.catalog.Identifier[]listTables(java.lang.String[] namespace)default org.apache.spark.sql.connector.catalog.functions.UnboundFunctionloadFunction(org.apache.spark.sql.connector.catalog.Identifier ident)SparkTableloadTable(org.apache.spark.sql.connector.catalog.Identifier ident)SparkTableloadTable(org.apache.spark.sql.connector.catalog.Identifier ident, long timestampMicros)SparkTableloadTable(org.apache.spark.sql.connector.catalog.Identifier ident, java.lang.String version)java.lang.Stringname()booleanpurgeTable(org.apache.spark.sql.connector.catalog.Identifier ident)voidrenameTable(org.apache.spark.sql.connector.catalog.Identifier oldIdent, org.apache.spark.sql.connector.catalog.Identifier newIdent)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.spark.sql.connector.catalog.CatalogPlugindefaultNamespace
 
- 
 
- 
- 
- 
Method Detail- 
listTablespublic org.apache.spark.sql.connector.catalog.Identifier[] listTables(java.lang.String[] namespace) - Specified by:
- listTablesin interface- org.apache.spark.sql.connector.catalog.TableCatalog
 
 - 
loadTablepublic SparkTable loadTable(org.apache.spark.sql.connector.catalog.Identifier ident) throws org.apache.spark.sql.catalyst.analysis.NoSuchTableException - Specified by:
- loadTablein interface- org.apache.spark.sql.connector.catalog.TableCatalog
- Throws:
- org.apache.spark.sql.catalyst.analysis.NoSuchTableException
 
 - 
loadTablepublic SparkTable loadTable(org.apache.spark.sql.connector.catalog.Identifier ident, java.lang.String version) throws org.apache.spark.sql.catalyst.analysis.NoSuchTableException - Specified by:
- loadTablein interface- org.apache.spark.sql.connector.catalog.TableCatalog
- Throws:
- org.apache.spark.sql.catalyst.analysis.NoSuchTableException
 
 - 
loadTablepublic SparkTable loadTable(org.apache.spark.sql.connector.catalog.Identifier ident, long timestampMicros) throws org.apache.spark.sql.catalyst.analysis.NoSuchTableException - Specified by:
- loadTablein interface- org.apache.spark.sql.connector.catalog.TableCatalog
- Throws:
- org.apache.spark.sql.catalyst.analysis.NoSuchTableException
 
 - 
invalidateTablepublic void invalidateTable(org.apache.spark.sql.connector.catalog.Identifier ident) - Specified by:
- invalidateTablein interface- org.apache.spark.sql.connector.catalog.TableCatalog
 
 - 
createTablepublic SparkTable createTable(org.apache.spark.sql.connector.catalog.Identifier ident, org.apache.spark.sql.types.StructType schema, org.apache.spark.sql.connector.expressions.Transform[] partitions, java.util.Map<java.lang.String,java.lang.String> properties) throws org.apache.spark.sql.catalyst.analysis.TableAlreadyExistsException - Specified by:
- createTablein interface- org.apache.spark.sql.connector.catalog.TableCatalog
- Throws:
- org.apache.spark.sql.catalyst.analysis.TableAlreadyExistsException
 
 - 
alterTablepublic SparkTable alterTable(org.apache.spark.sql.connector.catalog.Identifier ident, org.apache.spark.sql.connector.catalog.TableChange... changes) - Specified by:
- alterTablein interface- org.apache.spark.sql.connector.catalog.TableCatalog
 
 - 
dropTablepublic boolean dropTable(org.apache.spark.sql.connector.catalog.Identifier ident) - Specified by:
- dropTablein interface- org.apache.spark.sql.connector.catalog.TableCatalog
 
 - 
purgeTablepublic boolean purgeTable(org.apache.spark.sql.connector.catalog.Identifier ident) throws java.lang.UnsupportedOperationException- Specified by:
- purgeTablein interface- org.apache.spark.sql.connector.catalog.TableCatalog
- Throws:
- java.lang.UnsupportedOperationException
 
 - 
renameTablepublic void renameTable(org.apache.spark.sql.connector.catalog.Identifier oldIdent, org.apache.spark.sql.connector.catalog.Identifier newIdent)- Specified by:
- renameTablein interface- org.apache.spark.sql.connector.catalog.TableCatalog
 
 - 
initializepublic void initialize(java.lang.String catalogName, org.apache.spark.sql.util.CaseInsensitiveStringMap options)- Specified by:
- initializein interface- org.apache.spark.sql.connector.catalog.CatalogPlugin
 
 - 
namepublic java.lang.String name() - Specified by:
- namein interface- org.apache.spark.sql.connector.catalog.CatalogPlugin
 
 - 
isFunctionNamespacepublic default boolean isFunctionNamespace(java.lang.String[] namespace) 
 - 
isExistingNamespacepublic default boolean isExistingNamespace(java.lang.String[] namespace) 
 - 
listFunctionspublic default org.apache.spark.sql.connector.catalog.Identifier[] listFunctions(java.lang.String[] namespace) throws org.apache.spark.sql.catalyst.analysis.NoSuchNamespaceException- Specified by:
- listFunctionsin interface- org.apache.spark.sql.connector.catalog.FunctionCatalog
- Throws:
- org.apache.spark.sql.catalyst.analysis.NoSuchNamespaceException
 
 - 
loadFunctionpublic default org.apache.spark.sql.connector.catalog.functions.UnboundFunction loadFunction(org.apache.spark.sql.connector.catalog.Identifier ident) throws org.apache.spark.sql.catalyst.analysis.NoSuchFunctionException- Specified by:
- loadFunctionin interface- org.apache.spark.sql.connector.catalog.FunctionCatalog
- Throws:
- org.apache.spark.sql.catalyst.analysis.NoSuchFunctionException
 
 
- 
 
-