CN101853287B - Data compression quick retrieval file system and method thereof - Google Patents
Data compression quick retrieval file system and method thereof Download PDFInfo
- Publication number
- CN101853287B CN101853287B CN201010180814XA CN201010180814A CN101853287B CN 101853287 B CN101853287 B CN 101853287B CN 201010180814X A CN201010180814X A CN 201010180814XA CN 201010180814 A CN201010180814 A CN 201010180814A CN 101853287 B CN101853287 B CN 101853287B
- Authority
- CN
- China
- Prior art keywords
- data
- file
- compression
- generate
- index
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a data compression quick retrieval file system and a method thereof. The system comprises a data generation system, a request connection processing system, a data inquiring system, a permission management system, a data recovery system and a data physical system, wherein, the data generation system is used for compressing data files defined by other systems or table data in other-type databases to generate a compression data file, and simultaneously generates a system index file and a data structure information file; the request connection processing system is used for establishing connection with client sides; the data inquiring system is used for collecting client sides, for analyzing specific inquiring words, for analyzing the data structure information file and an index file, for retrieving a data file and for returning the retrieved data; the permission management system is used for establishing users and distributing user permission; the data recovery system is used for recovering the designated data files into other-type databases or data files defined by other systems; and the data physical system comprises the data structure information file, a data retrieval index file and a data file.
Description
Technical field
The invention belongs to the data retrieval system field.Relate in particular to and to carry out the application system that data compression requires to support fast query simultaneously again.
Background technology
In the data retrieval system field, general way is based on the data retrieval technology that general data storehouse technology realizes at present.General data storehouse mode is because database has adopted the specific data file in encapsulation back; The external world can't directly compress its data; As a plurality of table data are kept in the same database; The external world can't directly analyze its table data, and simultaneously efficiency data query can't guarantee inquiry velocity fast because function such as data modification and transaction and current storage data are the influence of mass data etc.
Along with society and rapid economy development, social production and consume activity increase rapidly, and the data volume that the needs of social every field are preserved increases greatly.Particularly online transacter is along with the growth of customer volume and the accumulation of business hours, and some incident data recorded expand, like the historical billing data of communications field operator, historical service log, conversation detailed recorded data etc.Their common feature is that data volume is big, and data are static, because all be that some have been taken place and the raw readings of the business confirmed, does not allow these data are made an amendment; Data access frequency at a specified future date is low, in the recent period the data frequent access.In order to reduce system's construction cost, the data of only online nearest a period of time of preservation.For longer, data, services more timely is provided in Limited resources, need provide more practice thrift, more effective data service system.
Therefore, historical and real time data are unified compression memory management and statistics, inquiry, introduce the compression storing data quick retrieval file system, so as to online query time of reducing data, improve inquiry velocity, reduce data preservation and backup space.This is a kind of means of improving service quality, improve efficiency of service, practicing thrift cost, also is unified management, strengthens management and control, the inexorable trend that is user-friendly to.There is the demand of historical and real time data being unified the compression memory management at present, can improves service quality, improve efficiency of service to the client, practice thrift cost.
Summary of the invention
In order to summarize the object of the invention, some aspect of the present invention, advantage and novel feature have been described here.Should be appreciated that, need not all these aspects, advantage and characteristic and be included among arbitrary special embodiment.
For solving the problem and shortage part that prior art exists; The invention provides a kind of compression storing data quick retrieval file system; Fundamentally change the implementation of traditional database data retrieval; Making the retrieval to mass data no longer is to carry out retrieve data from big data quantity, but online packed data is at high proportion retrieved, and the fast data retrieval rate is provided simultaneously.
In order to achieve the above object, the invention provides a kind of method of compression storing data quick retrieval file system: raw data migration, the systematic analysis data source is also moved to data source data in the native system, preserves with the temporary file of native system user-defined format; Data compression generates, and the data of temporarily preserving is carried out processed compressed generate compression data file, generates the index of specified quantity simultaneously, then the data that generate is entered in the presents system; Data retrieval, when client connected book server and goes forward side by side the line data retrieval request, server was at first verified user right, the SQL statement of analysis request then, the concrete message that will ask at last sends to the data engine module; Data are recovered, and designated data files is reverted to data file or the other types database table that other system defines, and specific recovery instrument is provided.
The invention provides a kind of data compression quick retrieval file system, this system comprises: data generation system, request connection processing system, data query system, Rights Management System, data recovery system, data entity system.
The present invention provides; Data generation system; Comprise: the data migtation module, be used for the table data of the data file of other system definition or other types database are transferred to the temporary file of system's user-defined format, need predefined data interrecord structure information when generating temporary file; Data compressing module is used for the temporary file of reading of data generation module generation and compresses the generation compression data file, generates data retrieval index file and data structure information file simultaneously.
The present invention also provides, and request connection processing system comprises: the connection request administrative section, and be used to set up and being connected of client, and link information is submitted to Rights Management System, guarantee connection stability simultaneously; Connect the distribution part, be used for the corresponding new operating system thread of generated query request and also will generate new thread and give new thread, after task is accomplished, be responsible for the recovery operation of thread simultaneously connection.
The present invention also provides, and data query system comprises: database shell module; Be used to collect the connection of client; And analyze the concrete query statement of client, request message is sent to data search engine and obtains data query the most at last, and data query is sent to inquiring client terminal; Data search engine is used to respond query statement message and analyzes data structure information file and index file, according to index file locator data record position, and retrieve data file and data retrieved turned back to the database housing parts then.
The present invention also provides, and Rights Management System comprises: inquiring user authority processing section, be used to set up user and distributing user permission, and distribute authority according to query requests user profile simultaneously; The Query Information control section is when client during with the service of certain user identity login system, according to its authority treatment S QL statement and return the data query of corresponding authority;
The present invention also provides, and data recovery system comprises: the database mode recovered part is used for designated data files is reverted to the other types database table; The file mode recovered part is used for designated data files is reverted to the data file that other system defines.
The present invention also provides, and the data entity system comprises: data structure information file, data retrieval index file, compression data file.
Description of drawings
Fig. 1 is the system network architecture figure that the present invention is based on mobile operator;
Fig. 2 is a system architecture diagram of the present invention;
Fig. 3 is the process flow diagram of data migtation of the present invention;
Fig. 4 is a data compression process flow diagram of the present invention;
Fig. 5 is a data retrieval process flow diagram of the present invention;
Fig. 6 is Data Recovery Process figure of the present invention.
Embodiment
Below in conjunction with Figure of description and embodiment the present invention is done further description.
Fig. 1 is the system network architecture figure that the present invention is based on mobile operator.Data compression quick retrieval file system network shown in Figure 1 comprises: production system 1, production system produce user's ticket in real time; The final professional call bill data of confirming that produces of the Call Detail Record that generates is handled in charging center 2; Data retrieval server 3, data retrieval server comprise that the data Core Generator is used for importing data to native system from data source, and data retrieval module is used for retrieving corresponding data and turning back to client from database datafile; Interface platform 4, interface platform is according to the request visit data retrieval server of different user and obtain specific retrieve data, turns back to requesting users then; Data rehabilitation center 5, data rehabilitation center are that the data decompression of system need back up or recover the time recovers server; Self-service printer 6, self-service printer are the PRN device that the business hall provides the self-help print service, and the user can print ticket, and data are transmitted through interface platform from the data retrieval server; Customer Service Center 7, Customer Service Center are the mechanism that operator provides customer service, and the user can ask the CDR inquiry service, and data are transmitted through interface platform from the data retrieval server; Online business hall 8, online business hall are that operator provides inquiry to wait the network platform of service, and the user can carry out CDR inquiry, and data are transmitted through interface platform from the data retrieval server.
Fig. 2 is a system architecture diagram of the present invention.Native system comprises: data Core Generator 1-1; Data migration portion transfers the table data in the data file of system definition or other databases to the temporary file of system's user-defined format; The temporary file that data compression part reading of data generation module generates also compresses the generation compression data file, simultaneously generation system index file and data structure information file.1-4 analyzed in the data query statement, and the inquiry system shell is collected the connection of client, and analyze the concrete query statement of client, and request message is sent to data search engine and obtains data query the most at last.Data retrieval engine 1-5, response query statement message is also analyzed the data structure information file and index file retrieve data file and data retrieved turned back to the inquiry system shell then.Data file system 1-6 comprises data structure information file, data retrieval index file, data file.Data recovery tools 1-7, database mode is recovered instrument designated data files is reverted to the other types database table, and file mode recovers the data file that instrument reverts to designated data files the other system definition.
To Fig. 6 system of the present invention implementation method is described below in conjunction with Fig. 3.
Fig. 3 is a data migtation process flow diagram of the present invention.The data migtation instrument is at first analyzed data source and according to configuration file reading of data source in step S102; If unusually then migratory system withdraw from; Step S104 reads correctly then moves to data source data in the native system; In step S105 and generate the temporary file of specific format, generate the data format information file simultaneously, finally preserve with the temporary file of native system user-defined format.Temporary file is the data file of non-compression, supplies next step data compression instrument to use, and can or keep as multiplexing the temporary file deletion after data compression finishes.
Fig. 4 is a data compression process flow diagram of the present invention.The ephemeral data that the migration of data compression tool analysis is come in step S202; If unusually then migratory system withdraw from; In step S204, read configuration information information such as index are set, in step S205, carry out processed compressed and generate compression data file, in step S206, analyze data message and generate index file; The processed compressed of in step S207, carrying out data generates compression data file, and so far data compression process is accomplished.Data compression process meets international compression standard, and index has the B+Tree function.
Fig. 5 is a data retrieval process flow diagram of the present invention.In step S302, resolve configuration file system running environment is set; Initialization server module in step S303 comprises internal memory application worker thread establishment etc., and circular wait connects and takes orders in step S304; When order, then receive to connect and continue and carry out; Otherwise the continuation circular wait, when client connection book server was gone forward side by side the line data retrieval request, server was at first verified user right in step S306; The SQL statement of analysis request and establishment inquiry thread in step S307; The concrete message that the inquiry thread will be asked at last in step S308 sends to the data engine module, the data search engine part, and response query statement message is also analyzed data structure information file and index file; According to index file locator data record position, retrieve data file and data retrieved turned back to the inquiry thread then.The back is not received the service stopping signal then is continued to wait for connection request if SQL is finished.
Fig. 6 is a data compression process flow diagram of the present invention.Data recovery tools reads the data file in the compressed file system in step S402; If unusually then the recovery instrument withdraw from; The normal condition program continues to carry out; In step S404, read configuration information and obtain information such as rehabilitation center's address table structure and recovery parameter; Data file decompress(ion) after in step S405, will compressing also is saved in the specific data structure, in step S406, the data structure behind the decompress(ion) is sent to rehabilitation center, and the daily record with decompression procedure in step S407 is written to log system.
Though the present invention with preferred embodiment openly as above; But they are not to be used for limiting the present invention, anyly have the knack of this art, in spirit that does not break away from the present invention and scope; Can do various variations or retouching from working as, but same within the protection domain of the invention.What therefore protection scope of the present invention should be defined with the application's claim protection domain is as the criterion.
Claims (2)
1. the system of the quick retrieving files of compression storing data, this system comprises:
The raw data migration units is used for the systematic analysis data source and data source data is moved to this unit, preserves with the temporary file of this unit user-defined format; Be specially: the data migtation instrument is at first analyzed data source and according to configuration file reading of data source; If unusually then the raw data migration units withdraw from; Then data source data is moved in the native system otherwise read correctly; Generate the temporary file of specific format, generate the data format information file simultaneously, finally preserve with the temporary file of native system user-defined format;
The data compression generation unit is used for that the data of temporarily preserving are carried out processed compressed and generates compression data file, generates the index of specified quantity simultaneously, then the data that generate is entered in the native system; Be specially: the ephemeral data that the migration of data compression tool analysis is come; If unusually then the raw data migration units withdraw from; Otherwise read configuration information index information is set, carry out processed compressed and generate compression data file, analyze data message and generate index file; The processed compressed of carrying out data generates compression data file, and so far data compression process is accomplished;
The data retrieval unit is used for when client connects book server and goes forward side by side the line data retrieval request, and server is at first verified user right, the SQL statement of analysis request then, and the concrete message that will ask at last sends to the data engine module; Be specially: resolve configuration file system running environment is set, the initialization server module comprises the establishment of internal memory application worker thread; Circular wait connects and takes orders, and when order, then receives to connect and continue to carry out, otherwise continues circular wait; When client connection book server is gone forward side by side the line data retrieval request; Server is at first verified user right, and the SQL statement of analysis request is also created the inquiry thread, and the concrete message that the inquiry thread will be asked at last sends to the data engine module; The data search engine part; Response query statement message is also analyzed data structure information file and index file, according to index file locator data record position, and retrieve data file and data retrieved turned back to the inquiry thread then;
Data recovery unit is used for designated data files is reverted to data file or the other types database table that other system defines, and specific recovery instrument is provided; Be specially: data recovery tools reads the data file in the compressed file system; If unusually then the recovery instrument withdraw from; The normal condition program continue to be carried out, and reads configuration information and obtains rehabilitation center's address table structure and recover parameter information, with the data file decompress(ion) after the compression and be saved in the specific data structure; Data structure behind the decompress(ion) is sent to rehabilitation center, the daily record of decompression procedure is written to log system.
2. the method for the quick retrieving files of compression storing data is characterized in that:
Raw data migration, the systematic analysis data source is also moved to data source data in the native system, preserves with the temporary file of native system user-defined format;
Concrete steps do; Step S102: the data migtation instrument is at first analyzed data source and according to configuration file reading of data source, step S103: if unusually then migratory system withdraw from, otherwise carry out next step; Step S104: read correctly and then data source data is moved in the native system; Step S105: generate the temporary file of specific format, generate the data format information file simultaneously, finally preserve with the temporary file of native system user-defined format;
Data compression generates, and the data of temporarily preserving is carried out processed compressed generate compression data file, generates the index of specified quantity simultaneously, then the data that generate is entered in the native system;
Concrete steps are step S202: the ephemeral data that data compression tool analysis migration is come, step S203: if unusually then migratory system withdraw from; Otherwise carry out next step; Step S204: read configuration information index information is set, step S205: carry out processed compressed and generate compression data file, step S206: analyze data message and generate index file; Step S207: the processed compressed of carrying out data generates compression data file, and so far data compression process is accomplished;
Data retrieval, when client connected book server and goes forward side by side the line data retrieval request, server was at first verified user right, the SQL statement of analysis request then, the concrete message that will ask at last sends to the data engine module;
Concrete steps are step S302: resolve configuration file and system running environment is set, step S303: the initialization server module; Comprise the establishment of internal memory application worker thread; Step S304: circular wait connects and takes orders step S305: when order, then receive to connect and continue and carry out, otherwise continue circular wait; Step S306: when client connection book server is gone forward side by side the line data retrieval request; Server is at first verified user right, step S307: the SQL statement of analysis request is also created the inquiry thread, step S308: the concrete message that the inquiry thread will be asked at last sends to the data engine module; The data search engine part; Response query statement message is also analyzed data structure information file and index file, according to index file locator data record position, and retrieve data file and data retrieved turned back to the inquiry thread then;
Data are recovered, and designated data files is reverted to data file or the other types database table that other system defines, and specific recovery instrument is provided;
Concrete steps do; Step S402: data recovery tools reads the data file in the compressed file system; Step S403: if unusually then the recovery instrument withdraw from; The normal condition program continues to carry out step S404: read configuration information and obtain rehabilitation center's address table structure and recover parameter information, step S405: the data file decompress(ion) after will compressing also is saved in the specific data structure; Step S406: the data structure behind the decompress(ion) is sent to rehabilitation center, step S407: the daily record of decompression procedure is written to log system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010180814XA CN101853287B (en) | 2010-05-24 | 2010-05-24 | Data compression quick retrieval file system and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010180814XA CN101853287B (en) | 2010-05-24 | 2010-05-24 | Data compression quick retrieval file system and method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101853287A CN101853287A (en) | 2010-10-06 |
CN101853287B true CN101853287B (en) | 2012-09-05 |
Family
ID=42804779
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010180814XA Expired - Fee Related CN101853287B (en) | 2010-05-24 | 2010-05-24 | Data compression quick retrieval file system and method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101853287B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105718538A (en) * | 2016-01-18 | 2016-06-29 | 中国科学院计算技术研究所 | Adaptive compression method and system for distributed file system |
Families Citing this family (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102004758A (en) * | 2010-10-26 | 2011-04-06 | 东莞市步步高教育电子产品有限公司 | External search device and method of handheld learning equipment |
WO2013065199A1 (en) * | 2011-11-04 | 2013-05-10 | 富士通株式会社 | Matching control program, matching control device, and matching control method |
CN102609439A (en) * | 2011-12-23 | 2012-07-25 | 浙江大学 | Window-based probability query method for fuzzy data in high-dimensional environment |
CN103778203B (en) * | 2014-01-13 | 2018-01-19 | 中国人民解放军91655部队 | A kind of method and system of network management data Lossless Compression storage and retrieval |
CN104331421A (en) * | 2014-10-14 | 2015-02-04 | 安徽四创电子股份有限公司 | High-efficiency processing method and system for big data |
CN104460449A (en) * | 2014-11-24 | 2015-03-25 | 成都中远信电子科技有限公司 | Recording method of portable data recorder |
CN105302915B (en) * | 2015-12-23 | 2019-04-09 | 美林数据技术股份有限公司 | The high-performance data processing system calculated based on memory |
CN105938489A (en) * | 2016-04-14 | 2016-09-14 | 北京思特奇信息技术股份有限公司 | Storage and display method and system of compressed detailed lists |
US11232524B2 (en) * | 2016-04-22 | 2022-01-25 | Vertigo Media, Inc. | System for enhancing data transmission in a network environment |
US9558077B1 (en) | 2016-06-16 | 2017-01-31 | International Business Machines Corporation | Relational database recovery |
US10268543B2 (en) * | 2017-01-27 | 2019-04-23 | Hewlett Packard Enterprise Development Lp | Online volume repair |
CN107247639A (en) * | 2017-05-03 | 2017-10-13 | 上海动联信息技术股份有限公司 | A kind of efficient backup method of mysql databases |
CN107153717A (en) * | 2017-06-14 | 2017-09-12 | 成都三零凯天通信实业有限公司 | Million grades of method and system that recorded form are exported from database by browser |
CN107357854A (en) * | 2017-06-28 | 2017-11-17 | 光大环境科技(中国)有限公司 | The method, apparatus and computer-readable storage medium of data storage |
CN107622094A (en) * | 2017-08-30 | 2018-01-23 | 苏州朗动网络科技有限公司 | A kind of high-volume data guiding system and method based on search engine |
CN108563535B (en) * | 2018-04-27 | 2021-12-24 | 四川巧夺天工信息安全智能设备有限公司 | Recovery method for MySQL database whole database |
CN112269905B (en) * | 2020-11-06 | 2023-07-21 | 湖南快乐阳光互动娱乐传媒有限公司 | Method and system for improving system data query capability |
CN112506989A (en) * | 2020-11-20 | 2021-03-16 | 南京英诺森软件科技有限公司 | Data retrieval system based on file format |
CN114780023A (en) * | 2022-03-29 | 2022-07-22 | 北京柏睿数据技术股份有限公司 | Method and device for quickly accessing data file |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1211013A (en) * | 1997-09-10 | 1999-03-17 | 富士通株式会社 | File information storing and searching device and its program recording medium |
CN1434661A (en) * | 2003-01-30 | 2003-08-06 | 武汉奥发科技工程有限公司 | Method for multi-stage monitor and mobile monitor of GPS/mobile telephone location |
CN1612252A (en) * | 2003-10-31 | 2005-05-04 | 浙江中控技术股份有限公司 | Real-time data on-line compression and decompression method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8224772B2 (en) * | 2006-12-08 | 2012-07-17 | Nec Corporation | Data management apparatus, method and program |
-
2010
- 2010-05-24 CN CN201010180814XA patent/CN101853287B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1211013A (en) * | 1997-09-10 | 1999-03-17 | 富士通株式会社 | File information storing and searching device and its program recording medium |
CN1434661A (en) * | 2003-01-30 | 2003-08-06 | 武汉奥发科技工程有限公司 | Method for multi-stage monitor and mobile monitor of GPS/mobile telephone location |
CN1612252A (en) * | 2003-10-31 | 2005-05-04 | 浙江中控技术股份有限公司 | Real-time data on-line compression and decompression method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105718538A (en) * | 2016-01-18 | 2016-06-29 | 中国科学院计算技术研究所 | Adaptive compression method and system for distributed file system |
CN105718538B (en) * | 2016-01-18 | 2019-05-14 | 中国科学院计算技术研究所 | A kind of self-adapting compressing method and system of distributed file system |
Also Published As
Publication number | Publication date |
---|---|
CN101853287A (en) | 2010-10-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101853287B (en) | Data compression quick retrieval file system and method thereof | |
CN102906751B (en) | A kind of method of data storage, data query and device | |
CN103064933B (en) | Data query method and system | |
CN102915374B (en) | A kind of method, Apparatus and system of resource access of controlling database | |
CN104424229B (en) | A kind of calculation method and system that various dimensions are split | |
CN100478956C (en) | Method and corresponding system for creating and obtaining report forms | |
CN112698953A (en) | Power grid intelligent operation and detection platform based on micro-service | |
CN103617287A (en) | Log management method and device in distributed environment | |
CN103177116A (en) | Distributed log handling and inquiring method based on two-stage index | |
CN101163265A (en) | Distributed database based on multimedia message log inquiring method and system | |
CN1859505B (en) | Bill checking system and method | |
CN101646140B (en) | Message log processing method and system | |
US11625412B2 (en) | Storing data items and identifying stored data items | |
CN102148833A (en) | Method for transmitting data report, server, client and system | |
CN101141370A (en) | Gridding service based electric power enterprise real-time data processing method | |
CN107025222A (en) | A kind of distributed information log acquisition method and device | |
CN104584524A (en) | Aggregating data in a mediation system | |
CN102222112B (en) | Resource management device and resource management method | |
WO2017000592A1 (en) | Data processing method, apparatus and system | |
CN107506422A (en) | The distributed information log processing system and method for a kind of multi-data source | |
CN109542913B (en) | Network asset safety management method in complex environment | |
CN1963821A (en) | Method, system and apparatus to realize accessing to database | |
CN103778258A (en) | Method for sending and receiving data of database, client terminal and server | |
CN101383733B (en) | Method and device for monitoring network state when calling | |
CN105095224A (en) | Method, apparatus and system for carrying out OLAP analysis in mobile communication network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120905 Termination date: 20200524 |