Fork me on GitHub
  • 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 GetEnumerator() has been made.

    | Improve this Doc View Source

    GetEnumerator()

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

    Declaration
    IBytesRefEnumerator GetEnumerator()
    Returns
    Type Description
    Lucene.Net.Util.IBytesRefEnumerator
    Exceptions
    Type Condition
    System.IO.IOException

    If an I/O exception occurs.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.