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

Method __init__

tests/util/concurrent_workload.py:46–54  ·  view source on GitHub ↗
(self, query, num_streams)

Source from the content-addressed store, hash-verified

44 calling start().
45 """
46 def __init__(self, query, num_streams):
47 self.query = query
48 self.num_streams = num_streams
49 self.stop_ev = Event()
50 self.output_q = Queue()
51 self.threads = []
52 self.query_rate = 0
53 self.query_rate_thread = Thread(target=self.compute_query_rate,
54 args=(self.output_q, self.stop_ev))
55
56 def execute(self, query):
57 """Executes a query on the coordinator of the local minicluster."""

Callers

nothing calls this directly

Calls 2

EventClass · 0.85
ThreadClass · 0.50

Tested by

no test coverage detected