docs: @Override
      public org.apache.hadoop.mapred.InputSplit[] getSplits(JobConf job, int numSplits) throws IOException {
  
          Settings settings = HadoopSettingsManager.loadFrom(job);
          Collection<PartitionDefinition> partitions = RestService.findPartitions(settings, log);
          EsInputSplit[] splits = new EsInputSplit[partitions.size()];
  
          int index = 0;
          for (PartitionDefinition part : partitions) {
              splits[index++] = new EsInputSplit(part);
          }
          log.info(String.format("Created [%d] splits", splits.length));
          return splits;
      }