Package org.apache.iceberg.util
Class WapUtil
java.lang.Object
org.apache.iceberg.util.WapUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
publishedWapId
(Snapshot snapshot) static String
stagedWapId
(Snapshot snapshot) static String
validateWapPublish
(TableMetadata current, long wapSnapshotId) Check if a given staged snapshot's associated wap-id was already published.
-
Method Details
-
stagedWapId
-
publishedWapId
-
validateWapPublish
Check if a given staged snapshot's associated wap-id was already published. Does not fail for non-WAP workflows.- Parameters:
current
- the currentmetadata
for the target tablewapSnapshotId
- 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
-