Giter Site home page Giter Site logo

hse-java's Introduction

HSE Java Bindings

Heterogeneous-Memory Storage Engine bindings for Java.

Building

Dependencies

  • Java Development Kit >= 1.8

hse-java targets JDK 1.8 in order to be compatible with most Java-based software projects.


hse-java is built using the Meson build system. In the event HSE is not visible to the hse-java build system, HSE will be fetched and built alongside hse-java.

The minimum version of Meson required to build hse-java can be found in the root meson.build. In there, you will find a meson_version keyword argument to the project() function at the beginnging of the file.

If your system doesn't supply a Meson version new enough to build HSE, refer to the Meson installation instructions.

meson setup build
meson compile -C build

Check the output of meson configure build or meson_options.txt for various build options.

Installation

From Maven Central

Add something like the following to your pom.xml or equivalent file:

<dependency>
  <groupId>io.github.hse-project</groupId>
  <artifactId>hse</artifactId>
  <version>${hse.version}</version>
<dependency>

From Build

The default install directory is /opt/hse1. This can be overridden by configuring the build with either -Dprefix=$prefix or --prefix=$prefix.

meson install -C build

Note that this will also install the JAR file to the output of mvn help:evaluate -Dexpression=settings.localRepository by default. If it must be deployed to another repository, set -Drepo using a URI syntax, file://....

Recommendations

Errno Values

HseException.getErrno() returns a scalar. Should you need to take that scalar and get an errno constant from it, we recommend using the Java Native Runtime Constants package.

try {
    // ...
} catch (final HseException e) {
    final Errno errno = Errno.valueOf(e.getErrno());

    // ...
}

Footnotes

  1. You may have to configure your class path or your Java build tooling to allow the Java compiler to see the hse-java jar. โ†ฉ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.