Class UnsortedInputEnumerator
This wrapper buffers the incoming elements and makes sure they are in random order.
Note
This API is experimental and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Search.Suggest
Assembly: Lucene.Net.Suggest.dll
Syntax
public class UnsortedInputEnumerator : BufferedInputEnumerator, IInputEnumerator, IBytesRefEnumerator
Constructors
UnsortedInputEnumerator(IInputEnumerator)
Creates a new iterator, wrapping the specified iterator and returning elements in a random order.
Declaration
public UnsortedInputEnumerator(IInputEnumerator source)
Parameters
Type | Name | Description |
---|---|---|
IInputEnumerator | source |
Properties
Contexts
A term's contexts context can be used to filter suggestions. May return null, if suggest entries do not have any context
Declaration
public override ICollection<BytesRef> Contexts { get; }
Property Value
Type | Description |
---|---|
ICollection<BytesRef> |
Overrides
Payload
An arbitrary byte[] to record per suggestion. See Payload to retrieve the payload for each suggestion.
Declaration
public override BytesRef Payload { get; }
Property Value
Type | Description |
---|---|
BytesRef |
Overrides
Weight
A term's weight, higher numbers mean better suggestions.
Declaration
public override long Weight { get; }
Property Value
Type | Description |
---|---|
long |
Overrides
Methods
MoveNext()
Increments the iteration to the next Lucene.Net.Util.BytesRef in the enumerator.
Declaration
public override bool MoveNext()
Returns
Type | Description |
---|---|
bool |
|
Overrides
Exceptions
Type | Condition |
---|---|
IOException | If there is a low-level I/O error. |