Skip to content

Commit

Permalink
Enumerate should call cleanup in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Hayes committed Mar 21, 2013
1 parent b17612e commit bce41b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/java/datafu/pig/bags/Enumerate.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ public Enumerate()
public Enumerate(String start)
{
this.start = Integer.parseInt(start);
this.outputBag = BagFactory.getInstance().newDefaultBag();
this.i = this.start;
this.count = 0;
cleanup();
}

public DataBag call(DataBag inputBag) throws IOException
Expand Down

0 comments on commit bce41b9

Please sign in to comment.