Class Snappy
- java.lang.Object
-
- io.netty.handler.codec.compression.Snappy
-
public final class Snappy extends java.lang.Object
Uncompresses an inputByteBuf
encoded with Snappy compression into an outputByteBuf
. See snappy format.
-
-
Constructor Summary
Constructors Constructor Description Snappy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decode(ByteBuf in, ByteBuf out)
void
encode(ByteBuf in, ByteBuf out, int length)
static short[]
getHashTableFastThreadLocalArrayFill(int hashTableSize)
Returns a short[] from a FastThreadLocal, zeroing for correctness creating a new one and resizing it if necessaryvoid
reset()
static Snappy
withHashTableReuse()
-
-
-
Method Detail
-
withHashTableReuse
public static Snappy withHashTableReuse()
-
reset
public void reset()
-
getHashTableFastThreadLocalArrayFill
public static short[] getHashTableFastThreadLocalArrayFill(int hashTableSize)
Returns a short[] from a FastThreadLocal, zeroing for correctness creating a new one and resizing it if necessary- Parameters:
hashTableSize
-- Returns:
- An appropriately sized empty hashtable
-
-