package marcelocf.janusgraph;

import org.janusgraph.core.JanusGraph;
import org.janusgraph.core.JanusGraphFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Date;

/**
 * Prints out the timeline to stdout
 * <br/>
 * Created by marcelo on 17/06/21.
 */
public class Timeline {

  private static final Logger LOGGER = LoggerFactory.getLogger(Timeline.class);
  public static void main(String argv[]) throws Exception {
    JanusGraph graph = JanusGraphFactory.open(Schema.CONFIG_FILE);
    HadoopQueryRunner q = new HadoopQueryRunner(graph.traversal(), "testUser1");

    LOGGER.info("Previous Timeline");
    q.printTimeline(q.getTimeline2(100));
    LOGGER.info("New Timeline");
    q.printTimeline(q.getTimeline3(100));

    q.close();
    graph.close();
  }
}

@@ -590,24 +590,58 @@
 stUser1%22);%0A%0A
+    for(int i =0; i%3C 10; i++) %7B%0A  
     LOGGER.i
@@ -662,32 +662,34 @@
 Timeline%22);%0A    
+  
 q.printTimeline(
@@ -710,24 +710,26 @@
 (100));%0A    
+  
 LOGGER.info(
@@ -741,24 +741,26 @@
 Timeline%22);%0A
+  
     q.printT
@@ -789,16 +789,21 @@
 (100));%0A
+    %7D
 %0A    q.c

test 10 times the query