CN103944709A - Data synchronization method and device - Google Patents

Data synchronization method and device Download PDF

Info

Publication number
CN103944709A
CN103944709A CN201410116503.5A CN201410116503A CN103944709A CN 103944709 A CN103944709 A CN 103944709A CN 201410116503 A CN201410116503 A CN 201410116503A CN 103944709 A CN103944709 A CN 103944709A
Authority
CN
China
Prior art keywords
metadata
synchronous
treatment
terminal
documents
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.)
Pending
Application number
CN201410116503.5A
Other languages
Chinese (zh)
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 Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410116503.5A priority Critical patent/CN103944709A/en
Publication of CN103944709A publication Critical patent/CN103944709A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a data synchronization method and device. The method includes the first step of determining metadata corresponding to a file to be synchronized, and the second step of transmitting the metadata to a terminal to be synchronized, so that the terminal to be synchronized obtains a matching file related to the content of the file to be synchronized from a server according to the metadata. Through the data synchronization method and device, the memory occupancy rate of the terminal can be reduced in the data synchronization process.

Description

A kind of method of data synchronization and device
Technical field
The disclosure relates to field of computer technology, relates in particular to a kind of method of data synchronization and device.
Background technology
Along with the development of terminal technology, a lot of users can have multiple electronic equipment simultaneously, for example: have mobile phone, computer, TV etc. simultaneously.In practical application, user is according to the needs of oneself, sometimes need the data on an equipment (referred to as " A equipment "), be synchronized on an other equipment (referred to as " B equipment "), and then play on B equipment, for example: the music on mobile phone or audio video synchronization are arrived TV by user, by synchronous music or the video of televising.
In prior art, the method for synchronization conventionally adopting is: by the audio or video data direct copying on mobile phone EMS memory to TV.TV needs audio frequency or video data corresponding on memory mobile phone.In the time that the synchronous data volume of needs is larger, will take a large amount of memory space of TV.
Summary of the invention
For overcoming the problem existing in correlation technique, the disclosure provides a kind of method of data synchronization and device, can reduce the occupancy to terminal internal memory in data synchronization process.
According to the first aspect of disclosure embodiment, a kind of method of data synchronization is provided, comprising:
Determine and treat the metadata that synchronous documents is corresponding;
To treating that synchronous terminal sends described metadata, so as described in treat that synchronous terminal obtains and the described matching files for the treatment of that synchronous documents content is relevant from server according to described metadata.
Further, described to treating that synchronous terminal sends described metadata, comprising:
To treating synchronous terminal Transmit message synchronization request, in described file synchronization request, carry the first metadata, described the first metadata is the metadata that synchronous documents is corresponding for the treatment of being stored on synchronous terminal.
Further, described to treating that synchronous terminal sends described metadata, comprising:
Treat that to described synchronous terminal uploads the second metadata, described the second metadata is the metadata corresponding to the described file for the treatment of the high access frequency that synchronous documents is relevant.
Further, described determine treat the metadata that synchronous documents is corresponding, comprising:
According to described address information, file attribute information and the document content information for the treatment of that synchronous documents is corresponding, determine described metadata.
According to the second aspect of disclosure embodiment, a kind of method of data synchronization is provided, comprising:
Receive the metadata that synchronous terminal sends, described metadata is the data for the treatment of that synchronous documents is corresponding;
According to described metadata, from server search to described in treat the matching files that synchronous documents content is relevant;
In the time searching described matching files, download described matching files from described server.
Further, the metadata that described reception synchronous terminal sends, comprising:
Receive the file synchronization request that synchronous terminal sends, in described file synchronization request, carry the first metadata, described the first metadata is the metadata that synchronous documents is corresponding for the treatment of being stored on synchronous terminal.
Further, the metadata that described reception synchronous terminal sends, comprising:
Receive the second metadata of uploading of synchronous terminal, described the second metadata is the metadata corresponding to the described file for the treatment of the high access frequency that synchronous documents is relevant.
Further, described metadata comprises: the data of determining according to described address information, file attribute information and the document content information for the treatment of that synchronous documents is corresponding.
According to the third aspect of disclosure embodiment, a kind of data synchronous terminal is provided, comprising:
Metadata determination module, treats for determining the metadata that synchronous documents is corresponding;
Metadata sending module, for to treating that synchronous terminal sends described metadata so that described in treat that synchronous terminal obtains and the described matching files for the treatment of that synchronous documents content is relevant from server according to described metadata.
Further, described metadata sending module, comprising:
The first metadata sending module, for to treating synchronous terminal Transmit message synchronization request, carries the first metadata in described file synchronization request, and described the first metadata is the metadata that synchronous documents is corresponding for the treatment of being stored on synchronous terminal.
Further, described metadata sending module, comprising:
The second metadata sending module, for treating that to described synchronous terminal uploads the second metadata, described the second metadata is the metadata corresponding to the described file for the treatment of the high access frequency that synchronous documents is relevant.
Further, described metadata determination module, according to described address information, file attribute information and the document content information for the treatment of that synchronous documents is corresponding, determines described metadata.
According to the fourth aspect of disclosure embodiment, provide one to treat synchronous terminal, comprising:
Metadata receiver module, the metadata sending for receiving synchronous terminal, described metadata is the data for the treatment of that synchronous documents is corresponding;
Matching files search module, for according to described metadata, from server search to described in treat the matching files that synchronous documents content is relevant;
Download module, in the time searching described matching files, downloads described matching files from described server.
Further, described metadata receiver module, comprising:
The first metadata receiver module, the file synchronization request sending for receiving synchronous terminal, carries the first metadata in described file synchronization request, and described the first metadata is the metadata that synchronous documents is corresponding for the treatment of being stored on synchronous terminal.
Further, described metadata receiver module, comprising:
The second metadata receiver module, the second metadata of uploading for receiving synchronous terminal, described the second metadata is the metadata corresponding to the described file for the treatment of the high access frequency that synchronous documents is relevant.
Further, described metadata comprises: the data of determining according to described address information, file attribute information and the document content information for the treatment of that synchronous documents is corresponding.
According to the 5th aspect of disclosure embodiment, a kind of data synchronous terminal equipment is provided, comprising: processor; For the memory of storage of processor executable instruction; Wherein, described processor is configured to:
Determine and treat the metadata that synchronous documents is corresponding;
To treating that synchronous terminal sends described metadata, so as described in treat that synchronous terminal obtains and the described matching files for the treatment of that synchronous documents content is relevant from server according to described metadata.
According to the 6th aspect of disclosure embodiment, provide one to treat synchronous terminal equipment, comprising: processor; For the memory of storage of processor executable instruction; Wherein, described processor is configured to:
Receive the metadata that synchronous terminal sends, described metadata is the data for the treatment of that synchronous documents is corresponding;
According to described metadata, from server search to described in treat the matching files that synchronous documents content is relevant;
In the time searching described matching files, download described matching files from described server.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: in the disclosure in the time that synchronous terminal need to carry out file synchronization with synchronous terminal, treat synchronous documents by synchronous terminal basis, determine the metadata for the treatment of that synchronous documents is corresponding, and to treating that synchronous terminal sends this metadata.And then, by treating that synchronous terminal obtains and the matching files for the treatment of that synchronous documents content is relevant from server according to this metadata.By the disclosure, synchronous terminal do not need to treat synchronous terminal by treating that synchronous documents is sent to, and treating only needs storage to treat the metadata that synchronous documents is corresponding on synchronous terminal.Thereby, greatly saved the memory space for the treatment of synchronous terminal.
Should be understood that, it is only exemplary and explanatory that above general description and details are hereinafter described, and can not limit the disclosure.
Brief description of the drawings
Accompanying drawing is herein merged in specification and forms the part of this specification, shows embodiment according to the invention, and is used from and explains principle of the present invention with specification one.
Fig. 1 is the exemplary process diagram of a kind of method of data synchronization of disclosure embodiment;
Fig. 2 is the exemplary process diagram of the another kind of method of data synchronization of disclosure embodiment;
Fig. 3 is the exemplary process diagram of another method of data synchronization of disclosure embodiment;
Fig. 4 is the exemplary process diagram of another method of data synchronization of disclosure embodiment;
Fig. 5 is the structural representation of a kind of data synchronous terminal in disclosure embodiment;
Fig. 6 is a kind of structural representation for the treatment of synchronous terminal in disclosure embodiment;
Fig. 7 is the block diagram of the terminal equipment embodiment that provides of disclosure embodiment;
Fig. 8 is the structural representation of server in disclosure embodiment.
Embodiment
Here will at length describe exemplary embodiment, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless separately there is expression, the same numbers in different accompanying drawings represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the present invention.On the contrary, they are only and the example of apparatus and method as consistent in some aspects that described in detail in appended claims, of the present invention.
Fig. 1 is according to the flow chart of a kind of method of data synchronization shown in an exemplary embodiment.As shown in Figure 1, method of data synchronization, for terminal, comprises the following steps:
Step S101, determine and treat the metadata that synchronous documents is corresponding.
In this embodiment, when in the time that synchronous terminal need to carry out file synchronization with synchronous terminal, first, obtain and treat synchronous documents by synchronous terminal, determine and treat the metadata that synchronous documents is corresponding.
In this step, treat that synchronous documents can be the forms such as video file, audio file (for example: song), picture.
Metadata (Metadata), claim again intermediary's data or relay data, for the data (data about data) of data of description, be mainly the information of data of description attribute (property), be used for supporting as functions such as instruction memory location, historical data, resource lookup, file records.Metadata is a kind of electronic type catalogue at last, in order to reach the object of scheduling, must describe and collect the interior perhaps characteristic of data, and then reaches the object of assitance data retrieval.
In disclosure embodiment, determine and treat the metadata that synchronous documents is corresponding by synchronous terminal.Utilize metadata to identify file.According to this metadata, can match the synchronous documents for the treatment of that possesses this metadata.
Step S102, to treating that synchronous terminal sends described metadata so that described in treat that synchronous terminal obtains and the described matching files for the treatment of that synchronous documents content is relevant from server according to described metadata.
In this step, treat to treating that synchronous terminal sends the metadata that synchronous documents is corresponding by synchronous terminal.Different with existing correlation technique, in this embodiment, synchronous terminal does not need directly will treat that synchronous documents is sent to treats synchronous terminal, but directly treats to treating that synchronous terminal sends the metadata that synchronous documents is corresponding.Thereby in the time carrying out file synchronization, according to the metadata that synchronous documents is corresponding for the treatment of receiving, access services device, obtains and the matching files for the treatment of that synchronous documents content is relevant from server until synchronous terminal.
In the disclosure in the time that synchronous terminal need to carry out file synchronization with synchronous terminal, according to treating synchronous documents, determine the metadata for the treatment of that synchronous documents is corresponding by synchronous terminal, and to treating that synchronous terminal sends this metadata.And then, by treating that synchronous terminal obtains and the matching files for the treatment of that synchronous documents content is relevant from server according to this metadata.By the disclosure, synchronous terminal do not need to treat synchronous terminal by treating that synchronous documents is sent to, and treating only needs storage to treat the metadata that synchronous documents is corresponding on synchronous terminal.Thereby, greatly saved the memory space for the treatment of synchronous terminal.
In an embodiment of the present disclosure, as shown in Figure 2, described method of data synchronization can comprise the following steps:
Step S201, determine and treat the metadata that synchronous documents is corresponding;
Step S202, to treating synchronous terminal Transmit message synchronization request, in described file synchronization request, carry the first metadata, described the first metadata is the metadata that synchronous documents is corresponding for the treatment of being stored on synchronous terminal, so as described in treat that synchronous terminal obtains and the described matching files for the treatment of that synchronous documents content is relevant from server according to described metadata.
In this embodiment, treat that synchronous documents is stored on synchronous terminal, by synchronous terminal to treat synchronous terminal initiate synchronization request, in this synchronization request, carry the metadata for the treatment of that synchronous documents is corresponding, in order to distinguish mutually with the file metadata occurring below, this part metadata is called to " the first metadata " herein.By the first metadata, file is identified, thereby, until synchronous terminal in the time carrying out file synchronization, can be according to the first metadata receiving, access services device, obtains and the matching files for the treatment of that synchronous documents content is relevant from server.
In an embodiment of the present disclosure, as shown in Figure 3, described method of data synchronization can comprise the following steps:
Step S301, determine and treat the metadata that synchronous documents is corresponding;
Step S302, treat that to described synchronous terminal uploads the second metadata, described the second metadata is the metadata corresponding to the described file for the treatment of the high access frequency that synchronous documents is relevant, so as described in treat that synchronous terminal obtains and the described matching files for the treatment of that synchronous documents content is relevant from server according to described metadata.
In this embodiment, by synchronous terminal, to treating synchronous terminal upload file metadata, this part metadata is the metadata corresponding to the described file for the treatment of the high access frequency that synchronous documents is relevant, is called " the second metadata ".For example: synchronous terminal, according to user's behavioural habits, obtains the second metadata corresponding to file that user's access frequency is high.After obtaining the second metadata, by synchronous terminal initiatively to treating synchronous terminal active upload the second metadata, thereby, treat that synchronous terminal is according to the second metadata, obtain the second matching files meeting with the second metadata from server.
It should be noted that, in practical application, can also after execution step S202, continue execution step S302, by synchronous terminal to treating that synchronous terminal sends the first metadata and the second metadata, thereby make to treat that synchronous terminal not only can synchronously treat synchronous documents, the file of high access frequency that can also be synchronously relevant to treating synchronous documents.
To a application scenarios that should embodiment for example: when Web TV and mobile phone carry out some song while synchronizeing, mobile phone terminal can also be accustomed to according to user's the song of listening, the key message of the song that extraction user often listens, as: user likes the information such as style, the singer who likes of the music of listening.Carry out song synchronous in, the music style of user habit, the such metadata information of singer liked are uploaded to Web TV by mobile phone section, offers user so that Web TV is searched corresponding song from the webserver.Visible, this implementation can, according to user's custom, to the interested file content of user's active push user, improve user's Experience Degree greatly.
In the disclosure, address information, file attribute information and document content information that file is corresponding, all can be used as the metadata that this file is corresponding.In this embodiment, determine and treat that the mode of the metadata that synchronous documents is corresponding can be:
Described in checking, treat address information, file attribute information and document content information that synchronous documents is corresponding;
Described in being defined as, described address information, file attribute information and the document content information for the treatment of that synchronous documents is corresponding treat the metadata that synchronous documents is corresponding.
To treat that synchronous documents is as the scene of audio file music is as example, user can obtain music file by following several modes:
(1) user listens to music by the mode in access music radio station, for example: in section, 120 songs have been listened in accumulation sometime.In this case, every song has corresponding meta data, as: the information such as singer, affiliated special edition, issuing date;
(2) user is sung and is singly listened to music by network, every song also has corresponding meta data, as URL(Uniform Resource Locator, uniform resource locator), the information such as singer, data format, size, affiliated special edition;
(3) user by local file, obtains music file, and correspondingly, meta data corresponding to every song may comprise: the information such as file address (Files: //), title, singer, music format.
Above-described embodiment has been described the synchronous process of data from synchronous terminal side.Embodiment continues data of description synchronizing process from treating synchronous terminal side below.As shown in Figure 4, be the execution flow process of this method of data synchronization, specifically comprise the following steps:
The metadata that step S401, reception synchronous terminal send, described metadata is the data for the treatment of that synchronous documents is corresponding.
In this step, treat that synchronous terminal receives the metadata that synchronous documents is corresponding for the treatment of of synchronous terminal transmission, prepares to start to carry out file synchronization with synchronizer.Wherein, synchronous terminal does not need directly will treat that synchronous documents is sent to treats synchronous terminal, is only in synchronization request, to carry the metadata for the treatment of that synchronous documents is corresponding.
In practical application scene, described metadata can comprise: the data of determining according to described address information, file attribute information and the document content information for the treatment of that synchronous documents is corresponding.
Visible, in the disclosure, what treat that synchronous terminal receives is only the metadata for the treatment of that synchronous documents is corresponding.
Step S402, according to described metadata, from server search to described in treat the matching files that synchronous documents content is relevant.
In this step, treat synchronous terminal access far-end network server, according to the metadata that synchronous documents is corresponding for the treatment of receiving, the matching files that search and this metadata meet on server, that is: to the matching files for the treatment of that synchronous documents content is relevant.
Step S403, in the time searching described matching files, download described matching files from described server.
In this step, after treating that synchronous terminal searches the matching files that the metadata corresponding with treating synchronous documents meet in server, can download this part file to local from server, realize the file synchronization with synchronous terminal.
In this step, treat that synchronous terminal can, in downloading matching files, can push the file part that has completed download to user.Under this implementation, can improve the speed of transfer of data.
In the disclosure in the time that synchronous terminal need to carry out file synchronization with synchronous terminal, according to treating synchronous documents, determine the metadata for the treatment of that synchronous documents is corresponding by synchronous terminal, and to treating that synchronous terminal sends this metadata.And then, by treat synchronous terminal according to this metadata from server search and download and the matching files for the treatment of that synchronous documents content is relevant.By the disclosure, synchronous terminal do not need to treat synchronous terminal by treating that synchronous documents is sent to, and treating only needs storage to treat the metadata that synchronous documents is corresponding on synchronous terminal.Thereby, greatly saved the memory space for the treatment of synchronous terminal.
In a preferred embodiment of the present disclosure, treat that the mode of the metadata of synchronous terminal reception synchronous terminal transmission can be:
Receive the file synchronization request that synchronous terminal sends, in described file synchronization request, carry the first metadata, described the first metadata is the metadata that synchronous documents is corresponding for the treatment of being stored on synchronous terminal.
Under this implementation, treat that synchronous documents is stored on synchronous terminal, to treating synchronous terminal initiation synchronization request, in this synchronization request, carry the metadata for the treatment of that synchronous documents is corresponding, that is: the first metadata by synchronous terminal.Until synchronous terminal in the time carrying out file synchronization, can be according to the first metadata receiving, access services device, obtains and the matching files for the treatment of that synchronous documents content is relevant from server.
In a preferred embodiment of the present disclosure, treat that the mode of the metadata of synchronous terminal reception synchronous terminal transmission can also be:
Receive the second metadata of uploading of synchronous terminal, described the second metadata is the metadata corresponding to the described file for the treatment of the high access frequency that synchronous documents is relevant.
Under this implementation, by synchronous terminal, to treating synchronous terminal upload file metadata, this part metadata is the metadata corresponding to the described file for the treatment of the high access frequency that synchronous documents is relevant, that is: the second metadata.For example: synchronous terminal, according to user's behavioural habits, obtains the second metadata corresponding to file that user's access frequency is high.After receiving the second metadata of synchronous terminal active upload, treat that synchronous terminal can, according to the second metadata, obtain the matching files meeting with the second metadata from server.
Similar with previous embodiment, treat that synchronous terminal can be after the first metadata that reception synchronous terminal is uploaded, continue to receive the second metadata that synchronous terminal is uploaded, thereby, treat that synchronous terminal not only can synchronously treat synchronous documents, the file of high access frequency that can also be synchronously relevant to treating synchronous documents.For example: when Web TV and mobile phone carry out some song while synchronizeing, mobile phone terminal is listened song custom according to user's, extract the key message of the song that user often listens, as: user likes the information such as style, the singer who likes of the music of listening.Carry out song synchronous in, the music style of user habit, the such information of singer liked are uploaded to Web TV by mobile phone terminal, offers user so that Web TV is searched corresponding song from the webserver.Visible, this implementation can improve user's Experience Degree greatly.
Corresponding said method embodiment, the disclosure also provides a kind of data synchronous terminal.Fig. 5 is a specific embodiment of this terminal, and this terminal specifically can comprise:
Metadata determination module 501, treats for determining the metadata that synchronous documents is corresponding;
Metadata sending module 502, for to treating that synchronous terminal sends described metadata so that described in treat that synchronous terminal obtains and the described matching files for the treatment of that synchronous documents content is relevant from server according to described metadata.
In the disclosure in the time that synchronous terminal need to carry out file synchronization with synchronous terminal, according to treating synchronous documents, determine the metadata for the treatment of that synchronous documents is corresponding by synchronous terminal, and to treating that synchronous terminal sends this metadata.And then, by treating that synchronous terminal obtains and the matching files for the treatment of that synchronous documents content is relevant from server according to this metadata.By the disclosure, synchronous terminal do not need to treat synchronous terminal by treating that synchronous documents is sent to, and treating only needs storage to treat the metadata that synchronous documents is corresponding on synchronous terminal.Thereby, greatly saved the memory space for the treatment of synchronous terminal.
In a data synchronous terminal embodiment who provides in the disclosure, described metadata sending module, can comprise:
The first metadata sending module, for to treating synchronous terminal Transmit message synchronization request, carries the first metadata in described file synchronization request, and described the first metadata is the metadata that synchronous documents is corresponding for the treatment of being stored on synchronous terminal.
In this embodiment, treat that synchronous documents is stored on synchronous terminal, to treating synchronous terminal initiation synchronization request, in this synchronization request, carry the first metadata for the treatment of that synchronous documents is corresponding by the first metadata sending module.By the first metadata, file is identified, thereby, until synchronous terminal in the time carrying out file synchronization, can be according to the first metadata receiving, access services device, obtains and the matching files for the treatment of that synchronous documents content is relevant from server.
In a data synchronous terminal embodiment who provides in the disclosure, described metadata sending module, can comprise:
The second metadata sending module, for treating that to described synchronous terminal uploads the second metadata, described the second metadata is the metadata corresponding to the described file for the treatment of the high access frequency that synchronous documents is relevant.
In this embodiment, by the second metadata sending module, to treating synchronous terminal upload file metadata, this part metadata is second metadata corresponding to the described file for the treatment of the high access frequency that synchronous documents is relevant.For example: synchronous terminal, according to user's behavioural habits, obtains the second metadata corresponding to file that user's access frequency is high.After obtaining the second metadata, by synchronous terminal initiatively to treating synchronous terminal active upload the second metadata, thereby, treat that synchronous terminal is according to the second metadata, obtain the second matching files meeting with the second metadata from server.
It should be noted that described metadata determination module can, according to described address information, file attribute information and the document content information for the treatment of that synchronous documents is corresponding, be determined described metadata.
Correspondingly, the disclosure also provides one to treat synchronous terminal.Fig. 6 is this specific embodiment treating synchronous terminal, and this terminal specifically can comprise:
Metadata receiver module 601, the metadata sending for receiving synchronous terminal, described metadata is the data for the treatment of that synchronous documents is corresponding;
Matching files search module 602, for according to described metadata, from server search to described in treat the matching files that synchronous documents content is relevant;
Download module 603, in the time searching described matching files, downloads described matching files from described server.
In the disclosure in the time that synchronous terminal need to carry out file synchronization with synchronous terminal, according to treating synchronous documents, determine the metadata for the treatment of that synchronous documents is corresponding by synchronous terminal, and to treating that synchronous terminal sends this metadata.And then, by treat synchronous terminal according to this metadata from server search and download and the matching files for the treatment of that synchronous documents content is relevant.By the disclosure, synchronous terminal do not need to treat synchronous terminal by treating that synchronous documents is sent to, and treating only needs storage to treat the metadata that synchronous documents is corresponding on synchronous terminal.Thereby, greatly saved the memory space for the treatment of synchronous terminal.
In an embodiment who provides in the disclosure, described metadata receiver module, can comprise:
The first metadata receiver module, the file synchronization request sending for receiving synchronous terminal, carries the first metadata in described file synchronization request, and described the first metadata is the metadata that synchronous documents is corresponding for the treatment of being stored on synchronous terminal.
Under this implementation, treat that synchronous documents is stored on synchronous terminal, to treating synchronous terminal initiation synchronization request, in this synchronization request, carry the metadata for the treatment of that synchronous documents is corresponding, that is: the first metadata by synchronous terminal.Until synchronous terminal in the time carrying out file synchronization, can be according to the first metadata receiving, access services device, obtains and the matching files for the treatment of that synchronous documents content is relevant from server.
In another embodiment providing in the disclosure, described metadata receiver module, can comprise:
The second metadata receiver module, the second metadata of uploading for receiving synchronous terminal, described the second metadata is the metadata corresponding to the described file for the treatment of the high access frequency that synchronous documents is relevant.
Under this implementation, by synchronous terminal, to treating synchronous terminal upload file metadata, this part metadata is the metadata corresponding to the described file for the treatment of the high access frequency that synchronous documents is relevant, that is: the second metadata.For example: synchronous terminal, according to user's behavioural habits, obtains the second metadata corresponding to file that user's access frequency is high.After receiving the second metadata of synchronous terminal active upload, treat that synchronous terminal can, according to the second metadata, obtain the matching files meeting with the second metadata from server.
It should be noted that, described metadata can comprise: the data of determining according to described address information, file attribute information and the document content information for the treatment of that synchronous documents is corresponding
About the device in above-described embodiment, wherein the concrete mode of modules executable operations have been described in detail in the embodiment about the method, will not elaborate explanation herein.
Fig. 7 is the block diagram of the terminal equipment embodiment that provides of the disclosure.Wherein, device 800 can be mobile phone, computer, digital broadcast terminal, information receiving and transmitting equipment, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 7, device 800 can comprise following one or more assembly: processing components 802, memory 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of I/O (I/O), sensor cluster 814, and communications component 816.
The integrated operation of processing components 802 common control device 800, such as with demonstration, call, data communication, the operation that camera operation and record operation are associated.Processing components 802 can comprise that one or more processors 820 carry out instruction, to complete all or part of step of above-mentioned method.In addition, processing components 802 can comprise one or more modules, is convenient to mutual between processing components 802 and other assemblies.For example, processing components 802 can comprise multi-media module, to facilitate mutual between multimedia groupware 808 and processing components 802.
Memory 804 is configured to store various types of data to be supported in the operation of equipment 800.The example of these data comprises for any application program of operation on device 800 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 804 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read-only memory (prom), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
Power supply module 806 provides electric power for installing 800 various assemblies.Power supply module 806 can comprise power-supply management system, one or more power supplys, and other and the assembly that generates, manages and distribute electric power to be associated for device 800.
Multimedia groupware 808 is included in the screen that an output interface is provided between described device 800 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises that one or more touch sensors are with the gesture on sensing touch, slip and touch panel.Described touch sensor is the border of sensing touch or sliding action not only, but also detects duration and the pressure relevant to described touch or slide.In certain embodiments, multimedia groupware 808 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 800 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to output and/or input audio signal.For example, audio-frequency assembly 810 comprises a microphone (MIC), and when device 800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal receiving can be further stored in memory 804 or be sent via communications component 816.In certain embodiments, audio-frequency assembly 810 also comprises a loud speaker, for output audio signal.
I/O interface 812 is for providing interface between processing components 802 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 814 comprises one or more transducers, is used to device 800 that the state estimation of various aspects is provided.For example, sensor cluster 814 can detect the opening/closing state of equipment 800, the relative positioning of assembly, for example described assembly is display and the keypad of device 800, the position of all right checkout gear 800 of sensor cluster 814 or 800 1 assemblies of device changes, user is with device 800 existence that contact or do not have the variations in temperature of device 800 orientation or acceleration/deceleration and device 800.Sensor cluster 814 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 814 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 814 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 816 is configured to be convenient to the communication of wired or wireless mode between device 800 and other equipment.Device 800 wireless networks that can access based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 816 receives broadcast singal or the broadcast related information from external broadcasting management system via broadcast channel.In one exemplary embodiment, described communications component 816 also comprises near-field communication (NFC) module, to promote junction service.For example, can be based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 800 can be realized by one or more application specific integrated circuits (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components, for carrying out said method.
In the exemplary embodiment, also provide a kind of non-provisional computer-readable recording medium that comprises instruction, for example, comprised the memory 804 of instruction, above-mentioned instruction can have been carried out said method by the processor 820 of device 800.For example, described non-provisional computer-readable recording medium can be ROM, random-access memory (ram), CD-ROM, tape, floppy disk and optical data storage equipment etc.
A kind of non-provisional computer-readable recording medium, in the time that the instruction in described storage medium is carried out by the processor of mobile terminal, makes mobile terminal can carry out a kind of method of data synchronization, and described method comprises:
Determine and treat the metadata that synchronous documents is corresponding;
To treating that synchronous terminal sends described metadata, so as described in treat that synchronous terminal obtains and the described matching files for the treatment of that synchronous documents content is relevant from server according to described metadata.
Another kind of non-provisional computer-readable recording medium, in the time that the instruction in described storage medium is carried out by the processor of mobile terminal, makes mobile terminal can carry out a kind of method of data synchronization, and described method comprises:
Receive the metadata that synchronous terminal sends, described metadata is the data for the treatment of that synchronous documents is corresponding;
According to described metadata, from server search to described in treat the matching files that synchronous documents content is relevant;
In the time searching described matching files, download described matching files from described server.
Fig. 8 is the structural representation of server in disclosure embodiment.This server 1900 can because of configuration or performance is different produces larger difference, can comprise one or more central processing units (central processing units, CPU) 1922(for example, one or more processors) and memory 1932, for example one or more mass memory units of storage medium 1930(of one or more storage application programs 1942 or data 1944).Wherein, memory 1932 and storage medium 1930 can be of short duration storage or storage lastingly.The program that is stored in storage medium 1930 can comprise one or more modules (diagram does not mark), and each module can comprise a series of command operatings in server.Further, central processing unit 1922 can be set to communicate by letter with storage medium 1930, carries out a series of command operatings in storage medium 1930 on server 1900.
Server 1900 can also comprise one or more power supplys 1926, one or more wired or wireless network interfaces 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or, one or more operating systems 1941, for example Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc.
Those skilled in the art, considering specification and putting into practice after invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised undocumented common practise or the conventional techniques means in the art of the disclosure.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendments and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (18)

1. a method of data synchronization, is characterized in that, comprising:
Determine and treat the metadata that synchronous documents is corresponding;
To treating that synchronous terminal sends described metadata, so as described in treat that synchronous terminal obtains and the described matching files for the treatment of that synchronous documents content is relevant from server according to described metadata.
2. method according to claim 1, is characterized in that, described to treating that synchronous terminal sends described metadata, comprising:
To treating synchronous terminal Transmit message synchronization request, in described file synchronization request, carry the first metadata, described the first metadata is the metadata that synchronous documents is corresponding for the treatment of being stored on synchronous terminal.
3. method according to claim 1, is characterized in that, described to treating that synchronous terminal sends described metadata, comprising:
Treat that to described synchronous terminal uploads the second metadata, described the second metadata is the metadata corresponding to the described file for the treatment of the high access frequency that synchronous documents is relevant.
4. according to the method described in any one in claim 1-3, it is characterized in that, described determine treat the metadata that synchronous documents is corresponding, comprising:
According to described address information, file attribute information and the document content information for the treatment of that synchronous documents is corresponding, determine described metadata.
5. a method of data synchronization, is characterized in that, comprising:
Receive the metadata that synchronous terminal sends, described metadata is the data for the treatment of that synchronous documents is corresponding;
According to described metadata, from server search to described in treat the matching files that synchronous documents content is relevant;
In the time searching described matching files, download described matching files from described server.
6. method according to claim 5, is characterized in that, the metadata that described reception synchronous terminal sends, comprising:
Receive the file synchronization request that synchronous terminal sends, in described file synchronization request, carry the first metadata, described the first metadata is the metadata that synchronous documents is corresponding for the treatment of being stored on synchronous terminal.
7. method according to claim 5, is characterized in that, the metadata that described reception synchronous terminal sends, comprising:
Receive the second metadata of uploading of synchronous terminal, described the second metadata is the metadata corresponding to the described file for the treatment of the high access frequency that synchronous documents is relevant.
8. according to the method described in any one in claim 5-7, it is characterized in that, described metadata comprises: the data of determining according to described address information, file attribute information and the document content information for the treatment of that synchronous documents is corresponding.
9. a data synchronous terminal, is characterized in that, comprising:
Metadata determination module, treats for determining the metadata that synchronous documents is corresponding;
Metadata sending module, for to treating that synchronous terminal sends described metadata so that described in treat that synchronous terminal obtains and the described matching files for the treatment of that synchronous documents content is relevant from server according to described metadata.
10. terminal according to claim 7, is characterized in that, described metadata sending module, comprising:
The first metadata sending module, for to treating synchronous terminal Transmit message synchronization request, carries the first metadata in described file synchronization request, and described the first metadata is the metadata that synchronous documents is corresponding for the treatment of being stored on synchronous terminal.
11. terminals according to claim 7, is characterized in that, described metadata sending module, comprising:
The second metadata sending module, for treating that to described synchronous terminal uploads the second metadata, described the second metadata is the metadata corresponding to the described file for the treatment of the high access frequency that synchronous documents is relevant.
12. according to the terminal described in any one in claim 9-11, it is characterized in that described metadata determination module, according to described address information, file attribute information and the document content information for the treatment of that synchronous documents is corresponding, is determined described metadata.
Treat for 13. 1 kinds to it is characterized in that synchronous terminal, comprising:
Metadata receiver module, the metadata sending for receiving synchronous terminal, described metadata is the data for the treatment of that synchronous documents is corresponding;
Matching files search module, for according to described metadata, from server search to described in treat the matching files that synchronous documents content is relevant;
Download module, in the time searching described matching files, downloads described matching files from described server.
14. terminals according to claim 13, is characterized in that, described metadata receiver module, comprising:
The first metadata receiver module, the file synchronization request sending for receiving synchronous terminal, carries the first metadata in described file synchronization request, and described the first metadata is the metadata that synchronous documents is corresponding for the treatment of being stored on synchronous terminal.
15. terminals according to claim 13, is characterized in that, described metadata receiver module, comprising:
The second metadata receiver module, the second metadata of uploading for receiving synchronous terminal, described the second metadata is the metadata corresponding to the described file for the treatment of the high access frequency that synchronous documents is relevant.
16. according to the terminal described in any one in claim 13-15, it is characterized in that, described metadata comprises: the data of determining according to described address information, file attribute information and the document content information for the treatment of that synchronous documents is corresponding.
17. 1 kinds of data synchronous terminal equipments, is characterized in that, comprising: processor; For the memory of storage of processor executable instruction; Wherein, described processor is configured to:
Determine and treat the metadata that synchronous documents is corresponding;
To treating that synchronous terminal sends described metadata, so as described in treat that synchronous terminal obtains and the described matching files for the treatment of that synchronous documents content is relevant from server according to described metadata.
Treat for 18. 1 kinds to it is characterized in that synchronous terminal equipment, comprising: processor; For the memory of storage of processor executable instruction; Wherein, described processor is configured to:
Receive the metadata that synchronous terminal sends, described metadata is the data for the treatment of that synchronous documents is corresponding;
According to described metadata, from server search to described in treat the matching files that synchronous documents content is relevant;
In the time searching described matching files, download described matching files from described server.
CN201410116503.5A 2014-03-26 2014-03-26 Data synchronization method and device Pending CN103944709A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410116503.5A CN103944709A (en) 2014-03-26 2014-03-26 Data synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410116503.5A CN103944709A (en) 2014-03-26 2014-03-26 Data synchronization method and device

Publications (1)

Publication Number Publication Date
CN103944709A true CN103944709A (en) 2014-07-23

Family

ID=51192209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410116503.5A Pending CN103944709A (en) 2014-03-26 2014-03-26 Data synchronization method and device

Country Status (1)

Country Link
CN (1) CN103944709A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110297598A (en) * 2018-03-23 2019-10-01 中移(苏州)软件技术有限公司 A kind of method of data synchronization and storage system
CN110493298A (en) * 2018-05-15 2019-11-22 优酷网络技术(北京)有限公司 Information synchronization method and device
CN112486923A (en) * 2020-12-11 2021-03-12 北京梧桐车联科技有限责任公司 File updating method, device and system
CN113032491A (en) * 2021-04-07 2021-06-25 工银科技有限公司 Method, device, electronic equipment and medium for realizing static data synchronization
WO2022135244A1 (en) * 2020-12-23 2022-06-30 华为技术有限公司 Data synchronization method and related device
WO2022170891A1 (en) * 2021-02-10 2022-08-18 华为技术有限公司 File continuation method and apparatus, and terminal device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1542637A (en) * 2003-02-28 2004-11-03 微软公司 Method and system for synchronizing data shared among peer computing devices
CN102334366A (en) * 2011-08-12 2012-01-25 华为终端有限公司 Data synchronism method, server, mobile terminal and data synchronism system
CN103179201A (en) * 2013-03-08 2013-06-26 东莞宇龙通信科技有限公司 Method and system for synchronizing files

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1542637A (en) * 2003-02-28 2004-11-03 微软公司 Method and system for synchronizing data shared among peer computing devices
CN102334366A (en) * 2011-08-12 2012-01-25 华为终端有限公司 Data synchronism method, server, mobile terminal and data synchronism system
CN103179201A (en) * 2013-03-08 2013-06-26 东莞宇龙通信科技有限公司 Method and system for synchronizing files

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110297598A (en) * 2018-03-23 2019-10-01 中移(苏州)软件技术有限公司 A kind of method of data synchronization and storage system
CN110297598B (en) * 2018-03-23 2022-12-13 中移(苏州)软件技术有限公司 Data synchronization method and storage system
CN110493298A (en) * 2018-05-15 2019-11-22 优酷网络技术(北京)有限公司 Information synchronization method and device
CN112486923A (en) * 2020-12-11 2021-03-12 北京梧桐车联科技有限责任公司 File updating method, device and system
WO2022135244A1 (en) * 2020-12-23 2022-06-30 华为技术有限公司 Data synchronization method and related device
WO2022170891A1 (en) * 2021-02-10 2022-08-18 华为技术有限公司 File continuation method and apparatus, and terminal device and storage medium
CN113032491A (en) * 2021-04-07 2021-06-25 工银科技有限公司 Method, device, electronic equipment and medium for realizing static data synchronization
CN113032491B (en) * 2021-04-07 2023-01-06 工银科技有限公司 Method, device, electronic equipment and medium for realizing static data synchronization

Similar Documents

Publication Publication Date Title
CN104159275B (en) Method for connecting network and device
CN104038536B (en) Plug-in unit communication means and device
CN103944709A (en) Data synchronization method and device
CN103986836A (en) Calendar reminding method and device
CN104123341A (en) Method and device for downloading file and route device
CN104158722A (en) Message push method and device used for light applications, as well as terminal and server
CN104133852A (en) Webpage access method, webpage access device, server and terminal
CN104580637A (en) Telephone number marking method, terminal and cloud server
CN103973693A (en) Router accessing method, device and system
CN105704655A (en) Media data sharing method and media data sharing device between terminals
CN104079964A (en) Method and device for transmitting video information
CN104933071A (en) Information retrieval method and corresponding device
CN104111979A (en) Search recommendation method and device
CN104158854B (en) Resource share method and device
CN104010231A (en) Data synchronizing method and device
CN104267990A (en) Method and device for changing theme in terminal
CN105095235A (en) Application program recommendation method and device
CN103973900A (en) Method and device for sending messages
CN104639609A (en) Method and device for sharing network
CN104935613A (en) Scene synchronization method, terminal, server and system
CN104702988A (en) AV (Audio/Video) playing method and device
CN103902688A (en) File operation synchronizing method and device
CN105430469A (en) Method and device for playing audio/video data, terminal and server
CN105163141A (en) Video recommending method and device
CN104158938B (en) Incoming display method, server and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140723

RJ01 Rejection of invention patent application after publication