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