Github user mengxr commented on the pull request:
https://github.com/apache/spark/pull/685#issuecomment-43150558
@mateiz @srowen I made the following updates:
1. Use `StringTokenizer` to simplify the logic. It is not deprecated in
Java 8
(http://docs.oracle.com/javase/8/docs/api/java/util/StringTokenizer.html). I
didn't use Guava's Splitter because it is regex-based.
2. pyspark's `loadLabledPoints` uses Scala's implementation to avoid
implementing a parser in pyspark.
So now `saveAsTextFile` works for `RDD[LabeledPoint]` in pyspark, for
`RDD[Vector]` and `RDD[LabeledPoint]` in Scala/Java.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---