CustomMappingCatalog.FilterByStatefulCustomPredicate<TSrc,TState> Methode

Definition

Drop-Zeilen, in denen ein angegebenes Prädikat true zurückgibt. Dieser Filter ermöglicht es, einen Cursorzustand beizubehalten.

public static Microsoft.ML.IDataView FilterByStatefulCustomPredicate<TSrc,TState> (this Microsoft.ML.DataOperationsCatalog catalog, Microsoft.ML.IDataView input, Func<TSrc,TState,bool> filterPredicate, Action<TState> stateInitAction) where TSrc : class, new() where TState : class, new();
static member FilterByStatefulCustomPredicate : Microsoft.ML.DataOperationsCatalog * Microsoft.ML.IDataView * Func<'Src, 'State, bool (requires 'Src : null and 'Src : (new : unit -> 'Src) and 'State : null and 'State : (new : unit -> 'State))> * Action<'State (requires 'State : null and 'State : (new : unit -> 'State))> -> Microsoft.ML.IDataView (requires 'Src : null and 'Src : (new : unit -> 'Src) and 'State : null and 'State : (new : unit -> 'State))
<Extension()>
Public Function FilterByStatefulCustomPredicate(Of TSrc As {Class, New}, TState As {Class, New}) (catalog As DataOperationsCatalog, input As IDataView, filterPredicate As Func(Of TSrc, TState, Boolean), stateInitAction As Action(Of TState)) As IDataView

Typparameter

TSrc

Die Klasse, die definiert, welche Spalten aus den eingehenden Daten stammen sollen.

TState

Der Typ, der den Status pro Cursor beschreibt.

Parameter

catalog
DataOperationsCatalog

Der Datenvorgängenkatalog.

input
IDataView

Die Eingabedaten.

filterPredicate
Func<TSrc,TState,Boolean>

Ein Prädikat, das eine Eingabe vom Typ und ein Zustandsobjekt vom Typ TSrcTStateverwendet, und gibt true zurück, wenn die Zeile gefiltert werden soll (gelöscht) und andernfalls false.

stateInitAction
Action<TState>

Die Aktion zum Initialisieren des Statusobjekts, das einmal aufgerufen wird, bevor der Cursor initialisiert wird.

Gibt zurück

Gilt für: