Show / Hide Table of Contents

    Class Lucene40StoredFieldsWriter

    Class responsible for writing stored document fields.

    It uses <segment>.fdt and <segment>.fdx; files.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    StoredFieldsWriter
    Lucene40StoredFieldsWriter
    Inherited Members
    StoredFieldsWriter.FinishDocument()
    StoredFieldsWriter.AddDocument<T1>(IEnumerable<T1>, FieldInfos)
    StoredFieldsWriter.Dispose()
    Namespace: Lucene.Net.Codecs.Lucene40
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class Lucene40StoredFieldsWriter : StoredFieldsWriter

    Constructors

    | Improve this Doc View Source

    Lucene40StoredFieldsWriter(Directory, String, IOContext)

    Sole constructor.

    Declaration
    public Lucene40StoredFieldsWriter(Directory directory, string segment, IOContext context)
    Parameters
    Type Name Description
    Directory directory
    System.String segment
    IOContext context

    Fields

    | Improve this Doc View Source

    FIELDS_EXTENSION

    Extension of stored fields file.

    Declaration
    public const string FIELDS_EXTENSION = null
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    FIELDS_INDEX_EXTENSION

    Extension of stored fields index file.

    Declaration
    public const string FIELDS_INDEX_EXTENSION = null
    Field Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    Abort()

    Declaration
    public override void Abort()
    Overrides
    StoredFieldsWriter.Abort()
    | Improve this Doc View Source

    AddRawDocuments(IndexInput, Int32[], Int32)

    Bulk write a contiguous series of documents. The lengths array is the length (in bytes) of each raw document. The stream IndexInput is the fieldsStream from which we should bulk-copy all bytes.

    Declaration
    public void AddRawDocuments(IndexInput stream, int[] lengths, int numDocs)
    Parameters
    Type Name Description
    IndexInput stream
    System.Int32[] lengths
    System.Int32 numDocs
    | Improve this Doc View Source

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    Overrides
    StoredFieldsWriter.Dispose(Boolean)
    | Improve this Doc View Source

    Finish(FieldInfos, Int32)

    Declaration
    public override void Finish(FieldInfos fis, int numDocs)
    Parameters
    Type Name Description
    FieldInfos fis
    System.Int32 numDocs
    Overrides
    StoredFieldsWriter.Finish(FieldInfos, Int32)
    | Improve this Doc View Source

    Merge(MergeState)

    Declaration
    public override int Merge(MergeState mergeState)
    Parameters
    Type Name Description
    MergeState mergeState
    Returns
    Type Description
    System.Int32
    Overrides
    StoredFieldsWriter.Merge(MergeState)
    | Improve this Doc View Source

    StartDocument(Int32)

    Declaration
    public override void StartDocument(int numStoredFields)
    Parameters
    Type Name Description
    System.Int32 numStoredFields
    Overrides
    StoredFieldsWriter.StartDocument(Int32)
    | Improve this Doc View Source

    WriteField(FieldInfo, IIndexableField)

    Declaration
    public override void WriteField(FieldInfo info, IIndexableField field)
    Parameters
    Type Name Description
    FieldInfo info
    IIndexableField field
    Overrides
    StoredFieldsWriter.WriteField(FieldInfo, IIndexableField)

    See Also

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