grib/src/main/java/ucar/nc2/grib/collection/GribCdmIndex.java
public static boolean updateGribCollectionFromPCollection(boolean isGrib1, PartitionManager dcm, CollectionUpdateType updateType,
                                                            Formatter errlog, org.slf4j.Logger logger) throws IOException {

    if (updateType == CollectionUpdateType.never || dcm instanceof CollectionSingleIndexFile) { // LOOK would isIndexFile() be better ?
      // then just open the existing index file
      return false;
    }

    boolean changed = updatePartition(isGrib1, dcm, updateType, logger, errlog);
    if (errlog != null) errlog.format("PartitionCollection %s was recreated %s%n", dcm.getCollectionName(), changed);
    return changed;
  }
public static boolean updateGribCollectionFromPCollection(boolean isGrib1, PartitionManager dcm, CollectionUpdateType updateType,
                                                            Formatter errlog, org.slf4j.Logger logger) throws IOException {

    if (updateType == CollectionUpdateType.never || dcm instanceof CollectionSingleIndexFile) { // LOOK would isIndexFile() be better ?
      // then just open the existing index file
      return false;
    }

    boolean changed = updatePartition(isGrib1, dcm, updateType, logger, errlog);
    if (errlog != null) errlog.format("PartitionCollection %s was recreated %s%n", dcm.getCollectionName(), changed);
    return changed;
  }
public static boolean updateGribCollectionFromPCollection ( boolean isGrib1 , PartitionManager dcm , CollectionUpdateType updateType , Formatter errlog , org . slf4j . Logger logger ) throws IOException { if ( updateType == CollectionUpdateType . never || dcm instanceof CollectionSingleIndexFile ) { // LOOK would isIndexFile() be better ? // then just open the existing index file return false ; } boolean changed = updatePartition ( isGrib1 , dcm , updateType , logger , errlog ) ; if ( errlog != null ) errlog . format ( "PartitionCollection %s was recreated %s%n" , dcm . getCollectionName ( ) , changed ) ; return changed ; }
used (only) by GribCollectionBuilder
used ( only ) by GribCollectionBuilder