Skip to content

mwlon/q-compress-jni

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maven Central

Example:

import io.github.mwlon.qcompress.QCompress;

class Main {
  public static void main(String[] args) {
    int[] nums = {1, 2, 3, 4, 5};
    byte[] compressed = QCompress.autoCompressInts(nums, 6);
    int[] recovered = QCompress.autoDecompressInts(compressed);
    System.out.println(String.join(", ", recovered));
    // prints 1, 2, 3, 4, 5
  }
}

This library binds to the Rust code for q_compress. It currently supports the following OS/architectures pairs, with more to come in the future:

  • x86_64-darwin (Mac)
  • x86_64-linux
  • aarch64-linux

So far it handles these pieces of functionality from q_compress:

  • auto compress and decompress

and these Java data types:

  • boolean
  • int
  • long
  • float
  • double

For any feature requests, please submit a Github issue.

About

JVM bindings for Quantile Compression

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published