protected List<Command> buildCommandChain(Config rootConfig, String configKey, Command finalChild, boolean ignoreNotifications) { getConfigs().getConfigList(rootConfig, configKey, null); return super.buildCommandChain(rootConfig, configKey, finalChild, ignoreNotifications); }
protected List<Command> buildCommandChain(Config rootConfig, String configKey, Command finalChild, boolean ignoreNotifications) { getConfigs().getConfigList(rootConfig, configKey, null); return super.buildCommandChain(rootConfig, configKey, finalChild, ignoreNotifications); }
public ExtractHBaseCells(CommandBuilder builder, Config config, Command parent, Command child, MorphlineContext context) { super(builder, config, parent, child, context); for (Config mapping : getConfigs().getConfigList(config, "mappings")) { mappings.add(new Mapping(mapping, context)); } validateArguments(); }
public ExtractHBaseCells(CommandBuilder builder, Config config, Command parent, Command child, MorphlineContext context) { super(builder, config, parent, child, context); for (Config mapping : getConfigs().getConfigList(config, "mappings")) { mappings.add(new Mapping(mapping, context)); } validateArguments(); }
Preconditions.checkNotNull(configKey); Preconditions.checkNotNull(finalChild); List<? extends Config> commandConfigs = new Configs().getConfigList(rootConfig, configKey, Collections.<Config>emptyList()); List<Command> commands = Lists.newArrayList(); Command currentParent = this;
Preconditions.checkNotNull(configKey); Preconditions.checkNotNull(finalChild); List<? extends Config> commandConfigs = new Configs().getConfigList(rootConfig, configKey, Collections.<Config>emptyList()); List<Command> commands = Lists.newArrayList(); Command currentParent = this;
public Pipe(CommandBuilder builder, Config config, Command parent, Command child, MorphlineContext context) { super(builder, config, parent, child, context); this.id = getConfigs().getString(config, "id"); List<String> importCommandSpecs = getConfigs().getStringList(config, "importCommands", Arrays.asList("com.**", "org.**", "net.**")); context.importCommandBuilders(importCommandSpecs); getConfigs().getConfigList(config, "commands", null); List<Command> childCommands = buildCommandChain(config, "commands", child, false); if (childCommands.size() > 0) { this.realChild = childCommands.get(0); } else { this.realChild = child; } validateArguments(); }
public Pipe(CommandBuilder builder, Config config, Command parent, Command child, MorphlineContext context) { super(builder, config, parent, child, context); this.id = getConfigs().getString(config, "id"); List<String> importCommandSpecs = getConfigs().getStringList(config, "importCommands", Arrays.asList("com.**", "org.**", "net.**")); context.importCommandBuilders(importCommandSpecs); getConfigs().getConfigList(config, "commands", null); List<Command> childCommands = buildCommandChain(config, "commands", child, false); if (childCommands.size() > 0) { this.realChild = childCommands.get(0); } else { this.realChild = child; } validateArguments(); }
@SuppressWarnings("unchecked") public TryRules(CommandBuilder builder, Config config, Command parent, Command child, MorphlineContext context) { super(builder, config, parent, child, context); this.throwExceptionIfAllRulesFailed = getConfigs().getBoolean(config, "throwExceptionIfAllRulesFailed", true); this.catchExceptions = getConfigs().getBoolean(config, "catchExceptions", false); this.copyRecords = getConfigs().getBoolean(config, "copyRecords", true); List<? extends Config> ruleConfigs = getConfigs().getConfigList(config, "rules", Collections.EMPTY_LIST); for (Config ruleConfig : ruleConfigs) { List<Command> commands = buildCommandChain(ruleConfig, "commands", child, true); if (commands.size() > 0) { childRules.add(commands.get(0)); } } validateArguments(); numExceptionsCaught = getMeter("numExceptionsCaught"); }
@SuppressWarnings("unchecked") public TryRules(CommandBuilder builder, Config config, Command parent, Command child, MorphlineContext context) { super(builder, config, parent, child, context); this.throwExceptionIfAllRulesFailed = getConfigs().getBoolean(config, "throwExceptionIfAllRulesFailed", true); this.catchExceptions = getConfigs().getBoolean(config, "catchExceptions", false); this.copyRecords = getConfigs().getBoolean(config, "copyRecords", true); List<? extends Config> ruleConfigs = getConfigs().getConfigList(config, "rules", Collections.EMPTY_LIST); for (Config ruleConfig : ruleConfigs) { List<Command> commands = buildCommandChain(ruleConfig, "commands", child, true); if (commands.size() > 0) { childRules.add(commands.get(0)); } } validateArguments(); numExceptionsCaught = getMeter("numExceptionsCaught"); }
List<? extends Config> parserConfigs = getConfigs().getConfigList(config, "parsers"); for (Config parserConfig : parserConfigs) { String parserClassName = getConfigs().getString(parserConfig, "parser");
List<? extends Config> parserConfigs = getConfigs().getConfigList(config, "parsers"); for (Config parserConfig : parserConfigs) { String parserClassName = getConfigs().getString(parserConfig, "parser");
List<? extends Config> parserConfigs = getConfigs().getConfigList(config, "parsers"); for (Config parserConfig : parserConfigs) { String parserClassName = getConfigs().getString(parserConfig, "parser");
public ReadRCFile(CommandBuilder builder, Config config, Command parent, Command child, MorphlineContext context) { super(builder, config, parent, child, context); this.includeMetaData = getConfigs().getBoolean(config, "includeMetaData", false); this.readMode = new Validator<RCFileReadMode>() .validateEnum( config, getConfigs().getString(config, "readMode", RCFileReadMode.row.name()), RCFileReadMode.class); for (Config columnConfig : getConfigs().getConfigList(config, "columns")) { columns.add(new RCFileColumn(columnConfig, conf)); } validateArguments(); }
public ReadRCFile(CommandBuilder builder, Config config, Command parent, Command child, MorphlineContext context) { super(builder, config, parent, child, context); this.includeMetaData = getConfigs().getBoolean(config, "includeMetaData", false); this.readMode = new Validator<RCFileReadMode>() .validateEnum( config, getConfigs().getString(config, "readMode", RCFileReadMode.row.name()), RCFileReadMode.class); for (Config columnConfig : getConfigs().getConfigList(config, "columns")) { columns.add(new RCFileColumn(columnConfig, conf)); } validateArguments(); }
public XSLT(CommandBuilder builder, Config config, Command parent, Command child, MorphlineContext context) throws SaxonApiException, IOException, XMLStreamException { super(builder, config, parent, child, context); List<? extends Config> fragmentConfigs = getConfigs().getConfigList(config, "fragments"); if (fragmentConfigs.size() == 0) { throw new MorphlineCompilationException("At least one fragment must be defined", config);
public XQuery(CommandBuilder builder, Config config, Command parent, Command child, MorphlineContext context) throws SaxonApiException, IOException, XMLStreamException { super(builder, config, parent, child, context); List<? extends Config> fragmentConfigs = getConfigs().getConfigList(config, "fragments"); if (fragmentConfigs.size() == 0) { throw new MorphlineCompilationException("At least one fragment must be defined", config);