Data processing method, data query method in a database, and corresponding device
First Claim
1. A computer implemented data query method for a database comprising:
- receiving a query request, the query request containing a source IP address comprising a plurality of first sections and a destination IP address comprising a plurality of second sections, at least one of the sections having a wildcard character representing an arbitrary value in an allowed range;
generating a linearized IP address from the source IP address and the destination IP address by generating a linearized result comprising different sequences of the first and second sections, wherein each sequence is associated with one of a plurality of different index encoding manners of the database; and
searching in the database having a one-dimensional index according to one of the sequences to obtain successive data records as a query result.
1 Assignment
0 Petitions
Accused Products
Abstract
A data processing method, data query method in a database, and corresponding device. A data processing, wherein a query request for data records includes information indicating a source and destination IP address, the source IP address including N sections, the destination IP address including M sections, both M and N being positive integers, the method including: determining an index encoding manner for the database, wherein the index is an one-dimensional index including N+M sections, the encoding manner specifying a variation sequence of various sections for the index, at least one of the source IP address and the destination address indicated by the information contained in the possible query request including at least one section having a wildcard character, wherein according to the index, for any possible query requests, successive data records can be obtained as a query result; according to the encoding manner, establishing the index for the data records.
-
Citations
5 Claims
-
1. A computer implemented data query method for a database comprising:
-
receiving a query request, the query request containing a source IP address comprising a plurality of first sections and a destination IP address comprising a plurality of second sections, at least one of the sections having a wildcard character representing an arbitrary value in an allowed range; generating a linearized IP address from the source IP address and the destination IP address by generating a linearized result comprising different sequences of the first and second sections, wherein each sequence is associated with one of a plurality of different index encoding manners of the database; and searching in the database having a one-dimensional index according to one of the sequences to obtain successive data records as a query result. - View Dependent Claims (2, 3, 4, 5)
-
Specification