public class SnapshotUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.Long> |
ancestorIds(Snapshot snapshot,
java.util.function.Function<java.lang.Long,Snapshot> lookup) |
static java.util.List<java.lang.Long> |
currentAncestors(Table table)
Return the snapshot IDs for the ancestors of the current table state.
|
public static java.util.List<java.lang.Long> currentAncestors(Table table)
Ancestor IDs are ordered by commit time, descending. The first ID is the current snapshot, followed by its parent, and so on.
table
- a Table