Show / Hide Table of Contents

    Class InMemorySorter

    An IBytesRefSorter that keeps all the entries in memory. @lucene.experimental

    This is a Lucene.NET INTERNAL API, use at your own risk
    Inheritance
    System.Object
    InMemorySorter
    Implements
    IBytesRefSorter
    Namespace: Lucene.Net.Search.Suggest
    Assembly: Lucene.Net.Suggest.dll
    Syntax
    public sealed class InMemorySorter : object, IBytesRefSorter

    Constructors

    | Improve this Doc View Source

    InMemorySorter(IComparer<BytesRef>)

    Creates an InMemorySorter, sorting entries by the provided comparer.

    Declaration
    public InMemorySorter(IComparer<BytesRef> comparer)
    Parameters
    Type Name Description
    IComparer<BytesRef> comparer

    Properties

    | Improve this Doc View Source

    Comparer

    Declaration
    public IComparer<BytesRef> Comparer { get; }
    Property Value
    Type Description
    IComparer<BytesRef>

    Methods

    | Improve this Doc View Source

    Add(BytesRef)

    Declaration
    public void Add(BytesRef utf8)
    Parameters
    Type Name Description
    BytesRef utf8
    | Improve this Doc View Source

    GetIterator()

    Declaration
    public IBytesRefIterator GetIterator()
    Returns
    Type Description
    IBytesRefIterator

    Implements

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