public abstract class CDMTypeFcns
extends java.lang.Object
Constructor and Description |
---|
CDMTypeFcns() |
Modifier and Type | Method and Description |
---|---|
static Array |
arrayify(DapType type,
java.lang.Object o) |
static Array |
arrayify(DataType datatype,
java.lang.Object o) |
static java.lang.Object |
attributeParse(DataType cdmtype,
EnumTypedef en,
java.lang.Object o)
convert a string to a specified cdmtype
Note that if en is defined, then we attempt
to convert the string as enum const
|
static java.lang.Object |
bytesAsTypeVec(DapType daptype,
byte[] bytes) |
static java.lang.Class |
cdmElementClass(DataType dt) |
static DapType |
cdmtype2daptype(DataType datatype) |
static java.lang.Object |
convert(TypeSort dstsort,
TypeSort srcsort,
java.lang.Object src) |
static java.lang.Object |
createVector(DapType type,
long count) |
static java.lang.Object |
createVector(DataType type,
long count) |
static DataType |
daptype2cdmtype(DapType type) |
static int |
daptypeSize(TypeSort atomtype)
Conmpute the size, in databuffer,
of the daptype wrt to a serialization;
0 if undefined.
|
static void |
decodebytes(java.nio.ByteOrder remoteorder,
DapType daptype,
byte[] bytes,
java.lang.Object vector) |
static DataType |
enumTypeFor(DapType type) |
static long |
extract(TypeSort sort,
java.lang.Object value) |
static boolean |
isPrimitiveVector(DataType type,
java.lang.Object o) |
static java.util.List |
listify(java.lang.Object vector) |
static boolean |
signify(DapType type) |
static void |
vectorcopy(DapType datatype,
java.lang.Object src,
java.lang.Object dst,
long srcoffset,
long dstoffset) |
public static java.lang.Class cdmElementClass(DataType dt)
public static java.lang.Object createVector(DataType type, long count)
public static boolean signify(DapType type)
public static java.lang.Object createVector(DapType type, long count)
public static int daptypeSize(TypeSort atomtype)
atomtype
- The type of interestpublic static long extract(TypeSort sort, java.lang.Object value)
public static java.lang.Object convert(TypeSort dstsort, TypeSort srcsort, java.lang.Object src)
public static void vectorcopy(DapType datatype, java.lang.Object src, java.lang.Object dst, long srcoffset, long dstoffset) throws DapException
DapException
public static java.lang.Object attributeParse(DataType cdmtype, EnumTypedef en, java.lang.Object o)
cdmtype
- en
- o
- public static boolean isPrimitiveVector(DataType type, java.lang.Object o)
public static java.util.List listify(java.lang.Object vector)
public static java.lang.Object bytesAsTypeVec(DapType daptype, byte[] bytes)
public static void decodebytes(java.nio.ByteOrder remoteorder, DapType daptype, byte[] bytes, java.lang.Object vector)