Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class AbstractPagedMutable<T>

    Base implementation for PagedMutable and PagedGrowableWriter.

    Note

    This API is for internal purposes only and might change in incompatible ways in the next release.

    Inheritance
    object
    NumericDocValues
    Int64Values
    AbstractPagedMutable<T>
    PagedGrowableWriter
    PagedMutable
    Inherited Members
    Int64Values.Get(int)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Util.Packed
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class AbstractPagedMutable<T> : Int64Values where T : AbstractPagedMutable<T>
    Type Parameters
    Name Description
    T

    Properties

    Count

    The number of values.

    NOTE: This was size() in Lucene.
    Declaration
    public long Count { get; }
    Property Value
    Type Description
    long

    Methods

    BaseRamBytesUsed()

    Base implementation for PagedMutable and PagedGrowableWriter.

    Note

    This API is for internal purposes only and might change in incompatible ways in the next release.

    Declaration
    protected virtual long BaseRamBytesUsed()
    Returns
    Type Description
    long

    FillPages()

    Base implementation for PagedMutable and PagedGrowableWriter.

    Note

    This API is for internal purposes only and might change in incompatible ways in the next release.

    Declaration
    protected void FillPages()

    Get(long)

    Get value at index.

    Declaration
    public override sealed long Get(long index)
    Parameters
    Type Name Description
    long index
    Returns
    Type Description
    long
    Overrides
    Int64Values.Get(long)

    Grow()

    Similar to Grow(long[]).

    Declaration
    public T Grow()
    Returns
    Type Description
    T

    Grow(long)

    Similar to Grow(long[], int).

    Declaration
    public T Grow(long minSize)
    Parameters
    Type Name Description
    long minSize
    Returns
    Type Description
    T

    NewMutable(int, int)

    Base implementation for PagedMutable and PagedGrowableWriter.

    Note

    This API is for internal purposes only and might change in incompatible ways in the next release.

    Declaration
    protected abstract PackedInt32s.Mutable NewMutable(int valueCount, int bitsPerValue)
    Parameters
    Type Name Description
    int valueCount
    int bitsPerValue
    Returns
    Type Description
    PackedInt32s.Mutable

    NewUnfilledCopy(long)

    Base implementation for PagedMutable and PagedGrowableWriter.

    Note

    This API is for internal purposes only and might change in incompatible ways in the next release.

    Declaration
    protected abstract T NewUnfilledCopy(long newSize)
    Parameters
    Type Name Description
    long newSize
    Returns
    Type Description
    T

    RamBytesUsed()

    Return the number of bytes used by this object.

    Declaration
    public virtual long RamBytesUsed()
    Returns
    Type Description
    long

    Resize(long)

    Create a new copy of size newSize based on the content of this buffer. This method is much more efficient than creating a new instance and copying values one by one.

    Declaration
    public T Resize(long newSize)
    Parameters
    Type Name Description
    long newSize
    Returns
    Type Description
    T

    Set(long, long)

    Set value at index.

    Declaration
    public void Set(long index, long value)
    Parameters
    Type Name Description
    long index
    long value

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override sealed string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    object.ToString()
    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.