Class FieldEqualitor
- java.lang.Object
-
- org.apache.solr.client.solrj.io.eq.FieldEqualitor
-
- All Implemented Interfaces:
Serializable
,Equalitor<Tuple>
,StreamEqualitor
,Expressible
public class FieldEqualitor extends Object implements StreamEqualitor
An equality field Equalitor which compares a field of two Tuples and determines if they are equal.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FieldEqualitor(String fieldName)
FieldEqualitor(String leftFieldName, String rightFieldName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLeftFieldName()
String
getRightFieldName()
boolean
isDerivedFrom(StreamComparator base)
boolean
isDerivedFrom(StreamEqualitor base)
boolean
test(Tuple leftTuple, Tuple rightTuple)
Explanation
toExplanation(StreamFactory factory)
Returns an explanation about the stream objectStreamExpressionParameter
toExpression(StreamFactory factory)
-
-
-
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
-
getLeftFieldName
public String getLeftFieldName()
-
getRightFieldName
public String getRightFieldName()
-
isDerivedFrom
public boolean isDerivedFrom(StreamEqualitor base)
- Specified by:
isDerivedFrom
in interfaceStreamEqualitor
-
isDerivedFrom
public boolean isDerivedFrom(StreamComparator base)
- Specified by:
isDerivedFrom
in interfaceStreamEqualitor
-
-