Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class Lucene40PostingsWriter

    Concrete class that writes the 4.0 frq/prx postings format.

    Note

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

    Inheritance
    System.Object
    Lucene.Net.Codecs.PostingsConsumer
    Lucene.Net.Codecs.PostingsWriterBase
    Lucene40PostingsWriter
    Implements
    System.IDisposable
    Inherited Members
    Lucene.Net.Codecs.PostingsWriterBase.Dispose()
    Lucene.Net.Codecs.PostingsConsumer.Merge(Lucene.Net.Index.MergeState, Lucene.Net.Index.IndexOptions, Lucene.Net.Index.DocsEnum, Lucene.Net.Util.FixedBitSet)
    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)
    System.Object.ToString()
    Namespace: Lucene.Net.Codecs.Lucene40
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public sealed class Lucene40PostingsWriter : PostingsWriterBase, IDisposable

    Constructors

    | Improve this Doc View Source

    Lucene40PostingsWriter(SegmentWriteState)

    Creates a Lucene40PostingsWriter, with the Lucene.Net.Codecs.Lucene40.Lucene40PostingsWriter.DEFAULT_SKIP_INTERVAL.

    Declaration
    public Lucene40PostingsWriter(SegmentWriteState state)
    Parameters
    Type Name Description
    Lucene.Net.Index.SegmentWriteState state
    | Improve this Doc View Source

    Lucene40PostingsWriter(SegmentWriteState, Int32)

    Creates a Lucene40PostingsWriter, with the specified skipInterval.

    Declaration
    public Lucene40PostingsWriter(SegmentWriteState state, int skipInterval)
    Parameters
    Type Name Description
    Lucene.Net.Index.SegmentWriteState state
    System.Int32 skipInterval

    Methods

    | Improve this Doc View Source

    AddPosition(Int32, BytesRef, Int32, Int32)

    Add a new position & payload.

    Declaration
    public override void AddPosition(int position, BytesRef payload, int startOffset, int endOffset)
    Parameters
    Type Name Description
    System.Int32 position
    Lucene.Net.Util.BytesRef payload
    System.Int32 startOffset
    System.Int32 endOffset
    Overrides
    Lucene.Net.Codecs.PostingsConsumer.AddPosition(System.Int32, Lucene.Net.Util.BytesRef, System.Int32, System.Int32)
    | Improve this Doc View Source

    Dispose(Boolean)

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

    EncodeTerm(Int64[], DataOutput, FieldInfo, BlockTermState, Boolean)

    Declaration
    public override void EncodeTerm(long[] empty, DataOutput out, FieldInfo fieldInfo, BlockTermState state, bool absolute)
    Parameters
    Type Name Description
    System.Int64[] empty
    Lucene.Net.Store.DataOutput out
    Lucene.Net.Index.FieldInfo fieldInfo
    Lucene.Net.Codecs.BlockTermState state
    System.Boolean absolute
    Overrides
    Lucene.Net.Codecs.PostingsWriterBase.EncodeTerm(System.Int64[], Lucene.Net.Store.DataOutput, Lucene.Net.Index.FieldInfo, Lucene.Net.Codecs.BlockTermState, System.Boolean)
    | Improve this Doc View Source

    FinishDoc()

    Declaration
    public override void FinishDoc()
    Overrides
    Lucene.Net.Codecs.PostingsConsumer.FinishDoc()
    | Improve this Doc View Source

    FinishTerm(BlockTermState)

    Called when we are done adding docs to this term.

    Declaration
    public override void FinishTerm(BlockTermState state)
    Parameters
    Type Name Description
    Lucene.Net.Codecs.BlockTermState state
    Overrides
    Lucene.Net.Codecs.PostingsWriterBase.FinishTerm(Lucene.Net.Codecs.BlockTermState)
    | Improve this Doc View Source

    Init(IndexOutput)

    Declaration
    public override void Init(IndexOutput termsOut)
    Parameters
    Type Name Description
    Lucene.Net.Store.IndexOutput termsOut
    Overrides
    Lucene.Net.Codecs.PostingsWriterBase.Init(Lucene.Net.Store.IndexOutput)
    | Improve this Doc View Source

    NewTermState()

    Declaration
    public override BlockTermState NewTermState()
    Returns
    Type Description
    Lucene.Net.Codecs.BlockTermState
    Overrides
    Lucene.Net.Codecs.PostingsWriterBase.NewTermState()
    | Improve this Doc View Source

    SetField(FieldInfo)

    Declaration
    public override int SetField(FieldInfo fieldInfo)
    Parameters
    Type Name Description
    Lucene.Net.Index.FieldInfo fieldInfo
    Returns
    Type Description
    System.Int32
    Overrides
    Lucene.Net.Codecs.PostingsWriterBase.SetField(Lucene.Net.Index.FieldInfo)
    | Improve this Doc View Source

    StartDoc(Int32, Int32)

    Declaration
    public override void StartDoc(int docID, int termDocFreq)
    Parameters
    Type Name Description
    System.Int32 docID
    System.Int32 termDocFreq
    Overrides
    Lucene.Net.Codecs.PostingsConsumer.StartDoc(System.Int32, System.Int32)
    | Improve this Doc View Source

    StartTerm()

    Declaration
    public override void StartTerm()
    Overrides
    Lucene.Net.Codecs.PostingsWriterBase.StartTerm()

    Implements

    System.IDisposable

    See Also

    Lucene.Net.Codecs.Lucene40.Lucene40PostingsFormat
    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 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.