public class FieldComparator extends StreamComparator implements Comparator<Tuple>, ExpressibleComparator, Serializable
leftField, order, rightField
Constructor and Description |
---|
FieldComparator(String field,
ComparatorOrder order) |
FieldComparator(String leftField,
String rightField,
ComparatorOrder order) |
Modifier and Type | Method and Description |
---|---|
int |
compare(Tuple leftTuple,
Tuple rightTuple) |
StreamExpressionParameter |
toExpression(StreamFactory factory) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public FieldComparator(String field, ComparatorOrder order)
public FieldComparator(String leftField, String rightField, ComparatorOrder order)
public StreamExpressionParameter toExpression(StreamFactory factory)
toExpression
in interface ExpressibleComparator
public int compare(Tuple leftTuple, Tuple rightTuple)
compare
in interface Comparator<Tuple>
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.