com.espertech.esper.view
Class ViewFactoryChain

java.lang.Object
  extended by com.espertech.esper.view.ViewFactoryChain

public class ViewFactoryChain
extends java.lang.Object

Holder for the logical chain of view factories.


Constructor Summary
ViewFactoryChain(EventType streamEventType, java.util.List<ViewFactory> viewFactoryChain)
          Ctor.
 
Method Summary
static ViewFactoryChain fromTypeNoViews(EventType eventType)
           
 int getDataWindowViewFactoryCount()
          Returns the number of data window factories for the chain.
 EventType getEventType()
          Returns the final event type which is the event type of the last view factory in the chain, or if the chain is empty then the stream's event type.
 java.util.List<ViewFactory> getViewFactoryChain()
          Returns the chain of view factories.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewFactoryChain

public ViewFactoryChain(EventType streamEventType,
                        java.util.List<ViewFactory> viewFactoryChain)
Ctor.

Parameters:
streamEventType - is the event type of the event stream
viewFactoryChain - is the chain of view factories
Method Detail

getEventType

public EventType getEventType()
Returns the final event type which is the event type of the last view factory in the chain, or if the chain is empty then the stream's event type.

Returns:
final event type of the last view or stream

getViewFactoryChain

public java.util.List<ViewFactory> getViewFactoryChain()
Returns the chain of view factories.

Returns:
view factory list

getDataWindowViewFactoryCount

public int getDataWindowViewFactoryCount()
Returns the number of data window factories for the chain.

Returns:
number of data window factories

fromTypeNoViews

public static ViewFactoryChain fromTypeNoViews(EventType eventType)

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com