MatchingCoordinatorTInput, TCategory, TWorkStub, TWorkDescription, TWorkerDescriptionMatchQueueCompare Method Naiad Help

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

Comparison function to use when sorting MatchQueues. a sorts before b if a contains more available matches than b, or if they contain the same number of available matches and a's uid is less than b's uid.

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

C#
public static int Compare(
	MatchingCoordinatorTInput, TCategory, TWorkStub, TWorkDescription, TWorkerDescriptionMatchQueue a,
	MatchingCoordinatorTInput, TCategory, TWorkStub, TWorkDescription, TWorkerDescriptionMatchQueue b
)

Parameters

a
Type: Microsoft.Research.Naiad.Frameworks.WorkGeneratorMatchingCoordinatorTInput, TCategory, TWorkStub, TWorkDescription, TWorkerDescriptionMatchQueue
First MatchQueue to compare
b
Type: Microsoft.Research.Naiad.Frameworks.WorkGeneratorMatchingCoordinatorTInput, TCategory, TWorkStub, TWorkDescription, TWorkerDescriptionMatchQueue
Second MatchQueue to compare

Return Value

Type: Int32
-1 if a has more available matches than b, or the same number of matches, but a's uid is less than b's. 0 if a and b have the same number of available matches and the same uid. 1 if a has fewer available matches than b, or the same number of matches, but a's uid is greater than b's.
See Also

Reference