Nextresult
This tag is used to move the cursor of a previously executed query tag. By moving the cursor we will get new results from the collection of previously recorded events that obey the previously defined query.
Required Attributes
cursor
Identifies the cursor name that will be used to fetch the next result.
Optional Attributes
recycle
If this value is true then when the result set identified by the cursor hits the end of its results the cursor is reopened. If this value is false once there are no more results this tag will throw a NoMoreResultsException.
Usage Examples
Example #1
<try>
   
<sequence>
      
<query cursor="cursor1" uri="storage://OUTPUT/myevents.txt" />
      
<nextresult cursor="cursor1" />
      
<while>
         
<eq op1="true" op2="true" />
         
<sequence>
            
<nextresult cursor="cursor1" />
            
<log>${cursor1.field}</log>
         
</sequence>
      
</while>
   
</sequence>
   
<catch exception="com.yahoo.dtf.exceptions.NoMoreResultsException">
      
<log>All done.</log>
   
</catch>
</try>