Search in sources :

Example 1 with MetadataStreamAggPOP

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

the class MetadataStreamAggBatch method createAggregatorInternal.

@Override
protected StreamingAggregator createAggregatorInternal() {
    MetadataStreamAggPOP popConfig = (MetadataStreamAggPOP) this.popConfig;
    valueExpressions = new MetadataAggregateHelper(popConfig.getContext(), new ColumnNamesOptions(context.getOptions()), incoming.getSchema(), popConfig.getPhase()).getValueExpressions();
    return super.createAggregatorInternal();
}
Also used : MetadataStreamAggPOP(org.apache.drill.exec.physical.config.MetadataStreamAggPOP) ColumnNamesOptions(org.apache.drill.exec.metastore.ColumnNamesOptions)

Example 2 with MetadataStreamAggPOP

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

the class MetadataStreamAggPrel method getPhysicalOperator.

@Override
public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException {
    Prel child = (Prel) this.getInput();
    MetadataStreamAggPOP physicalOperator = new MetadataStreamAggPOP(child.getPhysicalOperator(creator), context, phase);
    return creator.addMetadata(this, physicalOperator);
}
Also used : MetadataStreamAggPOP(org.apache.drill.exec.physical.config.MetadataStreamAggPOP)

Aggregations

MetadataStreamAggPOP (org.apache.drill.exec.physical.config.MetadataStreamAggPOP)2 ColumnNamesOptions (org.apache.drill.exec.metastore.ColumnNamesOptions)1