Quantile Compression JVM Bindings
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.