Package org.kitesdk.morphline.base

Examples of org.kitesdk.morphline.base.FieldExpression


    public Equals(CommandBuilder builder, Config config, Command parent, Command child, MorphlineContext context) {
      super(builder, config, parent, child, context);     
      this.entrySet = new Configs().getEntrySet(config);
      for (Map.Entry<String, Object> entry : entrySet) {
        if (!(entry.getValue() instanceof Collection)) {
          entry.setValue(new FieldExpression(entry.getValue().toString(), getConfig()));       
        }
      }
      this.renderedConfig = config.root().render();
    }
View Full Code Here


    public Contains(CommandBuilder builder, Config config, Command parent, Command child, MorphlineContext context) {
      super(builder, config, parent, child, context);     
      this.entrySet = new Configs().getEntrySet(config);
      for (Map.Entry<String, Object> entry : entrySet) {
        if (!(entry.getValue() instanceof Collection)) {
          entry.setValue(new FieldExpression(entry.getValue().toString(), getConfig()));       
        }
      }
      this.renderedConfig = config.root().render();
    }
View Full Code Here

      ;
    }
  }
 
  private List resolveExpression(String expr, Record record) {
    return new FieldExpression(expr, null).evaluate(record);
  }
View Full Code Here

    super(builder, config, parent, child, context);
    this.format = getConfigs().getString(config, "format");
    List<String> argList = getConfigs().getStringList(config, "args", Collections.<String>emptyList());
    this.expressions = new FieldExpression[argList.size()];
    for (int i = 0; i < argList.size(); i++) {
      this.expressions[i] = new FieldExpression(argList.get(i), getConfig());
    }
    validateArguments();
  }
View Full Code Here

TOP

Related Classes of org.kitesdk.morphline.base.FieldExpression

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.