Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class Lucene46SegmentInfoFormat

    Lucene 4.6 Segment info format.

    Files:

    • .si: Header, SegVersion, SegSize, IsCompoundFile, Diagnostics, Files, Footer
    Data types:

    • Header --> CodecHeader (WriteHeader(DataOutput, string, int))
    • SegSize --> Int32 (WriteInt32(int))
    • SegVersion --> String (WriteString(string))
    • Files --> ISet<String> (WriteStringSet(ISet<string>))
    • Diagnostics --> IDictionary<String,String> (WriteStringStringMap(IDictionary<string, string>))
    • IsCompoundFile --> Int8 (WriteByte(byte))
    • Footer --> CodecFooter (WriteFooter(IndexOutput))
    Field Descriptions:

    • SegVersion is the code version that created the segment.
    • SegSize is the number of documents contained in the segment index.
    • IsCompoundFile records whether the segment is written as a compound file or not. If this is -1, the segment is not a compound file. If it is 1, the segment is a compound file.
    • The Diagnostics Map is privately written by IndexWriter, as a debugging aid, for each segment it creates. It includes metadata like the current Lucene version, OS, .NET/Java version, why the segment was created (merge, flush, addIndexes), etc.
    • Files is a list of files referred to by this segment.
    Note

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

    Inheritance
    object
    SegmentInfoFormat
    Lucene46SegmentInfoFormat
    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.Lucene46
    Assembly: Lucene.Net.dll
    Syntax
    public class Lucene46SegmentInfoFormat : SegmentInfoFormat

    Constructors

    Lucene46SegmentInfoFormat()

    Sole constructor.

    Declaration
    public Lucene46SegmentInfoFormat()
    See Also
    SegmentInfos

    Fields

    SI_EXTENSION

    File extension used to store SegmentInfo.

    Declaration
    public static readonly string SI_EXTENSION
    Field Value
    Type Description
    string
    See Also
    SegmentInfos

    Properties

    SegmentInfoReader

    Returns the SegmentInfoReader for reading SegmentInfo instances.

    Declaration
    public override SegmentInfoReader SegmentInfoReader { get; }
    Property Value
    Type Description
    SegmentInfoReader
    Overrides
    SegmentInfoFormat.SegmentInfoReader
    See Also
    SegmentInfos

    SegmentInfoWriter

    Returns the SegmentInfoWriter for writing SegmentInfo instances.

    Declaration
    public override SegmentInfoWriter SegmentInfoWriter { get; }
    Property Value
    Type Description
    SegmentInfoWriter
    Overrides
    SegmentInfoFormat.SegmentInfoWriter
    See Also
    SegmentInfos

    See Also

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