public class MultipleFieldComparator extends Object implements StreamComparator
Constructor and Description |
---|
MultipleFieldComparator(StreamComparator... comps) |
Modifier and Type | Method and Description |
---|---|
StreamComparator |
append(StreamComparator other) |
int |
compare(Tuple t1,
Tuple t2) |
MultipleFieldComparator |
copyAliased(Map<String,String> aliases) |
StreamComparator[] |
getComps() |
boolean |
isDerivedFrom(StreamComparator base) |
Explanation |
toExplanation(StreamFactory factory)
Returns an explanation about the stream object
|
StreamExpressionParameter |
toExpression(StreamFactory factory) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public MultipleFieldComparator(StreamComparator... comps)
public StreamComparator[] getComps()
public int compare(Tuple t1, Tuple t2)
compare
in interface Comparator<Tuple>
public StreamExpressionParameter toExpression(StreamFactory factory) throws IOException
toExpression
in interface Expressible
IOException
public boolean isDerivedFrom(StreamComparator base)
isDerivedFrom
in interface StreamComparator
public Explanation toExplanation(StreamFactory factory) throws IOException
Expressible
toExplanation
in interface Expressible
factory
- Stream factory for this, contains information about the function nameIOException
- throw on any errorpublic MultipleFieldComparator copyAliased(Map<String,String> aliases)
copyAliased
in interface StreamComparator
public StreamComparator append(StreamComparator other)
append
in interface StreamComparator
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.