Diffusion datatype implementations.
Datatypes are accessed via the diffusion
singleton.
- Since:
-
- 5.7
Examples
// Get the JSON datatype var json = diffusion.datatypes.json();
// Get a datatype via name var json = diffusion.datatypes.get('json');
Classes
- Binary
- BinaryDataType
- BinaryDelta
- Bytes
- DataType
- DeltaType
- DoubleDataType
- Int64
- Int64DataType
- JSON
- JSONDataType
- JSONDelta
- RecordV2
- RecordV2DataType
- RecordV2Delta
- StringDataType
Methods
-
binary()
-
Returns:
The Binary data type
-
double()
-
Returns:
The Double data type
-
get(name)
-
Obtain a diffusion.datatypes.DataType implementation by type name.
Parameters:
Name Type Description name
String The type name, as returned by diffusion.datatypes.DataType#name.
Throws:
Error if there is no data type for provided name
Returns:
The data type
-
getByClass(valueClass)
-
Obtain a diffusion.datatypes.DataType implementation by value class.
For diffusion.datatypes.DoubleDataType, the associated value class is
Number
.Parameters:
Name Type Description valueClass
function the class
Throws:
-
if there is no data type for provided class
- Type
- Error
Returns:
the data type
-
-
int64()
-
Returns:
The Int64 data type
-
json()
-
Returns:
The JSON data type
-
recordv2()
-
Returns:
The RecordV2 data type
-
string()
-
Returns:
The String data type