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))
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)
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))
def render(self): reader = { 'name': 'TableFromBlockMatrixNativeReader', 'path': self.path, 'nPartitions': self.n_partitions } return escape_str(json.dumps(reader))
def __str__(self): return '(TableWrite "{}" {} {})'.format(escape_str(self.path), self.overwrite, self.child)
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)))
def render(self): reader = {'name': 'TableNativeReader', 'path': self.path} return escape_str(json.dumps(reader))
def render(self, r): return '(Die {} "{}")'.format(self.typ._jtype.parsableString(), escape_str(self.message))
def __str__(self): return '(TableRead "{}" {} {})'.format(escape_str(self.path), self.drop_rows, self.typ)
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)))
def render(self, r): return '(TableRead "{}" {} {})'.format( escape_str(self.path), self.drop_rows, self.typ)
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)))
def __str__(self): return '(MatrixMapGlobals {} {} {})'.format( escape_str(json.dumps(self.value)), self.child, self.pred)
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]))
def render(self): reader = {'name': 'TextTableReader', 'options': self.config} return escape_str(json.dumps(reader))
def __str__(self): return '(Str "{}")'.format(escape_str(self.x))
def to_hql(self): return '("{regex}" ~ {string})'.format(regex=escape_str(self.regex), string=self.string.to_hql())
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))
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))
def render(self, r): return '(Str "{}")'.format(escape_str(self.x))
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)))
def render(self, r): return '(TableRead "{}" {} {})'.format(escape_str(self.path), self.drop_rows, self._typ)
def render(self, r): return '(TableWrite "{}" {} {})'.format(escape_str(self.path), self.overwrite, r(self.child))
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))
def __str__(self): return '{} "{}"'.format(self.typ._jtype.parsableString(), escape_str(json.dumps(self.value)))