Class RecyclingByteBlockAllocator
A ByteBlockPool.Allocator implementation that recycles unused byte blocks in a buffer and reuses them in subsequent calls to GetByteBlock().
Note: this class is not thread-safe.
@lucene.internalInherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public sealed class RecyclingByteBlockAllocator : ByteBlockPool.Allocator
Constructors
Name | Description |
---|---|
RecyclingByteBlockAllocator() | Creates a new RecyclingByteBlockAllocator with a block size of BYTE_BLOCK_SIZE, upper buffered docs limit of DEFAULT_BUFFERED_BLOCKS (64). |
RecyclingByteBlockAllocator(Int32, Int32) | Creates a new RecyclingByteBlockAllocator. |
RecyclingByteBlockAllocator(Int32, Int32, Counter) | Creates a new RecyclingByteBlockAllocator |
Fields
Name | Description |
---|---|
DEFAULT_BUFFERED_BLOCKS |
Properties
Name | Description |
---|---|
BytesUsed | |
MaxBufferedBlocks | |
NumBufferedBlocks |
Methods
Name | Description |
---|---|
FreeBlocks(Int32) | Removes the given number of byte blocks from the buffer if possible. |
GetByteBlock() | |
RecycleByteBlocks(Byte[][], Int32, Int32) |