Skip to content

Commit

Permalink
ARROW-16941: [Java] Consolidate Dataset JNI compilation (#13481)
Browse files Browse the repository at this point in the history
Moves the Dataset JNI C++ code from the arrow/cpp project to the arrow/java project, updating the CMakeLists.txt files as needed.

Authored-by: Larry White <lwhite1@users.noreply.github.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
  • Loading branch information
lwhite1 committed Jul 1, 2022
1 parent 38918ef commit 9dac8ab
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 7 deletions.
3 changes: 3 additions & 0 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,9 @@ endif()

if(ARROW_JNI)
add_subdirectory(src/jni)
if(ARROW_DATASET)
add_subdirectory(../java/dataset/src/main/cpp ./java/jni)
endif()
endif()

if(ARROW_GANDIVA)
Expand Down
4 changes: 0 additions & 4 deletions cpp/src/jni/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,3 @@
if(ARROW_ORC)
add_subdirectory(orc)
endif()

if(ARROW_DATASET)
add_subdirectory(dataset)
endif()
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ add_custom_target(arrow_dataset_jni)

set(JNI_HEADERS_DIR "${CMAKE_CURRENT_BINARY_DIR}/generated")

add_subdirectory(../../../../java/dataset ./java)
add_subdirectory(../../../../dataset ./java)

set(ARROW_BUILD_STATIC OFF)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.

#include "jni/dataset/jni_util.h"
#include "./jni_util.h"

#include <memory>
#include <mutex>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "arrow/filesystem/localfs.h"
#include "arrow/ipc/api.h"
#include "arrow/util/iterator.h"
#include "jni/dataset/jni_util.h"
#include "./jni_util.h"
#include "org_apache_arrow_dataset_file_JniWrapper.h"
#include "org_apache_arrow_dataset_jni_JniWrapper.h"
#include "org_apache_arrow_dataset_jni_NativeMemoryPool.h"
Expand Down

0 comments on commit 9dac8ab

Please sign in to comment.