apex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vro...@apache.org
Subject [48/50] [abbrv] incubator-apex-core git commit: SPOI-6333 Use numTuples instead of constant
Date Thu, 24 Sep 2015 02:38:07 GMT
SPOI-6333 Use numTuples instead of constant


Project: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/commit/bb110946
Tree: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/tree/bb110946
Diff: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/diff/bb110946

Branch: refs/heads/feature-module
Commit: bb11094631287919476a130d61957a6f046f6fdc
Parents: e482804
Author: Munagala V. Ramanath <ramapex@apache.org>
Authored: Mon Sep 21 10:02:31 2015 -0700
Committer: Munagala V. Ramanath <ramapex@apache.org>
Committed: Mon Sep 21 10:02:31 2015 -0700

----------------------------------------------------------------------
 .../main/java/__packageInPathFormat__/RandomNumberGenerator.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-apex-core/blob/bb110946/apex-app-archetype/src/main/resources/archetype-resources/src/main/java/__packageInPathFormat__/RandomNumberGenerator.java
----------------------------------------------------------------------
diff --git a/apex-app-archetype/src/main/resources/archetype-resources/src/main/java/__packageInPathFormat__/RandomNumberGenerator.java
b/apex-app-archetype/src/main/resources/archetype-resources/src/main/java/__packageInPathFormat__/RandomNumberGenerator.java
index 26d1cb8..24f4670 100644
--- a/apex-app-archetype/src/main/resources/archetype-resources/src/main/java/__packageInPathFormat__/RandomNumberGenerator.java
+++ b/apex-app-archetype/src/main/resources/archetype-resources/src/main/java/__packageInPathFormat__/RandomNumberGenerator.java
@@ -29,7 +29,7 @@ public class RandomNumberGenerator extends BaseOperator implements InputOperator
   @Override
   public void emitTuples()
   {
-    if (count++ < 100) {
+    if (count++ < numTuples) {
       out.emit(Math.random());
     }
   }


Mime
View raw message