Class CrankyTokenFilter
Throws System.IO.IOException from random TokenStream methods.
This can be used to simulate a buggy analyzer in IndexWriter, where we must delete the document but not abort everything in the buffer.
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.TestFramework.Analysis
Assembly: Lucene.Net.TestFramework.dll
Syntax
public sealed class CrankyTokenFilter : TokenFilter, IDisposable
Constructors
| Improve this Doc View SourceCrankyTokenFilter(TokenStream, Random)
Creates a new CrankyTokenFilter.
Declaration
public CrankyTokenFilter(TokenStream input, Random random)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | input | |
System.Random | random |
Methods
| Improve this Doc View SourceDispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
| 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
| Improve this Doc View SourceReset()
Declaration
public override void Reset()
Overrides
Implements
System.IDisposable