Show / Hide Table of Contents

    Class MappingCharFilter

    Simplistic CharFilter that applies the mappings contained in a NormalizeCharMap to the character stream, and correcting the resulting changes to the offsets. Matching is greedy (longest pattern matching at a given point wins). Replacement is allowed to be the empty string.

    Inheritance
    System.Object
    CharFilter
    BaseCharFilter
    MappingCharFilter
    Inherited Members
    BaseCharFilter.Correct(Int32)
    BaseCharFilter.LastCumulativeDiff
    BaseCharFilter.AddOffCorrectMap(Int32, Int32)
    CharFilter.m_input
    CharFilter.Dispose(Boolean)
    CharFilter.CorrectOffset(Int32)
    CharFilter.Skip(Int32)
    CharFilter.IsReady
    CharFilter.IsMarkSupported
    CharFilter.Mark(Int32)
    Namespace: Lucene.Net.Analysis.CharFilters
    Assembly: Lucene.Net.Analysis.Common.dll
    Syntax
    public class MappingCharFilter : BaseCharFilter

    Constructors

    | Improve this Doc View Source

    MappingCharFilter(NormalizeCharMap, TextReader)

    Default constructor that takes a .

    Declaration
    public MappingCharFilter(NormalizeCharMap normMap, TextReader in)
    Parameters
    Type Name Description
    NormalizeCharMap normMap
    TextReader in

    Methods

    | Improve this Doc View Source

    Read()

    Declaration
    public override int Read()
    Returns
    Type Description
    System.Int32
    Overrides
    CharFilter.Read()
    | Improve this Doc View Source

    Read(Char[], Int32, Int32)

    Declaration
    public override int Read(char[] cbuf, int off, int len)
    Parameters
    Type Name Description
    System.Char[] cbuf
    System.Int32 off
    System.Int32 len
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Reset()

    Declaration
    public override void Reset()
    Overrides
    CharFilter.Reset()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)