Copilot commented on code in PR #45:
URL: 
https://github.com/apache/iotdb-client-csharp/pull/45#discussion_r2772534019


##########
src/Apache.IoTDB/DataStructure/SessionDataSet.cs:
##########
@@ -52,7 +52,22 @@ public class SessionDataSet : System.IDisposable
         private int Flag => 0x80;
         private int DefaultTimeout => 10000;
         public int FetchSize { get; set; }
+
+        /// <summary>
+        /// Gets the number of rows in the current fetched batch.
+        /// Note: This is NOT the total row count of the query result. Use 
HasNext() to check for more data.
+        /// </summary>
+        /// <returns>The number of rows in the current batch.</returns>
+        public int CurrentBatchRowCount() => _currentBatchRowCount;
+
+        /// <summary>
+        /// Gets the number of rows in the current fetched batch.
+        /// </summary>
+        /// <returns>The number of rows in the current batch.</returns>
+        [Obsolete("Use CurrentBatchRowCount() instead. This property returns 
batch size, not total row count.")]
         public int RowCount { get; set; }
+
+        private int _currentBatchRowCount;

Review Comment:
   Field '_currentBatchRowCount' can be 'readonly'.
   ```suggestion
           private readonly int _currentBatchRowCount;
   ```



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