-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for the variant stats API
- Loading branch information
1 parent
bfc93e2
commit feddbf1
Showing
7 changed files
with
183 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
apis/java/src/main/java/io/tiledb/libvcfnative/LibVCFNative.h
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,30 @@ | ||
The LibVCFNative bindings are produced with `javah`. | ||
# The LibVCFNative bindings are produced with `javah`. | ||
|
||
To build the binding you must first compile the java file to a class file: | ||
## To build the LibVCFNative header run: | ||
``` | ||
javac -cp .:commons-io-2.14.0.jar *.java -h dstara | ||
``` | ||
|
||
This will generate io_tiledb_libvcfnative_LibVCFNative.h as a separate file. | ||
|
||
## Format the new header file: | ||
``` | ||
cd api/spark/src/main/java/io/tiledb/libvcfnative | ||
javac LibVCFNative.java | ||
clang-format -i io_tiledb_libvcfnative_LibVCFNative.h | ||
``` | ||
|
||
Next you can use `javah` to rebuild the LibVCFNative header: | ||
## Replace the old header file with the new: | ||
``` | ||
# Navigate back to top level spark src directory | ||
cd ../../../ | ||
javah -v -cp $PWD -o io/tiledb/libvcfnative/LibVCFNative.h io.tiledb.libvcfnative.LibVCFNative | ||
mv io_tiledb_libvcfnative_LibVCFNative.h LibVCFNative.h | ||
``` | ||
|
||
It is safe to delete the class file now: | ||
## It is safe to delete the class files now: | ||
``` | ||
rm io/tiledb/libvcfnative/LibVCFNative.class | ||
rm io/tiledb/libvcfnative/*.class | ||
``` | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
apis/java/src/main/java/io/tiledb/libvcfnative/generateJNI.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
javac - cp. : commons - io - 2.14.0.jar *.java - h.; | ||
clang - format - i io_tiledb_libvcfnative_LibVCFNative.h; | ||
mv io_tiledb_libvcfnative_LibVCFNative.h LibVCFNative.h; | ||
rm*.class; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters