public static class ReplicationSource.LogsComparator extends Object implements Comparator<org.apache.hadoop.fs.Path>
Constructor and Description |
---|
ReplicationSource.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
equals
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–2019 The Apache Software Foundation. All rights reserved.