Skip to content

Commit

Permalink
Fixing minor bug, updating README.md and POM
Browse files Browse the repository at this point in the history
  • Loading branch information
Sriram Keerthi Madhava Kunjathur authored and Sriram Keerthi Madhava Kunjathur committed Apr 16, 2016
1 parent 55b50a8 commit fde4e58
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ MongoRDD is on Bintray and Maven Central:
<dependency>
<groupId>com.caffinc.sparktools</groupId>
<artifactId>mongordd</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
</dependency>

MongoRDD extends the Spark RDD class and provides a way to read from MongoDB directly into Spark.
Expand Down
2 changes: 1 addition & 1 deletion mongordd/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.caffinc.sparktools</groupId>
<artifactId>mongordd</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>

<name>Mongo RDD</name>
<description>MongoDB RDD for Spark</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public Document next() {
*
* @author Sriram
*/
private class MongoMapPartition implements Partition {
private static class MongoMapPartition implements Partition {
private static final long serialVersionUID = 1L;
private int index;
private int from;
Expand Down Expand Up @@ -157,7 +157,7 @@ public int index() {
*/
@Override
public boolean equals(Object obj) {
return (obj instanceof MongoMapPartition) && ((MongoMapPartition) obj).index != index;
return (obj instanceof MongoMapPartition) && ((MongoMapPartition) obj).index == index;
}

/**
Expand Down

0 comments on commit fde4e58

Please sign in to comment.