Language

Streamable.AnyElement Method

Definition

Overloads

AnyElement<TKey,TPayload,TRegister,TAccumulator>(IAbstractPatternRoot<TKey, TPayload,TRegister,TAccumulator>, Expression<Func<TAccumulator>>, Expression<Func<TAccumulator,Boolean>>, Expression<Func<Int64, TPayload,TRegister,Boolean>>)

Add to the current pattern a new pattern symbol that matches any element

public static Microsoft.StreamProcessing.IPattern<TKey,TPayload,TRegister,TAccumulator> AnyElement<TKey,TPayload,TRegister,TAccumulator>(this Microsoft.StreamProcessing.IAbstractPatternRoot<TKey,TPayload,TRegister,TAccumulator> source, System.Linq.Expressions.Expression<Func<TAccumulator>> accumulatorInitialization, System.Linq.Expressions.Expression<Func<TAccumulator,bool>> accumulatorBoolField, System.Linq.Expressions.Expression<Func<long,TPayload,TRegister,bool>> fence);
static member AnyElement : Microsoft.StreamProcessing.IAbstractPatternRoot<'Key, 'Payload, 'Register, 'Accumulator> * System.Linq.Expressions.Expression<Func<'Accumulator>> * System.Linq.Expressions.Expression<Func<'Accumulator, bool>> * System.Linq.Expressions.Expression<Func<int64, 'Payload, 'Register, bool>> -> Microsoft.StreamProcessing.IPattern<'Key, 'Payload, 'Register, 'Accumulator>
<Extension()>
Public Function AnyElement(Of TKey, TPayload, TRegister, TAccumulator) (source As IAbstractPatternRoot(Of TKey, TPayload, TRegister, TAccumulator), accumulatorInitialization As Expression(Of Func(Of TAccumulator)), accumulatorBoolField As Expression(Of Func(Of TAccumulator, Boolean)), fence As Expression(Of Func(Of Long, TPayload, TRegister, Boolean))) As IPattern(Of TKey, TPayload, TRegister, TAccumulator)

Type Parameters

TKey

Key type

TPayload

Payload type

TRegister

Result type (output of matcher is the register at an accepting state of the AFA)

TAccumulator

Accumulator type

Parameters

accumulatorInitialization
Expression<Func<TAccumulator>>

Initializer function for the accumulator

accumulatorBoolField
Expression<Func<TAccumulator,Boolean>>
fence
Expression<Func<Int64,TPayload,TRegister,Boolean>>

Condition that must be true for the transition to occur

Returns

The newly constructed pattern

Applies to

AnyElement<TKey,TPayload,TRegister>(IAbstractPatternRoot<TKey,TPayload,TRegister,Boolean>, Expression<Func<Int64,TPayload,TRegister,Boolean>>)

Add to the current pattern a new pattern symbol that matches any element

public static Microsoft.StreamProcessing.IPattern<TKey,TPayload,TRegister,bool> AnyElement<TKey,TPayload,TRegister>(this Microsoft.StreamProcessing.IAbstractPatternRoot<TKey,TPayload,TRegister,bool> source, System.Linq.Expressions.Expression<Func<long,TPayload,TRegister,bool>> fence);
static member AnyElement : Microsoft.StreamProcessing.IAbstractPatternRoot<'Key, 'Payload, 'Register, bool> * System.Linq.Expressions.Expression<Func<int64, 'Payload, 'Register, bool>> -> Microsoft.StreamProcessing.IPattern<'Key, 'Payload, 'Register, bool>
<Extension()>
Public Function AnyElement(Of TKey, TPayload, TRegister) (source As IAbstractPatternRoot(Of TKey, TPayload, TRegister, Boolean), fence As Expression(Of Func(Of Long, TPayload, TRegister, Boolean))) As IPattern(Of TKey, TPayload, TRegister, Boolean)

Type Parameters

TKey

Key type

TPayload

Payload type

TRegister

Result type (output of matcher is the register at an accepting state of the AFA)

Parameters

source
IAbstractPatternRoot<TKey,TPayload,TRegister,Boolean>

Input pattern

fence
Expression<Func<Int64,TPayload,TRegister,Boolean>>

Condition that must be true for the transition to occur

Returns

IPattern<TKey,TPayload,TRegister,Boolean>

The newly constructed pattern

Applies to