Research Article
Application of a Mobile Chronic Disease Health-Care System for Hypertension Based on Big Data Platforms
Algorithm 1
Disease count running on HBase.
| Input: | | HBase table | | Output: | | Diseases count and related info | | 1. class Mapper | | 2. method map (HBase table) | | 3. for each instance row in table | | 4. write ((diseasei, patientID), 1) | | 5. | | 6. class Reducer | | 7. method reduce ((diseasei, patientID), ones[1,1,1,…n]) | | 8. sum=0 | | 9. for each one in ones do | | 10. sum+=1 | | 11. return ((diseasei, patientID),sum) |
|