Class ByteBlockPool.DirectTrackingAllocator
A simple ByteBlockPool.Allocator that never recycles, but tracks how much total RAM is in use.
Inherited Members
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public class ByteBlockPool.DirectTrackingAllocator : ByteBlockPool.Allocator
Constructors
DirectTrackingAllocator(Counter)
A simple ByteBlockPool.Allocator that never recycles, but tracks how much total RAM is in use.
Declaration
public DirectTrackingAllocator(Counter bytesUsed)
Parameters
Type | Name | Description |
---|---|---|
Counter | bytesUsed |
DirectTrackingAllocator(int, Counter)
A simple ByteBlockPool.Allocator that never recycles, but tracks how much total RAM is in use.
Declaration
public DirectTrackingAllocator(int blockSize, Counter bytesUsed)
Parameters
Type | Name | Description |
---|---|---|
int | blockSize | |
Counter | bytesUsed |
Methods
GetByteBlock()
A simple ByteBlockPool.Allocator that never recycles, but tracks how much total RAM is in use.
Declaration
public override byte[] GetByteBlock()
Returns
Type | Description |
---|---|
byte[] |
Overrides
RecycleByteBlocks(byte[][], int, int)
A simple ByteBlockPool.Allocator that never recycles, but tracks how much total RAM is in use.
Declaration
public override void RecycleByteBlocks(byte[][] blocks, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
byte[][] | blocks | |
int | start | |
int | end |