Interface IBytesRefSorter
Collects Lucene.Net.Util.BytesRef and then allows one to iterate over their sorted order. Implementations of this interface will be called in a single-threaded scenario.
Namespace: Lucene.Net.Search.Suggest.Fst
Assembly: Lucene.Net.Suggest.dll
Syntax
public interface IBytesRefSorter
Properties
Comparer
Comparer used to determine the sort order of entries.
Declaration
IComparer<BytesRef> Comparer { get; }
Property Value
Type | Description |
---|---|
IComparer<BytesRef> |
Methods
Add(BytesRef)
Adds a single suggestion entry (possibly compound with its bucket).
Declaration
void Add(BytesRef utf8)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | utf8 |
Exceptions
Type | Condition |
---|---|
IOException | If an I/O exception occurs. |
InvalidOperationException | If an addition attempt is performed after a call to GetEnumerator() has been made. |
GetEnumerator()
Sorts the entries added in Add(BytesRef) and returns an enumerator over all sorted entries.
Declaration
IBytesRefEnumerator GetEnumerator()
Returns
Type | Description |
---|---|
IBytesRefEnumerator |
Exceptions
Type | Condition |
---|---|
IOException | If an I/O exception occurs. |