From 967c5c698c88edd313814d24bd1c9de94e0eb25e Mon Sep 17 00:00:00 2001 From: Yuan Zhou Date: Thu, 7 May 2020 10:42:58 +0800 Subject: [PATCH] [C++] rename proto file for dataset Signed-off-by: Yuan Zhou --- cpp/src/jni/dataset/CMakeLists.txt | 14 +++++++------- cpp/src/jni/dataset/jni_wrapper.cpp | 4 ++-- .../dataset/proto/{Types.proto => DTypes.proto} | 0 3 files changed, 9 insertions(+), 9 deletions(-) rename cpp/src/jni/dataset/proto/{Types.proto => DTypes.proto} (100%) diff --git a/cpp/src/jni/dataset/CMakeLists.txt b/cpp/src/jni/dataset/CMakeLists.txt index 0df153fdc2369..e5cf7cda9a3d8 100644 --- a/cpp/src/jni/dataset/CMakeLists.txt +++ b/cpp/src/jni/dataset/CMakeLists.txt @@ -35,12 +35,12 @@ set(ARROW_BUILD_STATIC OFF) set(ARROW_DATASET_JNI_LIBS arrow_dataset_static ${ARROW_PROTOBUF_LIBPROTOBUF}) set(PROTO_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}) -set(PROTO_OUTPUT_FILES "${PROTO_OUTPUT_DIR}/Types.pb.cc") -set(PROTO_OUTPUT_FILES ${PROTO_OUTPUT_FILES} "${PROTO_OUTPUT_DIR}/Types.pb.h") +set(PROTO_OUTPUT_FILES "${PROTO_OUTPUT_DIR}/DTypes.pb.cc") +set(PROTO_OUTPUT_FILES ${PROTO_OUTPUT_FILES} "${PROTO_OUTPUT_DIR}/DTypes.pb.h") set_source_files_properties(${PROTO_OUTPUT_FILES} PROPERTIES GENERATED TRUE) -get_filename_component(ABS_ARROW_DATASET_PROTO ${CMAKE_SOURCE_DIR}/src/jni/dataset/proto/Types.proto +get_filename_component(ABS_ARROW_DATASET_PROTO ${CMAKE_SOURCE_DIR}/src/jni/dataset/proto/DTypes.proto ABSOLUTE) add_custom_command(OUTPUT ${PROTO_OUTPUT_FILES} @@ -49,17 +49,17 @@ add_custom_command(OUTPUT ${PROTO_OUTPUT_FILES} ${CMAKE_SOURCE_DIR}/src/jni/dataset/proto --cpp_out ${PROTO_OUTPUT_DIR} - ${CMAKE_SOURCE_DIR}/src/jni/dataset/proto/Types.proto + ${CMAKE_SOURCE_DIR}/src/jni/dataset/proto/DTypes.proto DEPENDS ${ABS_ARROW_DATASET_PROTO} protobuf::libprotobuf - COMMENT "Running PROTO compiler on Types.proto" + COMMENT "Running PROTO compiler on DTypes.proto" VERBATIM) add_custom_target(arrow_dataset_jni_proto ALL DEPENDS ${PROTO_OUTPUT_FILES}) set(PROTO_SRCS - "${PROTO_OUTPUT_DIR}/Types.pb.cc") + "${PROTO_OUTPUT_DIR}/DTypes.pb.cc") -set(PROTO_HDRS "${PROTO_OUTPUT_DIR}/Types.pb.h") +set(PROTO_HDRS "${PROTO_OUTPUT_DIR}/DTypes.pb.h") set(ARROW_DATASET_JNI_SOURCES jni_wrapper.cpp ${PROTO_SRCS}) diff --git a/cpp/src/jni/dataset/jni_wrapper.cpp b/cpp/src/jni/dataset/jni_wrapper.cpp index 4d9d306d366a2..5c3b67f5a116b 100644 --- a/cpp/src/jni/dataset/jni_wrapper.cpp +++ b/cpp/src/jni/dataset/jni_wrapper.cpp @@ -28,7 +28,7 @@ #include "arrow/compute/kernel.h" #include "arrow/compute/kernels/cast.h" #include "arrow/compute/kernels/compare.h" -#include "jni/dataset/Types.pb.h" +#include "jni/dataset/DTypes.pb.h" #include "org_apache_arrow_dataset_jni_JniWrapper.h" #include "org_apache_arrow_dataset_file_JniWrapper.h" @@ -574,4 +574,4 @@ JNIEXPORT jlong JNICALL Java_org_apache_arrow_dataset_file_JniWrapper_makeSingle JNI_ASSIGN_OR_THROW(std::shared_ptr d, arrow::dataset::SingleFileDatasetFactory::Make(out_path, fs, file_format)) return dataset_factory_holder_.Insert(d); -} \ No newline at end of file +} diff --git a/cpp/src/jni/dataset/proto/Types.proto b/cpp/src/jni/dataset/proto/DTypes.proto similarity index 100% rename from cpp/src/jni/dataset/proto/Types.proto rename to cpp/src/jni/dataset/proto/DTypes.proto