예제 #1
0
        public void UpdateProgress(IExecutable executable, Table table)
        {
            if (executable.IsData())
            {
                if (table.Cardinality > 0)
                {
                    this.tuples_checked += (ulong)table.Cardinality;
                }
            }
            else
            {
                this.tuples_checked += 1;
            }

            this.Progress = (int)(((float)this.tuples_checked / this.total_tuples) * 100);
        }
예제 #2
0
 public static bool IsDataProvider(this IExecutable e)
 {
     return(e.IsProvider() && e.IsData());
 }
예제 #3
0
 public static bool IsDataRule(this IExecutable e)
 {
     return(e.IsRule() && e.IsData());
 }