ucar.ma2
Class ArraySequence
java.lang.Object
ucar.ma2.Array
ucar.ma2.ArrayStructure
ucar.ma2.ArraySequence
public class ArraySequence
- extends ArrayStructure
ArraySequence is the 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, getArrayObject, getArraySequence, getArrayStructure, getBoolean, getBoolean, getByte, getByte, getChar, getChar, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getJavaArrayByte, getJavaArrayChar, getJavaArrayDouble, getJavaArrayFloat, getJavaArrayInt, getJavaArrayLong, getJavaArrayShort, getJavaArrayString, getLong, getLong, getMembers, getObject, getObject, getScalarByte, getScalarChar, getScalarDouble, getScalarFloat, getScalarInt, getScalarLong, getScalarObject, getScalarShort, getScalarString, getScalarStructure, getShort, getShort, getStorage, getStructureData, getStructureData, 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, 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:
- StructureDataIterator.class
getStructureDataIterator
public StructureDataIterator getStructureDataIterator()
throws java.io.IOException
- Overrides:
getStructureDataIterator
in class ArrayStructure
- Throws:
java.io.IOException
getStructureDataCount
public int getStructureDataCount()
getSizeBytes
public long getSizeBytes()
- Description copied from class:
Array
- Get the total number of bytes in the array.
- Overrides:
getSizeBytes
in class ArrayStructure
- Returns:
- total number of bytes in the array
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