Package org.apache.lucene.util
Class IntBlockPool.Allocator
java.lang.Object
org.apache.lucene.util.IntBlockPool.Allocator
- Direct Known Subclasses:
IntBlockPool.DirectAllocator
,RecyclingIntBlockAllocator
- Enclosing class:
- IntBlockPool
Abstract class for allocating and freeing int blocks.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint[]
abstract void
recycleIntBlocks
(int[][] blocks, int start, int end)
-
Field Details
-
blockSize
protected final int blockSize
-
-
Constructor Details
-
Allocator
protected Allocator(int blockSize)
-
-
Method Details
-
recycleIntBlocks
public abstract void recycleIntBlocks(int[][] blocks, int start, int end) -
getIntBlock
public int[] getIntBlock()
-