Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class Directory.IndexInputSlicer

    Allows to create one or more sliced IndexInput instances from a single file handle. Some Directory implementations may be able to efficiently map slices of a file into memory when only certain parts of a file are required.

    Note

    This API is for internal purposes only and might change in incompatible ways in the next release.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    object
    Directory.IndexInputSlicer
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Store
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class Directory.IndexInputSlicer : IDisposable

    Methods

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()

    Dispose(bool)

    Allows to create one or more sliced IndexInput instances from a single file handle. Some Directory implementations may be able to efficiently map slices of a file into memory when only certain parts of a file are required.

    Note

    This API is for internal purposes only and might change in incompatible ways in the next release.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    protected abstract void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    OpenFullSlice()

    Returns an IndexInput slice starting at offset 0 with a length equal to the length of the underlying file

    Declaration
    [Obsolete("Only for reading CFS files from 3.x indexes.")]
    public abstract IndexInput OpenFullSlice()
    Returns
    Type Description
    IndexInput

    OpenSlice(string, long, long)

    Returns an IndexInput slice starting at the given offset with the given length.

    Declaration
    public abstract IndexInput OpenSlice(string sliceDescription, long offset, long length)
    Parameters
    Type Name Description
    string sliceDescription
    long offset
    long length
    Returns
    Type Description
    IndexInput

    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.