[This is preliminary documentation and is subject to change.]
Reads the contents of all files in an Azure directory into a Naiad stream.
Namespace: Microsoft.Research.Naiad.Frameworks.Azure
Assembly: Microsoft.Research.Naiad.AzureSupport (in Microsoft.Research.Naiad.AzureSupport.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
C#
public static Stream<TRecord, Epoch> ReadFromAzureBlobs<TRecord>( this Computation manager, CloudBlobContainer container, string prefix, Func<Stream, IEnumerable<TRecord>> reader )
Parameters
- manager
- Type: Microsoft.Research.NaiadComputation
Graph manager - container
- Type: CloudBlobContainer
Azure container - prefix
- Type: SystemString
Azure blob prefix - reader
- Type: SystemFuncStream, IEnumerableTRecord
Decoding function from a stream to sequence of records
Type Parameters
- TRecord
- Type of records stored in the blobs
Return Value
Type: StreamTRecord, EpochNaiad stream containing the records extracted from files in the Azure directory
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