String resultsFolder = ((Long)System.currentTimeMillis()).toString();
//Add a spout for each sub-reddit
for(String subreddit : subreddits){
resultsFolder = String.format("[%s]", subreddit) + resultsFolder;
builder.setSpout("raw:" + subreddit, new RawRedditSpout(subreddit));
instanceBolt.shuffleGrouping("raw:" + subreddit);
}
builder.setBolt("stringToWordBolt", new StringToWordVectorBolt(FILTER_SET_SIZE, WORDS_TO_KEEP, instHeaders)).shuffleGrouping("instancebolt");