Show / Hide Table of Contents

    Class Sorter

    Base class for sorting algorithms implementations.

    This is a Lucene.NET INTERNAL API, use at your own risk
    Inheritance
    System.Object
    Sorter
    InPlaceMergeSorter
    IntroSorter
    TimSorter
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class Sorter : object

    Constructors

    | Improve this Doc View Source

    Sorter()

    Sole constructor, used for inheritance.

    Declaration
    protected Sorter()

    Methods

    | Improve this Doc View Source

    Compare(Int32, Int32)

    Compare entries found in slots i and j. The contract for the returned value is the same as .

    Declaration
    protected abstract int Compare(int i, int j)
    Parameters
    Type Name Description
    System.Int32 i
    System.Int32 j
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Sort(Int32, Int32)

    Sort the slice which starts at from (inclusive) and ends at to (exclusive).

    Declaration
    public abstract void Sort(int from, int to)
    Parameters
    Type Name Description
    System.Int32 from
    System.Int32 to
    | Improve this Doc View Source

    Swap(Int32, Int32)

    Swap values at slots i and j.

    Declaration
    protected abstract void Swap(int i, int j)
    Parameters
    Type Name Description
    System.Int32 i
    System.Int32 j
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)