public interface Rollback extends PendingUpdate<Snapshot>
snapshot
.
This API does not allow conflicting calls to toSnapshotId(long)
and
toSnapshotAtTime(long)
.
When committing, these changes will be applied to the current table metadata. Commit conflicts
will not be resolved and will result in a CommitFailedException
.
Modifier and Type | Method and Description |
---|---|
Rollback |
toSnapshotAtTime(long timestampMillis)
Roll this table's data back to the last
Snapshot before the given timestamp. |
Rollback |
toSnapshotId(long snapshotId)
Roll this table's data back to a specific
Snapshot identified by id. |
apply, commit
Rollback toSnapshotId(long snapshotId)
Snapshot
identified by id.snapshotId
- long id of the snapshot to roll back table data tojava.lang.IllegalArgumentException
- If the table has no snapshot with the given idRollback toSnapshotAtTime(long timestampMillis)
Snapshot
before the given timestamp.timestampMillis
- a long timestamp, as returned by System.currentTimeMillis()
java.lang.IllegalArgumentException
- If the table has no old snapshot before the given timestamp