MINOR: Bump com.diffplug.spotless:spotless-maven-plugin from 3.10.3 to 3.10.4 (#1353) Bumps [com.diffplug.spotless:spotless-maven-plugin](https://github.com/diffplug/spotless) from 3.10.3 to 3.10.4. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/diffplug/spotless/releases">com.diffplug.spotless:spotless-maven-plugin's releases</a>.</em></p> <blockquote> <h2>Maven Plugin v3.10.4</h2> <h3>Changes</h3> <ul> <li>Bump default <code>eclipse</code> version from <code>4.40</code> to <code>4.41</code>.</li> <li>Bump default <code>gherkin</code> version <code>42.0.0</code> -> <code>42.0.1</code>. (<a href="https://redirect.github.com/diffplug/spotless/pull/3088">#3088</a>)</li> <li>Bump default <code>jackson</code> version <code>2.22.2</code> -> <code>2.22.3</code>. (<a href="https://redirect.github.com/diffplug/spotless/pull/3101">#3101</a>)</li> <li>Bump default <code>palantir-java-format</code> version <code>2.98.0</code> -> <code>2.102.0</code>. (<a href="https://redirect.github.com/diffplug/spotless/pull/3103">#3103</a>, <a href="https://redirect.github.com/diffplug/spotless/pull/3132">#3132</a>)</li> <li>Bump default <code>mockito-core</code> version <code>5.23.0</code> -> <code>5.24.0</code>. (<a href="https://redirect.github.com/diffplug/spotless/pull/3106">#3106</a>)</li> <li>Bump default <code>greclipse</code> version to latest <code>4.40</code> -> <code>4.41</code>. (<a href="https://redirect.github.com/diffplug/spotless/pull/3123">#3123</a>)</li> <li>Bump default <code>ktfmt</code> version <code>0.64</code> -> <code>0.65</code>. (<a href="https://redirect.github.com/diffplug/spotless/pull/3135">#3135</a>)<br /> Which moved to the <code>org.jetbrains.kotlinx:ktfmt</code> coordinate and <code>org.jetbrains.kotlinx.ktfmt</code> package. Older versions are still supported.</li> <li>Bump default <code>palantir-java-format</code> version <code>2.99.0</code> -> <code>2.102.0</code>. (<a href="https://redirect.github.com/diffplug/spotless/pull/3132">#3132</a>)</li> </ul> <h3>Fixed</h3> <ul> <li>Migrate Plexus component injection to JSR-330 and Maven parameter. (<a href="https://redirect.github.com/diffplug/spotless/pull/3122">#3122</a>)</li> <li><code>shortenFullyQualifiedTypes</code> leaves a qualified name alone when the enclosing type extends or implements a type that is not in the same file, so an inherited member type cannot take the simple name. (<a href="https://redirect.github.com/diffplug/spotless/issues/3117">#3117</a>)</li> <li><code>expandWildcardImports</code> no longer drops the import of a type that is only used to qualify a static member (such as <code>Collections.sort(list)</code> or <code>TimeUnit.SECONDS</code>), or the static import of a field or enum constant (such as <code>PI</code> from <code>import static java.lang.Math.*</code>), which produced code that did not compile. (<a href="https://redirect.github.com/diffplug/spotless/issues/2833">#2833</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/diffplug/spotless/commit/62e727dd766addbcac781ce96f48481a5429d671"><code>62e727d</code></a> Published maven/3.10.4</li> <li><a href="https://github.com/diffplug/spotless/commit/d9e7a412fe136999bb304c65287e9e903c9c5e3a"><code>d9e7a41</code></a> Published gradle/8.10.4</li> <li><a href="https://github.com/diffplug/spotless/commit/c006d66c0218a8eaa0c315e74c24bba7c1be9286"><code>c006d66</code></a> Published lib/4.10.4</li> <li><a href="https://github.com/diffplug/spotless/commit/8adb835389b1b883707a204a48c789f61073d7cc"><code>8adb835</code></a> Merge release publishing fixes into main (<a href="https://redirect.github.com/diffplug/spotless/issues/3138">#3138</a>)</li> <li><a href="https://github.com/diffplug/spotless/commit/67b4dbfdff010a8702a093bbb22c770910b8dcc1"><code>67b4dbf</code></a> Remove internal publishing changes from release notes</li> <li><a href="https://github.com/diffplug/spotless/commit/b9c48306d38e82718e14add4f63901a78893338c"><code>b9c4830</code></a> Keep Rewrite plugin on publicly resolvable releases (<a href="https://redirect.github.com/diffplug/spotless/issues/3036">#3036</a>)</li> <li><a href="https://github.com/diffplug/spotless/commit/1c93df4f0b4eb62f445057dcdf78fd8e986310e3"><code>1c93df4</code></a> Update dependency com.palantir.javaformat:palantir-java-format to v2.102.0 (#...</li> <li><a href="https://github.com/diffplug/spotless/commit/ab153a9c3816b2d7663f171b5b53cce7fcbf4cbb"><code>ab153a9</code></a> Keep Rewrite plugin on publicly resolvable releases</li> <li><a href="https://github.com/diffplug/spotless/commit/feb10d8d0f575c526ecbd7f827c0d28f7f6b4577"><code>feb10d8</code></a> Update plugin rewrite to v7.41.0</li> <li><a href="https://github.com/diffplug/spotless/commit/20836645844f5f8d947e9d00514284b0d01b8517"><code>2083664</code></a> Update changelogs for default formatter version bump (<a href="https://redirect.github.com/diffplug/spotless/issues/3132">#3132</a>)</li> <li>Additional commits viewable in <a href="https://github.com/diffplug/spotless/compare/maven/3.10.3...maven/3.10.4">compare view</a></li> </ul> </details> <br /> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
The following guides explain the fundamental data structures used in the Java implementation of Apache Arrow.
Generated javadoc documentation is available here.
Refer to Building Apache Arrow for documentation of environment setup and build instructions.
Arrow uses Google's Flatbuffers to transport metadata. The java version of the library requires the generated flatbuffer classes can only be used with the same version that generated them. Arrow packages a version of the arrow-vector module that shades flatbuffers and arrow-format into a single JAR. Using the classifier “shade-format-flatbuffers” in your pom.xml will make use of this JAR, you can then exclude/resolve the original dependency to a version of your choosing.
$ flatc --version flatc version 25.1.24 $ grep "dep.fbs.version" pom.xml <dep.fbs.version>25.1.24</dep.fbs.version>
cd $ARROW_HOME # remove the existing files rm -rf format/src # regenerate from the .fbs files flatc --java -o format/src/main/java arrow-format/*.fbs # prepend license header mvn spotless:apply -pl :arrow-format
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.
Bounds Checking for memory accesses: Bounds checking is on by default. You can disable it by setting either the system property(arrow.enable_unsafe_memory_access) or the environmental variable (ARROW_ENABLE_UNSAFE_MEMORY_ACCESS) to true. When both the system property and the environmental variable are set, the system property takes precedence.
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 system property(arrow.enable_null_check_for_get) or the environmental variable (ARROW_ENABLE_NULL_CHECK_FOR_GET) to false. When both the system property and the environmental variable are set, the system property takes precedence.
-Dio.netty.tryReflectionSetAccessible=true should be set. This fixes java.lang.UnsupportedOperationException: sun.misc.Unsafe or java.nio.DirectByteBuffer.(long, int) not available. thrown by Netty.StructVector enable -Darrow.struct.conflict.policy=CONFLICT_APPEND. Duplicate fields are ignored (CONFLICT_REPLACE) by default and overwritten. To support different policies for conflicting or duplicate fields set this JVM flag or use the correct static constructor methods for StructVectors.Arrow Java follows the Google Java Style Guide with the following differences:
NoFinalizer, OverloadMethodsDeclarationOrder, and VariableDeclarationUsageDistance due to the existing code base. These rules should be followed when possible.Refer to checkstyle.xml for rule specifics.
When running tests, Arrow Java uses the Logback logger with SLF4J. By default, it uses the logback.xml present in the corresponding module's src/test/resources directory, which has the default log level set to INFO. Arrow Java can be built with an alternate logback configuration file using the following command run in the project root directory:
mvn -Dlogback.configurationFile=file:<path-of-logback-file>
See Logback Configuration for more details.
Integration tests which require more time or more memory can be run by activating the integration-tests profile. This activates the Maven Failsafe plugin and any class prefixed with IT will be run during the testing phase. The integration tests currently require a larger amount of memory (>4GB) and time to complete. To activate the profile:
mvn -Pintegration-tests <rest of mvn arguments>