use of com.ibm.streamsx.topology.builder.BOperatorInvocation in project streamsx.topology by IBMStreams.
the class StreamImpl method _modify.
private TStream<T> _modify(UnaryOperator<T> transformer, Type tupleType) {
String opName = transformer.getClass().getSimpleName();
if (opName.isEmpty()) {
opName = getTupleName() + "Modify";
}
BOperatorInvocation bop = JavaFunctional.addFunctionalOperator(this, opName, FunctionTransform.class, transformer);
SourceInfo.setSourceInfo(bop, StreamImpl.class);
BInputPort inputPort = connectTo(bop, true, null);
// By default add a queue
inputPort.addQueue(true);
return this.addMatchingOutput(bop, tupleType);
}
Aggregations