Class SnapshotRef

  • All Implemented Interfaces:
    java.io.Serializable

    public class SnapshotRef
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • 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 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
      • builderFor

        public static SnapshotRef.Builder builderFor​(long snapshotId,
                                                     org.apache.iceberg.SnapshotRefType type)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object