Class MinAndMax<T extends <? super T>>

org.elasticsearch.search.sort.MinAndMax<T>
All Implemented Interfaces:
Writeable

public class MinAndMax<T extends <? super T>> extends implements Writeable
A class that encapsulates a minimum and a maximum, that are of the same type and .
  • Constructor Details

    • MinAndMax

      public MinAndMax(T minValue, T maxValue)
    • MinAndMax

      public MinAndMax(StreamInput in) throws
      Throws:
  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
    • getMin

      public T getMin()
      Return the minimum value.
    • getMax

      public T getMax()
      Return the maximum value.
    • getComparator

      public static <MinAndMax<?>> getComparator(SortOrder order)
      Return a for MinAndMax values according to the provided SortOrder.