Class VirtualDataWindowLookupContext
java.lang.Object
com.espertech.esper.common.client.hook.vdw.VirtualDataWindowLookupContext
Context passed to
VirtualDataWindow
upon obtaining a lookup strategy for use by an EPL statement
that queries the virtual data window.
Represents an analysis of correlation information provided in the where-clause of the querying EPL statement (join, subquery etc.). Hash-fields are always operator-equals semantics. Btree fields require sorted access as the operator is always a range or relational(>, <, >=, <=) operator.
For example, the query "select * from MyVirtualDataWindow, MyTrigger where prop = trigger and prop2 between trigger1 and trigger2" indicates a single hash-field "prop" and a single btree field "prop2" with a range operator.
-
Constructor Summary
ConstructorDescriptionVirtualDataWindowLookupContext
(String deploymentId, String statementName, int statementId, Annotation[] statementAnnotations, boolean isFireAndForget, String namedWindowName, List<VirtualDataWindowLookupFieldDesc> hashFields, List<VirtualDataWindowLookupFieldDesc> btreeFields) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of btree field descriptors.Returns the statement name of the statement to be performing the lookup, or null for fire-and-forget statements.Returns the list of hash field descriptors.Returns the named window name.Returns the statement annotations of the statement to be performing the lookup, or null for fire-and-forget statements.int
Returns the statement id of the statement to be performing the lookup, or -1 for fire-and-forget statements.Returns the statement name of the statement to be performing the lookup, or null for fire-and-forget statements.boolean
Returns true for fire-and-forget queries.
-
Constructor Details
-
VirtualDataWindowLookupContext
public VirtualDataWindowLookupContext(String deploymentId, String statementName, int statementId, Annotation[] statementAnnotations, boolean isFireAndForget, String namedWindowName, List<VirtualDataWindowLookupFieldDesc> hashFields, List<VirtualDataWindowLookupFieldDesc> btreeFields) Ctor.- Parameters:
hashFields
- operator-equals semantics fieldsbtreeFields
- sorted-access fields, check theVirtualDataWindowLookupOp
operator for what range or relational-operator appliesnamedWindowName
- named window nameisFireAndForget
- true for fire-and-forget queriesdeploymentId
- deployment idstatementId
- statement idstatementAnnotations
- annotationsstatementName
- statement name
-
-
Method Details
-
getNamedWindowName
Returns the named window name.- Returns:
- named window name
-
getHashFields
Returns the list of hash field descriptors.- Returns:
- hash fields
-
getBtreeFields
Returns the list of btree field descriptors.- Returns:
- btree fields
-
getDeploymentId
Returns the statement name of the statement to be performing the lookup, or null for fire-and-forget statements.- Returns:
- statement name
-
getStatementName
Returns the statement name of the statement to be performing the lookup, or null for fire-and-forget statements.- Returns:
- statement name
-
getStatementId
public int getStatementId()Returns the statement id of the statement to be performing the lookup, or -1 for fire-and-forget statements.- Returns:
- statement name
-
getStatementAnnotations
Returns the statement annotations of the statement to be performing the lookup, or null for fire-and-forget statements.- Returns:
- statement name
-
isFireAndForget
public boolean isFireAndForget()Returns true for fire-and-forget queries.- Returns:
- indicator whether fire-and-forget query
-