nsivabalan commented on code in PR #9293:
URL: https://github.com/apache/hudi/pull/9293#discussion_r1275417953
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/HoodieTimelineArchiver.java:
##########
@@ -726,4 +687,64 @@ private IndexedRecord convertToAvroRecord(HoodieInstant
hoodieInstant)
throws IOException {
return MetadataConversionUtils.createMetaWrapper(hoodieInstant,
metaClient);
}
+
+ /**
+ * getMinAndMaxInstantsToKeep is used by archival service to find the
+ * min instants and max instants to keep in the active timeline
+ * @param table table implementation extending
org.apache.hudi.table.HoodieTable
+ * @param metaClient meta client
+ * @return Pair containing min instants and max instants to keep.
+ */
+ public static Pair<Integer,Integer>
getMinAndMaxInstantsToKeep(HoodieTable<?, ?, ?, ?> table, HoodieTableMetaClient
metaClient) {
Review Comment:
can we move this to archiveUtils or something since its static.
--
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]