rdblue commented on code in PR #18248:
URL: https://github.com/apache/iceberg/pull/18248#discussion_r4098541714
##########
core/src/main/java/org/apache/iceberg/TrackingStruct.java:
##########
@@ -179,6 +180,32 @@ boolean assignFirstRowId(Long nextRowId) {
return false;
}
+ /**
+ * Update this tracking to have DELETED status.
+ *
+ * @param snapshotId snapshot ID when the record was deleted, or null if it
is unknown
+ * @return this converted to a DELETED Tracking
+ */
+ TrackingStruct convertToDeleted(Long snapshotId) {
+ Preconditions.checkState(status.isLive(), "Cannot convert %s to DELETED",
status);
+ this.status = EntryStatus.DELETED;
+ this.snapshotId = snapshotId;
+ return this;
+ }
+
+ /**
+ * Update this tracking to have REPLACED status.
+ *
+ * @param snapshotId snapshot ID when the record was replaced, or null if it
is unknown
+ * @return this converted to a REPLACED Tracking
+ */
+ TrackingStruct convertToReplaced(Long snapshotId) {
Review Comment:
This is going to be needed when we produce replaced entries from the
replaced bitmap.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]