Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class MonotonicAppendingInt64Buffer

    Utility class to buffer signed longs in memory, which is optimized for the case where the sequence is monotonic, although it can encode any sequence of arbitrary longs. It only supports appending.

    NOTE: This was MonotonicAppendingLongBuffer in Lucene.

    Note

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

    Inheritance
    object
    NumericDocValues
    Int64Values
    AbstractAppendingInt64Buffer
    MonotonicAppendingInt64Buffer
    Inherited Members
    AbstractAppendingInt64Buffer.PageSize
    AbstractAppendingInt64Buffer.Count
    AbstractAppendingInt64Buffer.Add(long)
    AbstractAppendingInt64Buffer.Get(long)
    AbstractAppendingInt64Buffer.Get(long, long[], int, int)
    AbstractAppendingInt64Buffer.GetIterator()
    AbstractAppendingInt64Buffer.Freeze()
    Int64Values.Get(int)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Util.Packed
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class MonotonicAppendingInt64Buffer : AbstractAppendingInt64Buffer

    Constructors

    MonotonicAppendingInt64Buffer()

    Create an MonotonicAppendingInt64Buffer with initialPageCount=16, pageSize=1024 and acceptableOverheadRatio=DEFAULT.

    Declaration
    public MonotonicAppendingInt64Buffer()

    MonotonicAppendingInt64Buffer(int, int, float)

    Utility class to buffer signed longs in memory, which is optimized for the case where the sequence is monotonic, although it can encode any sequence of arbitrary longs. It only supports appending.

    NOTE: This was MonotonicAppendingLongBuffer in Lucene.

    Note

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

    Declaration
    public MonotonicAppendingInt64Buffer(int initialPageCount, int pageSize, float acceptableOverheadRatio)
    Parameters
    Type Name Description
    int initialPageCount

    The initial number of pages.

    int pageSize

    The size of a single page.

    float acceptableOverheadRatio

    An acceptable overhead ratio per value.

    MonotonicAppendingInt64Buffer(float)

    Create an AppendingDeltaPackedInt64Buffer with initialPageCount=16, pageSize=1024.

    Declaration
    public MonotonicAppendingInt64Buffer(float acceptableOverheadRatio)
    Parameters
    Type Name Description
    float acceptableOverheadRatio

    Methods

    RamBytesUsed()

    Return the number of bytes used by this instance.

    Declaration
    public override long RamBytesUsed()
    Returns
    Type Description
    long
    Overrides
    AbstractAppendingInt64Buffer.RamBytesUsed()
    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.