|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.view.ViewServiceHelper
public class ViewServiceHelper
Utility methods to deal with chains of views, and for merge/group-by views.
Constructor Summary | |
---|---|
ViewServiceHelper()
|
Method Summary | |
---|---|
protected static void |
addMergeViews(List<ViewSpec> specifications)
Add merge views for any views in the chain requiring a merge (group view). |
protected static List<View> |
instantiateChain(List<View> existingParentViews,
Viewable parentViewable,
List<ViewFactory> viewFactories,
ViewServiceContext context)
Instantiate a chain of views. |
static List<ViewFactory> |
instantiateFactoryChain(List<ViewSpec> viewSpecList,
ViewServiceContext context)
|
protected static Pair<Viewable,List<View>> |
matchExistingViews(Viewable rootViewable,
List<ViewFactory> viewFactories)
Match the views under the stream to the list of view specications passed in. |
protected static List<View> |
removeChainLeafView(Viewable parentViewable,
Viewable viewToRemove)
Removes a view from a parent view returning the orphaned parent views in a list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewServiceHelper()
Method Detail |
---|
protected static void addMergeViews(List<ViewSpec> specifications)
specifications
- is a list of view definitions defining the chain of views.protected static List<View> instantiateChain(List<View> existingParentViews, Viewable parentViewable, List<ViewFactory> viewFactories, ViewServiceContext context)
existingParentViews
- - parent viewsparentViewable
- - parent view to add the chain toviewFactories
- - is the view factories to use to make each view, or reuse and existing viewcontext
- - dependent services
protected static List<View> removeChainLeafView(Viewable parentViewable, Viewable viewToRemove)
parentViewable
- - parent to remove view fromviewToRemove
- - view to remove
protected static Pair<Viewable,List<View>> matchExistingViews(Viewable rootViewable, List<ViewFactory> viewFactories)
rootViewable
- is the top rootViewable event stream to which all views are attached as child views
This parameter is changed by this method, ie. specifications are removed if they match existing views.viewFactories
- is the view specifications for making views
public static List<ViewFactory> instantiateFactoryChain(List<ViewSpec> viewSpecList, ViewServiceContext context) throws ViewProcessingException
ViewProcessingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |