def execute_traversal(self, traversal, graphson): ep = self.get_execution_profile(graphson, traversal=True) ep = self.session.get_execution_profile(ep) context = None if graphson == GraphProtocol.GRAPHSON_3_0: context = { 'cluster': self.cluster, 'graph_name': ep.graph_options.graph_name.decode('utf-8') if ep.graph_options.graph_name else None } query = DseGraph.query_from_traversal(traversal, graphson, context=context) result_set = self.execute_graph(query, graphson, traversal=True) return list(result_set)
def execute_traversal(self, traversal, graphson): ep = self.get_execution_profile(graphson, traversal=True) ep = self.session.get_execution_profile(ep) context = None if graphson == GraphProtocol.GRAPHSON_3_0: context = { 'cluster': self.cluster, 'graph_name': ep.graph_options.graph_name.decode('utf-8') if ep.graph_options.graph_name else None } query = DseGraph.query_from_traversal(traversal, graphson, context=context) #Use an ep that is configured with the correct row factory, and bytecode-json language flat set result_set = self.execute_graph(query, graphson, traversal=True) return list(result_set)
def execute_traversal(self, traversal): query = DseGraph.query_from_traversal(traversal) #Use an ep that is configured with the correct row factory, and bytecode-json language flat set result_set = self.session.execute_graph(query, execution_profile=self.ep) return list(result_set)