NoahFournier commented on code in PR #35034:
URL: https://github.com/apache/arrow/pull/35034#discussion_r1165197518
##########
java/dataset/src/main/cpp/jni_wrapper.cc:
##########
@@ -533,6 +535,60 @@
Java_org_apache_arrow_dataset_file_JniWrapper_makeFileSystemDatasetFactory(
JNI_METHOD_END(-1L)
}
+/*
+ * Class: org_apache_arrow_dataset_file_JniWrapper
+ * Method: makeFileSystemDatasetFactory
+ * Signature: ([Ljava/lang/String;II)J
+ */
+JNIEXPORT jlong JNICALL
+Java_org_apache_arrow_dataset_file_JniWrapper_makeFileSystemDatasetFactory___3Ljava_lang_String_2I(
+ JNIEnv* env, jobject, jobjectArray uris, jint file_format_id) {
+ JNI_METHOD_START
+
+ using FsPathPair = std::pair<std::shared_ptr<arrow::fs::FileSystem>,
std::string>;
+
+ std::shared_ptr<arrow::dataset::FileFormat> file_format =
+ JniGetOrThrow(GetFileFormat(file_format_id));
+ arrow::dataset::FileSystemFactoryOptions options;
+
+ std::vector<std::string> uri_vec = ToStringVector(env, uris);
+
+ // If not all URIs, throw exception
Review Comment:
Agreed, nice catch !
--
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]