default B maxMappers(final Integer maxMapTasks) { if (null != maxMapTasks && null != _getOp().getNumMapTasks()) { throw new IllegalArgumentException("Invalid combination of fields. " + "Either provide the number of mappers to use or provide a min and max value."); } _getOp().setMaxMapTasks(maxMapTasks); return _self(); }
default B mappers(final Integer numMapTasks) { if (null != numMapTasks && (null != _getOp().getMinMapTasks() || null != _getOp().getMaxMapTasks())) { throw new IllegalArgumentException("Invalid combination of fields. " + "Either provide the number of mappers to use or provide a min and max value."); } _getOp().setNumMapTasks(numMapTasks); return _self(); }
default B maxReducers(final Integer maxReduceTasks) { if (null != maxReduceTasks && null != _getOp().getNumReduceTasks()) { throw new IllegalArgumentException("Invalid combination of fields. " + "Either provide the number of reducers to use or provide a min and max value."); } _getOp().setMaxReduceTasks(maxReduceTasks); return _self(); }
default B reducers(final Integer numReduceTasks) { if (null != numReduceTasks && (null != _getOp().getMinReduceTasks() || null != _getOp().getMaxReduceTasks())) { throw new IllegalArgumentException("Invalid combination of fields. " + "Either provide the number of reducers to use or provide a min and max value."); } _getOp().setNumReduceTasks(numReduceTasks); return _self(); }
default B minMappers(final Integer minMapTasks) { if (null != minMapTasks && null != _getOp().getNumMapTasks()) { throw new IllegalArgumentException("Invalid combination of fields. " + "Either provide the number of mappers to use or provide a min and max value."); } _getOp().setMinMapTasks(minMapTasks); return _self(); }
default B minReducers(final Integer minReduceTasks) { if (null != minReduceTasks && null != _getOp().getNumReduceTasks()) { throw new IllegalArgumentException("Invalid combination of fields. " + "Either provide the number of reducers to use or provide a min and max value."); } _getOp().setMinReduceTasks(minReduceTasks); return _self(); }