Class Int32BlockPool
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public sealed class Int32BlockPool : object
Constructors
Name | Description |
---|---|
Int32BlockPool() | Creates a new Int32BlockPool with a default Int32BlockPool.Allocator. |
Int32BlockPool(Int32BlockPool.Allocator) | Creates a new Int32BlockPool with the given Int32BlockPool.Allocator. |
Fields
Name | Description |
---|---|
INT32_BLOCK_MASK | NOTE: This was INT_BLOCK_MASK in Lucene |
INT32_BLOCK_SHIFT | NOTE: This was INT_BLOCK_SHIFT in Lucene |
INT32_BLOCK_SIZE | NOTE: This was INT_BLOCK_SIZE in Lucene |
Properties
Name | Description |
---|---|
Buffer | Current head buffer. |
Buffers | Array of buffers currently used in the pool. Buffers are allocated if needed don't modify this outside of this class. |
Int32Offset | Current head offset. NOTE: This was intOffset in Lucene |
Int32Upto | Pointer to the current position in head buffer NOTE: This was intUpto in Lucene |
Methods
Name | Description |
---|---|
NextBuffer() | Advances the pool to its next buffer. This method should be called once after the constructor to initialize the pool. In contrast to the constructor a Reset() call will advance the pool to its first buffer immediately. |
Reset() | Resets the pool to its initial state reusing the first buffer. Calling NextBuffer() is not needed after reset. |
Reset(Boolean, Boolean) | Expert: Resets the pool to its initial state reusing the first buffer. |