/** * Uncompress the input data as an int array * * @param input * @return the uncompressed data * @throws IOException */ public static int[] uncompressIntArray(byte[] input) throws IOException { return uncompressIntArray(input, 0, input.length); }
@Override final public int[] toValue(byte[] compressedByteArray) throws IOException { if (compressedByteArray == null) return null; return Snappy.uncompressIntArray(compressedByteArray); }
@Override public int[] unCompressInt(byte[] compInput, int offset, int length) { try { return Snappy.uncompressIntArray(compInput, offset, length); } catch (IOException e) { LOGGER.error(e.getMessage(), e); throw new RuntimeException(e); } }