Package org.apache.iceberg
Class SetLocation
- java.lang.Object
-
- org.apache.iceberg.SetLocation
-
- All Implemented Interfaces:
PendingUpdate<java.lang.String>
,UpdateLocation
public class SetLocation extends java.lang.Object implements UpdateLocation
-
-
Constructor Summary
Constructors Constructor Description SetLocation(TableOperations ops)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
apply()
Apply the pending changes and return the uncommitted changes for validation.void
commit()
Apply the pending changes and commit.UpdateLocation
setLocation(java.lang.String location)
Set the table's or view's location.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.iceberg.PendingUpdate
updateEvent
-
-
-
-
Constructor Detail
-
SetLocation
public SetLocation(TableOperations ops)
-
-
Method Detail
-
setLocation
public UpdateLocation setLocation(java.lang.String location)
Description copied from interface:UpdateLocation
Set the table's or view's location.- Specified by:
setLocation
in interfaceUpdateLocation
- Parameters:
location
- a String location- Returns:
- this for method chaining
-
apply
public java.lang.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 interfacePendingUpdate<java.lang.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 interfacePendingUpdate<java.lang.String>
-
-