CN108664609A - A kind of method of data sharing, the network equipment and terminal - Google Patents

A kind of method of data sharing, the network equipment and terminal Download PDF

Info

Publication number
CN108664609A
CN108664609A CN201810448424.2A CN201810448424A CN108664609A CN 108664609 A CN108664609 A CN 108664609A CN 201810448424 A CN201810448424 A CN 201810448424A CN 108664609 A CN108664609 A CN 108664609A
Authority
CN
China
Prior art keywords
data
terminal
access request
target
processing device
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
CN201810448424.2A
Other languages
Chinese (zh)
Other versions
CN108664609B (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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201810448424.2A priority Critical patent/CN108664609B/en
Publication of CN108664609A publication Critical patent/CN108664609A/en
Application granted granted Critical
Publication of CN108664609B publication Critical patent/CN108664609B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a kind of method of data sharing, the network equipment and terminal, is related to the communications field, when terminal initiates data access request, can reduce the IO losses of terminal, promote the performance of terminal.This method includes:Pre-processing device receives the data access request that terminal is sent, and data access request is used for request target shared data;Pre-processing device is responded to terminal transmission data access request, data access request responds the mark for carrying target database, data access request response is used to indicate terminal and target shared data is read and shared from target database, and target shared data is to be parsed into the data of terminal compatible format.

Description

A kind of method of data sharing, the network equipment and terminal
Technical field
This application involves a kind of communications field more particularly to method of data sharing, the network equipment and terminals.
Background technology
Currently, terminal mode of shared file from file server is:The shared text is stored in file server Part.When terminal needs to access shared file, terminal initiates access request to file server, if file server determines the end End is able to access that shared file, it indicates that terminal reads shared file and shared file is converted to the lattice that terminal can identify Formula, and then complete the flow of file-sharing.
As it can be seen that in existing data sharing mode, after terminal obtains shared file every time, shared file need to be parsed For the data of itself compatible format.It also means that, if terminal need to access different types of shared file, terminal need to have solution The ability for analysing different type shared file, improves the requirement to terminal processes performance, meanwhile, terminal parses the behaviour of shared file Input and output (Input Output, the IO) loss for typically resulting in terminal, reduces the performance of terminal.
Invention content
The application provides a kind of method of data sharing, the network equipment and terminal, can initiate data sharing in terminal and ask When asking, the IO losses of terminal are reduced, the performance of terminal is promoted.
In order to achieve the above objectives, the application adopts the following technical scheme that:
In a first aspect, the application provides a kind of method of data sharing, this method may include:
Pre-processing device receives the data access request that terminal is sent, and the data access request is shared for request target Data;The pre-processing device is responded to the terminal transmission data access request, and the data access request response carries The mark of target database, the data access request response are used to indicate the terminal and read the mesh from target database Shared data is marked, the target shared data is to be parsed into the data of the terminal compatible format.
Second aspect, the application provide a kind of method of data sharing, and this method may include:
Terminal is to pre-processing device transmission data access request, and the data access request is for the shared number of request target According to;The terminal receives the data access request response that the pre-processing device is sent, and the data access request response carries There is the mark of target database;The terminal reads the target shared data from the target database, and the target is total It is to be parsed into the data of the terminal compatible format to enjoy data.
The third aspect, the application provide a kind of network equipment, which includes:Receiving module and sending module.Its In, receiving module, the data access request for receiving terminal transmission, the data access request is for the shared number of request target According to;Sending module, for being responded to the terminal transmission data access request, the data access request response carries target The mark of database, the data access request response are used to indicate the terminal and read and share described from target database Target shared data, the target shared data are to be parsed into the data of the terminal compatible format.
Fourth aspect, the application provide a kind of network equipment, which includes:Processor, transceiver and memory. Wherein, for memory for storing one or more programs, one or more programs include instruction, when the network equipment is run, Processor executes the instruction of memory storage, so that the network equipment executes first aspect and its various optional realization methods In it is one of arbitrary described in data sharing method.
5th aspect, the application provide a kind of terminal, which includes:Sending module, receiving module and read module.Its In, sending module, for pre-processing device transmission data access request, the data access request to be shared for request target Data;Receiving module, the data access request response sent for receiving the pre-processing device, the data access request are rung The mark of target database should be carried;Read module, for reading the target shared data from the target database, The target shared data is to be parsed into the data of the terminal compatible format.
6th aspect, the application provide a kind of terminal, which includes:Processor, transceiver and memory.Wherein, it deposits For reservoir for storing one or more programs, one or more programs include instruction, and when the terminal operating, processor executes should The instruction of memory storage, so that described in one of arbitrary in terminal execution first aspect and its various optional realization methods Data sharing method.
7th aspect, the application provide a kind of computer readable storage medium, are stored in computer readable storage medium One or more programs, one or more programs include computer executed instructions, are somebody's turn to do when the processor of the above-mentioned network equipment executes When computer executed instructions, the network equipment execute it is one of arbitrary in above-mentioned first aspect and its various optional realization methods described in Data sharing method.
Eighth aspect, the application provide a kind of computer readable storage medium, are stored in computer readable storage medium One or more programs, one or more programs include computer executed instructions, when the processor of above-mentioned terminal executes the calculating When machine executes instruction, terminal execute in above-mentioned first aspect and its various optional realization methods it is one of arbitrary described in data it is total Enjoy method.
9th aspect, the application provide a kind of communication system, which includes the third aspect and its various optional In realization method it is one of arbitrary described in the network equipment and the 5th aspect and its various optional realization methods in one of arbitrary institute The terminal stated.
Method, the network equipment and the terminal of data sharing provided by the present application, pre-processing device are receiving what terminal was sent It after data access request, is responded to terminal transmission data access request, to which instruction terminal is read in target database It is resolved to the target shared data of terminal compatible format, on the one hand, be both needed to solve with each accessing shared data in the prior art Analysis shared data compare, due to target shared data be resolvable to the data of terminal compatible format, so, terminal without solve Shared data is analysed, reduces the IO losses that terminal carries out data parsing operation, on the other hand, terminal is without having parsing inhomogeneity The performance of type data greatly reduces the requirement to terminal data processing performance.
Description of the drawings
Fig. 1 is communication network architecture schematic diagram provided by the embodiments of the present application;
Fig. 2 is data sharing method schematic diagram provided by the embodiments of the present application;
Fig. 3 is the structural schematic diagram one of the network equipment provided by the embodiments of the present application;
Fig. 4 is the structural schematic diagram two of the network equipment provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram one of terminal provided by the embodiments of the present application;
Fig. 6 is the structural schematic diagram two of terminal provided by the embodiments of the present application.
Specific implementation mode
The method of data sharing provided by the embodiments of the present application, server and terminal are carried out in detail below in conjunction with the accompanying drawings Description.
Term " first " and " second " in the description of the present application and attached drawing etc. be for distinguishing different objects, or Person is used to distinguish the different disposal to same target, rather than for the particular order of description object.
In addition, the term " comprising " and " having " being previously mentioned in the description of the present application and their any deformation, it is intended that It is to cover and non-exclusive includes.Such as process, method, system, product or the equipment for containing series of steps or unit do not have It is defined in the step of having listed or unit, but further includes the steps that optionally that other are not listed or unit, or optionally Further include for the intrinsic other steps of these processes, method, product or equipment or unit.
It should be noted that in the embodiment of the present application, " illustrative " or " such as " etc. words make example, example for indicating Card or explanation.Be described as in the embodiment of the present application " illustrative " or " such as " any embodiment or design scheme do not answer It is interpreted than other embodiments or design scheme more preferably or more advantage.Specifically, " illustrative " or " example are used Such as " word is intended to that related notion is presented in specific ways.
In the description of the present application, unless otherwise indicated, the meaning of " plurality " is refer to two or more.
Data sharing method provided by the embodiments of the present application can be applied in communication network shown in FIG. 1, the communication network Network can be the 5th generation (5th generation, 5G) mobile communications network, can also be forth generation (4th generation, 4G) (such as:Evolved Packet System (evolved packet system, EPS) mobile communications network can also be other reality Communication network, the application not limit.
As shown in Figure 1, the communication network can include:Data-source device, file server, pre-processing device, database And terminal.Wherein, the data-source device in Fig. 1 is for generating shared file data, and by shared file data transmission to file Server;File server, the shared file data for generating data-source device are stored under overlapping trees;Pretreatment is set It is standby, for being read out, decoding to the shared file data under overlapping trees, parse, and by the shared file data after parsing It is stored in target database, so that terminal from reading in target database and uses the content in shared file data.
It should be noted that Fig. 1 is merely illustrative Organization Chart, in addition to functional unit shown in Fig. 1, the network architecture is also May include other functional units, the embodiment of the present application is to this without limiting.
Above-mentioned terminal can be user equipment (user equipment, UE), such as:Mobile phone, computer can also be on knee The other equipments such as computer, hand-held communication device, Handheld computing device.
The embodiment of the present application provides a kind of data sharing method, as shown in Fig. 2, this method may include S201-S209:
S201, pre-processing device detect the default file data under the overlapping trees of file server, default file data Including the first default file data and the second default file data.
It is understood that before executing S201, data-source device generates default file data, and by default file number According to file server is transmitted to, default file data are stored to overlapping trees by file server, it is assumed that data-source device The first default file data and the second default file data are generated, then are stored with the first default file data and under overlapping trees Two default file data.It is understood that two default file data under overlapping trees are exemplarily only enumerated here, In the embodiment of the present application, the quantity of the default file data under overlapping trees is not limited to 2.
Specifically, S201 can be implemented as:
S201a, pre-processing device detection overlapping trees under with the matched default file data of default naming rule, wherein Default naming rule is stated by regular expression.
Specifically, file oracle listener can be set in pre-processing device, and file oracle listener is monitored under overlapping trees Default file data.
Default naming rule includes the systematic name for generating default file data, the classification of default file data content, generates The date of default file data, default file Data Identification.Wherein, the system for generating default file data can be according to specifically answering It is determined with scene, digital representation is usually used in the classification of default file data content, for example, 01 characterization product information, 02 characterization transaction Information.For example, the default file data for the product information that css systems generated serial number 02 on 01 03rd, 2017, the then production The title of the default file data of product information can be:css01-2017-01-03-02.
It correspondingly, can be by regular expression table with the default naming rule of the default file Data Matching of product information class State for:^css01\-\d{4}\-\d{2}\-\d{2}\-\d{2}$.
It is understood that when there are file datas 1 under overlapping trees:
Css01-2017-01-01-01, file data 2:Css01-2017-01-03-02, file data 3:css02- 2017-04-02-03, file data 4:Css03-2017-03-02-04, the title of the title and file data 2 of file data 1 Meet the regular expression of the default file data of the said goods information, so, file data 1 and file data 2 are and preset The matched default file data of naming rule.
As a kind of possible realization method, timer can be set in pre-processing device, and touching for timer is set Clockwork spring part, it is assumed that the frequency that data-source device generates default file data is to generate a collection of default file data for every 5 minutes, then may be used The trigger condition that timer is arranged is to trigger within every 2 minutes once, and in timers trigger, startup file oracle listener, by text Part oracle listener monitors the default file data under overlapping trees.
It is worth noting that, file oracle listener periodically listens for and the matched default file number of default naming rule According to illustratively, when file oracle listener initial start, listening to the default file of entitled css01-2017-01-03-02 After data 1,2 minutes, when file oracle listener starts for the second time, the default text for meeting default naming rule can be still listened to Number of packages causes the work load of file oracle listener heavier according to 1.In order to avoid file oracle listener is to same default file data Repetition monitor, in the embodiment of the present application, be arranged document analysis module, meet default name when file oracle listener listens to After the default file data of rule, circular document parsing module is needed, weight is carried out to default file data by document analysis module Naming operation is monitored program repeat identification to avoid same default file data.For example, default naming rule is by regular expressions Formula be expressed as ^css01-d { 4 }-d { 2 }-d { 2 }-d { 2 } $, that is, monitor css systems generate product information class it is pre- If file data, after file oracle listener listens to the default file data 1 of entitled css01-2017-01-03-02, File oracle listener circular document parsing module, it is assumed that document analysis module is by the title renamed as of default file data 1 Css02-2017-01-03-02 is Transaction Information class since css02 characterizes the default file data, not product information class, institute With the default file data 1 will not be once again listened for by file oracle listener, mitigate the work load of file oracle listener.
S202, pre-processing device read overlapping trees under the first default file data, to the first default file data into Row decoding.
Specifically, file oracle listener listens to after the first default file data, circular document parsing module, file solution It analyses module pair the first default file data and carries out renaming operation, then document analysis module reads the first default file data, First preset data is decoded.
S203, pre-processing device read overlapping trees under the second default file data, to the second default file data into Row decoding.
Specifically, file oracle listener listens to after the second default file data, circular document parsing module, file solution It analyses module pair the second default file data and carries out renaming operation, then read the second default file data, to the second default text Number of packages evidence is decoded.
It should be noted that the sequence that pre-processing device executes S202 and S203 can adjust, i.e. pre-processing device can be with It first reads, decode the first default file data, then read, decode the second default file data, can also first read, decode second Default file data, then read, decode the first default file data.
Below for the first default file data are read out, be decoded, to illustrate S202 and S203.
Document analysis module in pre-processing device opens the first default file data, reads the first default file number line by line According to for example, the content read is as follows:
QUFBfDIzLjV8MzB8NS4zfDV8U2FuZHl8MjAxNi0wOS0wOXwyMDE5LTA5 LTA5fFZ8NzAwMDAwMHw=
Then, document analysis module is decoded the content of above-mentioned first default file data, it is assumed that uses base64 Method decodes, then the content of the first default file data is as follows after decoding:
AAA|23.5|30|5.3|5|Sandy|2016-09-09|2019-09-09|V|7000000|
S204, pre-processing device create configuration file, and configuration file is for parsing the first default file data and second in advance If file data.
Wherein, configuration file includes the separator being arranged, the table name in target database to be deposited, data deposit target The correspondence of each data item and database table field in the mode of database, decoded default file data.
Specifically, the document analysis module creation configuration file in pre-processing device, for example, document analysis module creation The content of configuration file is as shown in table 1:
Table 1
S205, pre-processing device are according to configuration file, decoded first default file data and decoded second pre- If file data creates structured query language (Structured Query Language, SQL) sentence.
Specifically, the document analysis module in pre-processing device according to configuration file to decoded first default file number According to being parsed, decoded second default file data are parsed according to configuration file, and are created according to the result of parsing Build SQL statement.
For example, document analysis module is according to configuration file, using the data item AAA before first vertical line " | " as data Item 0, the data item 0 correspond to NAME field, and so on.According to configuration file, the first default file data can be parsed (i.e. AAA | 23.5 | 30 | 5.3 | 5 | Sandy | 2016-09-09 | 2019-09-09 | V | 7000000 |) information it is as follows:
The name of product of the product is AAA, and product price is 23.5 yuan, and keeping life is 30 days, and product earning rate is 5.3%, product risks are rated 5 grades, product manager Sandy, and product establishment day is 2016-09-09, and the product Expiration Date is 2019-09-09, Product Status are V (i.e. effectively), and the accumulative profit of product is 7000000 yuan.
According to above-mentioned parsing as a result, the following SQL statement of document analysis module creation:
Insert into PROD_INFO (NAME, PRICE, TERM, INVST, RISK_LEVEL, STATUS) values (' AAA ', 23.5,30,5.3,5, ' V ');
commit;
S206, pre-processing device execute SQL statement, in advance by decoded first default file data and decoded second If file data imports target database.
Specifically, the document analysis module in pre-processing device executes above-mentioned SQL statement, to insert name of product AAA Enter in table PROD_INFO in the corresponding row of NAME field, 23.5 (unit of product price:Member) it is inserted into PRICE in table PROD_INFO In the corresponding row of field, 30 (unit of keeping life:It) it is inserted into table PROD_INFO in the corresponding row of TERM fields, product 5 (units that earning rate 5.3 (%) is inserted into table PROD_INFO in the corresponding row of INVST fields, product risks are graded:Grade) it is inserted into In table PROD_INFO in the corresponding row of RISK_LEVEL fields, Product Status V (it is effective to represent the product) be inserted into table PROD_ It is after executing SQL statement as shown in table 2, default file data are stored in number of targets in INFO in the corresponding row of STATUS fields The database data formed according to library:
Table 2
NAME STATUS INVST PRICE RISK_LEVEL TERM
AAA V 5.3 23.5 5 30
S207, terminal are to pre-processing device transmission data access request, and data access request is for the shared number of request target According to.
For example, terminal asks to access the first default file data to pre-processing device, and the first default file data are the The product information 1 of one product, then target shared data is the product information 1 of the first product.
After the data access request that S208, server receiving terminal are sent, responded to terminal transmission data access request, Data access request responds the mark for carrying target database.
After server receives the data access request of terminal-pair product information 1,1 place of product information can be searched Target database, and carry the response that target database identifies to terminal feedback.
S209, terminal receive the data access request response that server is sent, and read target from target database and be total to Enjoy data.Wherein, target shared data is to be parsed into the data of terminal compatible format.
It is understood that after the mark of terminal acquisition target database, can be directly read from target database And use target shared data.
With in the prior art, the product information 1 of the first product is present in the first default file data (i.e. QUFBfDIzLjV8MzB8NS4zfDV8U2FuZHl8MjAxNi0wOS0wOXwyMDE5LTA5LTA5fFZ8NzAwMDAwMHw =) in, terminal need to parse the first default file data before obtaining product information 1, cause the loss of IO performances more It compares, in the embodiment of the present application, on the one hand, terminal, can after receiving the target database mark of pre-processing device feedback To read the product information being resolved 1 from target database, for example, terminal can be directly read from target database Name of product " AAA ", i.e. terminal reduce the IO performances loss of terminal without being parsed to the first default file data;It is another Aspect, when accessing different types of default file data, since terminal is not required to have the corresponding solution of each type file data Function is analysed, so, reduce the requirement to terminal analysis feature.
In another realization method of the embodiment of the present application, pre-processing device can also to multiple default file data into Row association, and according to the association between multiple default file data, multiple default file data are carried out with the storage of structuring.
As a kind of possible realization method, pre-processing device can pair with the matched default file number of default naming rule According to being associated.For example, there are file datas 1 under overlapping trees:
Css01-2017-01-01-01, file data 2:Css01-2017-01-03-02, file data 3:css01- 2017-01-02-03, file data 4:Css02-2017-04-02-03, file data 5:Css02-2017-03-02-04, in advance The default naming rule (i.e. regular expression) that the default file data of product information class can be arranged in processing equipment is ^ css01\-\d{4}\-\d{2}\-\d{2}\-\d{2}$.After data-source device generates file, the text in pre-processing device Part oracle listener monitors file data 1 under overlapping trees and finds file data 1,2 and of file data to the title of file data 5 File data 3 meets the default naming rule of type of product information file data, then pre-processing device can to file data 1 to File data 3 is associated, and associated file data is stored in the adjacent list item into target database, to facilitate terminal Inquire the relevant file data of product information.
It is understood that the embodiment of the present application can also be associated default file data according to other situations, this Application embodiment is not limited this.
In the prior art, when carrying out across the data analysis of file, the file stream of multiple file datas need to be opened simultaneously, and File data is imported into memory, certainly will be higher to requirements such as the memories of system when file is larger, meanwhile, when file to be analyzed When data are dispersed in multiple files, terminal need to obtain path where each file data and each file data in advance Incidence relation causes the coupling between data-source device and terminal higher.In the embodiment of the present application, when file data to be analyzed When being dispersed in multiple files, pre-processing device can be associated multiple file datas of dispersion, to the file after association Data carry out the operation of such as above-mentioned decoding, parsing, and the file data after parsing is stored to highly structural feature Target database in.Therefore, when terminal is carried out across the data analysis of file, it is only necessary to be read from target database for terminal The file data being associated is taken, without obtaining multiple files respectively incidence relation of the path at place and each file, Reduce the coupling between terminal and pre-processing device.
It is above-mentioned that mainly scheme provided by the embodiments of the present application is described from the angle of pre-processing device.It is appreciated that , the pre-processing device in the embodiment of the present application can have any network equipment for executing above method ability, the network For equipment in order to realize above-mentioned function, it comprises execute the corresponding hardware configuration of each function and/or software module.This field skill Art personnel should be readily appreciated that, the network equipment described in conjunction with the examples disclosed in the embodiments of the present disclosure and algorithm steps Suddenly, the application can be realized with the combining form of hardware or hardware and computer software.Some function actually with hardware still Computer software drives the mode of hardware to execute, and depends on the specific application and design constraint of technical solution.Professional skill Art personnel can use different methods to achieve the described function each specific application, but this realization should not be recognized To exceed scope of the present application.
The embodiment of the present application can carry out function module or functional unit according to above method example to the network equipment It divides, for example, can correspond to each function divides each function module or functional unit, it can also be by two or more Function be integrated in a processing module.The form that hardware had both may be used in above-mentioned integrated module is realized, can also be used The form of software function module or functional unit is realized.Wherein, it is to the division of module or unit in the embodiment of the present application Schematically, only a kind of division of logic function, formula that in actual implementation, there may be another division manner.
The embodiment of the present application provides a kind of network equipment, the case where dividing each function module using corresponding each function Under, Fig. 3 shows a kind of possible structural schematic diagram of the network equipment involved in above-described embodiment.The network equipment includes Detection module 301, read module 302, decoder module 303, creation module 304, receiving module 305 and sending module 306.
Wherein, receiving module 305, the data access request for receiving terminal transmission, the data access request are used for Request target shared data;
Sending module 306, the data access request for responding the reception of receiving module 305, to the terminal transmission data Access request responds, and the data access request response carries the mark of target database, the data access request response It is used to indicate the terminal and the target shared data is read and shared from target database, the target shared data is It is parsed into the data of the terminal compatible format.
In another realization method of the embodiment of the present application, detection module 301 is default under overlapping trees for detecting File data;The detection module 301 is specifically used under detection overlapping trees and the matched default file number of default naming rule According to the default naming rule is stated by regular expression.
Read module 302, for reading the default file data;Decoder module 303, for the read module The 302 default file data read are decoded;Creation module 304, for creating configuration file, the configuration file is for solving Analyse the default file data;According to the configuration file, decoded default file data creation SQL statement, the SQL languages Sentence by the decoded default file data for importing the target database.
Wherein, the configuration file includes separator, the table name in target database to be deposited, the default file of setting Data item is stored in each data item and database literary name in the mode of target database, decoded default file data in data The correspondence of section.
Using integrated unit, Fig. 4 shows one kind of the network equipment involved in above-described embodiment Possible structural schematic diagram.The network equipment includes:Processing unit 402 and communication unit 403.Processing unit 402 is used for net The action of network equipment carries out control management, for example, the step of executing above-mentioned detection module 301, the execution of creation module 304, and/or Other processes for executing techniques described herein.Communication unit 403 is for supporting the network equipment and other network entities Communication, for example, execute above-mentioned receiving module 305, sending module 306 execute the step of.The network equipment can also include storage Unit 401 and bus 404, storage unit 401 are used for the program code and data of storage networking device.
Wherein, above-mentioned processing unit 402 can be the processor or controller in the network equipment, the processor or controller It may be implemented or execute various illustrative logic blocks, module and circuit in conjunction with described in present disclosure.At this It can be central processing unit to manage device or controller, and general processor, digital signal processor, application-specific integrated circuit, scene can compile Either other programmable logic device, transistor logic, hardware component or its arbitrary combination of journey gate array.It can be real Existing or execution combines various illustrative logic blocks, module and circuit described in present disclosure.The processor Can also be to realize the combination of computing function, such as combined comprising one or more microprocessors, the combination of DSP and microprocessor Deng.
Communication unit 403 can be transceiver, transmission circuit or communication interface etc. in the network equipment.
Storage unit 401 can be the memory etc. in the network equipment, which may include volatile memory, example Such as random access memory;The memory can also include nonvolatile memory, such as read-only memory, flash memory, Hard disk or solid state disk;The memory can also include the combination of the memory of mentioned kind.
Bus 404 can be expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..Bus 404 can be divided into address bus, data/address bus, controlling bus etc..For ease of table Show, only indicated with a thick line in Fig. 4, it is not intended that an only bus or a type of bus.
The embodiment of the present application provides a kind of terminal, in the case where dividing each function module using corresponding each function, Fig. 5 shows a kind of possible structural schematic diagram of terminal involved in above-described embodiment.The terminal includes receiving module 502, sending module 501 and read module 503.
Wherein, sending module 501, for pre-processing device transmission data access request, the data access request to be used In request target shared data;Receiving module 502, the data access request response sent for receiving the pre-processing device, The data access request response carries the mark of target database;Read module 503, for from the target database The target shared data is read, the target shared data is to be parsed into the data of the terminal compatible format.
Using integrated unit, Fig. 6 shows one kind of the network equipment involved in above-described embodiment Possible structural schematic diagram.The network equipment includes:Processing unit 602 and communication unit 603.Processing unit 602 is used for net The action of network equipment carries out control management, for example, the step of above-mentioned read module 503 executes is executed, and/or for executing this paper Other processes of described technology.Communication unit 603 is used to support the communication of terminal and other network entities, for example, executing The step of above-mentioned receiving module 502, sending module 501 execute.Terminal can also include storage unit 601 and bus 604, storage Unit 601 is used to store the program code and data of terminal.
Wherein, above-mentioned processing unit 602 can be the processor or controller in terminal, and the processor or controller can be with It realizes or executes and combine various illustrative logic blocks, module and circuit described in present disclosure.The processor Or controller can be central processing unit, general processor, digital signal processor, application-specific integrated circuit, field programmable gate Array either other programmable logic device, transistor logic, hardware component or its arbitrary combination.Its may be implemented or It executes and combines various illustrative logic blocks, module and circuit described in present disclosure.The processor also may be used To be to realize the combination of computing function, such as combined comprising one or more microprocessors, the combination etc. of DSP and microprocessor.
Communication unit 603 can be transceiver, transmission circuit or communication interface etc. in terminal.
Storage unit 601 can be the memory etc. in terminal, which may include volatile memory, such as with Machine accesses memory;The memory can also include nonvolatile memory, such as read-only memory, flash memory, hard disk Or solid state disk;The memory can also include the combination of the memory of mentioned kind.
Bus 604 can be expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..Bus 604 can be divided into address bus, data/address bus, controlling bus etc..For ease of table Show, only indicated with a thick line in Fig. 6, it is not intended that an only bus or a type of bus.
The embodiment of the present application provides a kind of communication system, which may include terminal, pre-processing device, for end The description at end, pre-processing device specifically may refer to the associated description in above method embodiment and device embodiment, herein not It repeats again.
Through the above description of the embodiments, it is apparent to those skilled in the art that, for description It is convenienct and succinct, only the example of the division of the above functional modules, in practical application, can as needed and will be upper It states function distribution to be completed by different function modules, i.e., the internal structure of device is divided into different function modules, to complete All or part of function described above.The specific work process of the system, apparatus, and unit of foregoing description, before can referring to The corresponding process in embodiment of the method is stated, details are not described herein.
The embodiment of the present application also provides a kind of computer readable storage medium, and one is stored in computer readable storage medium A or multiple programs, one or more programs include instruction, when the processor of the above-mentioned network equipment (can be pre-processing device) When executing the instruction, which executes each step that the network equipment executes in method flow shown in above method embodiment Suddenly.
The embodiment of the present application also provides a kind of computer readable storage medium, and one is stored in computer readable storage medium A or multiple programs, one or more programs include instruction, and when the processor of above-mentioned terminal executes the instruction, which executes Each step that terminal executes in method flow shown in above method embodiment.
Wherein, computer readable storage medium, such as electricity, magnetic, optical, electromagnetic, infrared ray can be but not limited to or partly led System, device or the device of body, or the arbitrary above combination.The more specific example of computer readable storage medium is (non-poor The list of act) include:Electrical connection, portable computer diskette with one or more conducting wires, hard disk, random access memory (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), erasable type may be programmed read-only Memory (Erasable Programmable Read Only Memory, EPROM), optical fiber, portable compact disc are read-only Memory (Compact Disc Read-Only Memory, CD-ROM), light storage device, magnetic memory device or above-mentioned Any appropriate combination.In the embodiment of the present application, can be any include computer readable storage medium or storage program Tangible medium, the program can be commanded the either device use or in connection of execution system, device.
The step of method in conjunction with described in present disclosure or algorithm can realize by the mode of hardware, Can be that the mode of software instruction is executed by processor to realize.Software instruction can be made of corresponding software module, software Module can be stored on RAM, flash memory, ROM, Erasable Programmable Read Only Memory EPROM (easableprogrammable ROM, EPROM), Electrically Erasable Programmable Read-Only Memory (electrically EPROM, EEPROM), register, hard disk, movement are hard In the storage medium of disk, CD-ROM (CD-ROM) or any other form well known in the art.A kind of illustrative storage Medium couples are to processor, to enable a processor to from the read information, and can be written and believe to the storage medium Breath.Certainly, storage medium can also be the component part of processor.Pocessor and storage media can be located in ASIC.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module or The division of unit, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute Display or the mutual coupling, direct-coupling or communication connection discussed can be by some interfaces, device or unit INDIRECT COUPLING or communication connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) or processor execute described in each embodiment of the application The all or part of step of method.And storage medium above-mentioned includes:It is flash memory, mobile hard disk, read-only memory, random Access the various media that can store program code such as memory, magnetic disc or CD.
The above, the only specific implementation mode of the application, but the protection domain of the application is not limited thereto, it is any Change or replacement in the technical scope that the application discloses, should all cover within the protection domain of the application.Therefore, this Shen Protection domain please should be subject to the protection scope in claims.

Claims (10)

1. a kind of method of data sharing, which is characterized in that the method includes:
Pre-processing device receives the data access request that terminal is sent, and the data access request is for the shared number of request target According to;
The pre-processing device is responded to the terminal transmission data access request, and the data access request response carries mesh The mark of database is marked, the data access request response is used to indicate the terminal and reads the target from target database Shared data, the target shared data are to be parsed into the data of the terminal compatible format.
2. the method for data sharing according to claim 1, which is characterized in that
Before the data access request that pre-processing device receives that terminal is sent, the method further includes:
Default file data under the pre-processing device detection overlapping trees;
The pre-processing device reads the default file data, is decoded to the default file data;
The pre-processing device creates configuration file, and the configuration file is for parsing the default file data;
The pre-processing device is according to the configuration file, decoded default file data creation structured query language SQL Sentence, the SQL statement are used to the decoded default file data importing the target database.
3. the method for data sharing according to claim 2, which is characterized in that the pre-processing device detects overlapping trees Under default file data include:
Under pre-processing device detection overlapping trees with the matched default file data of default naming rule, the default name Rule is stated by regular expression.
4. the method for data sharing according to claim 3, which is characterized in that the configuration file includes the separation of setting Symbol, the table name in target database to be deposited, in default file data after the data item deposit mode of target database, decoding Default file data in each data item and database table field correspondence.
5. a kind of method of data sharing, which is characterized in that the method includes:
Terminal is used for request target shared data to pre-processing device transmission data access request, the data access request;
The terminal receives the data access request response that the pre-processing device is sent, and the data access request response carries There is the mark of target database;
The terminal reads the target shared data from the target database, and the target shared data is to be parsed into The data of the terminal compatible format.
6. a kind of network equipment, which is characterized in that the network equipment includes:
Receiving module, the data access request for receiving terminal transmission, the data access request are shared for request target Data;
Sending module, for being responded to the terminal transmission data access request, the data access request response carries mesh The mark of database is marked, the data access request response is used to indicate the terminal and is read from target database and share institute Target shared data is stated, the target shared data is to be parsed into the data of the terminal compatible format.
7. the network equipment according to claim 6, which is characterized in that the network equipment further includes:
Detection module, for detecting the default file data under overlapping trees;
Read module, for reading the default file data;
Decoder module, the default file data for being read to the read module are decoded;
Creation module, for creating configuration file, the configuration file is for parsing the default file data;Matched according to described File, decoded default file data creation SQL statement are set, the SQL statement is used for the decoded default file Data import the target database.
8. the network equipment according to claim 7, which is characterized in that
The detection module is additionally operable to the matched default file data of default naming rule under detection overlapping trees, described pre- If naming rule is stated by regular expression.
9. the network equipment according to claim 8, which is characterized in that the configuration file includes the separator of setting, waits for It is stored in table name in the target database, mode of data item deposit target database in default file data, decoded pre- If the correspondence of each data item and database table field in file data.
10. a kind of terminal, which is characterized in that the terminal includes:
Sending module, for pre-processing device transmission data access request, the data access request to be total for request target Enjoy data;
Receiving module, the data access request response sent for receiving the pre-processing device, the data access request are rung The mark of target database should be carried;
Read module, for reading the target shared data from the target database, the target shared data is It is parsed into the data of the terminal compatible format.
CN201810448424.2A 2018-05-10 2018-05-10 Data sharing method, network equipment and terminal Active CN108664609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810448424.2A CN108664609B (en) 2018-05-10 2018-05-10 Data sharing method, network equipment and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810448424.2A CN108664609B (en) 2018-05-10 2018-05-10 Data sharing method, network equipment and terminal

Publications (2)

Publication Number Publication Date
CN108664609A true CN108664609A (en) 2018-10-16
CN108664609B CN108664609B (en) 2021-04-30

Family

ID=63778233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810448424.2A Active CN108664609B (en) 2018-05-10 2018-05-10 Data sharing method, network equipment and terminal

Country Status (1)

Country Link
CN (1) CN108664609B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669790A (en) * 2018-12-17 2019-04-23 北京锐安科技有限公司 Data sharing method, device, shared platform and storage medium based on cloud platform
CN110232068A (en) * 2019-06-14 2019-09-13 中国工商银行股份有限公司 Data sharing method and device
CN110442467A (en) * 2019-06-20 2019-11-12 Oppo广东移动通信有限公司 A kind of data sharing method and terminal, computer readable storage medium
CN111143421A (en) * 2019-12-26 2020-05-12 杭州数梦工场科技有限公司 Data sharing method and device, electronic equipment and storage medium
CN114003187A (en) * 2020-07-28 2022-02-01 惠州视维新技术有限公司 Hardware sharing method and device
CN117390041A (en) * 2023-12-13 2024-01-12 浙江中控信息产业股份有限公司 Data sharing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491436A (en) * 2013-09-13 2014-01-01 深圳Tcl新技术有限公司 Method and device for achieving customization of digital all-in-one machine
CN103514559A (en) * 2013-09-26 2014-01-15 Opera软件股份公司 On-line shopping price comparison method and device based on mobile terminal browser
CN105245622A (en) * 2015-11-11 2016-01-13 中国建设银行股份有限公司 Configurable data processing method and system and mobile platform
CN106250514A (en) * 2016-08-04 2016-12-21 摩贝(上海)生物科技有限公司 Based on Mysql data base and the transnational method of data synchronization of SQL daily record
CN106874366A (en) * 2016-12-30 2017-06-20 腾讯科技(深圳)有限公司 The processing method and processing device of software information
US20180107725A1 (en) * 2015-08-18 2018-04-19 Huawei Technologies Co., Ltd. Data Storage Method and Apparatus, and Data Read Method and Apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491436A (en) * 2013-09-13 2014-01-01 深圳Tcl新技术有限公司 Method and device for achieving customization of digital all-in-one machine
CN103514559A (en) * 2013-09-26 2014-01-15 Opera软件股份公司 On-line shopping price comparison method and device based on mobile terminal browser
US20180107725A1 (en) * 2015-08-18 2018-04-19 Huawei Technologies Co., Ltd. Data Storage Method and Apparatus, and Data Read Method and Apparatus
CN105245622A (en) * 2015-11-11 2016-01-13 中国建设银行股份有限公司 Configurable data processing method and system and mobile platform
CN106250514A (en) * 2016-08-04 2016-12-21 摩贝(上海)生物科技有限公司 Based on Mysql data base and the transnational method of data synchronization of SQL daily record
CN106874366A (en) * 2016-12-30 2017-06-20 腾讯科技(深圳)有限公司 The processing method and processing device of software information

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669790A (en) * 2018-12-17 2019-04-23 北京锐安科技有限公司 Data sharing method, device, shared platform and storage medium based on cloud platform
CN110232068A (en) * 2019-06-14 2019-09-13 中国工商银行股份有限公司 Data sharing method and device
CN110442467A (en) * 2019-06-20 2019-11-12 Oppo广东移动通信有限公司 A kind of data sharing method and terminal, computer readable storage medium
CN110442467B (en) * 2019-06-20 2023-02-03 Oppo广东移动通信有限公司 Data sharing method, terminal and computer readable storage medium
CN111143421A (en) * 2019-12-26 2020-05-12 杭州数梦工场科技有限公司 Data sharing method and device, electronic equipment and storage medium
CN114003187A (en) * 2020-07-28 2022-02-01 惠州视维新技术有限公司 Hardware sharing method and device
CN117390041A (en) * 2023-12-13 2024-01-12 浙江中控信息产业股份有限公司 Data sharing method and device, electronic equipment and storage medium
CN117390041B (en) * 2023-12-13 2024-03-22 浙江中控信息产业股份有限公司 Data sharing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108664609B (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN108664609A (en) A kind of method of data sharing, the network equipment and terminal
CA2865187C (en) Method and system relating to salient content extraction for electronic content
US9465790B2 (en) SVO-based taxonomy-driven text analytics
CN109766082A (en) The method and apparatus that the application program page jumps
CN110334268B (en) Block chain project hot word generation method and device
JP2021501402A (en) Ranking of documents based on semantic abundance
CN110795697B (en) Method and device for acquiring logic expression, storage medium and electronic device
CN102567455A (en) Method and system of managing documents using weighted prevalence data for statements
CN103078913B (en) The Word library updating method and system of input method application program
CN108388597A (en) Conference summary generation method and device
CN110427453A (en) Similarity calculating method, device, computer equipment and the storage medium of data
CN107368489A (en) A kind of information data processing method and device
US8706909B1 (en) Systems and methods for semantic URL handling
US20140236939A1 (en) Systems and methods for topical grouping of search results and organizing of search results
CN108256078B (en) Information acquisition method and device
KR20190131270A (en) The syntax grammar rules automatic generation method of understanding user query intention
CN111126034B (en) Medical variable relation processing method and device, computer medium and electronic equipment
CN113704420A (en) Method and device for identifying role in text, electronic equipment and storage medium
CN115238009A (en) Metadata management method, device and equipment based on blood vessel margin analysis and storage medium
CN111259259B (en) University student news recommendation method, device, equipment and storage medium
CN111310016B (en) Label mining method, device, server and storage medium
CN113256395A (en) Product recommendation method, device, equipment and storage medium based on recommendation graph network
US20140236940A1 (en) System and method for organizing search results
CN112016017A (en) Method and device for determining characteristic data
CN115038089B (en) Multi-terminal data monitoring and collecting method based on information extraction

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