本文整理汇总了Java中org.xerial.snappy.Snappy.uncompressDoubleArray方法的典型用法代码示例。如果您正苦于以下问题:Java Snappy.uncompressDoubleArray方法的具体用法?Java Snappy.uncompressDoubleArray怎么用?Java Snappy.uncompressDoubleArray使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.xerial.snappy.Snappy
的用法示例。
在下文中一共展示了Snappy.uncompressDoubleArray方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: fillCollection
import org.xerial.snappy.Snappy; //导入方法依赖的package包/类
final protected void fillCollection(final ObjectInput in, final RoaringBitmap nullBitmap,
final Collection<Double> collection) throws IOException {
final double[] array = Snappy.uncompressDoubleArray(ArrayExternalizer.readBytes(in));
int i = 0;
for (final double value : array)
collection.add(nullBitmap.contains(i++) ? null : value);
}
示例2: unCompress
import org.xerial.snappy.Snappy; //导入方法依赖的package包/类
/**
* wrapper method for unCompress byte[] compInput.
*
* @param compInput byte[].
* @return double[].
*/
public double[] unCompress(byte[] compInput) {
try {
return Snappy.uncompressDoubleArray(compInput);
} catch (IOException e) {
LOGGER.error(e, e.getMessage());
}
return null;
}
示例3: deserializeDoubleCompressedArray
import org.xerial.snappy.Snappy; //导入方法依赖的package包/类
private static double[] deserializeDoubleCompressedArray(DataInput is)
throws IOException {
int size = LongPacker.unpackInt(is);
byte[] b = new byte[size];
is.readFully(b);
return Snappy.uncompressDoubleArray(b);
}
示例4: uncompress
import org.xerial.snappy.Snappy; //导入方法依赖的package包/类
@Override
final protected double[] uncompress(final byte[] bytes) throws IOException {
return Snappy.uncompressDoubleArray(bytes);
}