net.esper.eql.spec
Class MethodStreamSpec

java.lang.Object
  extended by net.esper.eql.spec.StreamSpecBase
      extended by net.esper.eql.spec.MethodStreamSpec
All Implemented Interfaces:
Serializable, StreamSpec, StreamSpecCompiled, StreamSpecRaw, MetaDefItem

public class MethodStreamSpec
extends StreamSpecBase
implements StreamSpecRaw, StreamSpecCompiled, MetaDefItem

Specification object for historical data poll via database SQL statement.

See Also:
Serialized Form

Constructor Summary
MethodStreamSpec(String optionalStreamName, List<ViewSpec> viewSpecs, String ident, String className, String methodName, List<ExprNode> expressions)
          Ctor.
 
Method Summary
 StreamSpecCompiled compile(EventAdapterService eventAdapterService, MethodResolutionService methodResolutionService, PatternObjectResolutionService patternObjectResolutionService, TimeProvider timeProvider, NamedWindowService namedWindowService, VariableService variableService)
          Compiles a raw stream specification consisting event type information and filter expressions to an validated, optimized form for use with filter service
 String getClassName()
          Returns the class name.
 List<ExprNode> getExpressions()
          Returns the parameter expressions.
 String getIdent()
          Returns the prefix (method) for the method invocation syntax.
 String getMethodName()
          Returns the method name.
 
Methods inherited from class net.esper.eql.spec.StreamSpecBase
getOptionalStreamName, getViewSpecs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.esper.eql.spec.StreamSpec
getOptionalStreamName, getViewSpecs
 
Methods inherited from interface net.esper.eql.spec.StreamSpec
getOptionalStreamName, getViewSpecs
 

Constructor Detail

MethodStreamSpec

public MethodStreamSpec(String optionalStreamName,
                        List<ViewSpec> viewSpecs,
                        String ident,
                        String className,
                        String methodName,
                        List<ExprNode> expressions)
Ctor.

Parameters:
optionalStreamName - is the stream name or null if none defined
viewSpecs - is an list of view specifications
ident - the prefix in the clause
className - the class name
methodName - the method name
expressions - the parameter expressions
Method Detail

getIdent

public String getIdent()
Returns the prefix (method) for the method invocation syntax.

Returns:
identifier

getClassName

public String getClassName()
Returns the class name.

Returns:
class name

getMethodName

public String getMethodName()
Returns the method name.

Returns:
method name

getExpressions

public List<ExprNode> getExpressions()
Returns the parameter expressions.

Returns:
parameter expressions

compile

public StreamSpecCompiled compile(EventAdapterService eventAdapterService,
                                  MethodResolutionService methodResolutionService,
                                  PatternObjectResolutionService patternObjectResolutionService,
                                  TimeProvider timeProvider,
                                  NamedWindowService namedWindowService,
                                  VariableService variableService)
                           throws ExprValidationException
Description copied from interface: StreamSpecRaw
Compiles a raw stream specification consisting event type information and filter expressions to an validated, optimized form for use with filter service

Specified by:
compile in interface StreamSpecRaw
Parameters:
eventAdapterService - supplies type information
methodResolutionService - for resolving imports
patternObjectResolutionService - for resolving pattern objects
timeProvider - - provides engine current time
namedWindowService - is the service managing named windows
variableService - provides variable values
Returns:
compiled stream
Throws:
ExprValidationException - to indicate validation errors

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