Re: Unable to get the value of datatype in datastream

2016-07-19 Thread subash basnet
Hello Aljoscha Krettek, Thank you. As you suggested, I changed my code as below: *snippet 1:* DataStream centroids = newCentroidDataStream.map(new TupleCentroidConverter()); ConnectedIterativeStreams loop = points.iterate().withFeedbackType(Centroid.class); DataStream newCentroids = loop.flatMap(n

Re: Unable to get the value of datatype in datastream

2016-07-19 Thread Aljoscha Krettek
Hi, you have to ensure to filter the data that you send back on the feedback edge, i.e. the loop.closeWith(newCentroids.broadcast()); statement needs to take a stream that only has the centroids that you want to send back. And you need to make sure to emit centroids with a good timestamp if you wan

Unable to get the value of datatype in datastream

2016-07-18 Thread subash basnet
Hello all, I am trying to cluster datastream points around a centroid. My input is stock data where the centroid id I have taken as the timestamp of the stock. The error I am facing is in getting *id *of the *centroid* within *flatMap2*. Below is my code if you could look: ConnectedIterativeStrea