예제 #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
예제 #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
예제 #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
예제 #4
0
 def option(self, key, value):
     """
     Add a write option.
     """
     self._jwriter.option(key, to_str(value))
     return self
예제 #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
예제 #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