Class SingleValueComparator
- java.lang.Object
-
- org.apache.solr.client.solrj.io.comp.SingleValueComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<Tuple>
,StreamComparator
,Expressible
public class SingleValueComparator extends Object implements StreamComparator
An equality Comparator to be used when a stream will only ever return a single field, ie, it has no sorted order- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SingleValueComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamComparator
append(StreamComparator other)
int
compare(Tuple leftTuple, Tuple rightTuple)
SingleValueComparator
copyAliased(Map<String,String> aliases)
boolean
isDerivedFrom(StreamComparator base)
Explanation
toExplanation(StreamFactory factory)
Returns an explanation about the stream objectStreamExpressionParameter
toExpression(StreamFactory factory)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
toExpression
public StreamExpressionParameter toExpression(StreamFactory factory)
- Specified by:
toExpression
in interfaceExpressible
-
toExplanation
public Explanation toExplanation(StreamFactory factory) throws IOException
Description copied from interface:Expressible
Returns an explanation about the stream object- Specified by:
toExplanation
in 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
public int compare(Tuple leftTuple, Tuple rightTuple)
- Specified by:
compare
in interfaceComparator<Tuple>
-
isDerivedFrom
public boolean isDerivedFrom(StreamComparator base)
- Specified by:
isDerivedFrom
in interfaceStreamComparator
-
copyAliased
public SingleValueComparator copyAliased(Map<String,String> aliases)
- Specified by:
copyAliased
in interfaceStreamComparator
-
append
public StreamComparator append(StreamComparator other)
- Specified by:
append
in interfaceStreamComparator
-
-