Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class FixedGapTermsIndexWriter

    Selects every Nth term as and index term, and hold term bytes (mostly) fully expanded in memory. This terms index supports seeking by ord. See VariableGapTermsIndexWriter for a more memory efficient terms index that does not support seeking by ord.

    Note

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

    Inheritance
    System.Object
    TermsIndexWriterBase
    FixedGapTermsIndexWriter
    Implements
    System.IDisposable
    Inherited Members
    TermsIndexWriterBase.Dispose()
    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.BlockTerms
    Assembly: Lucene.Net.Codecs.dll
    Syntax
    public class FixedGapTermsIndexWriter : TermsIndexWriterBase, IDisposable

    Constructors

    | Improve this Doc View Source

    FixedGapTermsIndexWriter(SegmentWriteState)

    Declaration
    public FixedGapTermsIndexWriter(SegmentWriteState state)
    Parameters
    Type Name Description
    Lucene.Net.Index.SegmentWriteState state

    Fields

    | Improve this Doc View Source

    m_output

    Declaration
    protected IndexOutput m_output
    Field Value
    Type Description
    Lucene.Net.Store.IndexOutput

    Methods

    | Improve this Doc View Source

    AddField(FieldInfo, Int64)

    Declaration
    public override TermsIndexWriterBase.FieldWriter AddField(FieldInfo field, long termsFilePointer)
    Parameters
    Type Name Description
    Lucene.Net.Index.FieldInfo field
    System.Int64 termsFilePointer
    Returns
    Type Description
    TermsIndexWriterBase.FieldWriter
    Overrides
    TermsIndexWriterBase.AddField(FieldInfo, Int64)
    | Improve this Doc View Source

    Dispose(Boolean)

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

    IndexedTermPrefixLength(BytesRef, BytesRef)

    NOTE: if your codec does not sort in unicode code point order, you must override this method, to simply return indexedTerm.Length.

    Declaration
    protected virtual int IndexedTermPrefixLength(BytesRef priorTerm, BytesRef indexedTerm)
    Parameters
    Type Name Description
    Lucene.Net.Util.BytesRef priorTerm
    Lucene.Net.Util.BytesRef indexedTerm
    Returns
    Type Description
    System.Int32

    Implements

    System.IDisposable
    • 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.