Skip to content

Commit 2f3f129

Browse files
committed
cleanups
1 parent 1c327a7 commit 2f3f129

File tree

7 files changed

+12
-20
lines changed

7 files changed

+12
-20
lines changed

cpp/src/plasma/CMakeLists.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ if(ARROW_PLASMA_JAVA_CLIENT)
167167
include_directories(${JAVA_INCLUDE_PATH})
168168
include_directories(${JAVA_INCLUDE_PATH2})
169169
if (JNI_FOUND)
170-
message (STATUS "JNI_INCLUDE_DIRS=${JNI_INCLUDE_DIRS}")
171-
message (STATUS "JNI_LIBRARIES=${JNI_LIBRARIES}")
170+
message (STATUS "JNI_INCLUDE_DIRS = ${JNI_INCLUDE_DIRS}")
171+
message (STATUS "JNI_LIBRARIES = ${JNI_LIBRARIES}")
172172
else()
173-
message (WARNING "NOT FIND JNI")
173+
message (WARNING "Could not find JNI")
174174
endif()
175175

176176
add_compile_options("-I$ENV{JAVA_HOME}/include/")
@@ -187,8 +187,7 @@ if(ARROW_PLASMA_JAVA_CLIENT)
187187
file(GLOB PLASMA_LIBRARY_EXT_java_SRC
188188
lib/java/*.cc lib/*.cc)
189189
add_library(plasma_java SHARED
190-
${PLASMA_LIBRARY_EXT_java_SRC}
191-
)
190+
${PLASMA_LIBRARY_EXT_java_SRC})
192191

193192
if(APPLE)
194193
target_link_libraries(plasma_java plasma_static ${PLASMA_LINK_LIBS} "-undefined dynamic_lookup" -Wl,-force_load,${FLATBUFFERS_STATIC_LIB} ${FLATBUFFERS_STATIC_LIB} ${PTHREAD_LIBRARY})

cpp/src/plasma/lib/java/org_apache_arrow_plasma_PlasmaClientJNI.cc

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17+
1718
#include "plasma/lib/java/org_apache_arrow_plasma_PlasmaClientJNI.h"
1819
#include <pthread.h>
1920
#include <stdlib.h>
@@ -63,9 +64,6 @@ JNIEXPORT jlong JNICALL Java_org_apache_arrow_plasma_PlasmaClientJNI_connect(
6364
plasma::PlasmaClient* client = new plasma::PlasmaClient();
6465
ARROW_CHECK_OK(client->Connect(s_name, m_name, release_delay));
6566

66-
// fprintf (stdout, "JNI plasma client init, fd = %d\n", client->get_store_fd());
67-
// fflush (stdout);
68-
6967
env->ReleaseStringUTFChars(store_socket_name, s_name);
7068
env->ReleaseStringUTFChars(manager_socket_name, m_name);
7169
return reinterpret_cast<int64_t>(client);
@@ -75,9 +73,6 @@ JNIEXPORT void JNICALL Java_org_apache_arrow_plasma_PlasmaClientJNI_disconnect(
7573
JNIEnv* env, jclass cls, jlong conn) {
7674
plasma::PlasmaClient* client = (plasma::PlasmaClient*)conn;
7775

78-
// fprintf (stdout, "JNI plasma client disconnect, fd = %d\n", client->get_store_fd());
79-
// fflush (stdout);
80-
8176
ARROW_CHECK_OK(client->Disconnect());
8277
delete client;
8378
return;
@@ -154,17 +149,12 @@ JNIEXPORT void JNICALL Java_org_apache_arrow_plasma_PlasmaClientJNI_release(
154149
plasma::ObjectID oid;
155150
jbyteArray_to_object_id(env, object_id, &oid);
156151

157-
// fprintf (stdout, "JNI plasma client release, fd = %d\n", client->get_store_fd());
158-
// fflush (stdout);
159-
160152
ARROW_CHECK_OK(client->Release(oid));
161153
}
162154

163155
JNIEXPORT jobjectArray JNICALL Java_org_apache_arrow_plasma_PlasmaClientJNI_get(
164156
JNIEnv* env, jclass cls, jlong conn, jobjectArray object_ids, jint timeout_ms) {
165157
plasma::PlasmaClient* client = (plasma::PlasmaClient*)conn;
166-
// fprintf (stdout, "JNI plasma client get, fd = %d\n", client->get_store_fd());
167-
// fflush (stdout);
168158

169159
jsize num_oids = env->GetArrayLength(object_ids);
170160
std::vector<plasma::ObjectID> oids(num_oids);

java/plasma/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
under the License.
1818
-->
1919

20-
# Plasma client of java
20+
# Java Plasma Client
2121

2222
## Setup Build Environment
2323

24-
install:
24+
Install:
2525
- java 8 or later
2626
- maven 3.3 or later
2727
- the same requirement of build [Arrow C++](https://github.com/apache/arrow/tree/master/cpp)
@@ -36,4 +36,3 @@ mvn clean install -Dmaven.test.skip
3636
```
3737
./test.sh
3838
```
39-

java/plasma/src/main/java/org/apache/arrow/plasma/ObjectStoreLink.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18+
1819
package org.apache.arrow.plasma;
1920

2021
import java.util.List;

java/plasma/src/main/java/org/apache/arrow/plasma/PlasmaClientJNI.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18+
1819
package org.apache.arrow.plasma;
1920

2021
import java.nio.ByteBuffer;

java/plasma/src/test/java/org/apache/arrow/plasma/PlasmaClientTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18+
1819
package org.apache.arrow.plasma;
1920

2021
import java.io.IOException;

java/plasma/test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# KIND, either express or implied. See the License for the
1616
# specific language governing permissions and limitations
1717
# under the License.
18+
1819
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
1920
unamestr="$(uname)"
2021
if [[ "$unamestr" == "Linux" ]]; then
@@ -35,7 +36,7 @@ pushd ../../cpp
3536
-DCMAKE_CXX_FLAGS="-g -O3" \
3637
-DARROW_BUILD_TESTS=off \
3738
-DARROW_HDFS=on \
38-
-DARROW_BOOST_USE_SHARED=off \
39+
-DARROW_BOOST_USE_SHARED=on \
3940
-DARROW_PYTHON=on \
4041
-DARROW_PLASMA=on \
4142
-DPLASMA_PYTHON=on \

0 commit comments

Comments
 (0)