Class SingleValueComparator
java.lang.Object
org.apache.solr.client.solrj.io.comp.SingleValueComparator
- All Implemented Interfaces:
Serializable,Comparator<Tuple>,StreamComparator,Expressible
An equality Comparator to be used when a stream will only ever return a single field, ie, it has
no sorted order
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(StreamComparator other) intcopyAliased(Map<String, String> aliases) booleantoExplanation(StreamFactory factory) Returns an explanation about the stream objecttoExpression(StreamFactory factory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
SingleValueComparator
public SingleValueComparator()
-
-
Method Details
-
toExpression
- Specified by:
toExpressionin interfaceExpressible
-
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
-
compare
- Specified by:
comparein interfaceComparator<Tuple>
-
isDerivedFrom
- Specified by:
isDerivedFromin interfaceStreamComparator
-
copyAliased
- Specified by:
copyAliasedin interfaceStreamComparator
-
append
- Specified by:
appendin interfaceStreamComparator
-