You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/09/26 03:48:02 UTC
[GitHub] [arrow] emkornfield commented on a change in pull request #10652: ARROW-13257: [Java][Dataset] Allow passing empty columns for projection
emkornfield commented on a change in pull request #10652:
URL: https://github.com/apache/arrow/pull/10652#discussion_r716134684
##########
File path: java/dataset/src/main/java/org/apache/arrow/dataset/scanner/ScanOptions.java
##########
@@ -26,12 +26,16 @@
/**
* Constructor.
- * @param columns Projected columns. Empty for scanning all columns.
* @param batchSize Maximum row number of each returned {@link org.apache.arrow.vector.ipc.message.ArrowRecordBatch}
+ * @param columns Projected columns. Null for scanning all columns.
*/
- public ScanOptions(String[] columns, long batchSize) {
- this.columns = columns;
+ public ScanOptions(long batchSize, String[] columns) {
Review comment:
instead of allowing for null would it make sense to use Optional?
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org