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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ucar.nc2.write.Nc4Chunking
Nc4Chunking.Strategy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Nc4Chunking
factory(Nc4Chunking.Strategy type, int deflateLevel, boolean shuffle)
long[]
getChunking(Variable v)
int
getDeflateLevel(Variable.Builder<?> vb)
Get the deflation level.boolean
isShuffle(Variable.Builder<?> vb)
Set true to turn shuffling on which may improve compression.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ucar.nc2.write.Nc4Chunking
computeChunking, isChunked, 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.Builder<?> vb)
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.Builder<?> vb)
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
-
getChunking
@Nullable public long[] getChunking(Variable v)
- Specified by:
getChunking
in interfaceNc4Chunking
-
-