Class MultipleFieldComparator
java.lang.Object
org.apache.solr.client.solrj.io.comp.MultipleFieldComparator
- All Implemented Interfaces:
Serializable,Comparator<Tuple>,StreamComparator,Expressible
Wraps multiple Comparators to provide sub-sorting.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(StreamComparator other) intcopyAliased(Map<String, String> aliases) booleangetComps()inthashCode()booleantoExplanation(StreamFactory factory) Returns an explanation about the stream objecttoExpression(StreamFactory factory) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
MultipleFieldComparator
-
-
Method Details
-
getComps
-
compare
- Specified by:
comparein interfaceComparator<Tuple>
-
equals
- Specified by:
equalsin interfaceComparator<Tuple>- Overrides:
equalsin classObject
-
hashCode
public int hashCode() -
toExpression
- Specified by:
toExpressionin interfaceExpressible- Throws:
IOException
-
isDerivedFrom
- Specified by:
isDerivedFromin interfaceStreamComparator
-
toExplanation
Description copied from interface:ExpressibleReturns an explanation about the stream object- Specified by:
toExplanationin interfaceExpressible- Parameters:
factory- Stream factory for this, contains information about the function name- Returns:
- Explanation about this stream object containing explanations of any child stream objects
- Throws:
IOException- throw on any error
-
copyAliased
- Specified by:
copyAliasedin interfaceStreamComparator
-
append
- Specified by:
appendin interfaceStreamComparator
-