Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class Sorter

    Base class for sorting algorithms implementations.

    Note

    This API is for internal purposes only and might change in incompatible ways in the next release.

    Inheritance
    object
    Sorter
    InPlaceMergeSorter
    IntroSorter
    TimSorter
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class Sorter

    Constructors

    Sorter()

    Sole constructor, used for inheritance.

    Declaration
    protected Sorter()

    Methods

    Compare(int, int)

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

    Declaration
    protected abstract int Compare(int i, int j)
    Parameters
    Type Name Description
    int i
    int j
    Returns
    Type Description
    int

    Sort(int, int)

    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
    int from
    int to

    Swap(int, int)

    Swap values at slots i and j.

    Declaration
    protected abstract void Swap(int i, int j)
    Parameters
    Type Name Description
    int i
    int j
    Back to top Copyright © 2024 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.