CPC H04L 67/55 (2022.05) [G06F 16/9035 (2019.01)] | 8 Claims |
1. A method for pushing subscription data in Internet of things, wherein the method is performed by a subscription server, and comprises:
parsing a subscription condition set into a first attribute set in response to receiving the subscription condition set, wherein the first attribute set comprises at least one attribute element set, and the subscription condition set comprises at least one subscription condition;
acquiring device data, wherein the device data is stored in the subscription server;
parsing the device data into a second attribute set, wherein attribute elements in the second attribute set are of a same type as the attribute element set in the first attribute set;
performing Bloom filtering on the attribute elements in the second attribute set one by one in a predetermined order by taking the attribute element set in the first attribute set as a filter condition by:
acquiring a binary vector set corresponding to the attribute element set in the first attribute set by performing a Hash operation on attribute values of the attribute elements in the first attribute set respectively;
acquiring a binary vector corresponding to the attribute elements in the second attribute set by performing a Hash operation on attribute values of the attribute elements in the second attribute set respectively; and
matching the binary vector set corresponding to the attribute element set in the first attribute set with the binary vector corresponding to the attribute elements in the second attribute set in a predetermined matching order;
stopping the Bloom filtering on the other attribute elements in the second attribute set in the case that one of binary vectors corresponding to the attribute elements in the second attribute set fails to match one of binary vector sets corresponding to the attribute elements in the first attribute set; and
returning to the step of acquiring the device data.
|