Add .clover/ to gitignore and to rat excludes
2 files changed
tree: f335e8912f988edf0c02db8d4778b726e6d6a325
  1. .github/
  2. datasketches-memory/
  3. datasketches-memory-java11/
  4. datasketches-memory-java8/
  5. datasketches-memory-java8-tests/
  6. datasketches-memory-java9/
  7. datasketches-memory-resources/
  8. docs/
  9. tools/
  10. .asf.yaml
  11. .gitattributes
  12. .gitignore
  13. LICENSE
  14. NOTICE
  15. pom.xml
  16. README.md
README.md

Build Status Maven Central Language grade: Java Total alerts Coverage Status

=================

DataSketches Java Memory Component

The goal of this component of the library is to provide high performance access to native memory for primitives and primitive arrays. It also provides consistent views into heap-based primitive arrays, Java ByteBuffers and memory mapped files. This package is general purpose, has minimal external runtime dependencies and can be used in any application that needs to manage data structures outside the Java heap.

Please visit the main DataSketches website for more information.

If you are interested in making contributions to this site please see our Community page for how to contact us.


Java Support

Datasketches memory currently supports Java 8 up to and including Java 13.

In order to use the library in Java 9 and above, you must provide the following runtime arguments to the JVM:

    --add-opens java.base/java.nio=org.apache.datasketches.memory \
    --add-opens java.base/jdk.internal.misc=org.apache.datasketches.memory \
    --add-opens java.base/jdk.internal.ref=org.apache.datasketches.memory

For example, to run your local application with full compatibility for the Java module system, you might use the following command:

  $JAVA \
    --module-path mods \
    --add-opens java.base/java.nio=org.apache.datasketches.memory \
    --add-opens java.base/jdk.internal.misc=org.apache.datasketches.memory \
    --add-opens java.base/jdk.internal.ref=org.apache.datasketches.memory \
    --module my.main.application.module

where mods is your module path and my.main.application.module is your own JPMS module:

module datasketches.memory.multirelease.test {
    requires org.apache.datasketches.memory;
}

Build Instructions

NOTE: This component accesses resource files for testing. As a result, the directory elements of the full absolute path of the target installation directory must qualify as Java identifiers. In other words, the directory elements must not have any space characters (or non-Java identifier characters) in any of the path elements. This is required by the Oracle Java Specification in order to ensure location-independent access to resources: See Oracle Location-Independent Access to Resources

IMPORTANT: This project is structured as a maven multi-module project. Building this project might affect plugins that require early dependency resolution, such as the javadoc and eclipse plugins. The build instructions below have been modified to use the process-classes phase (instead of compile) for these use cases. For more information, see this Maven Reactor issue.

JDK versions required to compile

This DataSketches component is pure Java and requires the following JDKs to compile:

  • JDK8/Hotspot
  • JDK9/Hotspot
  • JDK11/Hotspot

Recommended Build Tool

This DataSketches component is structured as a Maven project and Maven is the recommended Build Tool.

There are two types of tests: normal unit tests and tests run by the strict profile.

To run normal unit tests:

$ mvn clean test

To run the strict profile tests:

$ mvn clean test -P strict

To run javadoc on this multi-module project, use:

$ mvn clean process-classes javadoc:javadoc -DskipTests=true

To run the eclipse plugin on this multi-module project, use:

$ mvn clean process-classes eclipse:eclipse -DskipTests=true

To install jars built from the downloaded source:

$ mvn clean install -DskipTests=true

This will create the following Jars:

  • datasketches-memory-X.Y.Z.jar The compiled main class files.
  • datasketches-memory-X.Y.Z-tests.jar The compiled test class files.
  • datasketches-memory-X.Y.Z-sources.jar The main source files.
  • datasketches-memory-X.Y.Z-test-sources.jar The test source files
  • datasketches-memory-X.Y.Z-javadoc.jar The compressed Javadocs.

Toolchains

This project makes use of Maven toolchains to ensure that the correct Java compiler version is used when compiling source files. Ensure that your local environment has been configured according to the toolchain documentation.

Dependencies

There are no run-time dependencies.

Testing

See the pom.xml file for test dependencies.


Further documentation for contributors

For more information on the project configuration, the following topics are discussed in more detail:

In order to build and contribute to this project, please read the relevant IDE documentation: