Package ucar.nc2.iosp
Class LayoutRegularSegmented
- java.lang.Object
-
- ucar.nc2.iosp.LayoutRegularSegmented
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ucar.nc2.iosp.Layout
Layout.Chunk
-
-
Constructor Summary
Constructors Constructor Description LayoutRegularSegmented(long startPos, int elemSize, long recSize, int[] srcShape, Section wantSection)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getElemSize()
Get size of each element in bytes.long
getTotalNelems()
Get total number of elements in the wanted subset.boolean
hasNext()
Is there more to doLayout.Chunk
next()
Get the next chunkIndexChunker.Chunk
nextOuter()
-
-
-
Constructor Detail
-
LayoutRegularSegmented
public LayoutRegularSegmented(long startPos, int elemSize, long recSize, int[] srcShape, Section wantSection) throws InvalidRangeException
Constructor.- Parameters:
startPos
- starting address of the entire data array.elemSize
- size of an element in bytes.recSize
- size of outer stride in bytessrcShape
- shape of the entire data array. must have rank > 0wantSection
- the wanted section of data- Throws:
InvalidRangeException
- if ranges are misformed
-
-
Method Detail
-
getTotalNelems
public long getTotalNelems()
Description copied from interface:Layout
Get total number of elements in the wanted subset.- Specified by:
getTotalNelems
in interfaceLayout
- Returns:
- total number of elements in the wanted subset.
-
getElemSize
public int getElemSize()
Description copied from interface:Layout
Get size of each element in bytes.- Specified by:
getElemSize
in interfaceLayout
- Returns:
- size of each element in bytes.
-
hasNext
public boolean hasNext()
Description copied from interface:Layout
Is there more to do
-
next
public Layout.Chunk next()
Description copied from interface:Layout
Get the next chunk
-
nextOuter
public IndexChunker.Chunk nextOuter()
-
-