Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class Lucene3xSegmentInfoReader

    Lucene 3x implementation of SegmentInfoReader.

    Note

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

    Inheritance
    object
    SegmentInfoReader
    Lucene3xSegmentInfoReader
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Codecs.Lucene3x
    Assembly: Lucene.Net.dll
    Syntax
    [Obsolete("Only for reading existing 3.x indexes")]
    public class Lucene3xSegmentInfoReader : SegmentInfoReader

    Methods

    Read(Directory, string, IOContext)

    Read SegmentInfo data from a directory.

    Declaration
    public override SegmentInfo Read(Directory directory, string segmentName, IOContext context)
    Parameters
    Type Name Description
    Directory directory

    Directory to read from.

    string segmentName

    Name of the segment to read.

    IOContext context

    IO context.

    Returns
    Type Description
    SegmentInfo

    Infos instance to be populated with data.

    Overrides
    SegmentInfoReader.Read(Directory, string, IOContext)
    Exceptions
    Type Condition
    IOException

    If an I/O error occurs.

    ReadLegacyInfos(SegmentInfos, Directory, IndexInput, int)

    Lucene 3x implementation of SegmentInfoReader.

    Note

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

    Declaration
    public static void ReadLegacyInfos(SegmentInfos infos, Directory directory, IndexInput input, int format)
    Parameters
    Type Name Description
    SegmentInfos infos
    Directory directory
    IndexInput input
    int format
    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.