|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.ma2.Index
ucar.nc2.FileWriter.ChunkingIndex
public static class FileWriter.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.
Field Summary |
---|
Fields inherited from class ucar.ma2.Index |
---|
current, offset, rank, scalarIndexImmutable, shape, size, stride |
Constructor Summary | |
---|---|
FileWriter.ChunkingIndex(int[] shape)
|
Method Summary | |
---|---|
int[] |
computeChunkShape(long maxChunkElems)
Computes the shape of the largest possible contiguous chunk, starting at Index.getCurrentCounter()
and with numElems <= maxChunkElems . |
Methods inherited from class ucar.ma2.Index |
---|
clone, computeSize, currentElement, factory, getCurrentCounter, getRank, getShape, getShape, getSize, incr, precalc, set, set, set, set, set, set, set, set, set0, set1, set2, set3, set4, set5, set6, setCurrentCounter, setDim, toString, toStringDebug |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileWriter.ChunkingIndex(int[] shape)
Method Detail |
---|
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[])
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |