Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class ByteBlockPool.DirectTrackingAllocator

    A simple ByteBlockPool.Allocator that never recycles, but tracks how much total RAM is in use.

    Inheritance
    object
    ByteBlockPool.Allocator
    ByteBlockPool.DirectTrackingAllocator
    Inherited Members
    ByteBlockPool.Allocator.m_blockSize
    ByteBlockPool.Allocator.RecycleByteBlocks(IList<byte[]>)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    ByteBlockPool.Allocator.GetByteBlock()

    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
    Overrides
    ByteBlockPool.Allocator.RecycleByteBlocks(byte[][], int, int)
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.