public void Run() { if (Parameters.Count != 1) { throw new StoredProcException("First parameter is table name."); } Data.DBProvider dbProvider = Data.DBProvider.GetDBProvider(Parameters[0]); if (dbProvider == null) { throw new StoredProcException(string.Format("Table name {0} does not exist!", Parameters[0])); } AddColumn("FieldName"); AddColumn("Rate"); foreach (Index.InvertedIndex index in dbProvider.GetInvertedIndexes()) { NewRow(); OutputValue("FieldName", index.FieldName); OutputValue("Rate", index.MergeRate); } }