• API

    Show / Hide Table of Contents

    Class Lucene41PostingsWriter

    Concrete class that writes docId(maybe frq,pos,offset,payloads) list with postings format.

    Postings list for each term will be stored separately.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    PostingsConsumer
    PostingsWriterBase
    Lucene41PostingsWriter
    Implements
    System.IDisposable
    Inherited Members
    PostingsWriterBase.Dispose()
    PostingsConsumer.Merge(MergeState, IndexOptions, DocsEnum, 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.Lucene41
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class Lucene41PostingsWriter : PostingsWriterBase, IDisposable

    Constructors

    | Improve this Doc View Source

    Lucene41PostingsWriter(SegmentWriteState)

    Creates a postings writer with

    PackedInts.COMPACT

    Declaration
    public Lucene41PostingsWriter(SegmentWriteState state)
    Parameters
    Type Name Description
    SegmentWriteState state
    | Improve this Doc View Source

    Lucene41PostingsWriter(SegmentWriteState, Single)

    Creates a postings writer with the specified PackedInts overhead ratio

    Declaration
    public Lucene41PostingsWriter(SegmentWriteState state, float acceptableOverheadRatio)
    Parameters
    Type Name Description
    SegmentWriteState state
    System.Single acceptableOverheadRatio

    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
    BytesRef payload
    System.Int32 startOffset
    System.Int32 endOffset
    Overrides
    PostingsConsumer.AddPosition(Int32, BytesRef, Int32, Int32)
    | Improve this Doc View Source

    Dispose(Boolean)

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

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

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

    FinishDoc()

    Declaration
    public override void FinishDoc()
    Overrides
    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
    BlockTermState state
    Overrides
    PostingsWriterBase.FinishTerm(BlockTermState)
    | Improve this Doc View Source

    Init(IndexOutput)

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

    NewTermState()

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

    SetField(FieldInfo)

    Declaration
    public override int SetField(FieldInfo fieldInfo)
    Parameters
    Type Name Description
    FieldInfo fieldInfo
    Returns
    Type Description
    System.Int32
    Overrides
    PostingsWriterBase.SetField(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
    PostingsConsumer.StartDoc(Int32, Int32)
    | Improve this Doc View Source

    StartTerm()

    Declaration
    public override void StartTerm()
    Overrides
    PostingsWriterBase.StartTerm()

    Implements

    System.IDisposable

    See Also

    Lucene.Net.Codecs.Lucene41.Lucene41SkipWriter
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)