Esempio n. 1
0
 def __init__(self, graph_name, cx, response):
     ItemizedTask.__init__(self)
     Result.__init__(self, graph_name)
     self.__record_type = None
     self.__cx = cx
     self.append(response)
     self._last_taken = 0
Esempio n. 2
0
 def __init__(self, tx, cx, response):
     ItemizedTask.__init__(self)
     Result.__init__(self, tx)
     self.__record_type = None
     self.__cx = cx
     self._profile = cx.profile
     self.append(response)
     self._last_taken = 0
Esempio n. 3
0
 def __init__(self, graph_name, result, profile=None):
     Result.__init__(self, graph_name)
     self._columns = result.get("columns", ())
     self._data = result.get("data", [])
     self._summary = {}
     if "stats" in result:
         self._summary["stats"] = result["stats"]
     if profile:
         self._summary["connection"] = profile.to_dict()
     self._cursor = 0
Esempio n. 4
0
 def __init__(self, tx, result, profile):
     Result.__init__(self, tx)
     self._profile = profile
     self._columns = result.get("columns", ())
     self._data = result.get("data", [])
     self._buffer = []
     self._summary = {}
     if "stats" in result:
         self._summary["stats"] = result["stats"]
     self._cursor = 0