Package nz.org.riskscape.hdf5.types
Class H5ArrayType
java.lang.Object
nz.org.riskscape.hdf5.H5Object
nz.org.riskscape.hdf5.types.H5Type
nz.org.riskscape.hdf5.types.H5ArrayType
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
boolean
read
(ByteBuffer outBuf, int offset) float[]
readFloats
(ByteBuffer outBuf, int offset) Efficient alternative to read for returning whatever numeric value is held in in the super type in to an array of floats.toString()
nz.org.riskscape.engine.types.Type
toType()
Methods inherited from class nz.org.riskscape.hdf5.types.H5Type
build, canEqual, equals, getClassName, getDataSize, hashCode, readVlen
Methods inherited from class nz.org.riskscape.hdf5.H5Object
getPointer
-
Constructor Details
-
H5ArrayType
protected H5ArrayType(long id)
-
-
Method Details
-
getDimensions
-
read
- Specified by:
read
in classH5Type
- Returns:
- a java object that represents the data that was stored in the outBuf if it was of this data type.
This java object should be coercable in to the type returned from
H5Type.toType()
-
readFloats
Efficient alternative to read for returning whatever numeric value is held in in the super type in to an array of floats.
- Throws:
ClassCastException
- if h5 super type is not numeric
-
toType
public nz.org.riskscape.engine.types.Type toType() -
toString
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classH5Type
-
isVariableLength
public boolean isVariableLength()- Specified by:
isVariableLength
in classH5Type
- Returns:
- true if this type is, or contains something, of variable length. As yet, this H5 support in this plugin can not read datasets of variable length type
-
getSuperType
-
getDimensionsSum
public int getDimensionsSum()
-