Class Int32BlockPool
A pool for System.Int32 blocks similar to ByteBlockPool.
NOTE: This was IntBlockPool in Lucene
Inheritance
Inherited Members
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public sealed class Int32BlockPool
Constructors
| Improve this Doc View SourceInt32BlockPool()
Creates a new Int32BlockPool with a default Int32BlockPool.Allocator.
Declaration
public Int32BlockPool()
See Also
| Improve this Doc View SourceInt32BlockPool(Int32BlockPool.Allocator)
Creates a new Int32BlockPool with the given Int32BlockPool.Allocator.
Declaration
public Int32BlockPool(Int32BlockPool.Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
Int32BlockPool.Allocator | allocator |
See Also
Fields
| Improve this Doc View SourceINT32_BLOCK_MASK
NOTE: This was INT_BLOCK_MASK in Lucene
Declaration
public static readonly int INT32_BLOCK_MASK
Field Value
Type | Description |
---|---|
System.Int32 |
INT32_BLOCK_SHIFT
NOTE: This was INT_BLOCK_SHIFT in Lucene
Declaration
public static readonly int INT32_BLOCK_SHIFT
Field Value
Type | Description |
---|---|
System.Int32 |
INT32_BLOCK_SIZE
NOTE: This was INT_BLOCK_SIZE in Lucene
Declaration
public static readonly int INT32_BLOCK_SIZE
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
| Improve this Doc View SourceBuffer
Current head buffer.
Declaration
public int[] Buffer { get; set; }
Property Value
Type | Description |
---|---|
System.Int32[] |
Buffers
Array of buffers currently used in the pool. Buffers are allocated if needed don't modify this outside of this class.
Declaration
public int[][] Buffers { get; set; }
Property Value
Type | Description |
---|---|
System.Int32[][] |
Int32Offset
Current head offset.
NOTE: This was intOffset in Lucene
Declaration
public int Int32Offset { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Int32Upto
Pointer to the current position in head buffer
NOTE: This was intUpto in Lucene
Declaration
public int Int32Upto { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceNextBuffer()
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.
Declaration
public void NextBuffer()
Reset()
Resets the pool to its initial state reusing the first buffer. Calling NextBuffer() is not needed after reset.
Declaration
public void Reset()
Reset(Boolean, Boolean)
Expert: Resets the pool to its initial state reusing the first buffer.
Declaration
public void Reset(bool zeroFillBuffers, bool reuseFirst)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | zeroFillBuffers | If |
System.Boolean | reuseFirst | If |