[ 
https://issues.apache.org/jira/browse/SPARK-2279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14044734#comment-14044734
 ] 

Hans Uhlig commented on SPARK-2279:
-----------------------------------

You can, you can also read in an empty file. However the Scala API has emptyRDD 
as an option and Java should maintain parity. It provides better clarity in 
code.

JavaSparkContext.emptyRDD() is a more descriptive of behavior. than 
JavaSparkContext.parrallelize(new ArrayList<String>()) even if they have the 
same result.

> JavaSparkContext should allow creation of EmptyRDD
> --------------------------------------------------
>
>                 Key: SPARK-2279
>                 URL: https://issues.apache.org/jira/browse/SPARK-2279
>             Project: Spark
>          Issue Type: New Feature
>          Components: Java API
>    Affects Versions: 1.0.0
>            Reporter: Hans Uhlig
>
> Scala Implementation currently supports creation of EmptyRDD. Java does not.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to