private static class DocumentsWriterPerThread.IntBlockAllocator extends IntBlockPool.Allocator
| Modifier and Type | Field and Description |
|---|---|
private Counter |
bytesUsed |
blockSize| Constructor and Description |
|---|
IntBlockAllocator(Counter bytesUsed) |
| Modifier and Type | Method and Description |
|---|---|
int[] |
getIntBlock() |
void |
recycleIntBlocks(int[][] blocks,
int offset,
int length) |
private final Counter bytesUsed
public IntBlockAllocator(Counter bytesUsed)
public int[] getIntBlock()
getIntBlock in class IntBlockPool.Allocatorpublic void recycleIntBlocks(int[][] blocks,
int offset,
int length)
recycleIntBlocks in class IntBlockPool.Allocator