ExtensionMethodsToHdfsTextTTime Method Naiad Help

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

write a sequence of strings as hdfs text files, partitioned by time as well as key. Within a given time and part, records are written in an undefined 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<Uri, TTime> ToHdfsText<TTime>(
	this Stream<string, TTime> source,
	Uri prefix,
	int bufferSize = 1048576,
	long blockSize = -1,
	long segmentThreshold = 266338304
)
where TTime : Object, Time<TTime>

Parameters

source
Type: Microsoft.Research.NaiadStreamString, TTime
stream of records to write
prefix
Type: SystemUri
webhdfs directory to write the partitioned data into
bufferSize (Optional)
Type: SystemInt32
buffer size to use for the text serializer
blockSize (Optional)
Type: SystemInt64
hdfs block size to use, or -1 for the file system default value
segmentThreshold (Optional)
Type: SystemInt64
file size to write before closing the file and opening another one

Type Parameters

TTime
type of the record time

Return Value

Type: StreamUri, TTime
stream of filenames written

Usage Note

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