Interface IBytesRefSorter
Collects 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
| Improve this Doc View SourceComparer
Comparer used to determine the sort order of entries.
Declaration
IComparer<BytesRef> Comparer { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IComparer<BytesRef> |
Methods
| Improve this Doc View SourceAdd(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 |
|---|---|
| System.IO.IOException | If an I/O exception occurs. |
| System.InvalidOperationException | If an addition attempt is performed after a call to GetIterator() has been made. |
GetIterator()
Sorts the entries added in Add(BytesRef) and returns an enumerator over all sorted entries.
Declaration
IBytesRefIterator GetIterator()
Returns
| Type | Description |
|---|---|
| IBytesRefIterator |
Exceptions
| Type | Condition |
|---|---|
| System.IO.IOException | If an I/O exception occurs. |