Class Nc4ChunkingStrategy

java.lang.Object
ucar.nc2.write.Nc4ChunkingStrategy
All Implemented Interfaces:
Nc4Chunking
Direct Known Subclasses:
Nc4ChunkingDefault

@Immutable public abstract class Nc4ChunkingStrategy extends Object implements Nc4Chunking
Abstract superclass for netcdf-4 chunking strategy.
Since:
11/14/12
  • Method Details

    • factory

      public static Nc4Chunking factory(Nc4Chunking.Strategy type, int deflateLevel, boolean shuffle)
      Parameters:
      type - Strategy type
      deflateLevel - 0 corresponds to no compression and 9 to maximum compression,
      shuffle - true to turn shuffling on which may improve compression. This option is ignored unless a non-zero deflation level is specified.
      Returns:
      Nc4Chunking implementation
    • getDeflateLevel

      public int getDeflateLevel(Variable v)
      Description copied from interface: Nc4Chunking
      Get the deflation level. 0 corresponds to no compression and 9 to maximum compression.
      Specified by:
      getDeflateLevel in interface Nc4Chunking
    • isShuffle

      public boolean isShuffle(Variable v)
      Description copied from interface: Nc4Chunking
      Set true to turn shuffling on which may improve compression. This option is ignored unless a non-zero deflation level is specified.
      Specified by:
      isShuffle in interface Nc4Chunking