Github user xubo245 commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2816#discussion_r228461385
--- Diff:
store/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonReader.java ---
@@ -90,6 +91,18 @@ public T readNextRow() throws IOException,
InterruptedException {
return currentReader.getCurrentValue();
}
+ /**
+ * Read and return next batch row objects
+ */
+ public Object[] readNextBatchRow(int batch) throws Exception {
--- End diff --
ok, optimized. remove batch in readNextBatchRow and keep in withBatch
---