Exemplo n.º 1
0
 def options(self, **options):
     """
     Add write options.
     """
     options = {k: to_str(v) for k, v in options.items()}
     self._jwriter.options(options)
     return self
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 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
Exemplo n.º 4
0
 def option(self, key, value):
     """
     Add a write option.
     """
     self._jwriter.option(key, to_str(value))
     return self
Exemplo n.º 5
0
 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
Exemplo n.º 6
0
 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