Code Examples
A repository of 155 code examples for BeepBeep
complex.IteratorDemo Class Reference

Creates complex events out of low-level events occurring to Java iterators. More...

Classes

class  CountIf
 Processor that accumulates the number of events where the method name (i.e.
 
class  CreateIteratorLifecycle
 Function that creates an IteratorLifecycle complex event out of four input arguments.
 
class  IteratorLifecycle
 Definition of the complex event "iterator lifecycle".
 

Static Public Member Functions

static void main (String[] args)
 

Detailed Description

Creates complex events out of low-level events occurring to Java iterators.

Each basic event represents a method call done on a Java iterator. It is an array made of two elements:

  • The object's hashcode (an integer)
  • The name of the method being called on this object (a String)

The goal is to produce a high-level stream where each event summarizes the "lifecycle" of an iterator, from its instantiation to its disposal. When an iterator is destroyed, a "complex" IteratorLifecycle event should be produced, summarizing the operations done on this iterator during its lifespan: its hashcode, and the number of times some methods have been called on it.

Author
Sylvain Hallé

Definition at line 61 of file IteratorDemo.java.


The documentation for this class was generated from the following file: