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
    System.Object
    NumericDocValues
    Int64Values
    AbstractPagedMutable<T>
    PagedGrowableWriter
    PagedMutable
    Inherited Members
    Int64Values.Get(Int32)
    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)
    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

    | Improve this Doc View Source

    Count

    The number of values.

    NOTE: This was size() in Lucene.

    Declaration
    public long Count { get; }
    Property Value
    Type Description
    System.Int64

    Methods

    | Improve this Doc View Source

    BaseRamBytesUsed()

    Declaration
    protected virtual long BaseRamBytesUsed()
    Returns
    Type Description
    System.Int64
    | Improve this Doc View Source

    FillPages()

    Declaration
    protected void FillPages()
    | Improve this Doc View Source

    Get(Int64)

    Declaration
    public sealed override long Get(long index)
    Parameters
    Type Name Description
    System.Int64 index
    Returns
    Type Description
    System.Int64
    Overrides
    Int64Values.Get(Int64)
    | Improve this Doc View Source

    Grow()

    Similar to Grow(Int64[]).

    Declaration
    public T Grow()
    Returns
    Type Description
    T
    | Improve this Doc View Source

    Grow(Int64)

    Similar to Grow(Int64[], Int32).

    Declaration
    public T Grow(long minSize)
    Parameters
    Type Name Description
    System.Int64 minSize
    Returns
    Type Description
    T
    | Improve this Doc View Source

    NewMutable(Int32, Int32)

    Declaration
    protected abstract PackedInt32s.Mutable NewMutable(int valueCount, int bitsPerValue)
    Parameters
    Type Name Description
    System.Int32 valueCount
    System.Int32 bitsPerValue
    Returns
    Type Description
    PackedInt32s.Mutable
    | Improve this Doc View Source

    NewUnfilledCopy(Int64)

    Declaration
    protected abstract T NewUnfilledCopy(long newSize)
    Parameters
    Type Name Description
    System.Int64 newSize
    Returns
    Type Description
    T
    | Improve this Doc View Source

    RamBytesUsed()

    Return the number of bytes used by this object.

    Declaration
    public virtual long RamBytesUsed()
    Returns
    Type Description
    System.Int64
    | Improve this Doc View Source

    Resize(Int64)

    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
    System.Int64 newSize
    Returns
    Type Description
    T
    | Improve this Doc View Source

    Set(Int64, Int64)

    Set value at index.

    Declaration
    public void Set(long index, long value)
    Parameters
    Type Name Description
    System.Int64 index
    System.Int64 value
    | Improve this Doc View Source

    ToString()

    Declaration
    public sealed override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 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.