Search in sources :

Example 1 with BroadcastExchange

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

the class BroadcastExchangePrel method getPhysicalOperator.

public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException {
    Prel child = (Prel) this.getInput();
    PhysicalOperator childPOP = child.getPhysicalOperator(creator);
    //Currently, only accepts "NONE". For other, requires SelectionVectorRemover
    if (!childPOP.getSVMode().equals(SelectionVectorMode.NONE)) {
        childPOP = new SelectionVectorRemover(childPOP);
    }
    BroadcastExchange g = new BroadcastExchange(childPOP);
    return creator.addMetadata(this, g);
}
Also used : SelectionVectorRemover(org.apache.drill.exec.physical.config.SelectionVectorRemover) PhysicalOperator(org.apache.drill.exec.physical.base.PhysicalOperator) BroadcastExchange(org.apache.drill.exec.physical.config.BroadcastExchange)

Aggregations

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