...
The OutbreakLocation Type contains information from various locations for which the Covid-19 DataLake has virus-related information. We can fetch OutbreakLocation records, for which the 'latestTotalPopulation' field exists (i.e., is not null). We can also retrieve these records in descending order by their 'countryArea'.
...
Another useful fetch command is fetchCount. This function is nearly identical to the fetch commands above, but it just returns the number of records which match the fetch filterLike 'fetch', users can also provide a FetchSpec (or parameters) to 'fetchCount'. The 'fetchCount' method then returns the count of the records that match the FetchSpec. This is useful when trying to determine whether a given search is refined enough.
Code Block | ||
---|---|---|
| ||
OutbreakLocation.fetchCount({'filter': 'exists(latestTotalPopulation)'}) |
The same command in python is:
Code Block | ||
---|---|---|
| ||
c3.OutbreakLocation.fetchCount(spec={'filter': 'exists(latestTotalPopulation)'}) |
...