Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class RAMFile

    Represents a file in RAM as a list of byte[] buffers.

    This is a Lucene.NET INTERNAL API, use at your own risk
    Inheritance
    System.Object
    RAMFile
    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.Store
    Assembly: Lucene.Net.dll
    Syntax
    public class RAMFile

    Constructors

    | Improve this Doc View Source

    RAMFile()

    File used as buffer, in no RAMDirectory

    Declaration
    public RAMFile()
    | Improve this Doc View Source

    RAMFile(RAMDirectory)

    Declaration
    public RAMFile(RAMDirectory directory)
    Parameters
    Type Name Description
    RAMDirectory directory

    Fields

    | Improve this Doc View Source

    m_buffers

    Declaration
    protected List<byte[]> m_buffers
    Field Value
    Type Description
    System.Collections.Generic.List<System.Byte[]>
    | Improve this Doc View Source

    m_sizeInBytes

    Declaration
    protected long m_sizeInBytes
    Field Value
    Type Description
    System.Int64

    Properties

    | Improve this Doc View Source

    Length

    For non-stream access from thread that might be concurrent with writing

    Declaration
    public virtual long Length { get; set; }
    Property Value
    Type Description
    System.Int64
    | Improve this Doc View Source

    NumBuffers

    Declaration
    protected int NumBuffers { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    AddBuffer(Int32)

    Declaration
    protected byte[] AddBuffer(int size)
    Parameters
    Type Name Description
    System.Int32 size
    Returns
    Type Description
    System.Byte[]
    | Improve this Doc View Source

    GetBuffer(Int32)

    Declaration
    protected byte[] GetBuffer(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Byte[]
    | Improve this Doc View Source

    GetSizeInBytes()

    Declaration
    public virtual long GetSizeInBytes()
    Returns
    Type Description
    System.Int64
    | Improve this Doc View Source

    NewBuffer(Int32)

    Expert: allocate a new buffer. Subclasses can allocate differently.

    Declaration
    protected virtual byte[] NewBuffer(int size)
    Parameters
    Type Name Description
    System.Int32 size

    size of allocated buffer.

    Returns
    Type Description
    System.Byte[]

    allocated buffer.

    • 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.