use of org.apache.drill.exec.physical.config.HashPartitionSender in project drill by apache.
the class RangePartitionSenderCreator method getRoot.
@Override
public RootExec getRoot(ExecutorFragmentContext context, RangePartitionSender config, List<RecordBatch> children) throws ExecutionSetupException {
Preconditions.checkArgument(children.size() == 1);
RangePartitionRecordBatch rangep = new RangePartitionRecordBatch(config, children.iterator().next(), context);
HashPartitionSender hpc = new HashPartitionSender(config.getOppositeMajorFragmentId(), config, config.getPartitionFunction().getPartitionFieldRef(), config.getDestinations(), RangePartitionSender.RANGE_PARTITION_OUTGOING_BATCH_SIZE);
return new PartitionSenderRootExec(context, rangep, hpc);
}
Aggregations