Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class TokenRangeSinkFilter

    Counts the tokens as they go by and saves to the internal list those between the range of lower and upper, exclusive of upper

    Inheritance
    object
    TeeSinkTokenFilter.SinkFilter
    TokenRangeSinkFilter
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Analysis.Sinks
    Assembly: Lucene.Net.Analysis.Common.dll
    Syntax
    public class TokenRangeSinkFilter : TeeSinkTokenFilter.SinkFilter

    Constructors

    TokenRangeSinkFilter(int, int)

    Counts the tokens as they go by and saves to the internal list those between the range of lower and upper, exclusive of upper

    Declaration
    public TokenRangeSinkFilter(int lower, int upper)
    Parameters
    Type Name Description
    int lower
    int upper

    Methods

    Accept(AttributeSource)

    Returns true, iff the current state of the passed-in Lucene.Net.Util.AttributeSource shall be stored in the sink.

    Declaration
    public override bool Accept(AttributeSource source)
    Parameters
    Type Name Description
    AttributeSource source
    Returns
    Type Description
    bool
    Overrides
    TeeSinkTokenFilter.SinkFilter.Accept(AttributeSource)

    Reset()

    Called by Reset(). This method does nothing by default and can optionally be overridden.

    Declaration
    public override void Reset()
    Overrides
    TeeSinkTokenFilter.SinkFilter.Reset()
    Back to top Copyright © 2024 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.