use of org.apache.drill.exec.physical.impl.partitionsender.PartitionSenderRootExec in project drill by apache.
the class OrderedPartitionSenderCreator method getRoot.
@SuppressWarnings("resource")
@Override
public RootExec getRoot(FragmentContext context, OrderedPartitionSender config, List<RecordBatch> children) throws ExecutionSetupException {
Preconditions.checkArgument(children.size() == 1);
List<RecordBatch> ordered_children = Lists.newArrayList();
ordered_children.add(new OrderedPartitionRecordBatch(config, children.iterator().next(), context));
HashPartitionSender hpc = new HashPartitionSender(config.getOppositeMajorFragmentId(), config, config.getRef(), config.getDestinations());
return new PartitionSenderRootExec(context, ordered_children.iterator().next(), hpc);
}
Aggregations