Class CannedTokenStream
TokenStream from a canned list of Tokens.
Implements
System.IDisposable
Inherited Members
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 SourceCannedTokenStream(Token[])
Declaration
public CannedTokenStream(params Token[] tokens)
Parameters
Type | Name | Description |
---|---|---|
Token[] | tokens |
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 SourceEnd()
Declaration
public override void End()
Overrides
| Improve this Doc View SourceIncrementToken()
Declaration
public override bool IncrementToken()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Implements
System.IDisposable