/** * Creates a {@link org.streampipes.model.output.CustomOutputStrategy}. * @param outputBoth If two input streams are expected by a pipeline element, you can use outputBoth to indicate * whether the properties of both input streams should be available to the pipeline developer for * selection. * @return CustomOutputStrategy */ public static CustomOutputStrategy custom(boolean outputBoth) { return new CustomOutputStrategy(outputBoth); }
@Override public AppendOutputStrategy getModifiedOutputStrategy( AppendOutputStrategy strategy) { strategy.setEventProperties(renamedProperties); return strategy; }
public TransformOperation(TransformOperation other) { super(other); this.mappingPropertyInternalName = other.getMappingPropertyInternalName(); this.sourceStaticProperty = other.getSourceStaticProperty(); this.transformationScope = other.getTransformationScope(); this.targetValue = other.getTargetValue(); }
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); } }
public CustomOutputStrategy(CustomOutputStrategy other) { super(other); this.eventProperties = new Cloner().properties(other.getEventProperties()); this.outputRight = other.isOutputRight(); }
public KeepOutputStrategy(KeepOutputStrategy other) { super(other); this.eventName = other.getEventName(); this.keepBoth = other.isKeepBoth(); }
/** * Creates a {@link org.streampipes.model.output.KeepOutputStrategy}. Keep output strategies do not change the * schema of an input event, i.e., the output schema matches the input schema. * @return KeepOutputStrategy */ public static KeepOutputStrategy keep() { return new KeepOutputStrategy(); }
public static AppendOutputStrategy append(List<EventProperty> appendProperties) { return new AppendOutputStrategy(appendProperties); }
private static TransformOperation prepareTransformOperation(String transformationScope, String mappingPropertyInternalName) { return new TransformOperation(transformationScope, mappingPropertyInternalName); } }
public static CustomTransformOutputStrategy customTransformation() { return new CustomTransformOutputStrategy(); } }
public ListOutputStrategy(ListOutputStrategy other) { super(other); this.propertyName = other.getPropertyName(); }
public static FixedOutputStrategy fixed(List<EventProperty> appendProperties) { return new FixedOutputStrategy(appendProperties); }
public static ListOutputStrategy list(String propertyRuntimeName) { return new ListOutputStrategy(propertyRuntimeName); }
private static TransformOperation dynamicTransformOperation(TransformOperationType transformationScope, String mappingPropertyInternalName, String sourceStaticPropertyInternalName) { TransformOperation to = prepareTransformOperation(transformationScope.name() , mappingPropertyInternalName); to.setSourceStaticProperty(sourceStaticPropertyInternalName); return to; }
private static TransformOperation staticTransformOperation(TransformOperationType transformationScope, String mappingPropertyInternalName, String targetValue) { TransformOperation to = prepareTransformOperation(transformationScope.name() , mappingPropertyInternalName); to.setTargetValue(targetValue); return to; }
public OutputStrategy(OutputStrategy other) { super(other); this.name = other.getName(); }
/** * Creates a {@link org.streampipes.model.output.CustomOutputStrategy}. Custom output strategies let pipeline * developers decide which events are produced by the corresponding pipeline element. * @return CustomOutputStrategy */ public static CustomOutputStrategy custom() { return new CustomOutputStrategy(); }
@Override public AppendOutputStrategy getModifiedOutputStrategy( AppendOutputStrategy strategy) { strategy.setEventProperties(renamedProperties); return strategy; }
public static KeepOutputStrategy keep(boolean mergeInputStreams) { return new KeepOutputStrategy("Rename", mergeInputStreams); }
/** * Creates a {@link org.streampipes.model.output.AppendOutputStrategy}. Append output strategies add additional * properties to an input event stream. * @param appendProperties An arbitrary number of event properties that are appended to any input stream. * @return AppendOutputStrategy */ public static AppendOutputStrategy append(EventProperty... appendProperties) { return new AppendOutputStrategy(Arrays.asList(appendProperties)); }