public class ChunkingIndex extends Index
| Constructor and Description |
|---|
ChunkingIndex(int[] shape) |
| Modifier and Type | Method and Description |
|---|---|
int[] |
computeChunkShape(long maxChunkElems)
Computes the shape of the largest possible contiguous chunk, starting at
Index.getCurrentCounter()
and with numElems <= maxChunkElems. |
public int[] computeChunkShape(long maxChunkElems)
Index.getCurrentCounter()
and with numElems <= maxChunkElems.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 with Index.computeSize(int[]).