Example #1
0
 @Override
 protected void onExecute(
     KeyValueRow row,
     Map<String, Object> root,
     Map<String, Object> current,
     LogicletContext ctx,
     ExecuteWatcher watcher) {
   String[] items = ctx.transform(item).split(delimeter);
   if (row instanceof SetRow) {
     SetRow r = (SetRow) row;
     ctx.SetValue(id, String.valueOf(r.add(items)));
   }
 }
Example #2
0
  @Override
  protected void onExecute(
      KeyValueRow row,
      Map<String, Object> root,
      Map<String, Object> current,
      LogicletContext ctx,
      ExecuteWatcher watcher) {
    String keyList = ctx.transform(key);

    if (row instanceof HashRow) {
      HashRow r = (HashRow) row;
      String dftValue = ctx.transform(dft);
      ctx.SetValue(id, String.valueOf(r.get(keyList, dftValue)));
    }
  }