code: public List<InputSplit> getSplits(JobContext context) throws IOException {
          // Delegate to the old API.
          Configuration cfg = context.getConfiguration();
          JobConf jobconf = AerospikeConfigUtil.asJobConf(cfg);
          return Arrays.asList((InputSplit[]) getSplits(jobconf,
                                                        jobconf.getNumMapTasks()));
      }
docs: ---------------- NEW API ----------------