joewitt commented on code in PR #9171:
URL: https://github.com/apache/nifi/pull/9171#discussion_r1713057253


##########
nifi-api/src/main/java/org/apache/nifi/provenance/ProvenanceEventRepository.java:
##########
@@ -93,5 +94,18 @@ public interface ProvenanceEventRepository {
      */
     void close() throws IOException;
 
+    /**
+     * Returns the previous provenance event IDs for the given FlowFile
+     * @param flowFileUUID the UUID of the FlowFile
+     * @return the previous event IDs for the given FlowFile
+     */
+    Set<Long> getPreviousEventIds(String flowFileUUID);
 
+    /**
+     * Updates the previous provenance event IDs for the given event
+     *
+     * @param record The record for which to update the previous event IDs
+     * @param previousIds the list of previous event IDs to set for the 
record, or null to remove
+     */
+    void updatePreviousEventIds(ProvenanceEventRecord record, Set<Long> 
previousIds);

Review Comment:
   why would they need to be updated rather than just set?



-- 
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]

Reply via email to