Search in sources :

Example 1 with HashToMergeExchange

use of org.apache.drill.exec.physical.config.HashToMergeExchange in project drill by apache.

the class HashToMergeExchangePrel method getPhysicalOperator.

public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException {
    Prel child = (Prel) this.getInput();
    PhysicalOperator childPOP = child.getPhysicalOperator(creator);
    if (PrelUtil.getSettings(getCluster()).isSingleMode()) {
        return childPOP;
    }
    HashToMergeExchange g = new HashToMergeExchange(childPOP, HashPrelUtil.getHashExpression(this.distFields, getInput().getRowType()), PrelUtil.getOrdering(this.collation, getInput().getRowType()));
    return creator.addMetadata(this, g);
}
Also used : HashToMergeExchange(org.apache.drill.exec.physical.config.HashToMergeExchange) PhysicalOperator(org.apache.drill.exec.physical.base.PhysicalOperator)

Aggregations

PhysicalOperator (org.apache.drill.exec.physical.base.PhysicalOperator)1 HashToMergeExchange (org.apache.drill.exec.physical.config.HashToMergeExchange)1