Class AncestorsOfProcedure
- java.lang.Object
- 
- org.apache.iceberg.spark.procedures.AncestorsOfProcedure
 
- 
- All Implemented Interfaces:
- Procedure
 
 public class AncestorsOfProcedure extends java.lang.Object
- 
- 
Field SummaryFields Modifier and Type Field Description protected static org.apache.spark.sql.types.DataTypeSTRING_MAP
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SparkActionsactions()static SparkProcedures.ProcedureBuilderbuilder()org.apache.spark.sql.catalyst.InternalRow[]call(org.apache.spark.sql.catalyst.InternalRow args)Executes this procedure.java.lang.Stringdescription()Returns the description of this procedure.protected SparkTableloadSparkTable(org.apache.spark.sql.connector.catalog.Identifier ident)protected <T> TmodifyIcebergTable(org.apache.spark.sql.connector.catalog.Identifier ident, java.util.function.Function<Table,T> func)protected org.apache.spark.sql.catalyst.InternalRownewInternalRow(java.lang.Object... values)org.apache.spark.sql.types.StructTypeoutputType()Returns the type of rows produced by this procedure.ProcedureParameter[]parameters()Returns the input parameters of this procedure.protected voidrefreshSparkCache(org.apache.spark.sql.connector.catalog.Identifier ident, org.apache.spark.sql.connector.catalog.Table table)protected org.apache.spark.sql.SparkSessionspark()protected org.apache.spark.sql.connector.catalog.TableCatalogtableCatalog()protected Spark3Util.CatalogAndIdentifiertoCatalogAndIdentifier(java.lang.String identifierAsString, java.lang.String argName, org.apache.spark.sql.connector.catalog.CatalogPlugin catalog)protected org.apache.spark.sql.connector.catalog.IdentifiertoIdentifier(java.lang.String identifierAsString, java.lang.String argName)protected <T> TwithIcebergTable(org.apache.spark.sql.connector.catalog.Identifier ident, java.util.function.Function<Table,T> func)
 
- 
- 
- 
Method Detail- 
builderpublic static SparkProcedures.ProcedureBuilder builder() 
 - 
parameterspublic ProcedureParameter[] parameters() Description copied from interface:ProcedureReturns the input parameters of this procedure.
 - 
outputTypepublic org.apache.spark.sql.types.StructType outputType() Description copied from interface:ProcedureReturns the type of rows produced by this procedure.
 - 
callpublic org.apache.spark.sql.catalyst.InternalRow[] call(org.apache.spark.sql.catalyst.InternalRow args) Description copied from interface:ProcedureExecutes this procedure.Spark will align the provided arguments according to the input parameters defined in Procedure.parameters()either by position or by name before execution.Implementations may provide a summary of execution by returning one or many rows as a result. The schema of output rows must match the defined output type in Procedure.outputType().- Parameters:
- args- input arguments
- Returns:
- the result of executing this procedure with the given arguments
 
 - 
descriptionpublic java.lang.String description() Description copied from interface:ProcedureReturns the description of this procedure.
 - 
sparkprotected org.apache.spark.sql.SparkSession spark() 
 - 
actionsprotected SparkActions actions() 
 - 
tableCatalogprotected org.apache.spark.sql.connector.catalog.TableCatalog tableCatalog() 
 - 
modifyIcebergTableprotected <T> T modifyIcebergTable(org.apache.spark.sql.connector.catalog.Identifier ident, java.util.function.Function<Table,T> func)
 - 
withIcebergTableprotected <T> T withIcebergTable(org.apache.spark.sql.connector.catalog.Identifier ident, java.util.function.Function<Table,T> func)
 - 
toIdentifierprotected org.apache.spark.sql.connector.catalog.Identifier toIdentifier(java.lang.String identifierAsString, java.lang.String argName)
 - 
toCatalogAndIdentifierprotected Spark3Util.CatalogAndIdentifier toCatalogAndIdentifier(java.lang.String identifierAsString, java.lang.String argName, org.apache.spark.sql.connector.catalog.CatalogPlugin catalog) 
 - 
loadSparkTableprotected SparkTable loadSparkTable(org.apache.spark.sql.connector.catalog.Identifier ident) 
 - 
refreshSparkCacheprotected void refreshSparkCache(org.apache.spark.sql.connector.catalog.Identifier ident, org.apache.spark.sql.connector.catalog.Table table)
 - 
newInternalRowprotected org.apache.spark.sql.catalyst.InternalRow newInternalRow(java.lang.Object... values) 
 
- 
 
-