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
DoubleDataType
Int64
Int64DataType
JSON
JSONDataType
JSONDelta
RecordV2
RecordV2DataType
RecordV2Delta
StringDataType

Methods


binary()

Returns:

The Binary data type

Type
diffusion.datatypes.BinaryDataType

double()

Returns:

The Double data type

Type
diffusion.datatypes.DoubleDataType

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

Type
diffusion.datatypes.DataType

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

Type
diffusion.datatypes.DataType

int64()

Returns:

The Int64 data type

Type
diffusion.datatypes.Int64DataType

json()

Returns:

The JSON data type

Type
diffusion.datatypes.JSONDataType

recordv2()

Returns:

The RecordV2 data type

Type
diffusion.datatypes.RecordV2DataType

string()

Returns:

The String data type

Type
diffusion.datatypes.StringDataType