ExtensionMethodsReadHdfsCollectionTOutput Method Naiad Help

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

Read a collection of HDFS files serialized in a custom binary format. Concatenate all the records to the output, in an unspecified order.

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

C#
public static Stream<TOutput, Epoch> ReadHdfsCollection<TOutput>(
	this Computation manager,
	Uri fileOrDirectoryPath,
	Func<Stream, IEnumerable<ArraySegment<TOutput>>> deserialize
)

Parameters

manager
Type: Microsoft.Research.NaiadComputation
Naiad computation
fileOrDirectoryPath
Type: SystemUri
path of the file or directory to read
deserialize
Type: SystemFuncStream, IEnumerableArraySegmentTOutput
custom deserializer function to convert a stream of bytes into a sequence of records

Type Parameters

TOutput
output record type

Return Value

Type: StreamTOutput, Epoch
stream of records in the hdfs files

Usage Note

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