Package org.apache.lucene.util
Class ByteBlockPool.DirectTrackingAllocator
java.lang.Object
org.apache.lucene.util.ByteBlockPool.Allocator
org.apache.lucene.util.ByteBlockPool.DirectTrackingAllocator
- Enclosing class:
- ByteBlockPool
A simple
ByteBlockPool.Allocator
that never recycles, but tracks how much total RAM is in use.-
Field Summary
Fields inherited from class org.apache.lucene.util.ByteBlockPool.Allocator
blockSize
-
Constructor Summary
ConstructorsConstructorDescriptionDirectTrackingAllocator
(int blockSize, Counter bytesUsed) DirectTrackingAllocator
(Counter bytesUsed) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
void
recycleByteBlocks
(byte[][] blocks, int start, int end) Methods inherited from class org.apache.lucene.util.ByteBlockPool.Allocator
recycleByteBlocks
-
Constructor Details
-
DirectTrackingAllocator
-
DirectTrackingAllocator
-
-
Method Details
-
getByteBlock
public byte[] getByteBlock()- Overrides:
getByteBlock
in classByteBlockPool.Allocator
-
recycleByteBlocks
public void recycleByteBlocks(byte[][] blocks, int start, int end) - Specified by:
recycleByteBlocks
in classByteBlockPool.Allocator
-