Class FieldComparator
java.lang.Object
org.apache.solr.client.solrj.io.comp.FieldComparator
- All Implemented Interfaces:
Serializable,Comparator<Tuple>,StreamComparator,Expressible
An equality field Comparator which compares a field of two Tuples and determines sort order.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFieldComparator(String leftFieldName, String rightFieldName, ComparatorOrder order) FieldComparator(String fieldName, ComparatorOrder order) -
Method Summary
Modifier and TypeMethodDescriptionappend(StreamComparator other) intcopyAliased(Map<String, String> aliases) booleangetOrder()booleaninthashCode()booleanvoidsetLeftFieldName(String leftFieldName) voidsetRightFieldName(String rightFieldName) toExplanation(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
-
FieldComparator
-
FieldComparator
-
-
Method Details
-
setLeftFieldName
-
getLeftFieldName
-
setRightFieldName
-
getRightFieldName
-
getOrder
-
hasDifferentFieldNames
public boolean hasDifferentFieldNames() -
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
-
equals
- Specified by:
equalsin interfaceComparator<Tuple>- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
-