ITimeSeriesBlockDataSerializer<TValue,TCompressedValue> Interface
HAKOM.TSM.Net.Api.Data.TimeSeries.Compression
Section titled “HAKOM.TSM.Net.Api.Data.TimeSeries.Compression”Interface for serializing and deserializing time series block data.
public interface ITimeSeriesBlockDataSerializer<TValue,TCompressedValue> : HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ITimeSeriesBlockDataSerializer, HAKOM.DependencyInjection.Core.Net.Api.IRequiresConfiguration where TValue : System.IComparable<TValue>, System.IEquatable<TValue>Type parameters
Section titled “Type parameters”TValue
The type of values in the time series data.
TCompressedValue
The type of values in the compressed time series data.
Implements ITimeSeriesBlockDataSerializer, IRequiresConfiguration
Methods
Section titled “Methods”ITimeSeriesBlockDataSerializer<TValue,TCompressedValue>.Configure(CompressionMode) Method
Section titled “ITimeSeriesBlockDataSerializer<TValue,TCompressedValue>.Configure(CompressionMode) Method”Configures the serializer for CompressionMode.
void Configure(HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.CompressionMode compressionMode);Parameters
Section titled “Parameters”compressionMode CompressionMode
The compression mode to use.
ITimeSeriesBlockDataSerializer<TValue,TCompressedValue>.Deserialize(IAsyncEnumerable<ICompressedTimeSeriesData<TCompressedValue>>, CancellationToken) Method
Section titled “ITimeSeriesBlockDataSerializer<TValue,TCompressedValue>.Deserialize(IAsyncEnumerable<ICompressedTimeSeriesData<TCompressedValue>>, CancellationToken) Method”Deserializes the given compressed time series data.
System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ITimeSeriesBlockData<TValue>> Deserialize(System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ICompressedTimeSeriesData<TCompressedValue>> compressedTimeSeriesData, System.Threading.CancellationToken cancellationToken);Parameters
Section titled “Parameters”compressedTimeSeriesData System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ICompressedTimeSeriesData<TCompressedValue>>
The list of ICompressedTimeSeriesData<TCompressedValue> to deserialize.
cancellationToken System.Threading.CancellationToken
A token that may be used to cancel the operation.
Returns
Section titled “Returns”System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ITimeSeriesBlockData<TValue>>
An System.Collections.Generic.IAsyncEnumerable<> of time series block data.
ITimeSeriesBlockDataSerializer<TValue,TCompressedValue>.Serialize(IAsyncEnumerable<ITimeSeriesBlockData<TValue>>, CancellationToken) Method
Section titled “ITimeSeriesBlockDataSerializer<TValue,TCompressedValue>.Serialize(IAsyncEnumerable<ITimeSeriesBlockData<TValue>>, CancellationToken) Method”Serializes the given time series block data.
System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ICompressedTimeSeriesData<TCompressedValue>> Serialize(System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ITimeSeriesBlockData<TValue>> timeSeriesBlockData, System.Threading.CancellationToken cancellationToken);Parameters
Section titled “Parameters”timeSeriesBlockData System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ITimeSeriesBlockData<TValue>>
The list of ITimeSeriesBlockData<TValue> to serialize.
cancellationToken System.Threading.CancellationToken
A token that may be used to cancel the operation.
Returns
Section titled “Returns”System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ICompressedTimeSeriesData<TCompressedValue>>
An System.Collections.Generic.IAsyncEnumerable<> of compressed time series block data.
ITimeSeriesBlockDataSerializer<TValue,TCompressedValue>.TryDeserialize(IAsyncEnumerable<ICompressedTimeSeriesData<TCompressedValue>>, CancellationToken) Method
Section titled “ITimeSeriesBlockDataSerializer<TValue,TCompressedValue>.TryDeserialize(IAsyncEnumerable<ICompressedTimeSeriesData<TCompressedValue>>, CancellationToken) Method”Deserializes the given serialized time series block data.
System.Collections.Generic.IAsyncEnumerable<HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ITimeSeriesBlockData<TValue>>> TryDeserialize(System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ICompressedTimeSeriesData<TCompressedValue>> compressedTimeSeriesData, System.Threading.CancellationToken cancellationToken);Parameters
Section titled “Parameters”compressedTimeSeriesData System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ICompressedTimeSeriesData<TCompressedValue>>
The list of ICompressedTimeSeriesData<TCompressedValue> to deserialize.
cancellationToken System.Threading.CancellationToken
A token that may be used to cancel the operation.
Returns
Section titled “Returns”System.Collections.Generic.IAsyncEnumerable<HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ITimeSeriesBlockData<TValue>>>
A stream of Result<TValue> of the deserialized time series block data.
ITimeSeriesBlockDataSerializer<TValue,TCompressedValue>.TrySerialize(IAsyncEnumerable<ITimeSeriesBlockData<TValue>>, CancellationToken) Method
Section titled “ITimeSeriesBlockDataSerializer<TValue,TCompressedValue>.TrySerialize(IAsyncEnumerable<ITimeSeriesBlockData<TValue>>, CancellationToken) Method”Serializes the given time series block data.
System.Collections.Generic.IAsyncEnumerable<HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ICompressedTimeSeriesData<TCompressedValue>>> TrySerialize(System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ITimeSeriesBlockData<TValue>> timeSeriesBlockData, System.Threading.CancellationToken cancellationToken);Parameters
Section titled “Parameters”timeSeriesBlockData System.Collections.Generic.IAsyncEnumerable<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ITimeSeriesBlockData<TValue>>
The list of ITimeSeriesBlockData<TValue> to serialize.
cancellationToken System.Threading.CancellationToken
A token that may be used to cancel the operation.
Returns
Section titled “Returns”System.Collections.Generic.IAsyncEnumerable<HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Data.TimeSeries.Compression.ICompressedTimeSeriesData<TCompressedValue>>>
An System.Collections.Generic.IAsyncEnumerable<> containing a Result<TValue> of the serialized time series block data.