Package org.kitesdk.morphline.stdlib

Examples of org.kitesdk.morphline.stdlib.PipeBuilder


   */
  public Command compile(Config morphlineConfig, MorphlineContext morphlineContext, Command finalChild) {
    if (finalChild == null) {
      finalChild = new DropRecordBuilder().build(null, null, null, morphlineContext);
    }
    return new PipeBuilder().build(morphlineConfig, null, finalChild, morphlineContext);
  }
View Full Code Here


            try {
              int iters = 0;
              MorphlineContext ctx = new MorphlineContext.Builder().build();
              Config config = parse("test-morphlines/convertHTML");
              Collector myCollector = new Collector();
              Command myMorphline = new PipeBuilder().build(config, null, myCollector, ctx);
             
              long start = System.currentTimeMillis();
              while (System.currentTimeMillis() < start + durationMillis) {
                Record record = new Record();
                record.put("id", "123");
View Full Code Here

    return createMorphline(parse(file, overrides));
  }

  protected Command createMorphline(Config config) {
    morphContext = new MorphlineContext.Builder().setMetricRegistry(new MetricRegistry()).build();
    return new PipeBuilder().build(config, null, collector, morphContext);
  }
View Full Code Here

    s.deleteByQuery("*:*"); // delete everything!
    s.commit();
  }

  protected Command createMorphline(String file) throws IOException {
    return new PipeBuilder().build(parse(file), null, collector, createMorphlineContext());
  }
View Full Code Here

    config = config.getConfigList("morphlines").get(0);
    return createMorphline(config);
  }
 
  private Command createMorphline(Config config) {
    return new PipeBuilder().build(config, null, collector, createMorphlineContext());
  }
View Full Code Here

TOP

Related Classes of org.kitesdk.morphline.stdlib.PipeBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.