You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2020/03/06 02:51:48 UTC

[GitHub] [incubator-pinot] apucher commented on a change in pull request #5118: Synthetic Time Series Generator for pinot-tools

apucher commented on a change in pull request #5118: Synthetic Time Series Generator for pinot-tools
URL: https://github.com/apache/incubator-pinot/pull/5118#discussion_r388688622
 
 

 ##########
 File path: pinot-tools/src/main/java/org/apache/pinot/tools/data/generator/DataGenerator.java
 ##########
 @@ -100,6 +110,23 @@ public void generate(long totalDocs, int numFiles)
     }
   }
 
+  public void generateCsv(long totalDocs, int numFiles)
+      throws IOException {
+    final int numPerFiles = (int) (totalDocs / numFiles);
+    for (int i = 0; i < numFiles; i++) {
+      try (FileWriter writer = new FileWriter(outDir + "/output.csv")) {
 
 Review comment:
   cleaned up

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org