private static void decideDefaultDirSelection(Partition part, List<Path> selectedPaths,
      List<Boolean> nonSkewedValueMatchResult) {
    boolean skipDefDir = true;
    for (Boolean v : nonSkewedValueMatchResult) {
      if ((v == null) || v) {
        skipDefDir = false; // we skip default directory only if all value is false
        break;
      }
    }
    if (!skipDefDir) {
      StringBuilder builder = new StringBuilder();
      builder.append(part.getLocation());
      builder.append(Path.SEPARATOR);
      builder
          .append((FileUtils.makeDefaultListBucketingDirName(
              part.getSkewedColNames(),
              ListBucketingPrunerUtils.HIVE_LIST_BUCKETING_DEFAULT_DIR_NAME)));
      selectedPaths.add(new Path(builder.toString()));
    }
  }
Decide whether should select the default directory.

@param part
@param selectedPaths
@param nonSkewedValueMatchResult
ql/src/java/org/apache/hadoop/hive/ql/optimizer/listbucketingpruner/ListBucketingPruner.java