@Override
    public int compareTo(PathAndDepth o) {
      return o.depth - depth;
    }
The largest {@code depth} is processed first in a {@link PriorityQueue}.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandler.java