@Override
  public void configure(
      final OETLProcessor iProcessor,
      final ODocument iConfiguration,
      final OCommandContext iContext) {
    super.configure(iProcessor, iConfiguration, iContext);
    clusterName = iConfiguration.field("cluster");

    if (iConfiguration.containsField("class"))
      vertexClass = (String) resolve(iConfiguration.field("class"));
    if (iConfiguration.containsField("skipDuplicates"))
      skipDuplicates = (Boolean) resolve(iConfiguration.field("skipDuplicates"));
  }
Exemplo n.º 2
0
  @Override
  public void configure(
      OETLProcessor iProcessor, final ODocument iConfiguration, OCommandContext iContext) {
    super.configure(iProcessor, iConfiguration, iContext);
    final String[] fieldNames = iConfiguration.fieldNames();

    try {
      block = processor.getFactory().getBlock(fieldNames[0]);
      block.configure(processor, (ODocument) iConfiguration.field(fieldNames[0]), context);
    } catch (Exception e) {
      throw new OConfigurationException("[Block transformer] Error on configuring inner block", e);
    }
  }
Exemplo n.º 3
0
 @Override
 public void setPipeline(OETLPipeline iPipeline) {
   super.setPipeline(iPipeline);
   block.setContext(context);
 }