Show / Hide Table of Contents

    Class AbstractPagedMutable<T>

    Base implementation for PagedMutable and PagedGrowableWriter.

    This is a Lucene.NET INTERNAL API, use at your own risk
    Inheritance
    System.Object
    NumericDocValues
    Int64Values
    AbstractPagedMutable<T>
    PagedGrowableWriter
    PagedMutable
    Inherited Members
    Int64Values.Get(Int32)
    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 override sealed 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 override sealed string ToString()
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)