Class SnapshotRef

java.lang.Object
org.apache.iceberg.SnapshotRef
All Implemented Interfaces:
Serializable

public class SnapshotRef extends Object implements Serializable
See Also:
  • Field Details

  • Method Details

    • snapshotId

      public long snapshotId()
    • type

      public org.apache.iceberg.SnapshotRefType type()
    • isBranch

      public boolean isBranch()
    • isTag

      public boolean isTag()
    • minSnapshotsToKeep

      public Integer minSnapshotsToKeep()
    • maxSnapshotAgeMs

      public Long maxSnapshotAgeMs()
    • maxRefAgeMs

      public Long maxRefAgeMs()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class 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 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 String toString()
      Overrides:
      toString in class Object