Search in sources :

Example 11 with Action

use of com.hortonworks.streamline.streams.layout.component.rule.action.Action in project streamline by hortonworks.

the class AbstractSplitJoinActionRuntime method setActionRuntimeContext.

@Override
public void setActionRuntimeContext(ActionRuntimeContext actionRuntimeContext) {
    super.setActionRuntimeContext(actionRuntimeContext);
    final Action action = actionRuntimeContext.getAction();
    if (actionRuntimeContext.getRule() != null && action != null && (action.getOutputStreams() == null || action.getOutputStreams().isEmpty())) {
        action.setOutputStreams(actionRuntimeContext.getRule().getStreams());
    }
}
Also used : Action(com.hortonworks.streamline.streams.layout.component.rule.action.Action)

Aggregations

Action (com.hortonworks.streamline.streams.layout.component.rule.action.Action)11 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)7 IOException (java.io.IOException)6 TypeReference (com.fasterxml.jackson.core.type.TypeReference)4 ArrayList (java.util.ArrayList)4 List (java.util.List)3 Rule (com.hortonworks.streamline.streams.layout.component.rule.Rule)2 Window (com.hortonworks.streamline.streams.layout.component.rule.expression.Window)2 Function (com.google.common.base.Function)1 Stream (com.hortonworks.streamline.streams.layout.component.Stream)1 JoinAction (com.hortonworks.streamline.streams.layout.component.impl.splitjoin.JoinAction)1 SplitAction (com.hortonworks.streamline.streams.layout.component.impl.splitjoin.SplitAction)1 StageAction (com.hortonworks.streamline.streams.layout.component.impl.splitjoin.StageAction)1 TransformAction (com.hortonworks.streamline.streams.layout.component.rule.action.TransformAction)1 BinaryExpression (com.hortonworks.streamline.streams.layout.component.rule.expression.BinaryExpression)1 Expression (com.hortonworks.streamline.streams.layout.component.rule.expression.Expression)1 FieldExpression (com.hortonworks.streamline.streams.layout.component.rule.expression.FieldExpression)1 FunctionExpression (com.hortonworks.streamline.streams.layout.component.rule.expression.FunctionExpression)1 Literal (com.hortonworks.streamline.streams.layout.component.rule.expression.Literal)1 Projection (com.hortonworks.streamline.streams.layout.component.rule.expression.Projection)1