public interface Attribute
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
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.
|
Node getNode()
java.lang.String getName()
Attribute
long getSize()
Dataset.getSize()
long getSizeInBytes()
number of elements * size of each element
Dataset.getSizeInBytes()
int[] getDimensions()
Dataset.getDimensions()
java.lang.Object getData()
getDimensions()
. The
type of the array will be the return value of getJavaType()
.Dataset.getData()
java.lang.Class<?> getJavaType()
Dataset.getJavaType()
boolean isScalar()
true
if dataset if scalar false
otherwiseDataset.isScalar()
boolean isEmpty()
true
if dataset if empty false
otherwiseDataset.isEmpty()
java.nio.ByteBuffer getBuffer()