DataStreamBatch class

A collection of non-overlapping, ordered, data measurements.

The unit of upload to a DataStreamService with DataStreamService.appendToDataStreams. All measurements belong to the same dataStream.

Annotations
  • @JsonSerializable.new(includeIfNull: false, explicitToJson: true)

Constructors

DataStreamBatch({required DataStreamId dataStream, required int firstSequenceId, required List<Measurement> measurements, required Set<int> triggerIds})
DataStreamBatch.fromJson(Map<String, dynamic> json)
factory

Properties

dataStream ↔ DataStreamId
The data stream these measurements belong to.
getter/setter pair
firstSequenceId ↔ int
The sequence id of the first measurement; the rest follow in order.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
measurements ↔ List<Measurement>
The measurements, ordered in time.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
triggerIds ↔ Set<int>
Ids of the triggers (see StudyProtocol.triggers) which caused the measurements to be collected.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited