Building a Sample Application
[ 270 ]
Now, we will let the IEP process only the itineraries received for the last three
seconds in the stream. Double-click the Time Based Window Property Editor and
specify the Size as 3 and select second from the drop-down box. Note that since you
have already connected the operators, the Attributes are automatically populated
from the input stream.
Now, if you notice the stream that we are processing also includes guest preferences
like Food and Seat preference. If for some reason we want to ignore the preferences
and process only the core itinerary attributes, we need to ignore these preferences.
For this, we will be using the Stream Projection and Filter operator. Double-click
the Stream Projection and Filter Property Editor and add all the attributes except
FoodPreference and SeatPreference.
Chapter 10
[ 271 ]
Now, we pass the stream to the Contiguous order operator to sort the stream based
on the SeqID.
Building a Sample Application
[ 272 ]
Open the Contiguous Order Property Editor and select SeqID as the Sort by id.
Despite of the time based filtering we did earlier, there could be several itinerary
records that you may need to control processing. We can set it to process only the last
four records of the itinerary using a Partitioned Window.
Pages:
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233