Package org.apache.lucene.index
Class DocumentsWriterPerThread.IntBlockAllocator
- java.lang.Object
-
- org.apache.lucene.util.IntBlockPool.Allocator
-
- org.apache.lucene.index.DocumentsWriterPerThread.IntBlockAllocator
-
- Enclosing class:
- DocumentsWriterPerThread
private static class DocumentsWriterPerThread.IntBlockAllocator extends IntBlockPool.Allocator
-
-
Field Summary
Fields Modifier and Type Field Description private Counter
bytesUsed
-
Fields inherited from class org.apache.lucene.util.IntBlockPool.Allocator
blockSize
-
-
Constructor Summary
Constructors Constructor Description IntBlockAllocator(Counter bytesUsed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
getIntBlock()
void
recycleIntBlocks(int[][] blocks, int offset, int length)
-
-
-
Field Detail
-
bytesUsed
private final Counter bytesUsed
-
-
Constructor Detail
-
IntBlockAllocator
public IntBlockAllocator(Counter bytesUsed)
-
-
Method Detail
-
getIntBlock
public int[] getIntBlock()
- Overrides:
getIntBlock
in classIntBlockPool.Allocator
-
recycleIntBlocks
public void recycleIntBlocks(int[][] blocks, int offset, int length)
- Specified by:
recycleIntBlocks
in classIntBlockPool.Allocator
-
-