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

Method __get_shell_client

tests/shell/test_shell_client.py:93–103  ·  view source on GitHub ↗

Returns the client specified by the protocol in the given vector.

(self, vector, fetch_size=1024)

Source from the content-addressed store, hash-verified

91 assert num_batches_count == num_batches
92
93 def __get_shell_client(self, vector, fetch_size=1024):
94 """Returns the client specified by the protocol in the given vector."""
95 impalad = get_impalad_host_port(vector).split(":")
96 protocol = vector.get_value("protocol")
97 if protocol == 'hs2':
98 return ImpalaHS2Client(impalad, fetch_size, None)
99 elif protocol == 'hs2-http':
100 return ImpalaHS2Client(impalad, fetch_size, None,
101 use_http_base_transport=True, http_path='cliservice')
102 elif protocol == 'beeswax':
103 return ImpalaBeeswaxClient(impalad, fetch_size, None)

Callers 2

test_fetch_sizeMethod · 0.95

Calls 4

get_impalad_host_portFunction · 0.90
ImpalaHS2ClientClass · 0.90
ImpalaBeeswaxClientClass · 0.90
get_valueMethod · 0.45

Tested by

no test coverage detected