@Test public void testInit() throws IOException { SetXAttrAction setXAttrAction = new SetXAttrAction(); Map<String, String> args = new HashMap<>(); args.put(SetXAttrAction.FILE_PATH, "Test"); setXAttrAction.init(args); args.put(SetXAttrAction.ATT_NAME, testAttName); args.put(SetXAttrAction.ATT_VALUE, "test"); setXAttrAction.init(args); }
@Override public void init(Map<String, String> args) { super.init(args); if (args.containsKey(FILE_PATH)) { this.srcPath = args.get(FILE_PATH); } if (args.containsKey(ATT_NAME)) { this.attName = args.get(ATT_NAME); } if (args.containsKey(ATT_VALUE)) { this.attValue = args.get(ATT_VALUE); } }
SetXAttrAction extends HdfsAction { @Override public void init(Map<String, String> args) { super.init(args); if (args.containsKey(FILE_PATH)) { this.srcPath = args.get(FILE_PATH); } if (args.containsKey(ATT_NAME)) { this.attName = args.get(ATT_NAME); } if (args.containsKey(ATT_VALUE)) { this.attValue = args.get(ATT_VALUE); } } }
SetXAttrAction extends HdfsAction { @Override public void init(Map<String, String> args) { super.init(args); if (args.containsKey(FILE_PATH)) { this.srcPath = args.get(FILE_PATH); } if (args.containsKey(ATT_NAME)) { this.attName = args.get(ATT_NAME); } if (args.containsKey(ATT_VALUE)) { this.attValue = args.get(ATT_VALUE); } }  }
SetXAttrAction extends HdfsAction { @Override public void init(Map<String, String> args) { super.init(args); if (args.containsKey(FILE_PATH)) { this.srcPath = args.get(FILE_PATH); } if (args.containsKey(ATT_NAME)) { this.attName = args.get(ATT_NAME); } if (args.containsKey(ATT_VALUE)) { this.attValue = args.get(ATT_VALUE); } }  @Override void init(Map<String, String> args); }
SetXAttrAction extends HdfsAction { @Override public void init(Map<String, String> args) { super.init(args); if (args.containsKey(FILE_PATH)) { this.srcPath = args.get(FILE_PATH); } if (args.containsKey(ATT_NAME)) { this.attName = args.get(ATT_NAME); } if (args.containsKey(ATT_VALUE)) { this.attValue = args.get(ATT_VALUE); } }  @Override void init(Map<String, String> args); static final String ATT_NAME; static final String ATT_VALUE; }