Class EPStatementHandle
java.lang.Object
com.espertech.esper.common.internal.context.util.EPStatementHandle
Class exists once per statement and hold statement resource lock(s).
The statement's self-join flag indicates the the statement may join to itself, that is a single event may dispatch into multiple streams or patterns for the same statement, requiring internal dispatch logic to not shortcut evaluation of all filters for the statement within one lock, requiring the callback handle to be sorted.
-
Constructor Summary
ConstructorDescriptionEPStatementHandle
(String statementName, String deploymentId, int statementId, String optionalStatementEPL, int priority, boolean preemptive, boolean canSelfJoin, MultiMatchHandler multiMatchHandler, boolean hasVariables, boolean hasTableAccess, StatementMetricHandle metricsHandle, InsertIntoLatchFactory insertIntoFrontLatchFactory, InsertIntoLatchFactory insertIntoBackLatchFactory) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns handle for metrics reporting.int
Returns the statement priority.int
Returns the statement id.int
hashCode()
boolean
Returns true if the statement potentially self-joins amojng the events it processes.boolean
boolean
Returns true if the statement uses variables, false if not.boolean
True for preemptive (drop) statements.
-
Constructor Details
-
EPStatementHandle
public EPStatementHandle(String statementName, String deploymentId, int statementId, String optionalStatementEPL, int priority, boolean preemptive, boolean canSelfJoin, MultiMatchHandler multiMatchHandler, boolean hasVariables, boolean hasTableAccess, StatementMetricHandle metricsHandle, InsertIntoLatchFactory insertIntoFrontLatchFactory, InsertIntoLatchFactory insertIntoBackLatchFactory)
-
-
Method Details
-
getStatementId
public int getStatementId()Returns the statement id.- Returns:
- statement id
-
isHasVariables
public boolean isHasVariables()Returns true if the statement uses variables, false if not.- Returns:
- indicator if variables are used by statement
-
getPriority
public int getPriority()Returns the statement priority.- Returns:
- priority, default 0
-
isPreemptive
public boolean isPreemptive()True for preemptive (drop) statements.- Returns:
- preemptive indicator
-
equals
-
hashCode
public int hashCode() -
isCanSelfJoin
public boolean isCanSelfJoin()Returns true if the statement potentially self-joins amojng the events it processes.- Returns:
- true for self-joins possible, false for not possible (most statements)
-
getMetricsHandle
Returns handle for metrics reporting.- Returns:
- handle for metrics reporting
-
isHasTableAccess
public boolean isHasTableAccess() -
getMultiMatchHandler
-
getStatementName
-
getDeploymentId
-
getOptionalStatementEPL
-
getInsertIntoFrontLatchFactory
-
getInsertIntoBackLatchFactory
-