Class Snappy


  • public final class Snappy
    extends java.lang.Object
    Uncompresses an input ByteBuf encoded with Snappy compression into an output ByteBuf. See snappy format.
    • Constructor Detail

      • Snappy

        public Snappy()
    • Method Detail

      • withHashTableReuse

        public static Snappy withHashTableReuse()
      • reset

        public void reset()
      • encode

        public void encode​(ByteBuf in,
                           ByteBuf out,
                           int length)
      • 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