Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class BytesRefHash.DirectBytesStartArray

    A simple BytesRefHash.BytesStartArray that tracks memory allocation using a private Counter instance.

    Inheritance
    object
    BytesRefHash.BytesStartArray
    BytesRefHash.DirectBytesStartArray
    Inherited Members
    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 BytesRefHash.DirectBytesStartArray : BytesRefHash.BytesStartArray

    Constructors

    DirectBytesStartArray(int)

    A simple BytesRefHash.BytesStartArray that tracks memory allocation using a private Counter instance.

    Declaration
    public DirectBytesStartArray(int initSize)
    Parameters
    Type Name Description
    int initSize

    DirectBytesStartArray(int, Counter)

    A simple BytesRefHash.BytesStartArray that tracks memory allocation using a private Counter instance.

    Declaration
    public DirectBytesStartArray(int initSize, Counter counter)
    Parameters
    Type Name Description
    int initSize
    Counter counter

    Fields

    m_initSize

    A simple BytesRefHash.BytesStartArray that tracks memory allocation using a private Counter instance.

    Declaration
    protected readonly int m_initSize
    Field Value
    Type Description
    int

    Methods

    BytesUsed()

    A Counter reference holding the number of bytes used by this BytesRefHash.BytesStartArray. The BytesRefHash uses this reference to track it memory usage.

    Declaration
    public override Counter BytesUsed()
    Returns
    Type Description
    Counter

    a J2N.Threading.Atomic.AtomicInt64 reference holding the number of bytes used by this BytesRefHash.BytesStartArray.

    Overrides
    BytesRefHash.BytesStartArray.BytesUsed()

    Clear()

    Clears the BytesRefHash.BytesStartArray and returns the cleared instance.

    Declaration
    public override int[] Clear()
    Returns
    Type Description
    int[]

    The cleared instance, this might be null.

    Overrides
    BytesRefHash.BytesStartArray.Clear()

    Grow()

    Grows the BytesRefHash.BytesStartArray.

    Declaration
    public override int[] Grow()
    Returns
    Type Description
    int[]

    The grown array.

    Overrides
    BytesRefHash.BytesStartArray.Grow()

    Init()

    Initializes the BytesRefHash.BytesStartArray. This call will allocate memory.

    Declaration
    public override int[] Init()
    Returns
    Type Description
    int[]

    The initialized bytes start array.

    Overrides
    BytesRefHash.BytesStartArray.Init()
    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.