CN110222015A - A kind of reading of file data, querying method, device and readable storage medium storing program for executing - Google Patents

A kind of reading of file data, querying method, device and readable storage medium storing program for executing Download PDF

Info

Publication number
CN110222015A
CN110222015A CN201910530297.5A CN201910530297A CN110222015A CN 110222015 A CN110222015 A CN 110222015A CN 201910530297 A CN201910530297 A CN 201910530297A CN 110222015 A CN110222015 A CN 110222015A
Authority
CN
China
Prior art keywords
keyword
index
data
file
checked
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910530297.5A
Other languages
Chinese (zh)
Other versions
CN110222015B (en
Inventor
刘世民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Teddy Bear Mobile Technology Co ltd
Beijing Teddy Future Technology Co ltd
Original Assignee
Beijing Teddy Bear Mobile Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Teddy Bear Mobile Technology Co Ltd filed Critical Beijing Teddy Bear Mobile Technology Co Ltd
Priority to CN201910530297.5A priority Critical patent/CN110222015B/en
Publication of CN110222015A publication Critical patent/CN110222015A/en
Application granted granted Critical
Publication of CN110222015B publication Critical patent/CN110222015B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • G06F16/137Hash-based
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • G06F16/152File search processing using file content signatures, e.g. hash values

Abstract

The invention discloses a kind of reading of file data, querying method, device and readable storage medium storing program for executing, comprising: obtains text information;Extract required keyword in the text information;Judge in key-value pair data library with the presence or absence of the value information of corresponding extracted keyword;If it is determined that there is the value information of corresponding extracted keyword in key-value pair data library, then by the keyword and respective value information preservation into index file;The index file is loaded into memory, pass through this scheme, first by mass data storage into index file, it is disposably loaded into memory by index file again, it is compared in traditional approach for mass data to be read to memory line by line, this scheme can accelerate the speed read, so as to shorten data read time.

Description

A kind of reading of file data, querying method, device and readable storage medium storing program for executing
Technical field
The present invention relates to file storage and read technical field more particularly to a kind of reading of file data, querying method, Device and readable storage medium storing program for executing.
Background technique
With popularizing for intelligent terminal, it is often necessary to the file in equipment is read, when the data of terminal device store In the case where reaching certain amount grade, reading speed will be will be greatly reduced.Such as when having 100,000 row data in a file, such as Fruit reads every data line into memory line by line, needs to carry out 100,000 I/O operations, file data is caused to be initialised in memory When time-consuming it is long, this is insufferable phenomenon in present equipment, causes user experience very poor.
Summary of the invention
The present invention provides reading, querying method, device and the readable storage medium storing program for executing of a kind of file data, has and quickly reads The characteristics of file data.
The present invention provides a kind of read method of file data, comprising: obtains text information;It extracts in the text information Required keyword;Judge in key-value pair data library with the presence or absence of the corresponding value information for extracting keyword;If it is determined that key-value pair There is the corresponding value information for extracting keyword in database, then it is the keyword and respective value information preservation is literary to index In part, the index file is loaded into memory.
In an embodiment, by the keyword and respective value information preservation into index file, comprising: will be described Keyword and corresponding value information are added in data structure;Calculate the cryptographic Hash of the keyword;By the data structure according to The cryptographic Hash is ranked up;The data structure storage is into index file after sorting.
In an embodiment, by data structure described after sequence storage into index file, comprising: use binary system The data structure is stored into index file after format will sort.
In an embodiment, the index file includes at least header file information, level-one index and core data;Its In, the header file information includes level-one index address;The level-one index includes the cryptographic Hash of the keyword, keyword rope Draw and be worth index;The core data includes keyword data and value information data;The level-one index address is directed toward described one Grade index, the keyword index are directed toward the keyword data, and described value index is directed toward described value information data.
In an embodiment, the level-one index further includes the keyword byte length and described value information byte Length.
Another aspect of the present invention provides a kind of querying method of file data, comprising: obtains keyword to be checked;Described in calculating The cryptographic Hash of keyword to be checked;Judge the cryptographic Hash that whether there is the keyword to be checked in index file;If it is determined that index text There are the cryptographic Hash of the keyword to be checked in part, then obtain the value information of the corresponding keyword to be checked.
In an embodiment, before the value information for obtaining the corresponding keyword to be checked, the method also includes: If it is determined that there are the cryptographic Hash of the keyword to be checked in index file, then further judge keyword to be checked whether with the rope The keyword that cryptographic Hash is corresponded in quotation part is consistent;If it is determined that corresponding to the pass of cryptographic Hash in keyword to be checked and the index file Keyword is consistent, then obtains the value information of the corresponding keyword to be checked.
In an embodiment, the Hash that whether there is the keyword to be checked in index file is judged by dichotomy Value.
Another aspect of the present invention provides a kind of reading device of file data, and described device includes: acquisition module, for obtaining Take text information;Extraction module, for extracting required keyword in the text information;Judgment module, for judging key-value pair With the presence or absence of the corresponding value information for extracting keyword in database;Memory module, if for determining through the judgment module There is the corresponding value information for extracting keyword in key-value pair data library, then arrives the keyword and respective value information preservation In index file.
Another aspect of the present invention provides a kind of inquiry unit of file data, and described device includes: acquisition module, for obtaining Take keyword to be checked;Computing module, for calculating the cryptographic Hash of the keyword to be checked;Judgment module, for judging index text It whether there is the cryptographic Hash of the keyword to be checked in part;Enquiry module, if determining in index file for the judgment module There are the cryptographic Hash of the keyword to be checked, then obtain the value information of the corresponding keyword to be checked.
Another aspect of the present invention provides a kind of computer readable storage medium, and being stored with computer in the storage medium can It executes instruction, when executed for executing the read method of the file data.
Another aspect of the present invention provides a kind of computer readable storage medium, and being stored with computer in the storage medium can It executes instruction, when executed for executing the querying method of the file data.
A kind of reading of file data, querying method described in the embodiment of the present invention, device and readable storage medium storing program for executing first will Mass data is stored into index file, then is disposably loaded into memory by index file, is compared in traditional approach For mass data is read memory line by line, this scheme can accelerate the speed read, so as to shorten data read time.
It is to be appreciated that the teachings of the present invention does not need to realize whole beneficial effects recited above, but it is specific Technical solution may be implemented specific technical effect, and other embodiments of the invention can also be realized and not mentioned above Beneficial effect.
Detailed description of the invention
The following detailed description is read with reference to the accompanying drawings, above-mentioned and other mesh of exemplary embodiment of the invention , feature and advantage will become prone to understand.In the accompanying drawings, if showing by way of example rather than limitation of the invention Dry embodiment, in which:
Fig. 1 is a kind of implementation process schematic diagram of the read method of file data of the embodiment of the present invention;
Fig. 2 is the structure chart of index file in a kind of read method of file data of the embodiment of the present invention;
Fig. 3 is the detailed structure view of index file in a kind of read method of file data of the embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of the reading device of file data of the embodiment of the present invention;
Fig. 5 is a kind of implementation process schematic diagram of the querying method of file data of the embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of the inquiry unit of file data of the embodiment of the present invention.
Specific embodiment
To keep the purpose of the present invention, feature, advantage more obvious and understandable, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only It is only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, those skilled in the art are not having Every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of implementation process schematic diagram of the read method of file data of the embodiment of the present invention.
As shown in Figure 1, a kind of read method of file data, comprising:
Step 101: obtaining text information;
Step 102: extracting required keyword in text information;
Step 103: judging in key-value pair data library with the presence or absence of the corresponding value information for extracting keyword;
Step 104: if it is determined that there is the corresponding value information for extracting keyword in key-value pair data library, then by keyword and right Value information is answered to be saved in index file;
Step 105: index file is loaded into memory.
In the embodiment of the present invention, first by step 101, text information is obtained, acquisition modes include but is not limited to following It is several: text information being obtained by network, directly enters text information by keyboard, by OCR (optical character recognition technology) It carries out the typing of text information, carry out the typing of text information by speech recognition technology.
Again by step 102, required keyword in text is extracted, and all required keywords extracted are formed into key Dictionary.Wherein, required keyword is same category of information, such as required keyword can be all place names in document, people Name, number etc..Extracting mode is including but not limited to following several: all character arranging combinations in exhaustive text information, will All character arranging combinations containing all same category of dictionaries with being matched, if dictionary includes some character arranging group It closes, then character arranging combination is required keyword;Or needed for being extracted in text by artificial intelligence natural language algorithm Keyword.
Again by step 103, judge in key-value pair data library with the presence or absence of extracted keyword, wherein key-value pair Database has the value information of same category of key word information and corresponding keyword, can be obtained by key word information corresponding Value information.When judgement, specifically judge whether keyword in key-value pair data library includes required keyword in keywords database.
Again by step 104, if it is determined that the keyword in key-value pair data library includes the required keyword in keywords database, Corresponding value information is then obtained according to required keyword, then required keyword and corresponding value information are saved in certain format In index file.
Finally by step 105, the index file for having required keyword and corresponding value information is disposably loaded into interior In depositing.
Through this scheme, first by mass data storage into index file, then in being disposably loaded by index file It in depositing, is compared to for mass data is read memory line by line in traditional approach, this scheme can accelerate the speed of file reading Degree, so as to shorten data read time.This scheme can be used for judging whether name in document, number are white name in this business The application scenarios such as list or blacklist.
In an embodiment, by keyword and respective value information preservation into index file, comprising:
Keyword and corresponding value information are added in data structure;
Calculate the cryptographic Hash of keyword;
Data structure is ranked up according to cryptographic Hash;
Data structure storage is into index file after sorting.
In the embodiment of the present invention, keyword and corresponding value information are deposited into data structure, wherein number in the present embodiment It is preferably array either HashMap according to structure.In data structure, corresponding value information can be obtained according to keyword.
Again in calculation data structure each keyword cryptographic Hash, and be ranked up according to cryptographic Hash, sortord can be with It is ascending order, is also possible to descending, finally the data structure after sequence is stored into index file.
By this scheme, the required keyword extracted and corresponding value information are deposited into data structure first, And it is ranked up according to the cryptographic Hash of each keyword.If desired corresponding value information is inquired from index file according to keyword When, quick search can be carried out with dichotomy, improve search efficiency.
In an embodiment, by data structure storage after sequence into index file, comprising:
Data structure storage is into index file after being sorted using binary format.
In the embodiment of the present invention, when data structure is stored into index file, using binary format by data knot Structure is stored into index file, plays the effect of encryption, guarantees the safety of file.
Fig. 2 is the structure chart of index file in a kind of read method of file data of the embodiment of the present invention;
Fig. 3 is the detailed structure view of index file in a kind of file data read method of the embodiment of the present invention.
As shown in Figures 2 and 3, in an embodiment, index file include at least header file information, level-one index and Core data;Wherein, header file information includes level-one index address;Level-one index includes the cryptographic Hash of keyword, keyword rope Draw and be worth index;Core data includes keyword data and value information data;Level-one index address is directed toward level-one index, keyword Index is directed toward keyword data, and value index is directed toward value information data.
It include header file information, level-one index and core data in index file information in the embodiment of the present invention;Wherein, Header file information includes at least level-one index address.Level-one index includes at least the keyword index of cryptographic Hash, corresponding cryptographic Hash It is indexed with value.Core data includes at least keyword data and value information data.
Wherein, the level-one index address in header file information is directed toward level-one index, and the keyword index in level-one index refers to Keyword into core data, level-one index in value information index be directed toward core data in value information data.
By this scheme, when inquiry, by obtaining corresponding keyword index according to cryptographic Hash and value information indexes, pass through Keyword index obtains corresponding keyword, obtains corresponding value information by value information index.
In an embodiment, level-one index further includes keyword byte length and value information byte length.The present invention In embodiment, keyword byte length is used to store the byte length of keyword, and value information byte length is for storing value information Byte length.
Further, header file information further includes file type, keyword number, fileversion number, keyword starting rope Draw address, the details for recording document.
Fig. 4 is a kind of structural schematic diagram of the reading device of file data of the embodiment of the present invention.
As shown in figure 4, the present invention also provides a kind of number of files based on a kind of read method of file data provided above According to reading device, device includes:
Module 401 is obtained, for obtaining text information;
Extraction module 402, for extracting required keyword in text information;
Judgment module 403, for judging in key-value pair data library with the presence or absence of the corresponding value information for extracting keyword;
Memory module 404, if for determining there is the corresponding value for extracting keyword in key-value pair data library through judgment module Information, then by keyword and respective value information preservation into index file;
Loading module 405, for the index file to be loaded into memory.
In the embodiment of the present invention, first by obtain module 401 obtain text information, acquisition modes include but is not limited to Under it is several: text information is obtained by network, directly enters by keyboard text information, by OCR (optical character identification skill Art) it carries out the typing of text information, carry out the typing of text information by speech recognition technology.
Again by extraction module 402, required keyword in text is extracted, then all required keywords extracted are formed Keywords database.Wherein, required keyword is same category of information, for example, needed for keyword can in document allly Name, name, number etc..Extracting mode is including but not limited to following several: all character arranging groups in exhaustive text information It closes, by the combination of all character arrangings with being matched containing all same category of dictionaries, if dictionary is arranged comprising some text Column combination, then character arranging combination is required keyword;Or it is extracted in text by artificial intelligence natural language algorithm Required keyword.
Again by judgment module 403, judge in key-value pair data library with the presence or absence of extracted keyword, wherein key Value has the value information of same category of all key word informations and corresponding keyword to data inventory, can be obtained by key word information Obtain corresponding value information.When judgement, specifically judge whether the keyword in key-value pair data library includes required in keywords database Keyword.
If determining the required keyword in key-value pair data library in keywords database by judgment module 403, then pass through storage The required keyword and corresponding value information are deposited into index file by module 404.
Further, during keyword and corresponding value information being deposited into index file, first by keyword and correspondence Value information is deposited into data structure, wherein data structure is preferably array either HashMap in the present embodiment.In data In structure, corresponding value information can be obtained according to keyword.
Again in calculation data structure each keyword cryptographic Hash, and be ranked up according to cryptographic Hash, sortord can be with It is ascending order, is also possible to descending, finally the data structure after sequence is stored into the index file of certain format.
Index file is disposably loaded into memory using binary format finally by loading module 405.
Through this scheme, first by mass data storage into index file, then in being disposably loaded by index file It in depositing, is compared to for mass data is read memory line by line in traditional approach, this scheme is not losing file security In the case of, the speed of file reading can be accelerated, so as to shorten data read time.
Fig. 5 is a kind of implementation process schematic diagram of the querying method of file data of the embodiment of the present invention.As shown in figure 5, base In a kind of read method of file data mentioned above, the present invention also provides a kind of querying methods of file data, comprising:
Step 501, keyword to be checked is obtained;
Step 502, the cryptographic Hash of keyword to be checked is calculated;
Step 503, judge the cryptographic Hash that whether there is keyword to be checked in index file;
Step 504, if it is determined that there are the cryptographic Hash of keyword to be checked in index file, then corresponding keyword to be checked is obtained Value information.
In the embodiment of the present invention, when inquiry, first by step 501, keyword to be checked is obtained, then pass through step 502, meter The cryptographic Hash of keyword to be checked is calculated, the cryptographic Hash that whether there is keyword to be checked in index file is then judged by step 503, Finally by step 504, if it is determined that there are the cryptographic Hash of keyword to be checked in index file, then inquired pair according to the cryptographic Hash Should cryptographic Hash value information index, then index to obtain value information by value information, can be quickly according to keyword by this scheme Inquire corresponding value information.
In an embodiment, before the value information for obtaining corresponding keyword to be checked, this method further include: if it is determined that There are the cryptographic Hash of keyword to be checked in index file, then further judge whether keyword to be checked is corresponding with index file and breathe out The keyword of uncommon value is consistent;If it is determined that the keyword that cryptographic Hash is corresponded in keyword to be checked and index file is consistent, then acquisition pair Answer the value information of keyword to be checked.
In the embodiment of the present invention, before the value information for obtaining corresponding keyword to be checked, first judge corresponding in index file Whether the keyword of the cryptographic Hash is consistent with key word information to be checked, if it is determined that corresponding to the keyword of the cryptographic Hash in index file Consistent with key word information to be checked, then the value information for inquiring the corresponding cryptographic Hash further according to the cryptographic Hash indexes, and is worth The value information that information index is directed toward, this scheme improve the accuracy of inquiry.
In an embodiment, the cryptographic Hash that whether there is keyword to be checked in index file is judged by dichotomy. In the embodiment of the present invention, when whether there is the cryptographic Hash of keyword to be checked in judging index file, carried out by dichotomy fast Quick checking is ask, high-efficient.
By this scheme, in inquiry, corresponding value letter can be quickly obtained from index file according to keyword query Breath, it is high-efficient.
Fig. 6 is a kind of structural schematic diagram of the inquiry unit of file data of the embodiment of the present invention.
As shown in fig. 6, the present invention also provides a kind of files based on a kind of querying method of file data mentioned above The inquiry unit of data, device include:
Module 601 is obtained, for obtaining keyword to be checked;
Computing module 602, for calculating the cryptographic Hash of keyword to be checked;
Judgment module 603, the cryptographic Hash for judging to whether there is keyword to be checked in index file;
Enquiry module 604, if determining to obtain in index file there are the cryptographic Hash of keyword to be checked for judgment module The value information of corresponding keyword to be checked.
In the embodiment of the present invention, keyword to be checked is obtained by obtaining module 601 first, then count by computing module 602 The cryptographic Hash of keyword to be checked is calculated, then by judgment module 603, and taken in dichotomy search index file with the presence or absence of to be checked The cryptographic Hash of keyword, if determining that there are the cryptographic Hash of keyword to be checked in index file by judgment module 603, by looking into Ask the value information that module 604 obtains corresponding keyword to be checked from index file.By this scheme, can quickly be looked into according to keyword Ask corresponding value information.
A kind of read method of file data based on above-mentioned offer, the present invention also provides a kind of computer-readable storage mediums Matter is stored with computer executable instructions in storage medium, and executable instruction is used for: acquisition text information first extracts text In required keyword, then judge in key-value pair data library with the presence or absence of extracted keyword, if it is determined that key-value pair data library In keyword there is extracted keyword, then corresponding value information is obtained according to keyword, then by keyword and correspondence Value information is added in data structure;It the cryptographic Hash of all keywords and is arranged according to cryptographic Hash size in calculation data structure Sequence finally will index text in then index file that the data structure after sequence is stored to certain format in a binary format Part is disposably loaded into memory.By this scheme, first by mass data storage into index file, then pass through index file one Secondary property is loaded into memory, and is compared to for mass data is read memory line by line in traditional approach, this scheme is not being lost In the case where file security, the speed of file reading can be accelerated, so as to shorten data read time.
A kind of querying method of file data based on above-mentioned offer, the present invention also provides a kind of computer-readable storage mediums Matter is stored with computer executable instructions in storage medium, and instruction, which is performed, to be used for: being obtained keyword to be checked first, then is counted The cryptographic Hash for calculating keyword to be checked judges the cryptographic Hash that whether there is keyword to be checked in index file by dichotomy, if sentencing Determine in index file that there are the cryptographic Hash of keyword to be checked, then further judges whether keyword to be checked is corresponding with index file The keyword of cryptographic Hash is consistent;If it is determined that the keyword for corresponding to cryptographic Hash in keyword to be checked and index file is consistent, then obtain The value information of corresponding keyword to be checked.It can be quickly according to keyword query from index file in inquiry by this scheme Corresponding value information is obtained, it is high-efficient.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.Moreover, particular features, structures, materials, or characteristics described It may be combined in any suitable manner in any one or more of the embodiments or examples.In addition, without conflicting with each other, this The technical staff in field can be by the spy of different embodiments or examples described in this specification and different embodiments or examples Sign is combined.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic." first " is defined as a result, the feature of " second " can be expressed or hidden It include at least one this feature containing ground.In the description of the present invention, the meaning of " plurality " is two or more, unless otherwise Clear specific restriction.
More than, only a specific embodiment of the invention, but scope of protection of the present invention is not limited thereto, and it is any to be familiar with Those skilled in the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all cover Within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (12)

1. a kind of read method of file data, it is characterised in that: include:
Obtain text information;
Extract required keyword in the text information;
Judge in key-value pair data library with the presence or absence of the value information of corresponding extracted keyword;
If it is determined that there is the value information of corresponding extracted keyword in key-value pair data library, then the keyword and respective value are believed Breath is saved in index file;
The index file is loaded into memory.
2. the method according to claim 1, wherein the keyword and respective value information preservation is literary to index In part, comprising:
The keyword and corresponding value information are added in data structure;
Calculate the cryptographic Hash of the keyword;
The data structure is ranked up according to the cryptographic Hash;
The data structure storage is into index file after sorting.
3. according to the method described in claim 2, it is characterized in that, the data structure is stored to index file after sorting In, comprising:
The data structure storage is into index file after being sorted using binary format.
4. method according to claim 1 or 2, which is characterized in that the index file includes at least header file information, one Grade index and core data;
Wherein, the header file information includes level-one index address;
The level-one index includes the cryptographic Hash, keyword index and value index of the keyword;
The core data includes keyword data and value information data;
The level-one index address is directed toward the level-one index, and the keyword index is directed toward the keyword data, described value Index is directed toward described value information data.
5. according to the method described in claim 4, it is characterized by: level-one index further includes the keyword byte length With described value information byte length.
6. a kind of querying method of file data, it is characterised in that: include:
Obtain keyword to be checked;
Calculate the cryptographic Hash of the keyword to be checked;
Judge the cryptographic Hash that whether there is the keyword to be checked in index file;
If it is determined that there are the cryptographic Hash of the keyword to be checked in index file, then the value letter of the corresponding keyword to be checked is obtained Breath.
7. according to the method described in claim 6, it is characterized in that, the value information for obtaining the corresponding keyword to be checked it Before, the method also includes:
If it is determined that there are the cryptographic Hash of the keyword to be checked in index file, then further judge keyword to be checked whether with institute State corresponded in index file cryptographic Hash keyword it is consistent;
If it is determined that the keyword for corresponding to cryptographic Hash in keyword to be checked and the index file is consistent, then it is described to be checked to obtain correspondence The value information of keyword.
8. according to the method described in claim 6, it is characterized in that, being judged in index file by dichotomy with the presence or absence of described The cryptographic Hash of keyword to be checked.
9. a kind of reading device of file data, which is characterized in that described device includes:
Module is obtained, for obtaining text information;
Extraction module, for extracting required keyword in the text information;
Judgment module, for judging in key-value pair data library with the presence or absence of the corresponding value information for extracting keyword;
Memory module, if for determining there is the corresponding value for extracting keyword in key-value pair data library through the judgment module Information, then by the keyword and respective value information preservation into index file.
10. a kind of inquiry unit of file data, which is characterized in that described device includes:
Module is obtained, for obtaining keyword to be checked;
Computing module, for calculating the cryptographic Hash of the keyword to be checked;
Judgment module, the cryptographic Hash for judging to whether there is the keyword to be checked in index file;
Enquiry module, if determining to obtain in index file there are the cryptographic Hash of the keyword to be checked for the judgment module Take the value information of the corresponding keyword to be checked.
11. a kind of computer readable storage medium, it is characterised in that: be stored with the executable finger of computer in the storage medium It enables, requires the read method of any one of the 1-5 file data for perform claim when executed.
12. a kind of computer readable storage medium, it is characterised in that: be stored with the executable finger of computer in the storage medium It enables, requires the querying method of any one of the 6-8 file data for perform claim when executed.
CN201910530297.5A 2019-06-19 2019-06-19 File data reading and querying method and device and readable storage medium Active CN110222015B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910530297.5A CN110222015B (en) 2019-06-19 2019-06-19 File data reading and querying method and device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910530297.5A CN110222015B (en) 2019-06-19 2019-06-19 File data reading and querying method and device and readable storage medium

Publications (2)

Publication Number Publication Date
CN110222015A true CN110222015A (en) 2019-09-10
CN110222015B CN110222015B (en) 2021-07-09

Family

ID=67817718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910530297.5A Active CN110222015B (en) 2019-06-19 2019-06-19 File data reading and querying method and device and readable storage medium

Country Status (1)

Country Link
CN (1) CN110222015B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737409A (en) * 2019-10-21 2020-01-31 网易(杭州)网络有限公司 Data loading method and device and terminal equipment
CN111241108A (en) * 2020-01-16 2020-06-05 北京百度网讯科技有限公司 Key value pair-based KV system indexing method and device, electronic equipment and medium
CN113778950A (en) * 2021-08-24 2021-12-10 中国联合网络通信集团有限公司 Credit file obtaining method, index server, query server and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963977A (en) * 2010-09-19 2011-02-02 北京腾瑞万里科技有限公司 A search method and mobile terminal without urban search
CN102426609A (en) * 2011-12-28 2012-04-25 厦门市美亚柏科信息股份有限公司 Index generation method and index generation device based on MapReduce programming architecture
CN102902730A (en) * 2012-09-10 2013-01-30 新浪网技术(中国)有限公司 Method and device for reading data based on data cache
CN103186669A (en) * 2013-03-21 2013-07-03 厦门雅迅网络股份有限公司 Method for rapidly filtering key word
CN104850564A (en) * 2014-02-18 2015-08-19 腾讯科技(深圳)有限公司 Index search method and system of data file
US20160321353A1 (en) * 2014-01-06 2016-11-03 Tencent Technology (Shenzhen) Company Limited Method and apparatus for processing text information
CN106096023A (en) * 2016-06-24 2016-11-09 腾讯科技(深圳)有限公司 Method for reading data, method for writing data and data server
US9785786B2 (en) * 2012-09-24 2017-10-10 Protegrity Corporation Privacy preserving data search

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963977A (en) * 2010-09-19 2011-02-02 北京腾瑞万里科技有限公司 A search method and mobile terminal without urban search
CN102426609A (en) * 2011-12-28 2012-04-25 厦门市美亚柏科信息股份有限公司 Index generation method and index generation device based on MapReduce programming architecture
CN102902730A (en) * 2012-09-10 2013-01-30 新浪网技术(中国)有限公司 Method and device for reading data based on data cache
US9785786B2 (en) * 2012-09-24 2017-10-10 Protegrity Corporation Privacy preserving data search
CN103186669A (en) * 2013-03-21 2013-07-03 厦门雅迅网络股份有限公司 Method for rapidly filtering key word
US20160321353A1 (en) * 2014-01-06 2016-11-03 Tencent Technology (Shenzhen) Company Limited Method and apparatus for processing text information
CN104850564A (en) * 2014-02-18 2015-08-19 腾讯科技(深圳)有限公司 Index search method and system of data file
CN106096023A (en) * 2016-06-24 2016-11-09 腾讯科技(深圳)有限公司 Method for reading data, method for writing data and data server

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737409A (en) * 2019-10-21 2020-01-31 网易(杭州)网络有限公司 Data loading method and device and terminal equipment
CN110737409B (en) * 2019-10-21 2023-09-26 网易(杭州)网络有限公司 Data loading method and device and terminal equipment
CN111241108A (en) * 2020-01-16 2020-06-05 北京百度网讯科技有限公司 Key value pair-based KV system indexing method and device, electronic equipment and medium
CN111241108B (en) * 2020-01-16 2023-12-26 北京百度网讯科技有限公司 Key value based indexing method and device for KV system, electronic equipment and medium
CN113778950A (en) * 2021-08-24 2021-12-10 中国联合网络通信集团有限公司 Credit file obtaining method, index server, query server and medium
CN113778950B (en) * 2021-08-24 2023-07-04 中国联合网络通信集团有限公司 Method for acquiring trusted file, index server, query server and medium

Also Published As

Publication number Publication date
CN110222015B (en) 2021-07-09

Similar Documents

Publication Publication Date Title
KR101312770B1 (en) Information classification paradigm
CN103365992B (en) Method for realizing dictionary search of Trie tree based on one-dimensional linear space
CN110222015A (en) A kind of reading of file data, querying method, device and readable storage medium storing program for executing
CN106033416A (en) A string processing method and device
CN107784110B (en) Index establishing method and device
EP2442273A1 (en) Object identification image database creating method, creating apparatus and creating process program
CN111767716A (en) Method and device for determining enterprise multilevel industry information and computer equipment
CN107844493B (en) File association method and system
CN109062936B (en) Data query method, computer readable storage medium and terminal equipment
CN102789452A (en) Similar content extraction method
CN113687826A (en) Test case multiplexing system and method based on requirement item extraction
CN105335481A (en) Large scale character string text suffix index building method and device
CN110826312A (en) Software requirement specification evaluation method
CN109165331A (en) A kind of index establishing method and its querying method and device of English place name
CN107169065B (en) Method and device for removing specific content
CN103136187A (en) Method and system for extraction of patent rejection information
Khritankov et al. Discovering text reuse in large collections of documents: A study of theses in history sciences
CN115221874A (en) Construction method of inverted index, list screening method and device, and electronic equipment
CN114706949A (en) Information retrieval method, device, equipment and computer readable medium
CN110245215B (en) Text retrieval method and device
Pomp et al. Enhancing Knowledge Graphs with Data Representatives.
CN109783607A (en) A method of the match cognization magnanimity keyword in any text
CN112613320A (en) Method and device for acquiring similar sentences, storage medium and electronic equipment
CN116450581B (en) Local quick matching method and system for white list and electronic equipment
CN114090799B (en) Text retrieval method, text retrieval device, storage medium and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: East of 1st floor, No.36 Haidian Street, Haidian District, Beijing, 100080

Patentee after: Beijing Teddy Future Technology Co.,Ltd.

Address before: East of 1st floor, No.36 Haidian Street, Haidian District, Beijing, 100080

Patentee before: Beijing Teddy Bear Mobile Technology Co.,Ltd.

CP01 Change in the name or title of a patent holder
CP03 Change of name, title or address

Address after: East of 1st floor, No.36 Haidian Street, Haidian District, Beijing, 100080

Patentee after: Beijing Teddy Bear Mobile Technology Co.,Ltd.

Address before: 100085 07a36, block D, 7 / F, No.28, information road, Haidian District, Beijing

Patentee before: BEIJING TEDDY BEAR MOBILE TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address