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
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Comparable<? super T>>
Comparator<MinAndMax<T>>getComparator
(SortOrder order) getMax()
Return the maximum value.getMin()
Return the minimum value.void
writeTo
(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
MinAndMax
-
MinAndMax
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
getMin
Return the minimum value. -
getMax
Return the maximum value. -
getComparator
public static <T extends Comparable<? super T>> Comparator<MinAndMax<T>> getComparator(SortOrder order)
-