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 class
SnapshotRef.Builder
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MAIN_BRANCH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in 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:
toString
in classjava.lang.Object
-
-