ucar.ma2
Class ArraySequence
java.lang.Object
ucar.ma2.Array
ucar.ma2.ArrayStructure
ucar.ma2.ArraySequence
public class ArraySequence
- extends ArrayStructure
ArraySequence is the default way to contain the data for a Sequence, using a StructureDataIterator.
A Sequence is a one-dimensional Structure with indeterminate length.
The only data access is through getStructureIterator().
So an ArraySequence is really a wrapper around a StructureDataIterator, adapting it to an Array.
- Since:
- Feb 27, 2008
- Author:
- caron
| Methods inherited from class ucar.ma2.ArrayStructure |
convertScalarDouble, convertScalarFloat, convertScalarInt, copy, createView, findMember, getArray, getArraySequence, getArrayStructure, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getJavaArrayByte, getJavaArrayChar, getJavaArrayDouble, getJavaArrayFloat, getJavaArrayInt, getJavaArrayLong, getJavaArrayShort, getJavaArrayString, getLong, getMembers, getObject, getScalarByte, getScalarChar, getScalarDouble, getScalarFloat, getScalarInt, getScalarLong, getScalarObject, getScalarShort, getScalarString, getScalarStructure, getShort, getStorage, getStructureData, getStructureData, getStructureMemberNames, getStructureMembers, getStructureSize, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setMemberArray, setObject, setShort |
| Methods inherited from class ucar.ma2.Array |
arraycopy, copyTo1DJavaArray, copyToNDJavaArray, factory, factory, factory, factory, factoryConstant, flip, get1DJavaArray, getDataAsByteBuffer, getIndex, getIndexIterator, getIndexIteratorFast, getRangeIterator, getRank, getShape, getSize, hasNext, makeArray, makeArray, makeArray, next, nextBoolean, nextByte, nextChar, nextDouble, nextFloat, nextInt, nextLong, nextShort, permute, reduce, reduce, resetLocalIterator, reshape, section, section, section, sectionNoReduce, sectionNoReduce, shapeToString, slice, transpose |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ArraySequence
public ArraySequence(StructureMembers members,
StructureDataIterator iter,
int count)
getElementType
public java.lang.Class getElementType()
- Description copied from class:
Array
- Get the element class type of this Array
- Overrides:
getElementType in class ArrayStructure
- Returns:
- the class of the element
getStructureDataIterator
public StructureDataIterator getStructureDataIterator()
throws java.io.IOException
- Overrides:
getStructureDataIterator in class ArrayStructure
- Throws:
java.io.IOException
getStructureDataCount
public int getStructureDataCount()
extractMemberArray
public Array extractMemberArray(StructureMembers.Member m)
throws java.io.IOException
- Description copied from class:
ArrayStructure
- Extract data for one member, over all structures.
- Overrides:
extractMemberArray in class ArrayStructure
- Parameters:
m - get data from this StructureMembers.Member.
- Returns:
- Array values.
- Throws:
java.io.IOException - on read error (only happens for Sequences, otherwise data is already read)
toString
public java.lang.String toString()
- Overrides:
toString in class Array