public MaxRecValidator getMaxRecValidator() { final MaxRecValidator ret; String name = MaxRecValidator.class.getName(); String cname = config.getProperty(name); if (cname == null) { ret = new MaxRecValidator(); } else { try { Class c = Class.forName(cname); ret = (MaxRecValidator) c.newInstance(); } catch (Throwable ex) { throw new RuntimeException("config error: failed to create MaxRecValidator " + cname, ex); } } ret.setJob(job); return ret; }
maxRecValidator.setTapSchema(tapSchema); maxRecValidator.setJob(job); maxRecValidator.setSynchronousMode(syncOutput != null); Integer maxRows = maxRecValidator.validate();