Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DataTypesImpl

The implementation of the DataTypes interface

Hierarchy

  • DataTypesImpl

Implements

Index

Properties

Private anyImpl

anyImpl: any = new AnyDataTypeImpl()

The Any datatype

Private binaryImpl

binaryImpl: any = new BinaryDataTypeImpl()

The binary datatype

Private doubleImpl

doubleImpl: any = new DoubleDataTypeImpl()

The double datatype

Private int64Impl

int64Impl: any = new Int64DataTypeImpl()

The Int64 datatype

Private jsonImpl

jsonImpl: any = new JSONDataTypeImpl()

The JSON datatype

Private recordv2Impl

recordv2Impl: any = new RecordV2DataTypeImpl()

The RecordV2 datatype

Private stringImpl

stringImpl: any = new StringDataTypeImpl()

The string datatype

Methods

any

  • any(): any
  • Get the Any data type

    Returns any

    the Any data type

binary

double

get

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

    Parameters

    • type: any

    Returns DataType<any, any, any> | null

    the data type or null if no datatype was found

getByClass

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

    Parameters

    • valueClass: object

    Returns DataType<any, any, any>

getByClassSafely

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

    For DoubleDataType, the associated value class is Number.

    Parameters

    • valueClass: object

      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

    throws

    an Error if there is no data type for provided class

    Parameters

    • value: any

    Returns DataType<any, any, any> | undefined

    the data type or null 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 Error 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): object | undefined
  • Obtain a value class implementation by DataType, string, or topic type

    For DoubleDataType, the associated value class is Number.

    Parameters

    • type: any

    Returns object | undefined

    the data type or undefined if no data type was found

int64

json

recordv2

  • recordv2(): any
  • Get the record V2 data type

    Returns any

    the RecordV2 data type

string

timeseries

  • Get the timeseries data type

    Type parameters

    • ValueType

    • SourceType

    Parameters

    • valueType: DataType<ValueType, SourceType, any>

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

    a timeseries data type