org.xerial.snappy.Snappy.uncompressLongArray()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(148)

本文整理了Java中org.xerial.snappy.Snappy.uncompressLongArray()方法的一些代码示例,展示了Snappy.uncompressLongArray()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Snappy.uncompressLongArray()方法的具体详情如下:
包路径:org.xerial.snappy.Snappy
类名称:Snappy
方法名:uncompressLongArray

Snappy.uncompressLongArray介绍

[英]Uncompress the input data as a long array
[中]将输入数据解压为长数组

代码示例

代码示例来源:origin: redisson/redisson

/**
 * 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);
}

代码示例来源:origin: com.qwazr/qwazr-database

@Override
final public long[] toValue(byte[] compressedByteArray) throws IOException {
  if (compressedByteArray == null)
    return null;
  return Snappy.uncompressLongArray(compressedByteArray);
}

代码示例来源:origin: org.apache.carbondata/carbondata-core

@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);
 }
}

相关文章