Class SortedTermFreqIteratorWrapper
This wrapper buffers incoming elements and makes sure they are sorted based on given comparer. @lucene.experimental
Inheritance
System.Object
SortedTermFreqIteratorWrapper
Assembly: Lucene.Net.Suggest.dll
Syntax
public class SortedTermFreqIteratorWrapper : object, ITermFreqIterator, IBytesRefIterator
Constructors
Name | Description |
---|---|
SortedTermFreqIteratorWrapper(ITermFreqIterator) | Creates a new sorted wrapper, using |
SortedTermFreqIteratorWrapper(ITermFreqIterator, IComparer<BytesRef>) | Creates a new sorted wrapper, sorting by BytesRef (ascending) then cost (ascending). |
Properties
Name | Description |
---|---|
Comparer | |
Weight |
Methods
Name | Description |
---|---|
Decode(BytesRef, ByteArrayDataInput) | decodes the weight at the current position |
Encode(OfflineSorter.ByteSequencesWriter, ByteArrayDataOutput, Byte[], BytesRef, Int64) | encodes an entry (bytes+weight) to the provided writer |
Next() |