Пример #1
0
Файл: ir.py Проект: danking/hail
 def render(self, r):
     return '(TableExport "{}" "{}" "{}" {} {})'.format(
         escape_str(self.path),
         escape_str(self.types_file),
         escape_str(self.header),
         self.export_type._jtype.parsableString(),
         r(self.child))
Пример #2
0
Файл: ir.py Проект: bcajes/hail
 def render(self, r):
     return '(TableExport {} "{}" "{}" {} {})'.format(
         r(self.child),
         escape_str(self.path),
         escape_str(self.types_file) if self.types_file else 'None',
         self.header,
         self.export_type)
Пример #3
0
Файл: ir.py Проект: knmkr/hail
 def render(self, r):
     return '(TableExport "{}" "{}" "{}" {} {})'.format(
         escape_str(self.path),
         escape_str(self.types_file),
         escape_str(self.header),
         self.export_type._jtype.parsableString(),
         r(self.child))
Пример #4
0
 def render(self, r):
     return '(BlockMatrixBroadcast {} ({}) {} ({}) {})'\
         .format(escape_str(self.broadcast_kind),
                 ' '.join([str(x) for x in self.shape]),
                 self.block_size,
                 ' '.join([str(b) for b in self.dims_partitioned]),
                 r(self.child))
Пример #5
0
 def render(self):
     reader = {
         'name': 'TableFromBlockMatrixNativeReader',
         'path': self.path,
         'nPartitions': self.n_partitions
     }
     return escape_str(json.dumps(reader))
Пример #6
0
 def __str__(self):
     return '(TableWrite "{}" {} {})'.format(escape_str(self.path),
                                             self.overwrite, self.child)
Пример #7
0
 def render(self, r):
     return '(TableImport ({}) {} {})'.format(
         ' '.join([escape_str(path) for path in self.paths]),
         self._typ._parsable_string(),
         escape_str(json.dumps(self.reader_options)))
Пример #8
0
 def render(self):
     reader = {'name': 'TableNativeReader', 'path': self.path}
     return escape_str(json.dumps(reader))
Пример #9
0
 def render(self, r):
     return '(Die {} "{}")'.format(self.typ._jtype.parsableString(),
                                   escape_str(self.message))
Пример #10
0
 def __str__(self):
     return '(TableRead "{}" {} {})'.format(escape_str(self.path),
                                            self.drop_rows, self.typ)
Пример #11
0
 def head_str(self):
     return '(({}) {} {}'.format(
         ' '.join([escape_str(path) for path in self.paths]),
         self._typ._parsable_string(),
         escape_str(json.dumps(self.reader_options)))
Пример #12
0
 def render(self, r):
     return '(TableRead "{}" {} {})'.format(
         escape_str(self.path),
         self.drop_rows,
         self.typ)
Пример #13
0
 def render(self, r):
     return '(TableImport ({}) {} {})'.format(
         ' '.join([escape_str(path) for path in self.paths]),
         self.typ._jtype.parsableString(),
         escape_str(json.dumps(self.reader_options)))
Пример #14
0
 def __str__(self):
     return '(MatrixMapGlobals {} {} {})'.format(
         escape_str(json.dumps(self.value)),
         self.child, self.pred)
Пример #15
0
 def head_str(self):
     return '{} {} ({})'.format(
         escape_str(self.entries_field_name),
         escape_str(self.cols_field_name),
         ' '.join([escape_id(id) for id in self.col_key]))
Пример #16
0
 def render(self):
     reader = {'name': 'TextTableReader', 'options': self.config}
     return escape_str(json.dumps(reader))
Пример #17
0
 def __str__(self):
     return '(Str "{}")'.format(escape_str(self.x))
Пример #18
0
Файл: ir.py Проект: danking/hail
 def render(self, r):
     return '(Die {} "{}")'.format(self.typ._jtype.parsableString(), escape_str(self.message))
Пример #19
0
 def to_hql(self):
     return '("{regex}" ~ {string})'.format(regex=escape_str(self.regex), string=self.string.to_hql())
Пример #20
0
Файл: ir.py Проект: danking/hail
 def render(self, r):
     return '(TableWrite "{}" {} {} {} {})'.format(escape_str(self.path), self.overwrite, self.stage_locally,
                                                   "\"" + escape_str(self._codec_spec) + "\"" if self._codec_spec else "None",
                                                     r(self.child))
Пример #21
0
 def render(self, r):
     return '(TableWrite "{}" {} {} {} {})'.format(
         escape_str(self.path), self.overwrite, self.stage_locally,
         "\"" + escape_str(self._codec_spec) +
         "\"" if self._codec_spec else "None", r(self.child))
Пример #22
0
 def render(self, r):
     return '(Str "{}")'.format(escape_str(self.x))
Пример #23
0
 def __str__(self):
     return '(TableImport ({}) {} {})'.format(
         ' '.join([escape_str(path) for path in self.paths]),
         self.typ._jtype.parsableString(),
         escape_str(json.dumps(self.reader_options)))
Пример #24
0
 def render(self, r):
     return '(TableRead "{}" {} {})'.format(escape_str(self.path),
                                            self.drop_rows, self._typ)
Пример #25
0
 def render(self, r):
     return '(TableWrite "{}" {} {})'.format(escape_str(self.path),
                                             self.overwrite, r(self.child))
Пример #26
0
 def render(self, r):
     return '(TableWrite "{}" {} {})'.format(escape_str(self.path), self.overwrite, r(self.child))
Пример #27
0
 def head_str(self):
     return '{} {} ({})'.format(
         escape_str(self.entries_field_name),
         escape_str(self.cols_field_name),
         ' '.join([escape_id(id) for id in self.col_key]))
Пример #28
0
Файл: ir.py Проект: danking/hail
 def render(self, r):
     return '(Str "{}")'.format(escape_str(self.x))
Пример #29
0
 def head_str(self):
     return '(({}) {} {}'.format(
         ' '.join([escape_str(path) for path in self.paths]),
         self._typ._parsable_string(),
         escape_str(json.dumps(self.reader_options)))
Пример #30
0
 def render(self, r):
     return '(TableExport {} "{}" "{}" {} {})'.format(
         r(self.child), escape_str(self.path),
         escape_str(self.types_file) if self.types_file else 'None',
         self.header, self.export_type)
Пример #31
0
 def render(self, r):
     return '(CastTableToMatrix {} {} ({}) {})'.format(
        escape_str(self.entries_field_name),
        escape_str(self.cols_field_name),
        ' '.join([escape_id(id) for id in self.col_key]),
        r(self.child))
Пример #32
0
 def __str__(self):
     return '{} "{}"'.format(self.typ._jtype.parsableString(),
                             escape_str(json.dumps(self.value)))