Search in sources :

Example 1 with IdentityTransformRuntime

use of com.hortonworks.streamline.streams.runtime.transform.IdentityTransformRuntime in project streamline by hortonworks.

the class TransformActionRuntime method getTransformRuntimes.

private List<TransformRuntime> getTransformRuntimes(List<Transform> transforms) {
    if (transforms == null || transforms.isEmpty()) {
        return Collections.<TransformRuntime>singletonList(new IdentityTransformRuntime());
    }
    List<TransformRuntime> transformRuntimes = new ArrayList<>();
    for (Transform transform : transforms) {
        TransformRuntime transformRuntime = TransformRuntimeService.get().get(transform);
        transformRuntimes.add(transformRuntime);
    }
    return transformRuntimes;
}
Also used : IdentityTransformRuntime(com.hortonworks.streamline.streams.runtime.transform.IdentityTransformRuntime) ArrayList(java.util.ArrayList) IdentityTransformRuntime(com.hortonworks.streamline.streams.runtime.transform.IdentityTransformRuntime) Transform(com.hortonworks.streamline.streams.layout.Transform)

Aggregations

Transform (com.hortonworks.streamline.streams.layout.Transform)1 IdentityTransformRuntime (com.hortonworks.streamline.streams.runtime.transform.IdentityTransformRuntime)1 ArrayList (java.util.ArrayList)1