Github user mateiz commented on a diff in the pull request:
https://github.com/apache/spark/pull/455#discussion_r13148511
--- Diff: python/pyspark/context.py ---
@@ -311,6 +311,98 @@ def wholeTextFiles(self, path, minPartitions=None):
return RDD(self._jsc.wholeTextFiles(path, minPartitions), self,
PairDeserializer(UTF8Deserializer(),
UTF8Deserializer()))
+ def sequenceFile(self, name, key_class="org.apache.hadoop.io.Text",
value_class="org.apache.hadoop.io.Text",
+ key_wrapper="", value_wrapper="", minSplits=None):
--- End diff --
Also if we infer the key class and value class for SequenceFiles, should
the defaults here be None? The doc and tests imply that we infer them, but we
are passing some values here, which is confusing.
---
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.
---