Class Snappy
- java.lang.Object
-
- io.netty.handler.codec.compression.Snappy
-
public final class Snappy extends java.lang.ObjectUncompresses an inputByteBufencoded 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 voiddecode(ByteBuf in, ByteBuf out)voidencode(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 necessaryvoidreset()static SnappywithHashTableReuse()
-
-
-
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
-
-