Research Article
Concept Tree-Based Event Matching Algorithm in Publish/Subscribe Systems
Algorithm 5
Insert numeric constraint.
| insertGEMConstraint(attribute, constraint, id){ | (1) | name = root(attribute); | (2) | gem = m4.get(name); | (3) | if gem is null{ | (4) | gem = new GEMIndex( ); | (5) | m4.put(name, gem); | (6) | } | (7) | compute index y, x by [lower, upper] of the constraint | (8) | gem.cell[y][x].set(id); | | } |
|