cdm/src/main/java/ucar/nc2/Variable.java
public boolean isCaching() {
    if (!permitCaching) {
      return false;
    }

    if (!this.cache.cachingSet) {
      cache.isCaching = !isVariableLength && (getSize() * getElementSize() < getSizeToCache());
      if (debugCaching) System.out.printf("  cache %s %s %d < %d%n", getFullName(), cache.isCaching, getSize() * getElementSize(), getSizeToCache());
      this.cache.cachingSet = true;
    }
    return cache.isCaching;
  }
public boolean isCaching() {
    if (!permitCaching) {
      return false;
    }

    if (!this.cache.cachingSet) {
      cache.isCaching = !isVariableLength && (getSize() * getElementSize() < getSizeToCache());
      if (debugCaching) System.out.printf("  cache %s %s %d < %d%n", getFullName(), cache.isCaching, getSize() * getElementSize(), getSizeToCache());
      this.cache.cachingSet = true;
    }
    return cache.isCaching;
  }
public boolean isCaching ( ) { if ( ! permitCaching ) { return false ; } if ( ! this . cache . cachingSet ) { cache . isCaching = ! isVariableLength && ( getSize ( ) * getElementSize ( ) < getSizeToCache ( ) ) ; if ( debugCaching ) System . out . printf ( "  cache %s %s %d < %d%n" , getFullName ( ) , cache . isCaching , getSize ( ) * getElementSize ( ) , getSizeToCache ( ) ) ; this . cache . cachingSet = true ; } return cache . isCaching ; }
Will this Variable be cached when read.
Set externally, or calculated based on total size < sizeToCache.
<p>
This will always return {@code false} if {@link #permitCaching caching isn't permitted}.

@return true is caching
Will this Variable be cached when read . Set externally or calculated based on total size < sizeToCache . <p > This will always return { @code false } if { @link #permitCaching caching isn t permitted } .