Class Actions

  • Direct Known Subclasses:
    SparkActions

    @Deprecated
    public class Actions
    extends java.lang.Object
    Deprecated.
    since 0.12.0, will be removed in 0.13.0; use an implementation of ActionsProvider instead.
    An API for interacting with actions in Spark.
    • Constructor Detail

      • Actions

        protected Actions​(org.apache.spark.sql.SparkSession spark,
                          Table table)
        Deprecated.
    • Method Detail

      • forTable

        @Deprecated
        public static Actions forTable​(org.apache.spark.sql.SparkSession spark,
                                       Table table)
        Deprecated.
        since 0.12.0, will be removed in 0.13.0; use an implementation of ActionsProvider instead.
      • forTable

        @Deprecated
        public static Actions forTable​(Table table)
        Deprecated.
        since 0.12.0, will be removed in 0.13.0; use an implementation of ActionsProvider instead.
      • migrate

        @Deprecated
        public static CreateAction migrate​(java.lang.String tableName)
        Deprecated.
        since 0.12.0, will be removed in 0.13.0; use MigrateTable instead.
        Converts the provided table into an Iceberg table in place. The table will no longer be accessible by it's previous implementation
        Parameters:
        tableName - Table to be converted
        Returns:
        CreateAction to perform migration
      • migrate

        @Deprecated
        public static CreateAction migrate​(org.apache.spark.sql.SparkSession spark,
                                           java.lang.String tableName)
        Deprecated.
        since 0.12.0, will be removed in 0.13.0; use MigrateTable instead.
        Converts the provided table into an Iceberg table in place. The table will no longer be accessible by it's previous implementation
        Parameters:
        tableName - Table to be converted
        spark - Spark session to use for looking up table
        Returns:
        CreateAction to perform migration
      • snapshot

        @Deprecated
        public static SnapshotAction snapshot​(org.apache.spark.sql.SparkSession spark,
                                              java.lang.String sourceTable,
                                              java.lang.String destTable)
        Deprecated.
        since 0.12.0, will be removed in 0.13.0; use SnapshotTable instead.
        Creates an independent Iceberg table based on a given table. The new Iceberg table can be altered, appended or deleted without causing any change to the original. New data and metadata will be created in the default location for tables of this name in the destination catalog.
        Parameters:
        sourceTable - Original table which is the basis for the new Iceberg table
        destTable - New Iceberg table being created
        Returns:
        SnapshotAction to perform snapshot
      • snapshot

        @Deprecated
        public static SnapshotAction snapshot​(java.lang.String sourceTable,
                                              java.lang.String destTable)
        Deprecated.
        since 0.12.0, will be removed in 0.13.0; use SnapshotTable instead.
        Creates an independent Iceberg table based on a given table. The new Iceberg table can be altered, appended or deleted without causing any change to the original. New data and metadata will be created in the default location for tables of this name in the destination catalog.
        Parameters:
        sourceTable - Original table which is the basis for the new Iceberg table
        destTable - New Iceberg table being created
        Returns:
        SnapshotAction to perform snapshot
      • spark

        protected org.apache.spark.sql.SparkSession spark()
        Deprecated.
      • table

        protected Table table()
        Deprecated.