public IEnumerable <MSADLA.Models.USqlTableStatistics> ListTableStatistics(AdlClient.Models.AnalyticsAccountRef account, string dbname, string schema, string tablename) { var oDataQuery = new MSODATA.ODataQuery <MSADLA.Models.USqlTableType>(); var page = this.RestClient.Catalog.ListTableStatistics(account.Name, dbname, schema, tablename); foreach (var stats in RestUtil.EnumItemsInPages(page, p => this.RestClient.Catalog.ListTableStatisticsNext(p.NextPageLink))) { yield return(stats); } }
public IEnumerable <MSADLA.Models.USqlSchema> ListSchemas(AdlClient.Models.AnalyticsAccountRef account, string dbname) { var oDataQuery = new MSODATA.ODataQuery <MSADLA.Models.USqlSchema>(); string select_cols = null; bool? count = null; var page = this.RestClient.Catalog.ListSchemas(account.Name, dbname, oDataQuery, select_cols, count); foreach (var schema in RestUtil.EnumItemsInPages(page, p => this.RestClient.Catalog.ListSchemasNext(p.NextPageLink))) { yield return(schema); } }
public IEnumerable <ADL.Analytics.Models.USqlCredential> ListCredential(string dbname) { var oDataQuery = new MSODATA.ODataQuery <MSADLA.Models.USqlCredential>(); string select_cols = null; bool? count = null; var pageiter = new Rest.PagedIterator <MSADLA.Models.USqlCredential>(); pageiter.GetFirstPage = () => this.RestClients.CatalogClient.Catalog.ListCredentials(this.Account.Name, dbname, oDataQuery, select_cols, count); pageiter.GetNextPage = p => this.RestClients.CatalogClient.Catalog.ListCredentialsNext(p.NextPageLink); int top = 0; var items = pageiter.EnumerateItems(top); return(items); }