[This is preliminary documentation and is subject to change.]
Writes the records in the given stream to files.
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 void WriteToFiles<TInput>( this Stream<TInput, Epoch> stream, string format, Action<TInput, BinaryWriter> action )
Parameters
- stream
- Type: Microsoft.Research.Naiad.Stream<TInput, Epoch>
The input stream. - format
- Type: System.String
Format string for filename, where {0} is replaced with the vertex ID. - action
- Type: System.Action<TInput, BinaryWriter>
Action to apply on each record and the corresponding BinaryWriter.
Type Parameters
- TInput
- The type of the input records.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Stream<TInput, 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).Remarks
See Also