public class EPStatementHandle extends java.lang.Object implements MetaDefItem, java.io.Serializable
Use by EPRuntimeImpl
for determining callback-statement affinity and locking of statement
resources.
Constructor and Description |
---|
EPStatementHandle(java.lang.String statementId,
java.lang.String statementName,
java.lang.String statementText,
java.lang.String expressionText,
boolean hasVariables,
StatementMetricHandle metricsHandle,
int priority,
boolean preemptive)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object otherObj) |
java.lang.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.
|
int |
getPriority()
Returns the statement priority.
|
java.lang.String |
getStatementId()
Returns the statement id.
|
java.lang.String |
getStatementName() |
int |
hashCode() |
boolean |
isCanSelfJoin()
Returns true if the statement potentially self-joins amojng the events it processes.
|
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.
|
public EPStatementHandle(java.lang.String statementId, java.lang.String statementName, java.lang.String statementText, java.lang.String expressionText, boolean hasVariables, StatementMetricHandle metricsHandle, int priority, boolean preemptive)
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 donepublic void setCanSelfJoin(boolean canSelfJoin)
canSelfJoin
- is true if the statement potentially self-joins, false if notpublic java.lang.String 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 equals(java.lang.Object otherObj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isCanSelfJoin()
public StatementMetricHandle getMetricsHandle()
public java.lang.String getStatementName()
public java.lang.String getEPL()