Class SetLocation

java.lang.Object
org.apache.iceberg.SetLocation
All Implemented Interfaces:
PendingUpdate<String>, UpdateLocation

public class SetLocation extends Object implements UpdateLocation
  • Constructor Details

  • Method Details

    • setLocation

      public UpdateLocation setLocation(String location)
      Description copied from interface: UpdateLocation
      Set the table's or view's location.
      Specified by:
      setLocation in interface UpdateLocation
      Parameters:
      location - a String location
      Returns:
      this for method chaining
    • apply

      public String apply()
      Description copied from interface: PendingUpdate
      Apply the pending changes and return the uncommitted changes for validation.

      This does not result in a permanent update.

      Specified by:
      apply in interface PendingUpdate<String>
      Returns:
      the uncommitted changes that would be committed by calling PendingUpdate.commit()
    • commit

      public void commit()
      Description copied from interface: PendingUpdate
      Apply the pending changes and commit.

      Changes are committed by calling the underlying table's commit method.

      Once the commit is successful, the updated table will be refreshed.

      Specified by:
      commit in interface PendingUpdate<String>