ucar.ma2
Class ArrayStructureBBpos

java.lang.Object
  extended by ucar.ma2.Array
      extended by ucar.ma2.ArrayStructure
          extended by ucar.ma2.ArrayStructureBB
              extended by ucar.ma2.ArrayStructureBBpos

public class ArrayStructureBBpos
extends ArrayStructureBB

Variation of ArrayStructureBB, where the offsets of the records into the ByteBuffer are uneven and must be passed in by the user.

Author:
caron

Constructor Summary
ArrayStructureBBpos(StructureMembers members, int[] shape, java.nio.ByteBuffer bbuffer, int[] positions)
          Construct an ArrayStructureBB with the given ByteBuffer.
 
Method Summary
 
Methods inherited from class ucar.ma2.ArrayStructureBB
addObjectToHeap, getArraySequence, getArrayStructure, getByteBuffer, getJavaArrayByte, getJavaArrayChar, getJavaArrayDouble, getJavaArrayFloat, getJavaArrayInt, getJavaArrayLong, getJavaArrayShort, getJavaArrayString, getScalarByte, getScalarChar, getScalarDouble, getScalarFloat, getScalarInt, getScalarLong, getScalarShort, getScalarString, getScalarStructure, main, setOffsets
 
Methods inherited from class ucar.ma2.ArrayStructure
convertScalarDouble, convertScalarFloat, convertScalarInt, copy, createView, extractMemberArray, findMember, getArray, 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, setBoolean, setBoolean, setByte, setByte, setChar, setChar, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setMemberArray, setObject, setObject, setShort, setShort
 
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, isUnsigned, makeArray, makeArray, makeArray, next, nextBoolean, nextByte, nextChar, nextDouble, nextFloat, nextInt, nextLong, nextShort, permute, reduce, reduce, resetLocalIterator, reshape, section, section, section, sectionNoReduce, sectionNoReduce, setUnsigned, shapeToString, slice, toString, transpose
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayStructureBBpos

public ArrayStructureBBpos(StructureMembers members,
                           int[] shape,
                           java.nio.ByteBuffer bbuffer,
                           int[] positions)
Construct an ArrayStructureBB with the given ByteBuffer.

Parameters:
members - the list of structure members.
shape - the shape of the structure array
bbuffer - 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()