Github user haohui commented on a diff in the pull request:

    https://github.com/apache/storm/pull/895#discussion_r45505881
  
    --- Diff: storm-core/src/jvm/storm/trident/TridentTopology.java ---
    @@ -127,7 +128,21 @@ public Stream newStream(String txId, 
IPartitionedTridentSpout spout) {
         public Stream newStream(String txId, IOpaquePartitionedTridentSpout 
spout) {
             return newStream(txId, new 
OpaquePartitionedTridentSpoutExecutor(spout));
         }
    -    
    +
    +    public Stream newStream(String txId, ITridentDataSource dataSource) {
    +        if (dataSource instanceof IBatchSpout) {
    +            return newStream(txId, (IBatchSpout) dataSource);
    +        } else if (dataSource instanceof ITridentSpout) {
    +            return newStream(txId, (ITridentSpout) dataSource);
    +        } else if (dataSource instanceof IPartitionedTridentSpout) {
    +            return newStream(txId, (IPartitionedTridentSpout) dataSource);
    +        } else if (dataSource instanceof IOpaquePartitionedTridentSpout) {
    +            return newStream(txId, (IOpaquePartitionedTridentSpout) 
dataSource);
    +        } else {
    +            throw new UnsupportedOperationException();
    --- End diff --
    
    Addressed in the latest version. Thanks!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to