Class InMemorySorter
An IBytesRefSorter that keeps all the entries in memory.
Note
This API is experimental and might change in incompatible ways in the next release.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Inheritance
System.Object
InMemorySorter
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.Search.Suggest
Assembly: Lucene.Net.Suggest.dll
Syntax
public sealed class InMemorySorter : IBytesRefSorter
Constructors
| Improve this Doc View SourceInMemorySorter(IComparer<BytesRef>)
Creates an InMemorySorter, sorting entries by the provided comparer.
Declaration
public InMemorySorter(IComparer<BytesRef> comparer)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IComparer<Lucene.Net.Util.BytesRef> | comparer |
Properties
| Improve this Doc View SourceComparer
Declaration
public IComparer<BytesRef> Comparer { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IComparer<Lucene.Net.Util.BytesRef> |
Methods
| Improve this Doc View SourceAdd(BytesRef)
Declaration
public void Add(BytesRef utf8)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Util.BytesRef | utf8 |
GetEnumerator()
Declaration
public IBytesRefEnumerator GetEnumerator()
Returns
Type | Description |
---|---|
Lucene.Net.Util.IBytesRefEnumerator |