Class SingleTermsEnum
Subclass of FilteredTermsEnum for enumerating a single term.
For example, this can be used by MultiTermQuerys that need only visit one term, but want to preserve MultiTermQuery semantics such as MultiTermRewriteMethod.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public sealed class SingleTermsEnum : FilteredTermsEnum, IBytesRefIterator
Constructors
| Improve this Doc View SourceSingleTermsEnum(TermsEnum, BytesRef)
Creates a new SingleTermsEnum.
After calling the constructor the enumeration is already pointing to the term, if it exists.
Declaration
public SingleTermsEnum(TermsEnum tenum, BytesRef termText)
Parameters
Type | Name | Description |
---|---|---|
TermsEnum | tenum | |
BytesRef | termText |
Methods
| Improve this Doc View SourceAccept(BytesRef)
Declaration
protected override FilteredTermsEnum.AcceptStatus Accept(BytesRef term)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | term |
Returns
Type | Description |
---|---|
FilteredTermsEnum.AcceptStatus |