Package org.apache.hadoop.hbase.io.hfile
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
asyncDecode
(net.spy.memcached.CachedData d) decode
(net.spy.memcached.CachedData d) net.spy.memcached.CachedData
encode
(HFileBlock block) int
-
Constructor Details
-
HFileBlockTranscoder
private HFileBlockTranscoder()
-
-
Method Details
-
asyncDecode
- Specified by:
asyncDecode
in interfacenet.spy.memcached.transcoders.Transcoder<HFileBlock>
-
encode
- Specified by:
encode
in interfacenet.spy.memcached.transcoders.Transcoder<HFileBlock>
-
decode
- Specified by:
decode
in interfacenet.spy.memcached.transcoders.Transcoder<HFileBlock>
-
getMaxSize
- Specified by:
getMaxSize
in interfacenet.spy.memcached.transcoders.Transcoder<HFileBlock>
-