grib/src/main/java/ucar/nc2/grib/collection/GribCdmIndex.java
private static boolean updatePartition(boolean isGrib1, PartitionManager dcm, CollectionUpdateType updateType,
                                         Logger logger, Formatter errlog) throws IOException {
    boolean changed;
    if (isGrib1) {
      Grib1PartitionBuilder builder = new Grib1PartitionBuilder(dcm.getCollectionName(), new File(dcm.getRoot()), dcm, logger);
      changed = builder.updateNeeded(updateType) && builder.createPartitionedIndex(updateType, errlog);

    } else {
      Grib2PartitionBuilder builder = new Grib2PartitionBuilder(dcm.getCollectionName(), new File(dcm.getRoot()), dcm, logger);
      changed = builder.updateNeeded(updateType) && builder.createPartitionedIndex(updateType, errlog);
    }
    return changed;
  }
private static boolean updatePartition(boolean isGrib1, PartitionManager dcm, CollectionUpdateType updateType,
                                         Logger logger, Formatter errlog) throws IOException {
    boolean changed;
    if (isGrib1) {
      Grib1PartitionBuilder builder = new Grib1PartitionBuilder(dcm.getCollectionName(), new File(dcm.getRoot()), dcm, logger);
      changed = builder.updateNeeded(updateType) && builder.createPartitionedIndex(updateType, errlog);

    } else {
      Grib2PartitionBuilder builder = new Grib2PartitionBuilder(dcm.getCollectionName(), new File(dcm.getRoot()), dcm, logger);
      changed = builder.updateNeeded(updateType) && builder.createPartitionedIndex(updateType, errlog);
    }
    return changed;
  }
return true if changed, exception on failure