Class AssertingTerms
Wraps a Lucene.Net.Index.Terms but with additional asserts
Inherited Members
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class AssertingTerms : FilterAtomicReader.FilterTerms
Constructors
AssertingTerms(Terms)
Wraps a Lucene.Net.Index.Terms but with additional asserts
Declaration
public AssertingTerms(Terms input)
Parameters
| Type | Name | Description |
|---|---|---|
| Terms | input |
Methods
GetEnumerator()
Returns an iterator that will step through all
terms. This method will not return null.
Declaration
public override TermsEnum GetEnumerator()
Returns
| Type | Description |
|---|---|
| TermsEnum |
Overrides
GetEnumerator(TermsEnum)
Returns an iterator that will step through all
terms. This method will not return null.
Declaration
public override TermsEnum GetEnumerator(TermsEnum reuse)
Parameters
| Type | Name | Description |
|---|---|---|
| TermsEnum | reuse | If you have a previous Lucene.Net.Index.TermsEnum, for example from a different field, you can pass it for possible reuse if the implementation can do so. |
Returns
| Type | Description |
|---|---|
| TermsEnum |
Overrides
Intersect(CompiledAutomaton, BytesRef)
Returns a Lucene.Net.Index.TermsEnum that iterates over all terms that
are accepted by the provided
Lucene.Net.Util.Automaton.CompiledAutomaton. If the startTerm is
provided then the returned enum will only accept terms
startTerm, but you still must call Lucene.Net.Index.TermsEnum.MoveNext() first to get to the first term. Note that the providedstartTermmust be accepted by the automaton.
NOTE: the returned Lucene.Net.Index.TermsEnum cannot seek
.Declaration
public override TermsEnum Intersect(CompiledAutomaton automaton, BytesRef bytes)
Parameters
| Type | Name | Description |
|---|---|---|
| CompiledAutomaton | automaton | |
| BytesRef | bytes |
Returns
| Type | Description |
|---|---|
| TermsEnum |