use of org.apache.gora.mapreduce.GoraInputSplit in project gora by apache.
the class PigGoraInputFormat method getSplits.
@Override
public List<InputSplit> getSplits(JobContext context) throws IOException, InterruptedException {
List<PartitionQuery<K, T>> partitionsQueries = this.dataStore.getPartitions(query);
List<InputSplit> splits = new ArrayList<>(partitionsQueries.size());
for (PartitionQuery<K, T> queryForSplit : partitionsQueries) {
splits.add(new GoraInputSplit(context.getConfiguration(), queryForSplit));
}
return splits;
}
Aggregations