ExtensionMethodsWhereTRecord, TTime Method Naiad Help

[This is preliminary documentation and is subject to change.]

Filters the input stream to contain only record that match the given predicate.

Namespace: Microsoft.Research.Naiad.Frameworks.Lindi
Assembly: Microsoft.Research.Naiad.Lindi (in Microsoft.Research.Naiad.Lindi.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax

C#
public static Stream<TRecord, TTime> Where<TRecord, TTime>(
	this Stream<TRecord, TTime> stream,
	Func<TRecord, bool> predicate
)
where TTime : Object, Time<TTime>

Parameters

stream
Type: Microsoft.Research.NaiadStreamTRecord, TTime
The input stream.
predicate
Type: SystemFuncTRecord, Boolean
A function that returns true if and only if the record will be kept in the output.

Type Parameters

TRecord
The type of the input records.
TTime
The type of timestamp on each record.

Return Value

Type: StreamTRecord, TTime
The stream of records that satisfy the predicate.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type StreamTRecord, TTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also

Reference