Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class NormsFormat

    Encodes/decodes per-document score normalization values.

    Inheritance
    System.Object
    NormsFormat
    Lucene40NormsFormat
    Lucene42NormsFormat
    Inherited Members
    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
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class NormsFormat

    Constructors

    | Improve this Doc View Source

    NormsFormat()

    Sole constructor. (For invocation by subclass constructors, typically implicit.)

    Declaration
    protected NormsFormat()

    Methods

    | Improve this Doc View Source

    NormsConsumer(SegmentWriteState)

    Returns a DocValuesConsumer to write norms to the index.

    Declaration
    public abstract DocValuesConsumer NormsConsumer(SegmentWriteState state)
    Parameters
    Type Name Description
    SegmentWriteState state
    Returns
    Type Description
    DocValuesConsumer
    | Improve this Doc View Source

    NormsProducer(SegmentReadState)

    Returns a DocValuesProducer to read norms from the index.

    NOTE: by the time this call returns, it must hold open any files it will need to use; else, those files may be deleted. Additionally, required files may be deleted during the execution of this call before there is a chance to open them. Under these circumstances an System.IO.IOException should be thrown by the implementation. System.IO.IOException are expected and will automatically cause a retry of the segment opening logic with the newly revised segments.

    Declaration
    public abstract DocValuesProducer NormsProducer(SegmentReadState state)
    Parameters
    Type Name Description
    SegmentReadState state
    Returns
    Type Description
    DocValuesProducer
    • 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.