Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SimpleFSDirectory.SimpleFSIndexInput

    Reads bytes with Seek(long, SeekOrigin) followed by Read(byte[], int, int).

    Inheritance
    object
    DataInput
    IndexInput
    BufferedIndexInput
    SimpleFSDirectory.SimpleFSIndexInput
    Implements
    IDisposable
    Inherited Members
    BufferedIndexInput.BUFFER_SIZE
    BufferedIndexInput.MERGE_BUFFER_SIZE
    BufferedIndexInput.m_buffer
    BufferedIndexInput.ReadByte()
    BufferedIndexInput.SetBufferSize(int)
    BufferedIndexInput.NewBuffer(byte[])
    BufferedIndexInput.BufferSize
    BufferedIndexInput.ReadBytes(byte[], int, int)
    BufferedIndexInput.ReadBytes(byte[], int, int, bool)
    BufferedIndexInput.ReadInt16()
    BufferedIndexInput.ReadInt32()
    BufferedIndexInput.ReadInt64()
    BufferedIndexInput.ReadVInt32()
    BufferedIndexInput.ReadVInt64()
    BufferedIndexInput.Position
    BufferedIndexInput.Seek(long)
    BufferedIndexInput.FlushBuffer(IndexOutput, long)
    BufferedIndexInput.GetBufferSize(IOContext)
    IndexInput.Dispose()
    IndexInput.ToString()
    DataInput.ReadString()
    DataInput.ReadStringStringMap()
    DataInput.ReadStringSet()
    DataInput.SkipBytes(long)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Store
    Assembly: Lucene.Net.dll
    Syntax
    protected class SimpleFSDirectory.SimpleFSIndexInput : BufferedIndexInput, IDisposable

    Constructors

    SimpleFSIndexInput(string, FileStream, IOContext)

    Reads bytes with Seek(long, SeekOrigin) followed by Read(byte[], int, int).

    Declaration
    public SimpleFSIndexInput(string resourceDesc, FileStream file, IOContext context)
    Parameters
    Type Name Description
    string resourceDesc
    FileStream file
    IOContext context

    SimpleFSIndexInput(string, FileStream, long, long, int)

    Reads bytes with Seek(long, SeekOrigin) followed by Read(byte[], int, int).

    Declaration
    public SimpleFSIndexInput(string resourceDesc, FileStream file, long off, long length, int bufferSize)
    Parameters
    Type Name Description
    string resourceDesc
    FileStream file
    long off
    long length
    int bufferSize

    Fields

    m_end

    end offset (start+length)

    Declaration
    protected readonly long m_end
    Field Value
    Type Description
    long

    m_file

    the file channel we will read from

    Declaration
    protected readonly FileStream m_file
    Field Value
    Type Description
    FileStream

    m_off

    start offset: non-zero in the slice case

    Declaration
    protected readonly long m_off
    Field Value
    Type Description
    long

    Properties

    IsClone

    is this instance a clone and hence does not own the file to close it

    Declaration
    public bool IsClone { get; set; }
    Property Value
    Type Description
    bool

    IsFDValid

    Reads bytes with Seek(long, SeekOrigin) followed by Read(byte[], int, int).

    Declaration
    public virtual bool IsFDValid { get; }
    Property Value
    Type Description
    bool

    Length

    The number of bytes in the file.

    Declaration
    public override sealed long Length { get; }
    Property Value
    Type Description
    long
    Overrides
    IndexInput.Length

    Methods

    Clone()

    Returns a clone of this stream.

    Clones of a stream access the same data, and are positioned at the same point as the stream they were cloned from.

    Expert: Subclasses must ensure that clones may be positioned at different points in the input from each other and from the stream they were cloned from.

    Warning: Lucene never closes cloned IndexInputs, it will only do this on the original one. The original instance must take care that cloned instances throw ObjectDisposedException when the original one is closed.
    Declaration
    public override object Clone()
    Returns
    Type Description
    object
    Overrides
    BufferedIndexInput.Clone()

    Dispose(bool)

    Closes the stream to further operations.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    Overrides
    IndexInput.Dispose(bool)

    ReadInternal(byte[], int, int)

    IndexInput methods

    Declaration
    protected override void ReadInternal(byte[] b, int offset, int len)
    Parameters
    Type Name Description
    byte[] b
    int offset
    int len
    Overrides
    BufferedIndexInput.ReadInternal(byte[], int, int)

    SeekInternal(long)

    Expert: implements seek. Sets current position in this file, where the next ReadInternal(byte[], int, int) will occur.

    Declaration
    protected override void SeekInternal(long position)
    Parameters
    Type Name Description
    long position
    Overrides
    BufferedIndexInput.SeekInternal(long)
    See Also
    ReadInternal(byte[], int, int)

    Implements

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