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

Method create_file

tests/util/adls_util.py:37–42  ·  view source on GitHub ↗
(self, path, file_data, overwrite=True)

Source from the content-addressed store, hash-verified

35 self.adls_cli_client = HadoopFsCommandLineClient("ADLS")
36
37 def create_file(self, path, file_data, overwrite=True):
38 if not overwrite and self.exists(path): return False
39 with self.adlsclient.open(path, 'wb') as f:
40 num_bytes = f.write(file_data)
41 assert num_bytes == len(file_data), "ADLS write failed."
42 return True
43
44 def make_dir(self, path, permission=None):
45 self.adlsclient.mkdir(path)

Callers 15

load_dataMethod · 0.45
test_load_permissionsMethod · 0.45
test_loadMethod · 0.45
_do_testMethod · 0.45
setup_methodMethod · 0.45
create_fs_partitionMethod · 0.45
test_alter_tableMethod · 0.45

Calls 3

existsMethod · 0.95
openMethod · 0.65
writeMethod · 0.45

Tested by 15

load_dataMethod · 0.36
test_load_permissionsMethod · 0.36
test_loadMethod · 0.36
_do_testMethod · 0.36
setup_methodMethod · 0.36
create_fs_partitionMethod · 0.36
test_alter_tableMethod · 0.36