Show / Hide Table of Contents

    Class CannedTokenStream

    TokenStream from a canned list of Tokens.

    Inheritance
    System.Object
    AttributeSource
    TokenStream
    CannedTokenStream
    Implements
    System.IDisposable
    Inherited Members
    TokenStream.Reset()
    TokenStream.Dispose()
    TokenStream.Dispose(Boolean)
    AttributeSource.GetAttributeFactory()
    AttributeSource.GetAttributeClassesEnumerator()
    AttributeSource.GetAttributeImplsEnumerator()
    AttributeSource.AddAttributeImpl(Attribute)
    AttributeSource.AddAttribute<T>()
    AttributeSource.HasAttributes
    AttributeSource.HasAttribute<T>()
    AttributeSource.GetAttribute<T>()
    AttributeSource.ClearAttributes()
    AttributeSource.CaptureState()
    AttributeSource.RestoreState(AttributeSource.State)
    AttributeSource.GetHashCode()
    AttributeSource.Equals(Object)
    AttributeSource.ReflectAsString(Boolean)
    AttributeSource.ReflectWith(IAttributeReflector)
    AttributeSource.CloneAttributes()
    AttributeSource.CopyTo(AttributeSource)
    AttributeSource.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Lucene.Net.Analysis
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public sealed class CannedTokenStream : TokenStream, IDisposable

    Constructors

    | Improve this Doc View Source

    CannedTokenStream(Token[])

    Declaration
    public CannedTokenStream(params Token[] tokens)
    Parameters
    Type Name Description
    Token[] tokens
    | Improve this Doc View Source

    CannedTokenStream(Int32, Int32, Token[])

    If you want trailing holes, pass a non-zero finalPosInc.

    Declaration
    public CannedTokenStream(int finalPosInc, int finalOffset, params Token[] tokens)
    Parameters
    Type Name Description
    System.Int32 finalPosInc
    System.Int32 finalOffset
    Token[] tokens

    Methods

    | Improve this Doc View Source

    End()

    Declaration
    public override void End()
    Overrides
    TokenStream.End()
    | Improve this Doc View Source

    IncrementToken()

    Declaration
    public override bool IncrementToken()
    Returns
    Type Description
    System.Boolean
    Overrides
    TokenStream.IncrementToken()

    Implements

    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)