Namespace: datatypes

diffusion. datatypes

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
JSON
JSONDataType
JSONDelta

Methods

binary() → {diffusion.datatypes.BinaryDataType}

Returns:
The Binary data type
Type
diffusion.datatypes.BinaryDataType

get(name) → {diffusion.datatypes.DataType}

Obtain a diffusion.datatypes.DataType implementation by type name.
Parameters:
Name Type Description
name String The type name, as returned by diffusion.datatypes.DataType#getTypeName.
Throws:
Error if there is no data type for provided name
Returns:
The data type
Type
diffusion.datatypes.DataType

json() → {diffusion.datatypes.JSONDataType}

Returns:
The JSON data type
Type
diffusion.datatypes.JSONDataType