Interface IMapper
This interface provides an API allowing caller to get the value at a specified timestamp, or the timestamp for a particular value, for a mapper that can map between time and (arbitrary) value.
Namespace: MESL.SqlRace.Domain.Infrastructure.Mappers
Assembly: MESL.SqlRace.Domain.dll
Syntax
public interface IMapper
Methods
GetTimestamp(Double)
Gets the timestamp for the specified value.
Declaration
long GetTimestamp(double value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | value | The value. |
Returns
| Type | Description |
|---|---|
| System.Int64 | The timestamp for the specified value |
GetValue(Int64)
Gets the value for the specified timestamp.
Declaration
double GetValue(long timestamp)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | timestamp | The timestamp. |
Returns
| Type | Description |
|---|---|
| System.Double | The value for the specified timestamp |