Search in sources :

Example 1 with AggregationAwareExecutionNode

use of org.finos.legend.engine.protocol.pure.v1.model.executionPlan.nodes.AggregationAwareExecutionNode in project legend-engine by finos.

the class RelationalExecutionNodeExecutor method visit.

@Override
public Result visit(AggregationAwareExecutionNode aggregationAwareExecutionNode) {
    Result last = null;
    for (ExecutionNode n : aggregationAwareExecutionNode.executionNodes()) {
        ExecutionState state = new ExecutionState(this.executionState);
        state.activities.add(new AggregationAwareActivity(aggregationAwareExecutionNode.aggregationAwareActivity));
        last = n.accept(new ExecutionNodeExecutor(this.profiles, state));
    }
    return last;
}
Also used : GraphExecutionState(org.finos.legend.engine.plan.execution.nodes.state.GraphExecutionState) ExecutionState(org.finos.legend.engine.plan.execution.nodes.state.ExecutionState) AggregationAwareActivity(org.finos.legend.engine.plan.execution.stores.relational.activity.AggregationAwareActivity) InMemoryCrossStoreGraphFetchExecutionNode(org.finos.legend.engine.protocol.pure.v1.model.executionPlan.nodes.graphFetch.store.inMemory.InMemoryCrossStoreGraphFetchExecutionNode) StoreStreamReadingExecutionNode(org.finos.legend.engine.protocol.pure.v1.model.executionPlan.nodes.graphFetch.store.inMemory.StoreStreamReadingExecutionNode) InMemoryRootGraphFetchExecutionNode(org.finos.legend.engine.protocol.pure.v1.model.executionPlan.nodes.graphFetch.store.inMemory.InMemoryRootGraphFetchExecutionNode) InMemoryPropertyGraphFetchExecutionNode(org.finos.legend.engine.protocol.pure.v1.model.executionPlan.nodes.graphFetch.store.inMemory.InMemoryPropertyGraphFetchExecutionNode) ExecutionNodeExecutor(org.finos.legend.engine.plan.execution.nodes.ExecutionNodeExecutor) ConstantResult(org.finos.legend.engine.plan.execution.result.ConstantResult) IRelationalResult(org.finos.legend.engine.plan.dependencies.store.relational.IRelationalResult) TempTableStreamingResult(org.finos.legend.engine.plan.execution.stores.relational.result.TempTableStreamingResult) PreparedTempTableResult(org.finos.legend.engine.plan.execution.stores.relational.result.PreparedTempTableResult) SQLExecutionResult(org.finos.legend.engine.plan.execution.stores.relational.result.SQLExecutionResult) GraphFetchResult(org.finos.legend.engine.plan.execution.result.graphFetch.GraphFetchResult) RelationalResult(org.finos.legend.engine.plan.execution.stores.relational.result.RelationalResult) StreamingObjectResult(org.finos.legend.engine.plan.execution.result.object.StreamingObjectResult) RealizedRelationalResult(org.finos.legend.engine.plan.execution.stores.relational.result.RealizedRelationalResult) Result(org.finos.legend.engine.plan.execution.result.Result)

Aggregations

IRelationalResult (org.finos.legend.engine.plan.dependencies.store.relational.IRelationalResult)1 ExecutionNodeExecutor (org.finos.legend.engine.plan.execution.nodes.ExecutionNodeExecutor)1 ExecutionState (org.finos.legend.engine.plan.execution.nodes.state.ExecutionState)1 GraphExecutionState (org.finos.legend.engine.plan.execution.nodes.state.GraphExecutionState)1 ConstantResult (org.finos.legend.engine.plan.execution.result.ConstantResult)1 Result (org.finos.legend.engine.plan.execution.result.Result)1 GraphFetchResult (org.finos.legend.engine.plan.execution.result.graphFetch.GraphFetchResult)1 StreamingObjectResult (org.finos.legend.engine.plan.execution.result.object.StreamingObjectResult)1 AggregationAwareActivity (org.finos.legend.engine.plan.execution.stores.relational.activity.AggregationAwareActivity)1 PreparedTempTableResult (org.finos.legend.engine.plan.execution.stores.relational.result.PreparedTempTableResult)1 RealizedRelationalResult (org.finos.legend.engine.plan.execution.stores.relational.result.RealizedRelationalResult)1 RelationalResult (org.finos.legend.engine.plan.execution.stores.relational.result.RelationalResult)1 SQLExecutionResult (org.finos.legend.engine.plan.execution.stores.relational.result.SQLExecutionResult)1 TempTableStreamingResult (org.finos.legend.engine.plan.execution.stores.relational.result.TempTableStreamingResult)1 InMemoryCrossStoreGraphFetchExecutionNode (org.finos.legend.engine.protocol.pure.v1.model.executionPlan.nodes.graphFetch.store.inMemory.InMemoryCrossStoreGraphFetchExecutionNode)1 InMemoryPropertyGraphFetchExecutionNode (org.finos.legend.engine.protocol.pure.v1.model.executionPlan.nodes.graphFetch.store.inMemory.InMemoryPropertyGraphFetchExecutionNode)1 InMemoryRootGraphFetchExecutionNode (org.finos.legend.engine.protocol.pure.v1.model.executionPlan.nodes.graphFetch.store.inMemory.InMemoryRootGraphFetchExecutionNode)1 StoreStreamReadingExecutionNode (org.finos.legend.engine.protocol.pure.v1.model.executionPlan.nodes.graphFetch.store.inMemory.StoreStreamReadingExecutionNode)1