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 SummaryNested Classes Modifier and Type Class Description static classSnapshotRef.Builder
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringMAIN_BRANCH
 - 
Method SummaryAll 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_BRANCHpublic static final java.lang.String MAIN_BRANCH - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
snapshotIdpublic long snapshotId() 
 - 
typepublic org.apache.iceberg.SnapshotRefType type() 
 - 
isBranchpublic boolean isBranch() 
 - 
isTagpublic boolean isTag() 
 - 
minSnapshotsToKeeppublic java.lang.Integer minSnapshotsToKeep() 
 - 
maxSnapshotAgeMspublic java.lang.Long maxSnapshotAgeMs() 
 - 
maxRefAgeMspublic java.lang.Long maxRefAgeMs() 
 - 
equalspublic boolean equals(java.lang.Object other) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
tagBuilderpublic static SnapshotRef.Builder tagBuilder(long snapshotId) 
 - 
branchBuilderpublic static SnapshotRef.Builder branchBuilder(long snapshotId) 
 - 
builderFrompublic static SnapshotRef.Builder builderFrom(SnapshotRef ref) 
 - 
builderFrompublic 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 from
- snapshotId- snapshotID to use.
- Returns:
- ref builder with the same retention properties as given ref, but the ref will point to the passed in id
 
 - 
builderForpublic static SnapshotRef.Builder builderFor(long snapshotId, org.apache.iceberg.SnapshotRefType type) 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-