def _plans_tablescan(self, node): tbl = node.get('table')[1] profile = Profile.build(node, None) for server in [s for s in self._servers if tbl in s.tables]: authorized = self._servers.authorize(profile, server.id) if authorized: yield self.makeplan(node, [], server, authorized)
def _plans_default(self, node, servers=None): for inputplans in product(*map(self.get_plans, node.inputs)): profile = Profile.build(node, inputplans) for server in servers or self._servers: authorized = self._servers.authorize(profile, server.id) if authorized: yield self.makeplan(node, inputplans, server, authorized)