Constructor and Description |
---|
AttributeImpl(HdfBackingStorage hdfBackingStorage,
Node node,
AttributeMessage message) |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
getBuffer()
Gets the buffer for this attribute
|
java.lang.Object |
getData()
Gets the data from the attributes dataset and converts it into a Java array
of dimensions of the dataset as returned by
Attribute.getDimensions() . |
int[] |
getDimensions()
Gets the dimensions of this attributes dataset
|
java.lang.Class<?> |
getJavaType()
Gets the Java type that will be used to represent this attributes data.
|
java.lang.String |
getName()
Gets the name of this
Attribute |
Node |
getNode()
|
long |
getSize()
Gets the total number of elements in this attributes dataset.
|
long |
getSizeInBytes()
Gets the size of this dataset.
|
boolean |
isEmpty()
Checks if this dataset is empty i.e holds no data and no storage is
allocated.
|
boolean |
isScalar()
Checks if this dataset is scalar i.e is a single element with no dimensions.
|
public AttributeImpl(HdfBackingStorage hdfBackingStorage, Node node, AttributeMessage message)
public java.lang.String getName()
Attribute
Attribute
public long getSize()
Attribute
getSize
in interface Attribute
Dataset.getSize()
public long getSizeInBytes()
Attribute
number of elements * size of each element
getSizeInBytes
in interface Attribute
Dataset.getSizeInBytes()
public int[] getDimensions()
Attribute
getDimensions
in interface Attribute
Dataset.getDimensions()
public java.lang.Object getData()
Attribute
Attribute.getDimensions()
. The
type of the array will be the return value of Attribute.getJavaType()
.getData
in interface Attribute
Dataset.getData()
public boolean isEmpty()
Attribute
isEmpty
in interface Attribute
true
if dataset if empty false
otherwiseDataset.isEmpty()
public boolean isScalar()
Attribute
isScalar
in interface Attribute
true
if dataset if scalar false
otherwiseDataset.isScalar()
public java.lang.Class<?> getJavaType()
Attribute
getJavaType
in interface Attribute
Dataset.getJavaType()