Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class RollingBuffer<T>

    Acts like forever growing T[], but internally uses a circular buffer to reuse instances of .

    This is a Lucene.NET INTERNAL API, use at your own risk
    Inheritance
    System.Object
    RollingBuffer<T>
    Inherited Members
    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)
    System.Object.ToString()
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class RollingBuffer<T>
        where T : RollingBuffer.IResettable
    Type Parameters
    Name Description
    T

    Constructors

    | Improve this Doc View Source

    RollingBuffer()

    Declaration
    protected RollingBuffer()
    | Improve this Doc View Source

    RollingBuffer(Func<T>)

    Declaration
    protected RollingBuffer(Func<T> factory)
    Parameters
    Type Name Description
    System.Func<T> factory

    Properties

    | Improve this Doc View Source

    MaxPos

    Returns the maximum position looked up, or -1 if no position has been looked up since Reset()/init.

    Declaration
    public virtual int MaxPos { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    FreeBefore(Int32)

    Declaration
    public virtual void FreeBefore(int pos)
    Parameters
    Type Name Description
    System.Int32 pos
    | Improve this Doc View Source

    Get(Int32)

    Get T instance for this absolute position; This is allowed to be arbitrarily far "in the future" but cannot be before the last FreeBefore(Int32).

    Declaration
    public virtual T Get(int pos)
    Parameters
    Type Name Description
    System.Int32 pos
    Returns
    Type Description
    T
    | Improve this Doc View Source

    NewInstance()

    Declaration
    protected abstract T NewInstance()
    Returns
    Type Description
    T
    | Improve this Doc View Source

    Reset()

    Declaration
    public virtual void Reset()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 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.