Пример #1
0
        private string SwitchToPhase(PlanCompilerPhase newPhase)
        {
            var iqtDumpResult = string.Empty;

            if (newPhase != m_phase)
            {
                _precedingPhases |= (1 << (int)m_phase);
            }

            m_phase = newPhase;

#if DEBUG
            if (s_traceCallback != null)
            {
                s_traceCallback(Enum.GetName(typeof(PlanCompilerPhase), newPhase), m_command);
            }
            else
            {
                iqtDumpResult = Dump.ToXml(m_command);
            }

            Validator.Validate(this);
#endif
            return(iqtDumpResult);
        }
Пример #2
0
        private string SwitchToPhase(PlanCompilerPhase newPhase)
        {
            string empty = string.Empty;

            if (newPhase != this.m_phase)
            {
                this._precedingPhases |= 1 << (int)(this.m_phase & (PlanCompilerPhase)31);
            }
            this.m_phase = newPhase;
            return(empty);
        }
Пример #3
0
 private static bool CheckEntry(OpType opType, PlanCompilerPhase phase)
 {
     var hash = ComputeHash(opType, phase);
     return s_ValidOpTypes.IsSet(hash);
 }
Пример #4
0
 private static void AddSingleEntry(BitVec opVector, OpType opType, PlanCompilerPhase phase)
 {
     var hash = ComputeHash(opType, phase);
     opVector.Set(hash);
 }
Пример #5
0
 private static int ComputeHash(OpType opType, PlanCompilerPhase phase)
 {
     var hash = ((int)opType * (int)PlanCompilerPhase.MaxMarker) + (int)phase;
     return hash;
 }
Пример #6
0
 internal bool IsAfterPhase(PlanCompilerPhase phase)
 {
     return((_precedingPhases & (1 << (int)phase)) != 0);
 }
Пример #7
0
        private string SwitchToPhase(PlanCompilerPhase newPhase)
        {
            var iqtDumpResult = string.Empty;

            m_phase = newPhase;
#if DEBUG
            if (s_traceCallback != null)
            {
                s_traceCallback(Enum.GetName(typeof(PlanCompilerPhase), newPhase), m_command);
            }
            else
            {
                iqtDumpResult = Dump.ToXml(m_command);
            }

            Validator.Validate(this);
#endif
            return iqtDumpResult;
        }
Пример #8
0
 internal bool IsPhaseNeeded(PlanCompilerPhase phase)
 {
     return((this.m_neededPhases & 1 << (int)(phase & (PlanCompilerPhase)31)) != 0);
 }
Пример #9
0
 /// <summary>
 ///     Is the specified phase needed for this query?
 /// </summary>
 /// <param name="phase"> the phase in question </param>
 /// <returns> </returns>
 internal bool IsPhaseNeeded(PlanCompilerPhase phase)
 {
     return ((m_neededPhases & (1 << (int)phase)) != 0);
 }
        private static bool CheckEntry(OpType opType, PlanCompilerPhase phase)
        {
            int hash = ComputeHash(opType, phase);

            return(s_ValidOpTypes.IsSet(hash));
        }
        private static void AddSingleEntry(BitVec opVector, OpType opType, PlanCompilerPhase phase)
        {
            int hash = ComputeHash(opType, phase);

            opVector.Set(hash);
        }
        private static int ComputeHash(OpType opType, PlanCompilerPhase phase)
        {
            int hash = ((int)opType * (int)PlanCompilerPhase.MaxMarker) + (int)phase;

            return(hash);
        }
Пример #13
0
 internal bool IsAfterPhase(PlanCompilerPhase phase)
 {
     return (_precedingPhases & (1 << (int) phase)) != 0;
 }
Пример #14
0
 internal bool IsAfterPhase(PlanCompilerPhase phase)
 {
     return((this._precedingPhases & 1 << (int)(phase & (PlanCompilerPhase)31)) != 0);
 }
Пример #15
0
 internal void MarkPhaseAsNeeded(PlanCompilerPhase phase)
 {
     this.m_neededPhases |= 1 << (int)(phase & (PlanCompilerPhase)31);
 }
 // <summary>
 // Is the specified phase needed for this query?
 // </summary>
 // <param name="phase"> the phase in question </param>
 internal bool IsPhaseNeeded(PlanCompilerPhase phase)
 {
     return((m_neededPhases & (1 << (int)phase)) != 0);
 }
 // <summary>
 // Mark the specified phase as needed
 // </summary>
 // <param name="phase"> plan compiler phase </param>
 internal void MarkPhaseAsNeeded(PlanCompilerPhase phase)
 {
     m_neededPhases = m_neededPhases | (1 << (int)phase);
 }
Пример #18
0
 /// <summary>
 ///     Mark the specified phase as needed
 /// </summary>
 /// <param name="phase"> plan compiler phase </param>
 internal void MarkPhaseAsNeeded(PlanCompilerPhase phase)
 {
     m_neededPhases = m_neededPhases | (1 << (int)phase);
 }