コード例 #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());
 }