You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: java/README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,24 @@ and arrow-format into a single JAR. Using the classifier "shade-format-flatbuff
54
54
pom.xml will make use of this JAR, you can then exclude/resolve the original dependency to
55
55
a version of your choosing.
56
56
57
+
## Performance Tuning
58
+
59
+
There are several system/environmental variables that users can configure. These trade off safety (they turn off checking) for speed. Typically they are only used in production settings after the code has been thoroughly tested without using them.
60
+
61
+
* Bounds Checking for memory accesses: Bounds checking is on by default. You can disable it by setting either the
62
+
system property("arrow.enable_unsafe_memory_access") or the environmental variable
63
+
("ARROW_ENABLE_UNSAFE_MEMORY_ACCESS") to "true". When both the system property and the environmental
64
+
variable are set, the system property takes precedence.
65
+
66
+
* null checking for gets: ValueVector get methods (not getObject) methods by default verify the slot is not null. You can disable it by setting either the
67
+
system property("arrow.enable_null_check_for_get") or the environmental variable
68
+
("ARROW_ENABLE_NULL_CHECK_FOR_GET") to "false". When both the system property and the environmental
69
+
variable are set, the system property takes precedence.
70
+
71
+
## Java Properties
72
+
73
+
For java 9 or later, should set "-Dio.netty.tryReflectionSetAccessible=true".
74
+
This fixes `java.lang.UnsupportedOperationException: sun.misc.Unsafe or java.nio.DirectByteBuffer.(long, int) not available`. thrown by netty.
57
75
## Java Code Style Guide
58
76
59
77
Arrow Java follows the Google style guide [here][3] with the following
0 commit comments