Package ucar.nc2.write
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ucar.nc2.write.Nc4Chunking
Nc4Chunking.Strategy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Nc4ChunkingStrategy(int deflateLevel, boolean shuffle)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int[]
computeChunkingFromAttribute(Variable v)
static Nc4Chunking
factory(Nc4Chunking.Strategy type, int deflateLevel, boolean shuffle)
protected Attribute
getChunkAttribute(Variable v)
int
getDeflateLevel(Variable v)
Get the deflation level.boolean
isShuffle(Variable v)
Set true to turn shuffling on which may improve compression.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ucar.nc2.write.Nc4Chunking
computeChunking, isChunked
-
-
-
-
Method Detail
-
factory
public static Nc4Chunking factory(Nc4Chunking.Strategy type, int deflateLevel, boolean shuffle)
- Parameters:
type
- Strategy typedeflateLevel
- 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 interfaceNc4Chunking
-
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 interfaceNc4Chunking
-
computeChunkingFromAttribute
protected int[] computeChunkingFromAttribute(Variable v)
-
-