Package org.apache.iceberg
Class SnapshotRef
java.lang.Object
org.apache.iceberg.SnapshotRef
- All Implemented Interfaces:
 Serializable
- See Also:
 
- 
Nested Class Summary
Nested Classes - 
Field Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptionstatic 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.booleaninthashCode()booleanisBranch()booleanisTag()longstatic SnapshotRef.BuildertagBuilder(long snapshotId) toString()org.apache.iceberg.SnapshotRefTypetype() 
- 
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
 
 -