parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetInputFormat.java
@Override
  public List<InputSplit> getSplits(JobContext jobContext) throws IOException {
    Configuration configuration = ContextUtil.getConfiguration(jobContext);
    List<InputSplit> splits = new ArrayList<InputSplit>();

    if (isTaskSideMetaData(configuration)) {
      // Although not required by the API, some clients may depend on always
      // receiving ParquetInputSplit. Translation is required at some point.
      for (InputSplit split : super.getSplits(jobContext)) {
        Preconditions.checkArgument(split instanceof FileSplit,
            "Cannot wrap non-FileSplit: " + split);
        splits.add(ParquetInputSplit.from((FileSplit) split));
      }
      return splits;

    } else {
      splits.addAll(getSplits(configuration, getFooters(jobContext)));
    }

    return splits;
  }
@Override
  public List<InputSplit> getSplits(JobContext jobContext) throws IOException {
    Configuration configuration = ContextUtil.getConfiguration(jobContext);
    List<InputSplit> splits = new ArrayList<InputSplit>();

    if (isTaskSideMetaData(configuration)) {
      // Although not required by the API, some clients may depend on always
      // receiving ParquetInputSplit. Translation is required at some point.
      for (InputSplit split : super.getSplits(jobContext)) {
        Preconditions.checkArgument(split instanceof FileSplit,
            "Cannot wrap non-FileSplit: " + split);
        splits.add(ParquetInputSplit.from((FileSplit) split));
      }
      return splits;

    } else {
      splits.addAll(getSplits(configuration, getFooters(jobContext)));
    }

    return splits;
  }
@ Override public List < InputSplit > getSplits ( JobContext jobContext ) throws IOException { Configuration configuration = ContextUtil . getConfiguration ( jobContext ) ; List < InputSplit > splits = new ArrayList < InputSplit > ( ) ; if ( isTaskSideMetaData ( configuration ) ) { // Although not required by the API, some clients may depend on always // receiving ParquetInputSplit. Translation is required at some point. for ( InputSplit split : super . getSplits ( jobContext ) ) { Preconditions . checkArgument ( split instanceof FileSplit , "Cannot wrap non-FileSplit: " + split ) ; splits . add ( ParquetInputSplit . from ( ( FileSplit ) split ) ) ; } return splits ; } else { splits . addAll ( getSplits ( configuration , getFooters ( jobContext ) ) ) ; } return splits ; }
{@inheritDoc}
{