-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exception when compress. #13
Comments
java.lang.IndexOutOfBoundsException |
Please try to extend length of int [] compressed = new int[data.length + 32]; It is known that VariableByte#compress requirs longer array when original array is too short. |
It was mentioned in #11 |
I'm closing this. Please reopen if you disagree. It is clearly stated in your example that "if you get java.lang.ArrayIndexOutOfBoundsException, try allocating more memory". You do get ArrayIndexOutOfBoundsException and so, the fix is to allocate more memory (as explained by @koron). |
int data = new int[]{1,200000000};
IntegratedIntegerCODEC codec = new
IntegratedComposition(
new IntegratedBinaryPacking(),
new IntegratedVariableByte());
// output vector should be large enough...
int [] compressed = new int[data.length];
// compressed might not be large enough in some cases
// if you get java.lang.ArrayIndexOutOfBoundsException, try
// allocating more memory
The text was updated successfully, but these errors were encountered: