public abstract class FixedSizeCompressedObjectStrategy<T extends Buffer> extends CompressedObjectStrategy<T>
CompressedObjectStrategy.BufferConverter<T>, CompressedObjectStrategy.CompressionStrategy, CompressedObjectStrategy.Compressor, CompressedObjectStrategy.Decompressor, CompressedObjectStrategy.LZ4Compressor, CompressedObjectStrategy.LZ4Decompressor, CompressedObjectStrategy.LZFCompressor, CompressedObjectStrategy.LZFDecompressor, CompressedObjectStrategy.UncompressedCompressor, CompressedObjectStrategy.UncompressedDecompressor
converter, decompressor, DEFAULT_COMPRESSION_STRATEGY, order
Modifier | Constructor and Description |
---|---|
protected |
FixedSizeCompressedObjectStrategy(ByteOrder order,
CompressedObjectStrategy.BufferConverter<T> converter,
CompressedObjectStrategy.CompressionStrategy compression,
int sizePer) |
Modifier and Type | Method and Description |
---|---|
protected ByteBuffer |
bufferFor(T val) |
protected void |
decompress(ByteBuffer buffer,
int numBytes,
ByteBuffer buf) |
int |
getSize() |
compare, fromByteBuffer, getClazz, toBytes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
protected FixedSizeCompressedObjectStrategy(ByteOrder order, CompressedObjectStrategy.BufferConverter<T> converter, CompressedObjectStrategy.CompressionStrategy compression, int sizePer)
public int getSize()
protected ByteBuffer bufferFor(T val)
bufferFor
in class CompressedObjectStrategy<T extends Buffer>
protected void decompress(ByteBuffer buffer, int numBytes, ByteBuffer buf)
decompress
in class CompressedObjectStrategy<T extends Buffer>
Copyright © 2011–2017. All rights reserved.