public class SnapshotRef
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SnapshotRef.Builder |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MAIN_BRANCH |
Modifier and Type | Method and Description |
---|---|
static SnapshotRef.Builder |
branchBuilder(long snapshotId) |
static SnapshotRef.Builder |
builderFor(long snapshotId,
org.apache.iceberg.SnapshotRefType type) |
static SnapshotRef.Builder |
builderFrom(SnapshotRef ref) |
static SnapshotRef.Builder |
builderFrom(SnapshotRef ref,
long snapshotId)
Creates a ref builder from the given ref and its properties but the ref will now point to the
given snapshotId.
|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
boolean |
isBranch() |
boolean |
isTag() |
java.lang.Long |
maxRefAgeMs() |
java.lang.Long |
maxSnapshotAgeMs() |
java.lang.Integer |
minSnapshotsToKeep() |
long |
snapshotId() |
static SnapshotRef.Builder |
tagBuilder(long snapshotId) |
java.lang.String |
toString() |
org.apache.iceberg.SnapshotRefType |
type() |
public static final java.lang.String MAIN_BRANCH
public long snapshotId()
public org.apache.iceberg.SnapshotRefType type()
public boolean isBranch()
public boolean isTag()
public java.lang.Integer minSnapshotsToKeep()
public java.lang.Long maxSnapshotAgeMs()
public java.lang.Long maxRefAgeMs()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static SnapshotRef.Builder tagBuilder(long snapshotId)
public static SnapshotRef.Builder branchBuilder(long snapshotId)
public static SnapshotRef.Builder builderFrom(SnapshotRef ref)
public static SnapshotRef.Builder builderFrom(SnapshotRef ref, long snapshotId)
ref
- Ref to build fromsnapshotId
- snapshotID to use.public static SnapshotRef.Builder builderFor(long snapshotId, org.apache.iceberg.SnapshotRefType type)
public java.lang.String toString()
toString
in class java.lang.Object