|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.ma2.Array
ucar.ma2.ArrayStructure
ucar.ma2.ArrayStructureBB
ucar.ma2.ArrayStructureBBpos
public class ArrayStructureBBpos
Variation of ArrayStructureBB, where the offsets of the records into the ByteBuffer are uneven and must be passed in by the user.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ucar.ma2.ArrayStructure |
---|
ArrayStructure.ArrayStructureIterator |
Field Summary | |
---|---|
protected int[] |
positions
|
Fields inherited from class ucar.ma2.ArrayStructureBB |
---|
bb_offset, bbuffer |
Fields inherited from class ucar.ma2.ArrayStructure |
---|
members, nelems, sdata |
Fields inherited from class ucar.ma2.Array |
---|
indexCalc, rank, unsigned |
Constructor Summary | |
---|---|
ArrayStructureBBpos(StructureMembers members,
int[] shape,
ByteBuffer bbuffer,
int[] positions)
Construct an ArrayStructureBB with the given ByteBuffer. |
Method Summary | |
---|---|
protected int |
calcOffsetSetOrder(int recnum,
StructureMembers.Member m)
|
Methods inherited from class ucar.ma2.Array |
---|
arraycopy, copyTo1DJavaArray, copyToNDJavaArray, factory, factory, factory, factory, factory, factory, factoryConstant, flip, get1DJavaArray, getDataAsByteBuffer, getIndex, getIndexIterator, getIndexIteratorFast, getIndexPrivate, getRangeIterator, getRank, getShape, getSize, hasNext, isConstant, isUnsigned, makeArray, makeArray, makeArray, next, nextBoolean, nextByte, nextChar, nextDouble, nextFloat, nextInt, nextLong, nextShort, permute, reduce, reduce, resetLocalIterator, reshape, reshapeNoCopy, section, section, section, sectionNoReduce, sectionNoReduce, setUnsigned, shapeToString, slice, toString, transpose |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int[] positions
Constructor Detail |
---|
public ArrayStructureBBpos(StructureMembers members, int[] shape, ByteBuffer bbuffer, int[] positions)
members
- the list of structure members.shape
- the shape of the structure arraybbuffer
- the data is stored in this ByteBuffer. bbuffer.order must already be set.positions
- offset from the start of the ByteBufffer to each record. must have length = with shape.getSize()Method Detail |
---|
protected int calcOffsetSetOrder(int recnum, StructureMembers.Member m)
calcOffsetSetOrder
in class ArrayStructureBB
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |