def options(self, **options): """ Add write options. """ options = {k: to_str(v) for k, v in options.items()} self._jwriter.options(options) return self
def options(self, **options): """Adds output options for the underlying data source. """ for k in options: self._jwrite = self._jwrite.option(k, to_str(options[k])) return self
def option(self, key, value): """Adds an output option for the underlying data source. """ self._jwrite = self._jwrite.option(key, to_str(value)) return self
def option(self, key, value): """ Add a write option. """ self._jwriter.option(key, to_str(value)) return self
def options(self, **options): """Adds input options for the underlying data source. """ for k in options: self._jreader = self._jreader.option(k, to_str(options[k])) return self
def option(self, key, value): """Adds an input option for the underlying data source. """ self._jreader = self._jreader.option(key, to_str(value)) return self