...
Code Block |
---|
if (Settings.getBoolean(CommonSettings.USE_HADOOP_FLAG)) { ... do somethingincluding one or more hadoop calls } else { ... do something else including one or more batch calls } |
with the added huge advantage that with a suitable default value, it will be intrinsically backwards compatible for our other current users.