Package ucar.ma2
Class ArrayStructureBBpos
java.lang.Object
ucar.ma2.Array
ucar.ma2.ArrayStructure
ucar.ma2.ArrayStructureBB
ucar.ma2.ArrayStructureBBpos
- All Implemented Interfaces:
Iterable<StructureData>
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 -
Constructor Summary
ConstructorsConstructorDescriptionArrayStructureBBpos(StructureMembers members, int[] shape, ByteBuffer bbuffer, int[] positions) Construct an ArrayStructureBB with the given ByteBuffer. -
Method Summary
Methods inherited from class ucar.ma2.ArrayStructureBB
addObjectToHeap, addObjectToHeap, getArray, getArraySequence, getArrayStructure, getByteBuffer, getHeap, getJavaArrayByte, getJavaArrayChar, getJavaArrayDouble, getJavaArrayFloat, getJavaArrayInt, getJavaArrayLong, getJavaArrayShort, getJavaArrayString, getScalarByte, getScalarChar, getScalarDouble, getScalarFloat, getScalarInt, getScalarLong, getScalarShort, getScalarString, getScalarStructure, setOffsets, showInternal, showOffsetsMethods inherited from class ucar.ma2.ArrayStructure
convertScalarDouble, convertScalarFloat, convertScalarInt, convertScalarLong, copy, createView, extractMemberArray, findMember, getArrayObject, getBoolean, getBoolean, getByte, getByte, getChar, getChar, getDouble, getDouble, getElementType, getFloat, getFloat, getInt, getInt, getLong, getLong, getMembers, getObject, getObject, getScalarObject, getShort, getShort, getSizeBytes, getStorage, getStructureData, getStructureData, getStructureDataIterator, getStructureMemberNames, getStructureMembers, getStructureSize, iterator, sectionNoReduce, setBoolean, setBoolean, setByte, setByte, setChar, setChar, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setMemberArray, setObject, setObject, setShort, setShort, showInternalMembersMethods inherited from class ucar.ma2.Array
arraycopy, copyTo1DJavaArray, copyToNDJavaArray, factory, factory, factory, factory, factoryConstant, factoryCopy, flip, get1DJavaArray, get1DJavaArray, getDataAsByteBuffer, getDataAsByteBuffer, getDataAsByteBuffer, getDataType, getIndex, getIndexIterator, getRangeIterator, getRank, getShape, getSize, hasNext, isConstant, isUnsigned, isVlen, makeArray, makeArray, makeArray, makeArrayRankPlusOne, makeFromJavaArray, makeFromJavaArray, makeObjectArray, makeVlenArray, next, nextBoolean, nextByte, nextChar, nextDouble, nextFloat, nextInt, nextLong, nextShort, permute, reduce, reduce, resetLocalIterator, reshape, reshapeNoCopy, section, section, section, sectionNoReduce, shapeToString, slice, toString, transposeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ArrayStructureBBpos
public ArrayStructureBBpos(StructureMembers members, int[] shape, ByteBuffer bbuffer, int[] positions) Construct an ArrayStructureBB with the given ByteBuffer.- Parameters:
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()
-