Package org.apache.iceberg
Class SnapshotRef
java.lang.Object
org.apache.iceberg.SnapshotRef
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
int
hashCode()
boolean
isBranch()
boolean
isTag()
long
static SnapshotRef.Builder
tagBuilder
(long snapshotId) toString()
org.apache.iceberg.SnapshotRefType
type()
-
Field Details
-
MAIN_BRANCH
- See Also:
-
-
Method Details
-
snapshotId
public long snapshotId() -
type
public org.apache.iceberg.SnapshotRefType type() -
isBranch
public boolean isBranch() -
isTag
public boolean isTag() -
minSnapshotsToKeep
-
maxSnapshotAgeMs
-
maxRefAgeMs
-
equals
-
hashCode
public int hashCode() -
tagBuilder
-
branchBuilder
-
builderFrom
-
builderFrom
Creates a ref builder from the given ref and its properties but the ref will now point to the given snapshotId.- Parameters:
ref
- Ref to build fromsnapshotId
- snapshotID to use.- Returns:
- ref builder with the same retention properties as given ref, but the ref will point to the passed in id
-
builderFor
public static SnapshotRef.Builder builderFor(long snapshotId, org.apache.iceberg.SnapshotRefType type) -
toString
-