Package org.apache.iceberg
Class SnapshotRef
- java.lang.Object
-
- org.apache.iceberg.SnapshotRef
-
- All Implemented Interfaces:
java.io.Serializable
public class SnapshotRef extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSnapshotRef.Builder
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMAIN_BRANCH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SnapshotRef.BuilderbranchBuilder(long snapshotId)static SnapshotRef.BuilderbuilderFor(long snapshotId, org.apache.iceberg.SnapshotRefType type)static SnapshotRef.BuilderbuilderFrom(SnapshotRef ref)static SnapshotRef.BuilderbuilderFrom(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.booleanequals(java.lang.Object other)inthashCode()booleanisBranch()booleanisTag()java.lang.LongmaxRefAgeMs()java.lang.LongmaxSnapshotAgeMs()java.lang.IntegerminSnapshotsToKeep()longsnapshotId()static SnapshotRef.BuildertagBuilder(long snapshotId)java.lang.StringtoString()org.apache.iceberg.SnapshotRefTypetype()
-
-
-
Field Detail
-
MAIN_BRANCH
public static final java.lang.String MAIN_BRANCH
- See Also:
- Constant Field Values
-
-
Method Detail
-
snapshotId
public long snapshotId()
-
type
public org.apache.iceberg.SnapshotRefType type()
-
isBranch
public boolean isBranch()
-
isTag
public boolean isTag()
-
minSnapshotsToKeep
public java.lang.Integer minSnapshotsToKeep()
-
maxSnapshotAgeMs
public java.lang.Long maxSnapshotAgeMs()
-
maxRefAgeMs
public java.lang.Long maxRefAgeMs()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
tagBuilder
public static SnapshotRef.Builder tagBuilder(long snapshotId)
-
branchBuilder
public static SnapshotRef.Builder branchBuilder(long snapshotId)
-
builderFrom
public static SnapshotRef.Builder builderFrom(SnapshotRef ref)
-
builderFrom
public 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.- 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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-