Class RecyclingInt32BlockAllocator
A Int32BlockPool.Allocator implementation that recycles unused
Note: this class is not thread-safe.
NOTE: This was RecyclingIntBlockAllocator in Lucene
@lucene.internalInherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public sealed class RecyclingInt32BlockAllocator : Int32BlockPool.Allocator
Constructors
Name | Description |
---|---|
RecyclingInt32BlockAllocator() | Creates a new RecyclingInt32BlockAllocator with a block size of INT32_BLOCK_SIZE, upper buffered docs limit of DEFAULT_BUFFERED_BLOCKS. |
RecyclingInt32BlockAllocator(Int32, Int32) | Creates a new RecyclingInt32BlockAllocator. |
RecyclingInt32BlockAllocator(Int32, Int32, Counter) | Creates a new RecyclingInt32BlockAllocator. |
Fields
Name | Description |
---|---|
DEFAULT_BUFFERED_BLOCKS |
Properties
Name | Description |
---|---|
BytesUsed | |
MaxBufferedBlocks | |
NumBufferedBlocks |
Methods
Name | Description |
---|---|
FreeBlocks(Int32) | Removes the given number of int blocks from the buffer if possible. |
GetInt32Block() | NOTE: This was getIntBlock() in Lucene |
RecycleInt32Blocks(Int32[][], Int32, Int32) | NOTE: This was recycleIntBlocks in Lucene |