com.espertech.esper.view
Class ZeroDepthStream

java.lang.Object
  extended by com.espertech.esper.view.ZeroDepthStream
All Implemented Interfaces:
EventCollection, EventStream, Viewable, Iterable<EventBean>

public final class ZeroDepthStream
extends Object
implements EventStream

Event stream implementation that does not keep any window by itself of the events coming into the stream.


Constructor Summary
ZeroDepthStream(EventType eventType)
          Ctor.
 
Method Summary
 View addView(View view)
          Add a view to the viewable object.
 EventType getEventType()
          Provides metadata information about the type of object the event collection contains.
 List<View> getViews()
          Returns all added views.
 boolean hasViews()
          Test is there are any views to the Viewable.
 void insert(EventBean event)
          Insert a new event onto the stream.
 Iterator<EventBean> iterator()
          Allows iteration through all elements in this event collection.
 boolean removeView(View view)
          Remove a view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZeroDepthStream

public ZeroDepthStream(EventType eventType)
Ctor.

Parameters:
eventType - - type of event
Method Detail

insert

public final void insert(EventBean event)
Description copied from interface: EventStream
Insert a new event onto the stream.

Specified by:
insert in interface EventStream
Parameters:
event - to insert

getEventType

public final EventType getEventType()
Description copied from interface: EventCollection
Provides metadata information about the type of object the event collection contains.

Specified by:
getEventType in interface EventCollection
Returns:
metadata for the objects in the collection

iterator

public final Iterator<EventBean> iterator()
Description copied from interface: EventCollection
Allows iteration through all elements in this event collection. The iterator will return the elements in the collection in their natural order, or, if there is no natural ordering, in some unpredictable order.

Specified by:
iterator in interface EventCollection
Specified by:
iterator in interface Iterable<EventBean>
Returns:
an iterator which will go through all current elements in the collection.

addView

public final View addView(View view)
Description copied from interface: Viewable
Add a view to the viewable object.

Specified by:
addView in interface Viewable
Parameters:
view - to add
Returns:
view to add

getViews

public final List<View> getViews()
Description copied from interface: Viewable
Returns all added views.

Specified by:
getViews in interface Viewable
Returns:
list of added views

removeView

public final boolean removeView(View view)
Description copied from interface: Viewable
Remove a view.

Specified by:
removeView in interface Viewable
Parameters:
view - to remove
Returns:
true to indicate that the view to be removed existed within this view, false if the view to remove could not be found

hasViews

public final boolean hasViews()
Description copied from interface: Viewable
Test is there are any views to the Viewable.

Specified by:
hasViews in interface Viewable
Returns:
true indicating there are child views, false indicating there are no child views

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com