class ConsistencyCheck {

  static void checkMetastorePath(Path path, int globDepth) {
    if (path.depth() != globDepth) {
      throw new IllegalStateException(
          "ABORTING: Metastore path structure looks wrong; depth != file system glob depth: '" + path + "'.");
    }
  }

  private  ConsistencyCheck();

}