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