krishnan1985 commented on a change in pull request #954:
URL: https://github.com/apache/avro/pull/954#discussion_r497069416



##########
File path: lang/c++/api/DataFile.hh
##########
@@ -102,6 +103,11 @@ public:
      */
     void syncIfNeeded();
 
+    /**
+     * Returns offset to the last sync marker written.
+     */
+    uint64_t getLastSync();

Review comment:
       I like your suggestion. I will make the change.
   
   However, I chose this name since it matched with the terminology used in 
DataFileReader. DataFileReader already exposes the following: pastSync(), 
previousSync(), etc. which denote the same. Should we rationalize these APIs as 
well in a future change?

##########
File path: lang/c++/api/DataFile.hh
##########
@@ -102,6 +103,11 @@ public:
      */
     void syncIfNeeded();
 
+    /**
+     * Returns offset to the last sync marker written.
+     */
+    uint64_t getLastSync();

Review comment:
       Thanks, Thiru! I like your suggestion. I will make the change.
   
   However, I chose this name since it matched with the terminology used in 
DataFileReader. DataFileReader already exposes the following: pastSync(), 
previousSync(), etc. which denote the same. Should we rationalize these APIs as 
well in a future change?




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to