Package org.elasticsearch.search.sort
Class MinAndMax<T extends Comparable<? super T>>
java.lang.Object
org.elasticsearch.search.sort.MinAndMax<T>
- All Implemented Interfaces:
Writeable
A class that encapsulates a minimum and a maximum, that are of the same type and
Comparable.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator<MinAndMax<?>>getComparator(SortOrder order)getMax()Return the maximum value.getMin()Return the minimum value.voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
Constructor Details
-
MinAndMax
-
MinAndMax
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getMin
Return the minimum value. -
getMax
Return the maximum value. -
getComparator
-