public static class IndexChunker.Chunk extends Object implements Layout.Chunk
| Constructor and Description |
|---|
Chunk(long srcElem,
int nelems,
long destElem) |
| Modifier and Type | Method and Description |
|---|---|
long |
getDestElem()
Get starting element position as a 1D element index into the destination, eg the requested array with shape
"wantSection".
|
int |
getNelems()
Get number of elements to transfer contiguously (Note: elements, not bytes)
|
long |
getSrcElem()
Get the position in source where to read or write
|
long |
getSrcPos()
Get the position in source where to read or write: eg "file position"
|
String |
toString() |
public long getSrcElem()
public int getNelems()
Layout.ChunkgetNelems in interface Layout.Chunkpublic long getDestElem()
Layout.ChunkgetDestElem in interface Layout.Chunkpublic long getSrcPos()
Layout.ChunkgetSrcPos in interface Layout.Chunk