public class EPStatementHandle extends Object implements MetaDefItem, Serializable
Use by EPRuntimeImpl
for determining callback-statement affinity and locking of statement
resources.
Constructor and Description |
---|
EPStatementHandle(int statementId,
String statementName,
String statementText,
StatementType statementType,
String expressionText,
boolean hasVariables,
StatementMetricHandle metricsHandle,
int priority,
boolean preemptive,
boolean hasTableAccess,
MultiMatchHandler multiMatchHandler)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object otherObj) |
String |
getEPL() |
InsertIntoLatchFactory |
getInsertIntoBackLatchFactory() |
InsertIntoLatchFactory |
getInsertIntoFrontLatchFactory()
Returns the factory for latches in insert-into guaranteed order of delivery.
|
StatementMetricHandle |
getMetricsHandle()
Returns handle for metrics reporting.
|
MultiMatchHandler |
getMultiMatchHandler() |
int |
getPriority()
Returns the statement priority.
|
int |
getStatementId()
Returns the statement id.
|
String |
getStatementName() |
StatementType |
getStatementType() |
int |
hashCode() |
boolean |
isCanSelfJoin()
Returns true if the statement potentially self-joins amojng the events it processes.
|
boolean |
isHasTableAccess() |
boolean |
isHasVariables()
Returns true if the statement uses variables, false if not.
|
boolean |
isPreemptive()
True for preemptive (drop) statements.
|
void |
setCanSelfJoin(boolean canSelfJoin)
Set the statement's self-join flag to indicate 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.
|
void |
setInsertIntoBackLatchFactory(InsertIntoLatchFactory insertIntoBackLatchFactory) |
void |
setInsertIntoFrontLatchFactory(InsertIntoLatchFactory insertIntoFrontLatchFactory)
Sets the factory for latches in insert-into guaranteed order of delivery.
|
void |
setMultiMatchHandler(MultiMatchHandler multiMatchHandler) |
public EPStatementHandle(int statementId, String statementName, String statementText, StatementType statementType, String expressionText, boolean hasVariables, StatementMetricHandle metricsHandle, int priority, boolean preemptive, boolean hasTableAccess, MultiMatchHandler multiMatchHandler)
statementId
- is the statement id uniquely indentifying the handleexpressionText
- is the expressionhasVariables
- indicator whether the statement uses variablesmetricsHandle
- handle for metrics reportingpriority
- priority, zero is defaultpreemptive
- true for drop after donestatementName
- statement namestatementText
- eplstatementType
- statement typehasTableAccess
- indicator whether tables are accessedmultiMatchHandler
- handler for multimatches for statementpublic void setCanSelfJoin(boolean canSelfJoin)
canSelfJoin
- is true if the statement potentially self-joins, false if notpublic int getStatementId()
public void setInsertIntoFrontLatchFactory(InsertIntoLatchFactory insertIntoFrontLatchFactory)
insertIntoFrontLatchFactory
- latch factory for the statement if it performs insert-into (route) of eventspublic void setInsertIntoBackLatchFactory(InsertIntoLatchFactory insertIntoBackLatchFactory)
public InsertIntoLatchFactory getInsertIntoFrontLatchFactory()
public InsertIntoLatchFactory getInsertIntoBackLatchFactory()
public boolean isHasVariables()
public int getPriority()
public boolean isPreemptive()
public boolean isCanSelfJoin()
public StatementMetricHandle getMetricsHandle()
public String getStatementName()
public String getEPL()
public StatementType getStatementType()
public boolean isHasTableAccess()
public MultiMatchHandler getMultiMatchHandler()
public void setMultiMatchHandler(MultiMatchHandler multiMatchHandler)