ExtensionMethodsRenameUsingTInput, TIdentifier Method (StreamTInput, Epoch, StreamNodeWithValueTIdentifier, Epoch, FuncTInput, TIdentifier)Naiad Help

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

Associates elements of the given stream with nodes selected by the given identifierSelector and renameMapping.

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

C#
public static Stream<NodeWithValue<TInput>, Epoch> RenameUsing<TInput, TIdentifier>(
	this Stream<TInput, Epoch> stream,
	Stream<NodeWithValue<TIdentifier>, Epoch> renameMapping,
	Func<TInput, TIdentifier> identifierSelector
)

Parameters

stream
Type: Microsoft.Research.NaiadStreamTInput, Epoch
The input stream. All elements should be in the first epoch.
renameMapping
Type: Microsoft.Research.NaiadStreamNodeWithValueTIdentifier, Epoch
A mapping from TIdentifier values to Node objects.
identifierSelector
Type: SystemFuncTInput, TIdentifier
Function from input record to identifier, which associates an input record with a node.

Type Parameters

TInput
The type of the input records.
TIdentifier
The type of the identifiers.

Return Value

Type: StreamNodeWithValueTInput, Epoch
A stream of nodes each associated with its respective input record.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type StreamTInput, Epoch. 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