|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.view.std.UniqueByPropertyViewFactory
public class UniqueByPropertyViewFactory
Factory for UniqueByPropertyView
instances.
Field Summary | |
---|---|
protected String[] |
propertyNames
Property name to evaluate unique values. |
Constructor Summary | |
---|---|
UniqueByPropertyViewFactory()
|
Method Summary | |
---|---|
void |
attach(EventType parentEventType,
StatementContext statementContext,
ViewFactory optionalParentFactory,
List<ViewFactory> parentViewFactories)
Attaches the factory to a parent event type such that the factory can validate attach requirements and determine an event type for resulting views. |
boolean |
canProvideCapability(ViewCapability viewCapability)
Returns true if the view factory can make views that provide a view resource with the given capability. |
boolean |
canReuse(View view)
Determines if the given view could be used instead of creating a new view, requires the view factory to compare view type, parameters and other capabilities provided. |
EventType |
getEventType()
Returns the event type that the view that is created by the view factory would create for events posted by the view. |
View |
makeView(StatementContext statementContext)
Create a new view. |
void |
setProvideCapability(ViewCapability viewCapability,
ViewResourceCallback resourceCallback)
Indicates to the view factory to provide the view resource indicated. |
void |
setViewParameters(ViewFactoryContext viewFactoryContext,
List<Object> viewParameters)
Indicates user EPL query view parameters to the view factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String[] propertyNames
Constructor Detail |
---|
public UniqueByPropertyViewFactory()
Method Detail |
---|
public void setViewParameters(ViewFactoryContext viewFactoryContext, List<Object> viewParameters) throws ViewParameterException
ViewFactory
setViewParameters
in interface ViewFactory
viewFactoryContext
- supplied context information for the view factoryviewParameters
- is the objects representing the view parameters
ViewParameterException
- if the parameters don't match view parameter needspublic void attach(EventType parentEventType, StatementContext statementContext, ViewFactory optionalParentFactory, List<ViewFactory> parentViewFactories) throws ViewAttachException
ViewFactory
attach
in interface ViewFactory
parentEventType
- is the parent event stream's or view factory's event typestatementContext
- contains the services needed for creating a new event typeoptionalParentFactory
- is null when there is no parent view factory, or contains the
parent view factoryparentViewFactories
- is a list of all the parent view factories or empty list if there are none
ViewAttachException
- is thrown to indicate that this view factories's view would not play
with the parent view factories viewpublic boolean canProvideCapability(ViewCapability viewCapability)
ViewFactory
canProvideCapability
in interface ViewFactory
viewCapability
- is the view resource needed
public void setProvideCapability(ViewCapability viewCapability, ViewResourceCallback resourceCallback)
ViewFactory
setProvideCapability
in interface ViewFactory
viewCapability
- is the required resource descriptorresourceCallback
- is the callback to use to supply the resource neededpublic View makeView(StatementContext statementContext)
ViewFactory
makeView
in interface ViewFactory
statementContext
- contains view services
public EventType getEventType()
ViewFactory
getEventType
in interface ViewFactory
public boolean canReuse(View view)
ViewFactory
canReuse
in interface ViewFactory
view
- is the candidate view to compare to
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |