def getDestination_prov(self, data): print ("GGGGGGGGG "+str(data[self.input_name])) if 'TriggeredByProcessIterationID' in data[self.input_name]: output = tuple([data[self.input_name]['_d4p'][x] for x in self.groupby]) else: output = tuple([data[self.input_name][x] for x in self.groupby]) dest_index = abs(make_hash(output)) % len(self.destinations) return [self.destinations[dest_index]]
def getDestination(self, data): output = tuple([data[self.input_name][x] for x in self.groupby]) dest_index = abs(make_hash(output)) % len(self.destinations) return [self.destinations[dest_index]]
def getDestination(self,data): output = tuple([data[self.input_name][x] for x in self.groupby]) next=abs(make_hash(output))%len(self.processes_list) self.process.rank_dest=[self.processes_list[next]]