diff options
author | Zheng RuiFeng <ruifengz@foxmail.com> | 2016-05-26 22:39:14 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-05-26 22:39:14 -0700 |
commit | 6b1a6180e7bd45b0a0ec47de9f7c7956543f4dfa (patch) | |
tree | 6dc232bdc5955f64ebbf327c57d95d4c8346524b /python/pyspark/streaming | |
parent | ee3609a2ef55ae5a2797e5ffe06c2849cbd11e15 (diff) | |
download | spark-6b1a6180e7bd45b0a0ec47de9f7c7956543f4dfa.tar.gz spark-6b1a6180e7bd45b0a0ec47de9f7c7956543f4dfa.tar.bz2 spark-6b1a6180e7bd45b0a0ec47de9f7c7956543f4dfa.zip |
[MINOR] Fix Typos 'a -> an'
## What changes were proposed in this pull request?
`a` -> `an`
I use regex to generate potential error lines:
`grep -in ' a [aeiou]' mllib/src/main/scala/org/apache/spark/ml/*/*scala`
and review them line by line.
## How was this patch tested?
local build
`lint-java` checking
Author: Zheng RuiFeng <ruifengz@foxmail.com>
Closes #13317 from zhengruifeng/a_an.
Diffstat (limited to 'python/pyspark/streaming')
-rw-r--r-- | python/pyspark/streaming/dstream.py | 2 | ||||
-rw-r--r-- | python/pyspark/streaming/kafka.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/python/pyspark/streaming/dstream.py b/python/pyspark/streaming/dstream.py index 67a0819601..fb6c66f2df 100644 --- a/python/pyspark/streaming/dstream.py +++ b/python/pyspark/streaming/dstream.py @@ -623,7 +623,7 @@ class TransformedDStream(DStream): self._jdstream_val = None # Using type() to avoid folding the functions and compacting the DStreams which is not - # not strictly a object of TransformedDStream. + # not strictly an object of TransformedDStream. # Changed here is to avoid bug in KafkaTransformedDStream when calling offsetRanges(). if (type(prev) is TransformedDStream and not prev.is_cached and not prev.is_checkpointed): diff --git a/python/pyspark/streaming/kafka.py b/python/pyspark/streaming/kafka.py index 015ca77dbf..2c1a667fc8 100644 --- a/python/pyspark/streaming/kafka.py +++ b/python/pyspark/streaming/kafka.py @@ -228,7 +228,7 @@ class OffsetRange(object): def __init__(self, topic, partition, fromOffset, untilOffset): """ - Create a OffsetRange to represent range of offsets + Create an OffsetRange to represent range of offsets :param topic: Kafka topic name. :param partition: Kafka partition id. :param fromOffset: Inclusive starting offset. |