public class DataChunkFactory
extends java.lang.Object
DataChunkFactory
class create appropriate
instances of the DataChunk
class using a primitive data array.Modifier and Type | Method and Description |
---|---|
DataChunk |
create(java.lang.Object data,
boolean isUnsigned,
java.lang.Object missingValue,
PackingScheme packing)
Creates a new data chunk.
|
static DataChunkFactory |
getInstance()
Gets the singleton instance of this class.
|
public static DataChunkFactory getInstance()
public DataChunk create(java.lang.Object data, boolean isUnsigned, java.lang.Object missingValue, PackingScheme packing)
data
- the primitive array of data values to be used in the chunk.isUnsigned
- the flag to indicate if the integer primitive values are
actually unsigned values packed into a signed primitive (eg: byte value in
the range [0..255] packaged as a signed byte in the range [-128..127]).missingValue
- the missing value used as a marker for invalid data,
or null for none.packing
- the packing scheme for floating point data values packed as
integer values in the chunk, or null for none.