org.apache.hadoop.hbase.codec.prefixtree.decode
Class ArraySearcherPool
java.lang.Object
org.apache.hadoop.hbase.codec.prefixtree.decode.ArraySearcherPool
@InterfaceAudience.Private
public class ArraySearcherPool
- extends Object
Pools PrefixTreeArraySearcher objects. Each Searcher can consist of hundreds or thousands of
objects and 1 is needed for each HFile during a Get operation. With tens of thousands of
Gets/second, reusing these searchers may save a lot of young gen collections.
Alternative implementation would be a ByteBufferSearcherPool (not implemented yet).
pool
protected Queue<PrefixTreeArraySearcher> pool
ArraySearcherPool
public ArraySearcherPool()
checkOut
public PrefixTreeArraySearcher checkOut(ByteBuffer buffer,
boolean includesMvccVersion)
checkIn
public void checkIn(PrefixTreeArraySearcher searcher)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.