-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support dynamic partition and ad-hoc cep runtime #28
Conversation
@haoch Please help to review this PR, thanks |
@@ -298,37 +324,42 @@ public ExecutionSiddhiStream(DataStream<Tuple2<String, Object>> dataStream, Stri | |||
* @param <T> Output type | |||
* @return Return output stream as POJO class. | |||
*/ | |||
public <T> DataStream<T> returns(String outStreamId, Class<T> outType) { | |||
public <T> DataStream<Tuple2<String, T>> returns(String outStreamId, Class<T> outType) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep DataStream<T>
instead of DataStream<Tuple2<String, T>>
for backward compatibility and the String
key is verbose as well.
} | ||
|
||
public DataStream<Row> returnAsRow(String outStreamId) { | ||
return this.returnsInternal(outStreamId, TypeExtractor.createTypeInfo(Row.class)); | ||
public DataStream<Tuple2<String, Row>> returnAsRow(String outStreamId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep DataStream<T>
instead of DataStream<Tuple2<String, T>>
for backward compatibility
@@ -284,12 +304,18 @@ public ExecutionSiddhiStream(DataStream<Tuple2<String, Object>> dataStream, Stri | |||
* @see java.util.LinkedHashMap | |||
*/ | |||
public DataStream<Map<String, Object>> returnAsMap(String outStreamId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
} | ||
|
||
/** | ||
* @param outStreamId OutStreamId | ||
* @param <T> Output type | ||
* @return Return output stream as POJO class. | ||
*/ | ||
public <T> DataStream<T> returns(String outStreamId, TypeInformation<T> typeInformation) { | ||
return returnsInternal(outStreamId, typeInformation); | ||
public <T> DataStream<Tuple2<String, T>> returns(String outStreamId, TypeInformation<T> typeInformation) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep DataStream<T>
instead of DataStream<Tuple2<String, T>>
for backward compatibility
@wujinhu Please keep the original API for backward compasibility and add some new API for multiple stream output. |
@haoch OK, I have brought interfaces back and added new interfaces. |
|
LGTM @wujinhu. Do you think it's ready to merge now? |
Add dynamic partition for dynamic added rules
Related Issue: #19 #2