public EPStatementHandle( string statementName, string deploymentId, int statementId, string optionalStatementEPL, int priority, bool preemptive, bool canSelfJoin, MultiMatchHandler multiMatchHandler, bool hasVariables, bool hasTableAccess, StatementMetricHandle metricsHandle, InsertIntoLatchFactory insertIntoFrontLatchFactory, InsertIntoLatchFactory insertIntoBackLatchFactory) { this.statementName = statementName; this.deploymentId = deploymentId; this.statementId = statementId; this.optionalStatementEPL = optionalStatementEPL; this.priority = priority; this.preemptive = preemptive; this.canSelfJoin = canSelfJoin; this.multiMatchHandler = multiMatchHandler; this.hasVariables = hasVariables; this.hasTableAccess = hasTableAccess; this.metricsHandle = metricsHandle; this.insertIntoFrontLatchFactory = insertIntoFrontLatchFactory; this.insertIntoBackLatchFactory = insertIntoBackLatchFactory; }
/// <summary> /// Ctor. /// </summary> /// <param name="statementId">is the statement id uniquely indentifying the handle</param> /// <param name="statementName">Name of the statement.</param> /// <param name="statementText">The statement text.</param> /// <param name="statementType">Type of the statement.</param> /// <param name="expressionText">is the expression</param> /// <param name="hasVariables">indicator whether the statement uses variables</param> /// <param name="metricsHandle">handle for metrics reporting</param> /// <param name="priority">priority, zero is default</param> /// <param name="preemptive">true for drop after done</param> /// <param name="hasTableAccess">if set to <c>true</c> [has table access].</param> /// <param name="multiMatchHandler">The multi match handler.</param> public EPStatementHandle(string statementId, string statementName, string statementText, StatementType statementType, string expressionText, bool hasVariables, StatementMetricHandle metricsHandle, int priority, bool preemptive, bool hasTableAccess, MultiMatchHandler multiMatchHandler) { StatementId = statementId; StatementName = statementName; EPL = statementText; StatementType = statementType; HasVariables = hasVariables; Priority = priority; IsPreemptive = preemptive; _metricsHandle = metricsHandle; HasTableAccess = hasTableAccess; MultiMatchHandler = multiMatchHandler; unchecked { _hashCode = (statementName != null ? statementName.GetHashCode() : 0); _hashCode = (_hashCode * 397) ^ (statementId != null ? statementId.GetHashCode() : 0); _hashCode = (_hashCode * 397) ^ (expressionText != null ? expressionText.GetHashCode() : 0); } }