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
    System.Object
    ByteBlockPool.Allocator
    ByteBlockPool.DirectTrackingAllocator
    Inherited Members
    ByteBlockPool.Allocator.m_blockSize
    ByteBlockPool.Allocator.RecycleByteBlocks(IList<Byte[]>)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public class DirectTrackingAllocator : ByteBlockPool.Allocator

    Constructors

    | Improve this Doc View Source

    DirectTrackingAllocator(Counter)

    Declaration
    public DirectTrackingAllocator(Counter bytesUsed)
    Parameters
    Type Name Description
    Counter bytesUsed
    | Improve this Doc View Source

    DirectTrackingAllocator(Int32, Counter)

    Declaration
    public DirectTrackingAllocator(int blockSize, Counter bytesUsed)
    Parameters
    Type Name Description
    System.Int32 blockSize
    Counter bytesUsed

    Methods

    | Improve this Doc View Source

    GetByteBlock()

    Declaration
    public override byte[] GetByteBlock()
    Returns
    Type Description
    System.Byte[]
    Overrides
    ByteBlockPool.Allocator.GetByteBlock()
    | Improve this Doc View Source

    RecycleByteBlocks(Byte[][], Int32, Int32)

    Declaration
    public override void RecycleByteBlocks(byte[][] blocks, int start, int end)
    Parameters
    Type Name Description
    System.Byte[][] blocks
    System.Int32 start
    System.Int32 end
    Overrides
    ByteBlockPool.Allocator.RecycleByteBlocks(Byte[][], Int32, Int32)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 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.