@InterfaceAudience.Private public class MemStoreChunkPool extends Object
HeapMemStoreLAB.Chunk
instances.
MemStoreChunkPool caches a number of retired chunks for reusing, it could
decrease allocating bytes when writing, thereby optimizing the garbage
collection on JVM.
The pool instance is globally unique and could be obtained through
getPool(Configuration)
getChunk()
is called when MemStoreLAB allocating
bytes, and putbackChunks(BlockingQueue)
is called
when MemStore clearing snapshot for flushCopyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.