• API

    Show / Hide Table of Contents

    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

    | Improve this Doc View Source

    Comparer

    Comparer used to determine the sort order of entries.

    Declaration
    IComparer<BytesRef> Comparer { get; }
    Property Value
    Type Description
    System.Collections.Generic.IComparer<Lucene.Net.Util.BytesRef>

    Methods

    | Improve this Doc View Source

    Add(BytesRef)

    Adds a single suggestion entry (possibly compound with its bucket).

    Declaration
    void Add(BytesRef utf8)
    Parameters
    Type Name Description
    Lucene.Net.Util.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.

    | Improve this Doc View Source

    GetIterator()

    Sorts the entries added in Add(BytesRef) and returns an enumerator over all sorted entries.

    Declaration
    IBytesRefIterator GetIterator()
    Returns
    Type Description
    Lucene.Net.Util.IBytesRefIterator
    Exceptions
    Type Condition
    System.IO.IOException

    If an I/O exception occurs.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)