Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pyspark.RDD.pipe#

RDD.pipe(command,env=None,checkCode=False)[source]#

Return an RDD created by piping elements to a forked external process.

New in version 0.7.0.

Parameters
commandstr

command to run.

envdict, optional

environment variables to set.

checkCodebool, optional

whether to check the return value of the shell command.

Returns
RDD

a newRDD of strings

Examples

>>>sc.parallelize(['1','2','','3']).pipe('cat').collect()['1', '2', '', '3']

[8]ページ先頭

©2009-2025 Movatter.jp