本文整理汇总了Python中pyspark.sql.readwriter.to_str函数的典型用法代码示例。如果您正苦于以下问题:Python to_str函数的具体用法?Python to_str怎么用?Python to_str使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了to_str函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: option
def option(self, key, value):
"""Adds an output option for the underlying data source.
.. note:: Experimental.
"""
self._jwrite = self._jwrite.option(key, to_str(value))
return self
开发者ID:anuragkapur,项目名称:apache-spark-ak-skynet,代码行数:7,代码来源:streaming.py
示例2: options
def options(self, **options):
"""Adds output options for the underlying data source.
.. note:: Experimental.
"""
for k in options:
self._jwrite = self._jwrite.option(k, to_str(options[k]))
return self
开发者ID:anuragkapur,项目名称:apache-spark-ak-skynet,代码行数:8,代码来源:streaming.py
示例3: option
def option(self, key, value):
"""Adds an output option for the underlying data source.
You can set the following option(s) for writing files:
* ``timeZone``: sets the string that indicates a timezone to be used to format
timestamps in the JSON/CSV datasources or partition values.
If it isn't set, it uses the default value, session local timezone.
.. note:: Evolving.
"""
self._jwrite = self._jwrite.option(key, to_str(value))
return self
开发者ID:AllenShi,项目名称:spark,代码行数:12,代码来源:streaming.py
示例4: options
def options(self, **options):
"""Adds output options for the underlying data source.
You can set the following option(s) for writing files:
* ``timeZone``: sets the string that indicates a timezone to be used to format
timestamps in the JSON/CSV datasources or partition values.
If it isn't set, it uses the default value, session local timezone.
.. note:: Experimental.
"""
for k in options:
self._jwrite = self._jwrite.option(k, to_str(options[k]))
return self
开发者ID:duyanghao,项目名称:spark,代码行数:13,代码来源:streaming.py
注:本文中的pyspark.sql.readwriter.to_str函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论