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)
Deprecated.
Replaced by
ManageSnapshots.rollbackToTime(long) |
Rollback |
toSnapshotId(long snapshotId)
Deprecated.
Replaced by
ManageSnapshots.setCurrentSnapshot(long) |
apply, commit@Deprecated Rollback toSnapshotId(long snapshotId)
ManageSnapshots.setCurrentSnapshot(long)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 id@Deprecated Rollback toSnapshotAtTime(long timestampMillis)
ManageSnapshots.rollbackToTime(long)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