Class LZ4Transcoder

java.lang.Object
net.spy.memcached.compat.SpyObject
net.spy.memcached.transcoders.BaseSerializingTranscoder
net.spy.memcached.transcoders.SerializingTranscoder
org.apache.druid.client.cache.LZ4Transcoder
All Implemented Interfaces:
net.spy.memcached.transcoders.Transcoder<Object>

public class LZ4Transcoder extends net.spy.memcached.transcoders.SerializingTranscoder
  • Field Summary

    Fields inherited from class net.spy.memcached.transcoders.BaseSerializingTranscoder

    charset, compressionThreshold, DEFAULT_COMPRESSION_THRESHOLD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    LZ4Transcoder(int max)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected byte[]
    compress(byte[] in)
     
    protected byte[]
    decompress(byte[] in)
     

    Methods inherited from class net.spy.memcached.transcoders.SerializingTranscoder

    asyncDecode, decode, encode

    Methods inherited from class net.spy.memcached.transcoders.BaseSerializingTranscoder

    decodeString, deserialize, encodeString, getMaxSize, serialize, setCharset, setCompressionThreshold

    Methods inherited from class net.spy.memcached.compat.SpyObject

    getLogger

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.spy.memcached.transcoders.Transcoder

    getMaxSize
  • Constructor Details

    • LZ4Transcoder

      public LZ4Transcoder()
    • LZ4Transcoder

      public LZ4Transcoder(int max)
  • Method Details

    • compress

      protected byte[] compress(byte[] in)
      Overrides:
      compress in class net.spy.memcached.transcoders.BaseSerializingTranscoder
    • decompress

      protected byte[] decompress(byte[] in)
      Overrides:
      decompress in class net.spy.memcached.transcoders.BaseSerializingTranscoder