• API

    Show / Hide Table of Contents

    Class SimpleFSDirectory

    A straightforward implementation of FSDirectory using System.IO.FileStream. However, this class has poor concurrent performance (multiple threads will bottleneck) as it synchronizes when multiple threads read from the same file. It's usually better to use NIOFSDirectory or MMapDirectory instead.

    Inheritance
    System.Object
    Directory
    BaseDirectory
    FSDirectory
    SimpleFSDirectory
    Implements
    System.IDisposable
    Inherited Members
    FSDirectory.DEFAULT_READ_CHUNK_SIZE
    FSDirectory.m_directory
    FSDirectory.Open(DirectoryInfo)
    FSDirectory.Open(String)
    FSDirectory.Open(DirectoryInfo, LockFactory)
    FSDirectory.Open(String, LockFactory)
    FSDirectory.SetLockFactory(LockFactory)
    FSDirectory.ListAll(DirectoryInfo)
    FSDirectory.ListAll()
    FSDirectory.FileExists(String)
    FSDirectory.FileLength(String)
    FSDirectory.DeleteFile(String)
    FSDirectory.CreateOutput(String, IOContext)
    FSDirectory.EnsureCanWrite(String)
    FSDirectory.OnIndexOutputClosed(FSDirectory.FSIndexOutput)
    FSDirectory.Sync(ICollection<String>)
    FSDirectory.GetLockID()
    FSDirectory.Dispose(Boolean)
    FSDirectory.Directory
    FSDirectory.ToString()
    FSDirectory.ReadChunkSize
    BaseDirectory.IsOpen
    BaseDirectory.m_lockFactory
    BaseDirectory.MakeLock(String)
    BaseDirectory.ClearLock(String)
    BaseDirectory.LockFactory
    BaseDirectory.EnsureOpen()
    Directory.OpenChecksumInput(String, IOContext)
    Directory.Dispose()
    Directory.Copy(Directory, String, String, IOContext)
    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)
    Namespace: Lucene.Net.Store
    Assembly: Lucene.Net.dll
    Syntax
    public class SimpleFSDirectory : FSDirectory, IDisposable

    Constructors

    | Improve this Doc View Source

    SimpleFSDirectory(DirectoryInfo)

    Create a new SimpleFSDirectory for the named location and NativeFSLockFactory.

    Declaration
    public SimpleFSDirectory(DirectoryInfo path)
    Parameters
    Type Name Description
    System.IO.DirectoryInfo path

    the path of the directory

    Exceptions
    Type Condition
    System.IO.IOException

    if there is a low-level I/O error

    | Improve this Doc View Source

    SimpleFSDirectory(DirectoryInfo, LockFactory)

    Create a new SimpleFSDirectory for the named location.

    Declaration
    public SimpleFSDirectory(DirectoryInfo path, LockFactory lockFactory)
    Parameters
    Type Name Description
    System.IO.DirectoryInfo path

    the path of the directory

    LockFactory lockFactory

    the lock factory to use, or null for the default (NativeFSLockFactory);

    Exceptions
    Type Condition
    System.IO.IOException

    if there is a low-level I/O error

    | Improve this Doc View Source

    SimpleFSDirectory(String)

    Create a new SimpleFSDirectory for the named location and NativeFSLockFactory.

    LUCENENET specific overload for convenience using string instead of System.IO.DirectoryInfo.

    Declaration
    public SimpleFSDirectory(string path)
    Parameters
    Type Name Description
    System.String path

    the path of the directory

    Exceptions
    Type Condition
    System.IO.IOException

    if there is a low-level I/O error

    | Improve this Doc View Source

    SimpleFSDirectory(String, LockFactory)

    Create a new SimpleFSDirectory for the named location.

    LUCENENET specific overload for convenience using string instead of System.IO.DirectoryInfo.

    Declaration
    public SimpleFSDirectory(string path, LockFactory lockFactory)
    Parameters
    Type Name Description
    System.String path

    the path of the directory

    LockFactory lockFactory

    the lock factory to use, or null for the default (NativeFSLockFactory);

    Exceptions
    Type Condition
    System.IO.IOException

    if there is a low-level I/O error

    Methods

    | Improve this Doc View Source

    CreateSlicer(String, IOContext)

    Declaration
    public override Directory.IndexInputSlicer CreateSlicer(string name, IOContext context)
    Parameters
    Type Name Description
    System.String name
    IOContext context
    Returns
    Type Description
    Directory.IndexInputSlicer
    Overrides
    Directory.CreateSlicer(String, IOContext)
    | Improve this Doc View Source

    OpenInput(String, IOContext)

    Creates an IndexInput for the file with the given name.

    Declaration
    public override IndexInput OpenInput(string name, IOContext context)
    Parameters
    Type Name Description
    System.String name
    IOContext context
    Returns
    Type Description
    IndexInput
    Overrides
    Directory.OpenInput(String, IOContext)

    Implements

    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)