Package org.apache.iceberg.util
Class WapUtil
java.lang.Object
org.apache.iceberg.util.WapUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringpublishedWapId(Snapshot snapshot) static StringstagedWapId(Snapshot snapshot) static StringvalidateWapPublish(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 currentmetadatafor 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
-