Package ucar.nc2
Class FileWriter2.ChunkingIndex
java.lang.Object
ucar.ma2.Index
ucar.nc2.FileWriter2.ChunkingIndex
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- FileWriter2
Deprecated.
use ucar.nc2.write.ChunkingIndex
An index that computes chunk shapes. It is intended to be used to compute the origins and shapes for a series
of contiguous writes to a multidimensional array.
It writes the first n elements (n < maxChunkElems), then the next, etc.
-
Field Summary
Fields inherited from class ucar.ma2.Index
scalarIndexImmutable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]computeChunkShape(long maxChunkElems) Deprecated.Computes the shape of the largest possible contiguous chunk, starting atIndex.getCurrentCounter()and withnumElems <= maxChunkElems.
-
Constructor Details
-
ChunkingIndex
public ChunkingIndex(int[] shape) Deprecated.
-
-
Method Details
-
computeChunkShape
public int[] computeChunkShape(long maxChunkElems) Deprecated.Computes the shape of the largest possible contiguous chunk, starting atIndex.getCurrentCounter()and withnumElems <= maxChunkElems.- Parameters:
maxChunkElems- the maximum number of elements in the chunk shape. The actual element count of the shape returned is likely to be different, and can be found withIndex.computeSize(int[]).- Returns:
- the shape of the largest possible contiguous chunk.
-