|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.core.service.EPStatementHandle
public class EPStatementHandle
Class exists once per statement and hold statement resource lock(s).
Use by EPRuntimeImpl
for determining callback-statement affinity and locking of statement
resources.
Constructor Summary | |
---|---|
EPStatementHandle(java.lang.String statementId,
java.lang.String statementName,
java.lang.String statementText,
StatementType statementType,
java.lang.String expressionText,
boolean hasVariables,
StatementMetricHandle metricsHandle,
int priority,
boolean preemptive,
boolean hasTableAccess,
MultiMatchHandler multiMatchHandler)
Ctor. |
Method Summary | |
---|---|
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. |
MultiMatchHandler |
getMultiMatchHandler()
|
int |
getPriority()
Returns the statement priority. |
java.lang.String |
getStatementId()
Returns the statement id. |
java.lang.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)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EPStatementHandle(java.lang.String statementId, java.lang.String statementName, java.lang.String statementText, StatementType statementType, java.lang.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 doneMethod Detail |
---|
public 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()
public StatementType getStatementType()
public boolean isHasTableAccess()
public MultiMatchHandler getMultiMatchHandler()
public void setMultiMatchHandler(MultiMatchHandler multiMatchHandler)
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |