Class MemcachedBlockCache.HFileBlockTranscoder

java.lang.Object
org.apache.hadoop.hbase.io.hfile.MemcachedBlockCache.HFileBlockTranscoder
All Implemented Interfaces:
net.spy.memcached.transcoders.Transcoder<HFileBlock>
Enclosing class:
MemcachedBlockCache

private static class MemcachedBlockCache.HFileBlockTranscoder extends Object implements net.spy.memcached.transcoders.Transcoder<HFileBlock>
Class to encode and decode an HFileBlock to and from memecached's resulting byte arrays.
  • Constructor Details

  • Method Details

    • asyncDecode

      public boolean asyncDecode(net.spy.memcached.CachedData d)
      Specified by:
      asyncDecode in interface net.spy.memcached.transcoders.Transcoder<HFileBlock>
    • encode

      public net.spy.memcached.CachedData encode(HFileBlock block)
      Specified by:
      encode in interface net.spy.memcached.transcoders.Transcoder<HFileBlock>
    • decode

      public HFileBlock decode(net.spy.memcached.CachedData d)
      Specified by:
      decode in interface net.spy.memcached.transcoders.Transcoder<HFileBlock>
    • getMaxSize

      public int getMaxSize()
      Specified by:
      getMaxSize in interface net.spy.memcached.transcoders.Transcoder<HFileBlock>