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); }
public static bool IsDataProvider(this IExecutable e) { return(e.IsProvider() && e.IsData()); }
public static bool IsDataRule(this IExecutable e) { return(e.IsRule() && e.IsData()); }