Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ValueStreamTimeseriesAdapter

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected Readonly datatype

datatype: TimeSeriesEventDataType<any, any>

The data type of the value stream

Private Readonly destValuetype

destValuetype: AbstractDataType<any, any, any>

Protected Readonly sourceDatatype

sourceDatatype: TimeSeriesEventDataType<any, any>

The datatype of the topic

Private Readonly sourceValuetype

sourceValuetype: AbstractDataType<any, any, any>

Protected Readonly stream

The underlying stream adapter

Methods

Protected getSourceDataType

onDelta

  • onDelta(path: string, specification: TopicSpecification, oldContent: Uint8Array | null, content: Uint8Array, delta: BinaryDelta | null, oldValue: any, newValue: any): void
  • Handle a delta event

    throws

    an InvalidDataError if the value is incompatible with the data type, or buffer does not represent a valid value.

    Parameters

    • path: string

      the topic path

    • specification: TopicSpecification

      the topic specification

    • oldContent: Uint8Array | null

      the buffer containing the old content

    • content: Uint8Array

      the content that was received

    • delta: BinaryDelta | null

      the delta

    • oldValue: any

      the old value

    • newValue: any

      the new value

    Returns void

onOpen

  • onOpen(): void

onSubscription

onSubscriptionError

onUnsubscription

onValue

  • onValue(path: string, specification: TopicSpecification, oldContent: Uint8Array | null, content: Uint8Array, oldValue: any, newValue: any): void
  • Handle a value event

    throws

    an InvalidDataError if the value is incompatible with the data type, or buffer does not represent a valid value.

    Parameters

    • path: string

      the topic path

    • specification: TopicSpecification

      the topic specification

    • oldContent: Uint8Array | null

      the buffer containing the old content

    • content: Uint8Array

      the content that was received

    • oldValue: any

      the old value

    • newValue: any

      the new value

    Returns void

Protected readAsDataType

  • readAsDataType(buffer: Uint8Array, sourceEvent: any): any
  • inheritdoc

    Parameters

    • buffer: Uint8Array
    • sourceEvent: any

    Returns any

selects

  • Check if the stream adapter selects a topic specification

    Parameters

    Returns boolean

    true if the adapter matches the specification

Copyright © 2025 DiffusionData Ltd. All Rights Reserved.