class DynamicInputFormat extends InputFormat<K, V> {

  private static int getSplitRatio(Configuration conf) {
    int splitRatio = conf
        .getInt(S3MapReduceCpConstants.CONF_LABEL_SPLIT_RATIO, S3MapReduceCpConstants.SPLIT_RATIO_DEFAULT);
    if (splitRatio <= 0) {
      LOG
          .warn("{} should be positive. Fall back to default value: {}", S3MapReduceCpConstants.CONF_LABEL_SPLIT_RATIO,
              S3MapReduceCpConstants.SPLIT_RATIO_DEFAULT);
      splitRatio = S3MapReduceCpConstants.SPLIT_RATIO_DEFAULT;
    }
    return splitRatio;
  }

}