MCPcopy Create free account
hub / github.com/apache/impala / start

Method start

tests/util/concurrent_workload.py:99–106  ·  view source on GitHub ↗

Starts worker threads to execute queries.

(self)

Source from the content-addressed store, hash-verified

97 return self.query_rate
98
99 def start(self):
100 """Starts worker threads to execute queries."""
101 # Start workers
102 for i in range(self.num_streams):
103 t = Thread(target=self.loop_query, args=(self.query, self.output_q, self.stop_ev))
104 self.threads.append(t)
105 t.start()
106 self.query_rate_thread.start()
107
108 def print_query_rate(self):
109 """Prints the current query throughput until user presses ctrl-c."""

Callers 5

mainFunction · 0.95
test_single_workloadMethod · 0.95

Calls 4

rangeFunction · 0.85
startMethod · 0.65
ThreadClass · 0.50
appendMethod · 0.45

Tested by 4

test_single_workloadMethod · 0.76