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
    Namespace: Lucene.Net.Store
    Assembly: Lucene.Net.dll
    Syntax
    public class RAMFile : object

    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
    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 Licensed to the Apache Software Foundation (ASF)