CPC G06F 16/2445 (2019.01) [G06F 16/248 (2019.01); G06F 16/2455 (2019.01); G06F 16/24532 (2019.01); G06F 16/24542 (2019.01)] | 20 Claims |
1. A data query method, applied to a heterogeneous acceleration platform comprising a central processing unit (CPU) and a parallel processor, the data query method comprising:
determining operators in a database management system, and accomplishing, in the parallel processor, roles of functions corresponding to the operators;
in response to a SQL query statement being received, converting, by the CPU, a where clause in the SQL query statement into a data structure comprising a binary tree and a linked list, wherein each node in the data structure corresponds to one operator in the where clause;
controlling the CPU to generate an operation code stream of the data structure according to node information, wherein the node information comprises a node position and a corresponding function name of each node in the data structure; and
performing, by the parallel processor, a screening operation corresponding to the operation code stream on records in the database management system to obtain a query result conforming to the where clause.
|