jinchengchenghh commented on code in PR #41646:
URL: https://github.com/apache/arrow/pull/41646#discussion_r1642055941


##########
java/dataset/src/main/cpp/jni_wrapper.cc:
##########
@@ -153,6 +154,19 @@ arrow::Result<std::shared_ptr<arrow::dataset::FileFormat>> 
GetFileFormat(
   }
 }
 
+arrow::Result<std::shared_ptr<arrow::dataset::FragmentScanOptions>>
+GetFragmentScanOptions(jint file_format_id,
+                       const std::unordered_map<std::string, std::string>& 
configs) {
+  switch (file_format_id) {
+#ifdef ARROW_CSV
+    case 3:

Review Comment:
   No, It is only used here, 
https://github.com/apache/arrow/blob/main/java/dataset/src/main/cpp/jni_wrapper.cc#L133
   
   And it is enum class `FileFormat` mapping to Java 
https://github.com/apache/arrow/blob/main/java/dataset/src/main/cpp/jni_wrapper.cc#L133



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