| CPC G06F 16/148 (2019.01) [G06F 16/16 (2019.01)] | 20 Claims |

|
1. A method for data processing, comprising:
receiving a query instruction for data to be queried stored in a data file system, wherein the data file system is a common database storing data for online queries and offline queries;
determining whether the query instruction indicates an online query or an office query;
in response to the query instruction indicating the online query, determining index information corresponding to the data to be queried and querying, based on the index information, the data to be queried in the data file system, wherein the index information is represented in a key-value pair, a key in the key-value pair corresponds to a keyword of the data to be queried, and the value in the key-value pair corresponds to address information of the data to be queried in the data file system; and
in response to the query instruction indicating the offline query, determining, based on keywords of the data to be queried and a hive table, address information of the data to be queried in the data file system and querying, based on the address information, the data to be queried in the data file system, wherein the hive table comprises the keywords corresponding to the data to be queried and address information of the data to be queried in the data file system.
|