DataChunk.DataType
Constructor and Description |
---|
FloatChunk(float[] floatData,
java.lang.Float missing)
Creates a new initialized data chunk with scaling parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ChunkVisitor visitor)
Accepts a visitor in this chunk.
|
DataChunk |
blankCopy()
Creates a blank copy of this data chunk.
|
DataChunk |
blankCopyWithValues(int values)
Creates a blank copy of this data chunk with the specified number of
data values.
|
DataChunk.DataType |
getExternalType()
Gets the external data type that values in this chunk are meant
to represent.
|
float[] |
getFloatData()
Gets the primitive array used to store data.
|
java.lang.Float |
getMissing()
Gets the missing value.
|
java.lang.Object |
getPrimitiveData()
Gets the primitive chunk data.
|
int |
getValues()
Gets the number of values held by this chunk.
|
public FloatChunk(float[] floatData, java.lang.Float missing)
floatData
- the float data values.missing
- the missing data value, or null for none.public DataChunk.DataType getExternalType()
DataChunk
getExternalType
in interface DataChunk
public void accept(ChunkVisitor visitor)
DataChunk
public int getValues()
DataChunk
public java.lang.Object getPrimitiveData()
DataChunk
getPrimitiveData
in interface DataChunk
public DataChunk blankCopy()
DataChunk
public DataChunk blankCopyWithValues(int values)
DataChunk
blankCopyWithValues
in interface DataChunk
values
- the number of data values in the new blank data chunk.public java.lang.Float getMissing()
public float[] getFloatData()