public static TransformOutputStrategy transform(TransformOperation... transformOperations) { TransformOutputStrategy tos = new TransformOutputStrategy(); tos.setTransformOperations(Arrays.asList(transformOperations)); return tos; }
public TransformOutputStrategy(TransformOutputStrategy other) { super(other); this.setTransformOperations(new Cloner().transformOperations(other.getTransformOperations())); }
EventSchema outSchema = new EventSchema(); EventSchema inSchema = stream.getEventSchema(); strategy.getTransformOperations().forEach(to -> { Optional<MappingPropertyUnary> mappingPropertyOpt = findMappingProperty(to.getMappingPropertyInternalName(), dataProcessorInvocation.getStaticProperties());
public OutputStrategy outputStrategy(OutputStrategy other) { if (other instanceof KeepOutputStrategy) { return new KeepOutputStrategy((KeepOutputStrategy) other); } else if (other instanceof FixedOutputStrategy) { return new FixedOutputStrategy((FixedOutputStrategy) other); } else if (other instanceof ListOutputStrategy) { return new ListOutputStrategy((ListOutputStrategy) other); } else if (other instanceof CustomOutputStrategy) { return new CustomOutputStrategy((CustomOutputStrategy) other); } else if (other instanceof TransformOutputStrategy) { return new TransformOutputStrategy((TransformOutputStrategy) other); } else if (other instanceof CustomTransformOutputStrategy) { return new CustomTransformOutputStrategy((CustomTransformOutputStrategy) other); } else { return new AppendOutputStrategy((AppendOutputStrategy) other); } }
EventSchema outSchema = new EventSchema(); EventSchema inSchema = stream.getEventSchema(); strategy.getTransformOperations().forEach(to -> { Optional<MappingPropertyUnary> mappingPropertyOpt = findMappingProperty(to.getMappingPropertyInternalName(), dataProcessorInvocation.getStaticProperties());