java.lang.Object
org.elasticsearch.tdigest.Sort

public class Sort extends Object
Static sorting methods
  • Constructor Details

    • Sort

      public Sort()
  • Method Details

    • stableSort

      public static void stableSort(TDigestIntArray order, TDigestDoubleArray values, int n)
      Single-key stabilized quick sort on using an index array
      Parameters:
      order - Indexes into values
      values - The values to sort.
      n - The number of values to sort
    • reverse

      public static void reverse(TDigestIntArray order, int offset, int length)
      Reverses part of an array.
      Parameters:
      order - The array containing the data to reverse.
      offset - Where to start reversing.
      length - How many elements to reverse
    • reverse

      public static void reverse(TDigestDoubleArray order, int offset, int length)
      Reverses part of an array.
      Parameters:
      order - The array containing the data to reverse.
      offset - Where to start reversing.
      length - How many elements to reverse