TileDB-Inc/TileDB-Java

Name: TileDB-Java

Owner: TileDB, Inc.

Description: Java JNI interface to the TileDB storage manager

Created: 2018-03-08 15:22:05.0

Updated: 2018-04-25 06:54:21.0

Pushed: 2018-05-23 18:39:13.0

Homepage:

Size: 454

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

TileDB-Java

Build Status

Dependencies

It is required to first install or build from source TileDB.

To build the JNI extension you need to install:

Build

If TileDB is not installed in global system path, the ENV variable TILEDB_HOME must be defined.

To build the JNI library run:

./gradlew assemble

This will create the TileDB JNI library in build/libtiledb.jnilib.

Before running the Java code you should copy this file in your system library path. Alternatively you can add the build folder in your LD_LIBRARY_PATH ENV variable.

Tests

To run the tests use:

./gradlew test

Examples

You can run the examples located in src/main/java/examples using you IDE or from a terminal.

To run an example from the terminal use:

java -cp build/libs/tiledb-jni-1.0-SNAPSHOT.jar examples.TiledbArraySchema

You may need to explitly define the java library path:

java -Djava.library.path=".:<path/to/TileDB-Java/build>" -cp build/libs/tiledb-jni-1.0-SNAPSHOT.jar examples.TiledbArraySchema


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.