Streamable.DefinePattern Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DefinePattern<TKey,TPayload,TRegister,TAccumulator>(IStreamable<TKey,TPayload>, TRegister, TAccumulator) |
Define a pattern against which data in the input stream may be matched |
DefinePattern<TKey,TPayload>(IStreamable<TKey,TPayload>) |
Define a pattern against which data in the input stream may be matched |
DefinePattern<TKey,TPayload,TRegister,TAccumulator>(IStreamable<TKey,TPayload>, TRegister, TAccumulator)
Define a pattern against which data in the input stream may be matched
public static Microsoft.StreamProcessing.IAbstractPattern<TKey,TPayload,TRegister,TAccumulator> DefinePattern<TKey,TPayload,TRegister,TAccumulator> (this Microsoft.StreamProcessing.IStreamable<TKey,TPayload> source, TRegister defaultRegister, TAccumulator defaultAccumulator);
static member DefinePattern : Microsoft.StreamProcessing.IStreamable<'Key, 'Payload> * 'Register * 'Accumulator -> Microsoft.StreamProcessing.IAbstractPattern<'Key, 'Payload, 'Register, 'Accumulator>
<Extension()>
Public Function DefinePattern(Of TKey, TPayload, TRegister, TAccumulator) (source As IStreamable(Of TKey, TPayload), defaultRegister As TRegister, defaultAccumulator As TAccumulator) As IAbstractPattern(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
- source
- IStreamable<TKey,TPayload>
Source stream
- defaultRegister
- TRegister
Default register value for the automata
- defaultAccumulator
- TAccumulator
Default accumulator value for the automata
Returns
The beginning of a builder from which a pattern may be defined
Applies to
DefinePattern<TKey,TPayload>(IStreamable<TKey,TPayload>)
Define a pattern against which data in the input stream may be matched
public static Microsoft.StreamProcessing.IAbstractPattern<TKey,TPayload,Microsoft.StreamProcessing.Empty,bool> DefinePattern<TKey,TPayload> (this Microsoft.StreamProcessing.IStreamable<TKey,TPayload> source);
static member DefinePattern : Microsoft.StreamProcessing.IStreamable<'Key, 'Payload> -> Microsoft.StreamProcessing.IAbstractPattern<'Key, 'Payload, Microsoft.StreamProcessing.Empty, bool>
<Extension()>
Public Function DefinePattern(Of TKey, TPayload) (source As IStreamable(Of TKey, TPayload)) As IAbstractPattern(Of TKey, TPayload, Empty, Boolean)
Type Parameters
- TKey
Key type
- TPayload
Payload type
Parameters
- source
- IStreamable<TKey,TPayload>
Input stream over which to define a pattern
Returns
The beginning of a builder from which a pattern may be defined