public static class ReplicationSource.LogsComparator extends Object implements Comparator<org.apache.hadoop.fs.Path>
Constructor and Description |
---|
LogsComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(org.apache.hadoop.fs.Path o1,
org.apache.hadoop.fs.Path o2) |
private static long |
getTS(org.apache.hadoop.fs.Path p)
Split a path to get the start time
For example: 10.20.20.171%3A60020.1277499063250
|
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 LogsComparator()
public int compare(org.apache.hadoop.fs.Path o1, org.apache.hadoop.fs.Path o2)
compare
in interface Comparator<org.apache.hadoop.fs.Path>
private static long getTS(org.apache.hadoop.fs.Path p)
p
- path to splitCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.