org.apache.hadoop.hbase.zookeeper.lock
Class ZKInterProcessLockBase.ZNodeComparator
java.lang.Object
org.apache.hadoop.hbase.zookeeper.lock.ZKInterProcessLockBase.ZNodeComparator
- All Implemented Interfaces:
- Comparator<String>
- Enclosing class:
- ZKInterProcessLockBase
protected static class ZKInterProcessLockBase.ZNodeComparator
- extends Object
- implements Comparator<String>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPARATOR
public static final ZKInterProcessLockBase.ZNodeComparator COMPARATOR
getChildSequenceId
public static long getChildSequenceId(String childZNode)
- Parses sequenceId from the znode name. Zookeeper documentation
states: The sequence number is always fixed length of 10 digits, 0 padded
compare
public int compare(String zNode1,
String zNode2)
- Specified by:
compare
in interface Comparator<String>
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.