com.espertech.esper.epl.spec
Class MethodStreamSpec

java.lang.Object
  extended by com.espertech.esper.epl.spec.StreamSpecBase
      extended by com.espertech.esper.epl.spec.MethodStreamSpec
All Implemented Interfaces:
StreamSpec, StreamSpecCompiled, StreamSpecRaw, MetaDefItem, java.io.Serializable

public class MethodStreamSpec
extends StreamSpecBase
implements StreamSpecRaw, StreamSpecCompiled, MetaDefItem, java.io.Serializable

Specification object for historical data poll via database SQL statement.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.espertech.esper.epl.spec.StreamSpecCompiled
EMPTY_STREAM_ARRAY
 
Constructor Summary
MethodStreamSpec(java.lang.String optionalStreamName, ViewSpec[] viewSpecs, java.lang.String ident, java.lang.String className, java.lang.String methodName, java.util.List<ExprNode> expressions)
          Ctor.
 
Method Summary
 StreamSpecCompiled compile(StatementContext context, java.util.Set<java.lang.String> eventTypeReferences, boolean isInsertInto, java.util.Collection<java.lang.Integer> assignedTypeNumberStack, boolean isJoin, boolean isContextDeclaration, boolean isOnTrigger)
          Compiles a raw stream specification consisting event type information and filter expressions to an validated, optimized form for use with filter service
 java.lang.String getClassName()
          Returns the class name.
 java.util.List<ExprNode> getExpressions()
          Returns the parameter expressions.
 java.lang.String getIdent()
          Returns the prefix (method) for the method invocation syntax.
 java.lang.String getMethodName()
          Returns the method name.
 
Methods inherited from class com.espertech.esper.epl.spec.StreamSpecBase
getOptionalStreamName, getOptions, getViewSpecs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.espertech.esper.epl.spec.StreamSpec
getOptionalStreamName, getOptions, getViewSpecs
 

Constructor Detail

MethodStreamSpec

public MethodStreamSpec(java.lang.String optionalStreamName,
                        ViewSpec[] viewSpecs,
                        java.lang.String ident,
                        java.lang.String className,
                        java.lang.String methodName,
                        java.util.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 java.lang.String getIdent()
Returns the prefix (method) for the method invocation syntax.

Returns:
identifier

getClassName

public java.lang.String getClassName()
Returns the class name.

Returns:
class name

getMethodName

public java.lang.String getMethodName()
Returns the method name.

Returns:
method name

getExpressions

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

Returns:
parameter expressions

compile

public StreamSpecCompiled compile(StatementContext context,
                                  java.util.Set<java.lang.String> eventTypeReferences,
                                  boolean isInsertInto,
                                  java.util.Collection<java.lang.Integer> assignedTypeNumberStack,
                                  boolean isJoin,
                                  boolean isContextDeclaration,
                                  boolean isOnTrigger)
                           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:
context - statement-level services
eventTypeReferences - event type names used by the statement
isInsertInto - true for insert-into
isJoin - indicates whether a join or not a join
isContextDeclaration - indicates whether declared as part of the context declarations, if any
Returns:
compiled stream
Throws:
ExprValidationException - to indicate validation errors

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