//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); }
//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; }
//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); }