T
- Java class of changes from this update; returned by apply()
for validation.public interface PendingUpdate<T>
Modifier and Type | Method and Description |
---|---|
T |
apply()
Apply the pending changes and return the uncommitted changes for validation.
|
void |
commit()
Apply the pending changes and commit.
|
default java.lang.Object |
updateEvent()
Generates update event to notify about metadata changes
|
T apply()
This does not result in a permanent update.
commit()
ValidationException
- If the pending changes cannot be applied to the current metadatajava.lang.IllegalArgumentException
- If the pending changes are conflicting or invalidvoid commit()
Changes are committed by calling the underlying table's commit method.
Once the commit is successful, the updated table will be refreshed.
ValidationException
- If the update cannot be applied to the current table metadata.CommitFailedException
- If the update cannot be committed due to conflicts.CommitStateUnknownException
- If the update success or failure is unknown, no cleanup
should be done in this case.default java.lang.Object updateEvent()