示例#1
0
        //The callback called after the function completes.
        public static void callback(PrestoResult result)
        {
            FunctionOutput output = (FunctionOutput)result;

            Console.WriteLine("Execution number: " + output.value + " from node id: " + output.ExecutionNode.HostName);
            System.Threading.Interlocked.Increment(ref numjobs);
        }
示例#2
0
 //The function that will be distributed to other nodes.
 public static PrestoResult distributedFunction(PrestoParameter param)
 {
     FunctionOutput output = new FunctionOutput();
     FunctionInput input = (FunctionInput)param;
     output.value = input.value;
     return output;
 }
示例#3
0
        //The function that will be distributed to other nodes.
        public static PrestoResult distributedFunction(PrestoParameter param)
        {
            FunctionOutput output = new FunctionOutput();
            FunctionInput  input  = (FunctionInput)param;

            output.value = input.value;
            return(output);
        }