Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DataTypesImpl

The implementation of the DataTypes interface

Hierarchy

  • DataTypesImpl

Implements

Index

Properties

Private Readonly anyImpl

anyImpl: AnyDataTypeImpl = new AnyDataTypeImpl()

The Any datatype

Private Readonly binaryImpl

binaryImpl: BinaryDataTypeImpl = new BinaryDataTypeImpl()

The binary datatype

Private Readonly doubleImpl

doubleImpl: DoubleDataTypeImpl = new DoubleDataTypeImpl()

The double datatype

Private Readonly int64Impl

int64Impl: Int64DataTypeImpl = new Int64DataTypeImpl()

The Int64 datatype

Private Readonly jsonImpl

jsonImpl: JSONDataTypeImpl = new JSONDataTypeImpl()

The JSON datatype

Private Readonly recordv2Impl

recordv2Impl: RecordV2DataTypeImpl = new RecordV2DataTypeImpl()

The RecordV2 datatype

Private Readonly stringImpl

stringImpl: StringDataTypeImpl = new StringDataTypeImpl()

The string datatype

Methods

any

  • Get the Any data type

    Returns AnyDataTypeImpl

    the Any data type

binary

  • Get the binary data type

    Returns BinaryDataTypeImpl

    the Binary data type

double

  • Get the double data type

    Returns DoubleDataTypeImpl

    the Double data type

get

  • get(type: any): DataType<any, any, any> | null
  • Obtain a DataType implementation by type name, topic type, or value class

    Parameters

    • type: any

      the type name as returned by DataType.name, the value or a topic type.

    Returns DataType<any, any, any> | null

    the data type or null if no datatype was found

getByClass

  • getByClass(valueClass: {}): DataType<any, any, any>
  • inheritdoc

    Parameters

    • valueClass: {}

    Returns DataType<any, any, any>

getByClassSafely

  • getByClassSafely(valueClass: {}): DataType<any, any, any> | undefined
  • Obtain a DataType implementation by value class.

    For DoubleDataType, the associated value class is Number.

    Parameters

    • valueClass: {}

      the class

    Returns DataType<any, any, any> | undefined

    the data type or undefined if no data type was found

getByName

  • getByName(name: string): DataType<any, any, any> | undefined
  • Obtain a DataType implementation by type name

    Parameters

    Returns DataType<any, any, any> | undefined

    the data type or null if no datatype was found

getByValue

  • getByValue(value: any): DataType<any, any, any> | undefined
  • Obtain a DataType implementation by topic type, or value class

    Parameters

    • value: any

    Returns DataType<any, any, any> | undefined

    the data type or undefined if no datatype was found

getChecked

  • getChecked(type: any): DataType<any, any, any>
  • Obtain a DataType implementation by type name, topic type, or value class

    throws

    an IllegalArgumentError if there is no data type for provided class

    Parameters

    • type: any

    Returns DataType<any, any, any>

    the data type or null if no datatype was found

getValueClassChecked

  • getValueClassChecked(type: any): {} | undefined
  • Obtain a value class implementation by DataType, string, or topic type

    For DoubleDataType, the associated value class is Number.

    throws

    an IllegalArgumentError if there is no data type for provided class

    Parameters

    • type: any

    Returns {} | undefined

    the data type or undefined if no data type was found

int64

  • Get the Int64 data type

    Returns Int64DataTypeImpl

    the Int64 data type

json

  • Get the JSON data type

    Returns JSONDataTypeImpl

    the JSON data type

recordv2

  • Get the record V2 data type

    Returns RecordV2DataTypeImpl

    the RecordV2 data type

string

  • Get the string data type

    Returns StringDataTypeImpl

    the String data type

timeseries

  • Get the timeseries data type

    Type parameters

    • ValueType

    • SourceType

    Parameters

    • valueType: DataType<ValueType, SourceType, any>

      the value type of the timeseries data type

    Returns DataType<Event<ValueType>, Event<SourceType>, Bytes>

    a timeseries data type

Copyright © 2025 DiffusionData Ltd. All Rights Reserved.