Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class PagedGrowableWriter

    A PagedGrowableWriter. This class slices data into fixed-size blocks which have independent numbers of bits per value and grow on-demand.

    You should use this class instead of the AbstractAppendingInt64Buffer related ones only when you need random write-access. Otherwise this class will likely be slower and less memory-efficient.

    Note

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

    Inheritance
    object
    NumericDocValues
    Int64Values
    AbstractPagedMutable<PagedGrowableWriter>
    PagedGrowableWriter
    Inherited Members
    AbstractPagedMutable<PagedGrowableWriter>.Count
    AbstractPagedMutable<PagedGrowableWriter>.Get(long)
    AbstractPagedMutable<PagedGrowableWriter>.Set(long, long)
    AbstractPagedMutable<PagedGrowableWriter>.RamBytesUsed()
    AbstractPagedMutable<PagedGrowableWriter>.Resize(long)
    AbstractPagedMutable<PagedGrowableWriter>.Grow(long)
    AbstractPagedMutable<PagedGrowableWriter>.Grow()
    AbstractPagedMutable<PagedGrowableWriter>.ToString()
    Int64Values.Get(int)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Util.Packed
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class PagedGrowableWriter : AbstractPagedMutable<PagedGrowableWriter>

    Constructors

    PagedGrowableWriter(long, int, int, float)

    Create a new PagedGrowableWriter instance.

    Declaration
    public PagedGrowableWriter(long size, int pageSize, int startBitsPerValue, float acceptableOverheadRatio)
    Parameters
    Type Name Description
    long size

    The number of values to store.

    int pageSize

    The number of values per page.

    int startBitsPerValue

    The initial number of bits per value.

    float acceptableOverheadRatio

    An acceptable overhead ratio.

    Methods

    BaseRamBytesUsed()

    A PagedGrowableWriter. This class slices data into fixed-size blocks which have independent numbers of bits per value and grow on-demand.

    You should use this class instead of the AbstractAppendingInt64Buffer related ones only when you need random write-access. Otherwise this class will likely be slower and less memory-efficient.

    Note

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

    Declaration
    protected override long BaseRamBytesUsed()
    Returns
    Type Description
    long
    Overrides
    AbstractPagedMutable<PagedGrowableWriter>.BaseRamBytesUsed()

    NewMutable(int, int)

    A PagedGrowableWriter. This class slices data into fixed-size blocks which have independent numbers of bits per value and grow on-demand.

    You should use this class instead of the AbstractAppendingInt64Buffer related ones only when you need random write-access. Otherwise this class will likely be slower and less memory-efficient.

    Note

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

    Declaration
    protected override PackedInt32s.Mutable NewMutable(int valueCount, int bitsPerValue)
    Parameters
    Type Name Description
    int valueCount
    int bitsPerValue
    Returns
    Type Description
    PackedInt32s.Mutable
    Overrides
    AbstractPagedMutable<PagedGrowableWriter>.NewMutable(int, int)

    NewUnfilledCopy(long)

    A PagedGrowableWriter. This class slices data into fixed-size blocks which have independent numbers of bits per value and grow on-demand.

    You should use this class instead of the AbstractAppendingInt64Buffer related ones only when you need random write-access. Otherwise this class will likely be slower and less memory-efficient.

    Note

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

    Declaration
    protected override PagedGrowableWriter NewUnfilledCopy(long newSize)
    Parameters
    Type Name Description
    long newSize
    Returns
    Type Description
    PagedGrowableWriter
    Overrides
    AbstractPagedMutable<PagedGrowableWriter>.NewUnfilledCopy(long)
    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.