| Algorithm 4: Background Sensor Data Archiving |
| Input: LeafNode L (DB is full) |
| Output: void |
| 1: /* Batch insertion of data */ |
| 2: |
| 3: /* Reconstruct the hierarchical MBR */ |
| 4: |
| 5: /* Clear the buffer */ |
| 6: |
| 7: /* Clear CF: If the CF is too full, rebuild it here */ |
| 8: if then |
| 9: |
| 10: end if |