Class WapUtil

java.lang.Object
org.apache.iceberg.util.WapUtil

public class WapUtil extends Object
  • Method Details

    • stagedWapId

      public static String stagedWapId(Snapshot snapshot)
    • publishedWapId

      public static String publishedWapId(Snapshot snapshot)
    • validateWapPublish

      public static String validateWapPublish(TableMetadata current, long wapSnapshotId)
      Check if a given staged snapshot's associated wap-id was already published. Does not fail for non-WAP workflows.
      Parameters:
      current - the current metadata for the target table
      wapSnapshotId - a snapshot id which could have been staged and is associated with a wap id
      Returns:
      the WAP ID that will be published, if the snapshot has one