Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class AbstractAppendingInt64Buffer

    Common functionality shared by AppendingDeltaPackedInt64Buffer and MonotonicAppendingInt64Buffer.

    NOTE: This was AbstractAppendingLongBuffer in Lucene
    Inheritance
    object
    NumericDocValues
    Int64Values
    AbstractAppendingInt64Buffer
    AppendingDeltaPackedInt64Buffer
    AppendingPackedInt64Buffer
    MonotonicAppendingInt64Buffer
    Inherited Members
    Int64Values.Get(int)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Util.Packed
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class AbstractAppendingInt64Buffer : Int64Values

    Properties

    Count

    Get the number of values that have been added to the buffer.

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

    PageSize

    Common functionality shared by AppendingDeltaPackedInt64Buffer and MonotonicAppendingInt64Buffer.

    NOTE: This was AbstractAppendingLongBuffer in Lucene
    Declaration
    public int PageSize { get; }
    Property Value
    Type Description
    int

    Methods

    Add(long)

    Append a value to this buffer.

    Declaration
    public void Add(long l)
    Parameters
    Type Name Description
    long l

    Freeze()

    Pack all pending values in this buffer. Subsequent calls to Add(long) will fail.

    Declaration
    public virtual void Freeze()

    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)

    Get(long, long[], int, int)

    Bulk get: read at least one and at most lenlongs starting from index into arr[off:off+len] and return the actual number of values that have been read.

    Declaration
    public int Get(long index, long[] arr, int off, int len)
    Parameters
    Type Name Description
    long index
    long[] arr
    int off
    int len
    Returns
    Type Description
    int

    GetIterator()

    Return an iterator over the values of this buffer.

    Declaration
    public virtual AbstractAppendingInt64Buffer.Iterator GetIterator()
    Returns
    Type Description
    AbstractAppendingInt64Buffer.Iterator

    RamBytesUsed()

    Return the number of bytes used by this instance.

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