Package org.apache.lucene.util
Class ByteBlockPool.Allocator
java.lang.Object
org.apache.lucene.util.ByteBlockPool.Allocator
- Direct Known Subclasses:
ByteBlockPool.DirectAllocator,ByteBlockPool.DirectTrackingAllocator,RecyclingByteBlockAllocator
- Enclosing class:
ByteBlockPool
Abstract class for allocating and freeing byte
blocks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]abstract voidrecycleByteBlocks(byte[][] blocks, int start, int end) voidrecycleByteBlocks(List<byte[]> blocks)
-
Constructor Details
-
Allocator
public Allocator(int blockSize)
-
-
Method Details
-
recycleByteBlocks
public abstract void recycleByteBlocks(byte[][] blocks, int start, int end) -
recycleByteBlocks
-
getByteBlock
public byte[] getByteBlock()
-