Interface IExecutionContext
Describes a function execution context.
Namespace: MESL.SqlRace.Domain.Functions
Assembly: MESL.SqlRace.Domain.dll
Syntax
public interface IExecutionContext
Properties
CalculationModeInfo
Gets or sets the calculation mode.
Declaration
ICalculationModeInfo CalculationModeInfo { get; set; }
Property Value
Type | Description |
---|---|
ICalculationModeInfo | The calculation mode. |
Constants
Gets constants attached to the execution context
Declaration
IReadOnlyDictionary<string, ConstantObject> Constants { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyDictionary<System.String, ConstantObject> |
FunctionInput
Gets or sets the function input.
Declaration
IFunctionInput FunctionInput { get; set; }
Property Value
Type | Description |
---|---|
IFunctionInput | The function input. |
FunctionMode
Gets or sets the function mode
Declaration
FunctionMode FunctionMode { get; set; }
Property Value
Type | Description |
---|---|
MESL.SqlRace.Functions.Interfaces.Enums.FunctionMode | The function mode. |
FunctionOutput
Gets or sets the function output.
Declaration
IFunctionOutput FunctionOutput { get; set; }
Property Value
Type | Description |
---|---|
IFunctionOutput | The function output. |
InterpolateBetweenSamples
Gets or sets whether interpolation should be used between samples
Declaration
bool InterpolateBetweenSamples { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
JoinGapsAroundNull
Gets or sets whether to join gaps around null.
Declaration
bool JoinGapsAroundNull { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Whether to join gaps around null. |
Session
Gets or sets the session.
Declaration
ISession Session { get; }
Property Value
Type | Description |
---|---|
ISession | The session. |
State
Gets or sets the state.
Declaration
object State { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The state. |
Methods
ExecuteFunction(String, Int64)
Executes the function.
Declaration
double ExecuteFunction(string functionName, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
System.String | functionName | Name of the function. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double |
GetProcessor<T>(Guid, Int32)
Gets or creates a processor in the slot specified.
Declaration
T GetProcessor<T>(Guid processorUniqueId, int processorSlot)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | processorUniqueId | The processor's unique ID. |
System.Int32 | processorSlot | The processor's slot. |
Returns
Type | Description |
---|---|
T | A new instance of the processor with the given unique identifier. |
Type Parameters
Name | Description |
---|---|
T |