HpcLinqContext.Submit Method

Submits a collection of LINQ to HPC queries to run on an HPC cluster.

Namespace: Microsoft.Hpc.Linq
Assembly: Microsoft.Hpc.Linq (in Microsoft.Hpc.Linq.dll)

Usage

'Usage
Dim instance As HpcLinqContext
Dim sources As IQueryable()
Dim returnValue As HpcLinqJobInfo

returnValue = instance.Submit(sources)

Syntax

'Declaration
Public Function Submit ( _
    ParamArray sources As IQueryable() _
) As HpcLinqJobInfo
public HpcLinqJobInfo Submit (
    params IQueryable[] sources
)
public:
HpcLinqJobInfo^ Submit (
    ... array<IQueryable^>^ sources
)
public HpcLinqJobInfo Submit (
    IQueryable[] sources
)
public function Submit (
    ... sources : IQueryable[]
) : HpcLinqJobInfo

Parameters

  • sources
    An array of IQueryable objects that represent the queries that you want to run.

Return Value

A HpcLinqJobInfo that provides information about the HPC job that is created to run the queries. You can use this information to track the progress of the queries.

Remarks

Every item in array that you specify in the sources parameter must be a LINQ to HPC IQueryable object that ends with a call to the ToDsc method.

The HPC cluster runs only one job for the set of queries, but the job produces output for each of the queries you specify in the sources parameter.

You can also submit LINQ to HPC queries in the following ways:

  • Call the Submit method as an instance method on an IQueryable object that you created by calling the FromDsc method. This query can include a call to the ToDsc method, but not have to include it.

  • Directly convert an IQueryable object to in-memory representation by calling the GetEnumerator method, or by calling methods such as ToArray or ToList as instance methods on an IQueryable object. The HPC job is implicit in this case.

  • Call an aggregation method such as Count, Sum, or Average as an instance method on an IQueryable object. The HPC job is implicit in this case.

Platform Note: This method was introduced in Windows HPC Server 2008 R2 with Service Pack 2 (SP2) and is not supported in previous versions.

Thread Safety

Separate instances of this class running in separate threads are not guaranteed to work for the beta release of Windows HPC Server 2008 R2 with Service Pack 2 (SP2).

Platforms

Development Platforms

Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012

Target Platforms

Windows XP, Windows Vista, Windows 7, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, with HPC Pack Client Utilities

See Also

Reference

HpcLinqContext Class
HpcLinqContext Members
Microsoft.Hpc.Linq Namespace
IQueryable
HpcLinqJobInfo
ToDsc

Build Date:

2013-04-22