Package ucar.nc2.write
Class Nc4ChunkingDefault
- java.lang.Object
-
- ucar.nc2.write.Nc4ChunkingStrategy
-
- ucar.nc2.write.Nc4ChunkingDefault
-
- All Implemented Interfaces:
Nc4Chunking
- Direct Known Subclasses:
Nc4ChunkingStrategyGrib
,Nc4ChunkingStrategyNone
public class Nc4ChunkingDefault extends Nc4ChunkingStrategy
Default chunking strategy.- Since:
- 5/10/14
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ucar.nc2.write.Nc4Chunking
Nc4Chunking.Strategy
-
-
Constructor Summary
Constructors Constructor Description Nc4ChunkingDefault()
Nc4ChunkingDefault(int deflateLevel, boolean shuffle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long[]
computeChunking(Variable v)
Compute the chunk size for this Variable.int[]
computeUnlimitedChunking(List<Dimension> dims, int elemSize)
protected long[]
convertToLong(int[] shape)
protected int[]
convertUnlimitedShape(List<Dimension> dims)
int
getDefaultChunkSize()
int
getMinChunksize()
int
getMinVariableSize()
boolean
isChunked(Variable v)
Should this variable be chunked?void
setDefaultChunkSize(int defaultChunkSize)
void
setMinChunksize(int minChunksize)
void
setMinVariableSize(int minVariableSize)
-
Methods inherited from class ucar.nc2.write.Nc4ChunkingStrategy
computeChunkingFromAttribute, factory, getChunkAttribute, getDeflateLevel, isShuffle
-
-
-
-
Method Detail
-
getDefaultChunkSize
public int getDefaultChunkSize()
-
setDefaultChunkSize
public void setDefaultChunkSize(int defaultChunkSize)
-
getMinVariableSize
public int getMinVariableSize()
-
setMinVariableSize
public void setMinVariableSize(int minVariableSize)
-
getMinChunksize
public int getMinChunksize()
-
setMinChunksize
public void setMinChunksize(int minChunksize)
-
isChunked
public boolean isChunked(Variable v)
Description copied from interface:Nc4Chunking
Should this variable be chunked?
-
computeChunking
public long[] computeChunking(Variable v)
Description copied from interface:Nc4Chunking
Compute the chunk size for this Variable.
-
convertToLong
protected long[] convertToLong(int[] shape)
-
-