CN104699816B - A kind of data processing method and device - Google Patents

A kind of data processing method and device Download PDF

Info

Publication number
CN104699816B
CN104699816B CN201510131742.2A CN201510131742A CN104699816B CN 104699816 B CN104699816 B CN 104699816B CN 201510131742 A CN201510131742 A CN 201510131742A CN 104699816 B CN104699816 B CN 104699816B
Authority
CN
China
Prior art keywords
time
data
period
affiliated period
storage
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.)
Active
Application number
CN201510131742.2A
Other languages
Chinese (zh)
Other versions
CN104699816A (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.)
CHENGDU HUAMAI COMMUNICATION TECHNOLOGY Co Ltd
Original Assignee
CHENGDU HUAMAI COMMUNICATION TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CHENGDU HUAMAI COMMUNICATION TECHNOLOGY Co Ltd filed Critical CHENGDU HUAMAI COMMUNICATION TECHNOLOGY Co Ltd
Priority to CN201510131742.2A priority Critical patent/CN104699816B/en
Publication of CN104699816A publication Critical patent/CN104699816A/en
Application granted granted Critical
Publication of CN104699816B publication Critical patent/CN104699816B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This application provides a kind of data processing method and device, methods described includes:Obtain identification number, generation time and the termination time of data to be stored;When 24 hourly averages are divided into n parts, the generation time affiliated period and the termination time affiliated period are determined, wherein the n is the integer more than 1;According to the generation time affiliated period and the termination time affiliated period, storage time section corresponding to the data to be stored is determined;Identification number of the generation containing the data to be stored and the storage time section correspond to the storage file name of numerical value;File corresponding to the storage file name is established in storage server;By the data storage to be stored in file corresponding to the storage file name.The cooperation of database is not needed due in the application data are carried out with storage, therefore reduces system deployment difficulty, reduces system cost.

Description

A kind of data processing method and device
Technical field
The application is related to data processing field, more particularly to a kind of data processing method and device.
Background technology
At present, the storage mode for the data for being stored and being retrieved using the time as key value is mainly by two kinds:1st, by data It is stored in the storage location index of data in database;2nd, separate storage mode, that is, storage server is stored data in In, the storage location index of data is stored in database.
Using above two storage mode data are carried out with the cooperation that storage is required to database, is caused using the time as key The data said system deployment difficulty that value is stored and retrieved is big, and system cost is high.
The content of the invention
In order to solve the above technical problems, the embodiment of the present application provides a kind of data processing method and device, reduced with reaching System deployment difficulty, reduces the purpose of system cost, and technical scheme is as follows:
A kind of data processing method, including:
Obtain identification number, generation time and the termination time of data to be stored;
When 24 hourly averages are divided into n parts, determine belonging to the generation time affiliated period and the termination time Period, wherein the n is the integer more than 1;
According to the generation time affiliated period and the termination time affiliated period, the data to be stored are determined Corresponding storage time section;
Identification number of the generation containing the data to be stored and the storage time section correspond to the storage text of numerical value Part name;
File corresponding to the storage file name is established in storage server;
By the data storage to be stored in file corresponding to the storage file name.
Preferably, it is described according to the generation time affiliated period and it is described termination the time affiliated period, determine institute The process of storage time section corresponding to data to be stored is stated, including:
Judge whether the generation time affiliated period and the termination time affiliated period are adjacent;
If so, determine storage time section corresponding to the data to be stored be respectively the generation time affiliated period and The termination time affiliated period;
If it is not, determine storage time section corresponding to the data to be stored be respectively the generation time affiliated period, Between the termination time affiliated period and the generation time affiliated period and the termination time affiliated period Each period.
Preferably, the n is equal to 24.
Preferably, in addition to:
Obtain identity number, inquiry initial time and the poll-final time of data to be checked;
When 24 hourly averages are divided into described n parts, the inquiry initial time affiliated period and the inquiry are determined The end time affiliated period;
According to the inquiry initial time affiliated period and the poll-final time affiliated period, it is determined that described treat Inquire about query time section corresponding to data;
Search in storage server and matched with the identity number of the data to be checked and the query time section Filename;
The data to be checked are inquired about in file corresponding to the filename.
Preferably, it is described according to the inquiry initial time affiliated period and the poll-final time affiliated time Section, the process of query time section corresponding to the data to be checked is determined, including:
Judge whether the inquiry initial time affiliated period and the poll-final time affiliated period are adjacent;
If so, determine that query time section corresponding to the data to be checked is respectively the inquiry initial time affiliated time Section and the poll-final time affiliated period;
If it is not, determine that query time section corresponding to the data to be checked is respectively the inquiry initial time affiliated time Section, the poll-final time affiliated period and the inquiry initial time affiliated period and the poll-final time institute Belong to each period between the period.
A kind of data processing equipment, including:
First acquisition unit, for obtaining identification number, generation time and the termination time of data to be stored;
First determining unit, for when 24 hourly averages are divided into n parts, determine the generation time affiliated period and The termination time affiliated period, wherein the n is the integer more than 1;
Second determining unit, for according to the generation time affiliated period and it is described termination the time affiliated period, Determine storage time section corresponding to the data to be stored;
Generation unit, it is corresponding for generating the identification number containing the data to be stored and the storage time section The storage file name of numerical value;
Unit is established, for establishing file corresponding to the storage file name in storage server;
Memory cell, for by the data storage to be stored in file corresponding to the storage file name.
Preferably, second determining unit includes:First judgment sub-unit, the first determination subelement and second determine son Unit, wherein:
First judgment sub-unit, for judging the generation time affiliated period and the termination time affiliated period It is whether adjacent, if so, the first determination subelement of triggering determines that storage time section corresponding to the data to be stored is respectively described Generation time affiliated period and the termination time affiliated period;If it is not, treated described in triggering the second determination subelement determination Storage time section corresponding to data storage be respectively the generation time affiliated period, termination affiliated period time and The generation time affiliated period and each period terminated between the time affiliated period.
Preferably, in addition to:
Second acquisition unit, for obtaining identity number, inquiry initial time and the poll-final of data to be checked Time;
3rd determining unit, for when 24 hourly averages are divided into described n parts, determining belonging to the inquiry initial time Period and the poll-final time affiliated period;
4th determining unit, for according to belonging to the inquiry initial time affiliated period and the poll-final time Period, determine query time section corresponding to the data to be checked;
Searching unit, for searching and the identity numbers of the data to be checked and described looking into storage server Ask the filename of period matching;
Query unit, for inquiring about the data to be checked in file corresponding to the filename.
Preferably, the 4th determining unit includes:Second judgment sub-unit, the 3rd determination subelement and the 4th determine son Unit, wherein:
Second judgment sub-unit, for judging the inquiry initial time affiliated period and the poll-final time institute Whether the category period is adjacent, if so, the 3rd determination subelement of triggering determines query time section corresponding to the data to be checked point Described initial time affiliated period and the poll-final time affiliated period Wei not be inquired about, if it is not, triggering the 4th determines Subelement determine query time section corresponding to the data to be checked be respectively inquiry initial time affiliated period, it is described Poll-final time affiliated period and the inquiry initial time affiliated period and the poll-final time affiliated time Each period between section.
Compared with prior art, the application has the beneficial effect that:
In this application, the storage text of numerical value is corresponded in the identification number and storage time section for generating data to be stored After part name, the storage file name is established in storage server corresponding to file, realize the storage file masterpiece of generation Index, be stored in storage server for the storage location of data to be stored.And after file corresponding to storage file name is established, By data storage to be stored in file corresponding to storage file name.
Therefore the storage location of data to be stored and data to be stored index is stored entirely in storage in the application In server, storing process does not need the cooperation of database, therefore reduces system deployment difficulty, reduces system cost.
Brief description of the drawings
In order to illustrate more clearly of the technical scheme in the embodiment of the present application, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present application, for For those of ordinary skill in the art, without having to pay creative labor, it can also be obtained according to these accompanying drawings His accompanying drawing.
Fig. 1 is a kind of flow chart for the data processing method that the application provides;
Fig. 2 is a kind of sub-process figure for the data processing method that the application provides;
Fig. 3 is another flow chart for the data processing method that the application provides;
Fig. 4 is a kind of sub-process figure for the data processing method that the application provides;
Fig. 5 is a kind of logical construction schematic diagram for the data processing equipment that the application provides;
Fig. 6 is a kind of logical construction schematic diagram for the second determining unit that the application provides;
Fig. 7 is another logical construction schematic diagram for the data processing equipment that the application provides;
Fig. 8 is a kind of logical construction schematic diagram for the 4th determining unit that the application provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete Site preparation describes, it is clear that described embodiment is only some embodiments of the present application, rather than whole embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of the application protection.
Embodiment one
In the present embodiment, a kind of data processing method is shown, refers to Fig. 1, it illustrates the number that the application provides According to a kind of flow chart of processing method, may comprise steps of:
Step S11:Obtain identification number, generation time and the termination time of data to be stored.
In the present embodiment, the identification number of data to be stored is allocated in advance, and each data to be stored Identification number it is unique.
The generation time of data storage is treated in now citing and the termination time illustrates, for example, data to be stored are video The Video data of device A, video equipment A is 8:00 produces Video data, 9:00 is stopped, and no longer produces Video data, Then the generation time of data to be stored is 8:00, it is 9 to terminate the time:00.
Step S12:When 24 hourly averages are divided into n parts, the generation time affiliated period and the termination are determined The time affiliated period.
Wherein described n is the integer more than 1.
When 24 hourly averages are divided into n parts, n parts different period is obtained, the time span of each period is 24/ N hours.The generation time of the data to be stored is described to be stored in some period in n parts different period In some period of the termination time of data in n parts different period.
Period where the generation time is the generation time affiliated period, it is described terminate the time where when Between section be it is described termination the time affiliated period.
Now citing pair determines that the generation time affiliated period and the termination time affiliated period illustrate, example Such as, n is equal to 24, i.e., 24 hourly averages is divided into 24 parts, obtains 24 parts of different periods, is respectively:0:00-1:00 ..., 5: 00-6:00,6:00-7:00,7:00-8:00,8:00-9:00,9:00-10:00 ..., 23:00-24:00.The generation time For 6:15, the termination time is 8:31.Due to 6:15 6:00-7:In 00 period, therefore when the generation time is affiliated Between section be 6:00-7:00.Due to 8:31 8:00-9:In 00 period, therefore the termination time affiliated period is 8:00- 9:00。
Step S13:According to the generation time affiliated period and the termination time affiliated period, it is determined that described treat Storage time section corresponding to data storage.
Step S14:Identification number of the generation containing the data to be stored and the storage time section correspond to numerical value Storage file name.
Now illustrate and correspond to numerical value to generating the identification number containing the data to be stored and the storage time section Storage file name illustrate, for example, the identification number of the data to be stored is TEST, the storage time section point It is not:6:00-7:00,7:00-8:00,8:00-9:00, then generate the storage file with the storage time section same number Name, the storage file name of generation are respectively:TEST_600_700.DAT, TEST_700_800.DAT, TEST_800_900.DAT.
Step S15:File corresponding to the storage file name is established in storage server.
After corresponding storage file name is generated, file corresponding to the storage file name is established in storage server, Realize and indexed the storage file name as the storage location of the data to be stored, is stored in storage server.
Step S16:By the data storage to be stored in file corresponding to the storage file name.
After file corresponding to the storage file name is established, by the data storage to be stored in the storage server In file corresponding to the storage file name, the storage to the data to be stored is realized, whole process does not need database Participation.
When inquiring about corresponding data, data can be found in corresponding file according to corresponding storage file name.
In this application, the storage text of numerical value is corresponded in the identification number and storage time section for generating data to be stored After part name, the storage file name is established in storage server corresponding to file, realize the storage file masterpiece of generation Index, be stored in storage server for the storage location of data to be stored.And after file corresponding to storage file name is established, By data storage to be stored in file corresponding to storage file name.
Therefore the storage location of data to be stored and data to be stored index is stored entirely in storage in the application In server, storing process does not need the cooperation of database, therefore reduces system deployment difficulty, reduces system cost.
In the present embodiment, step S13 detailed process may refer to Fig. 2, at the data provided it illustrates the application A kind of sub-process figure of reason method, may comprise steps of:
Step S131:Judge whether the generation time affiliated period and the termination time affiliated period are adjacent.
If the generation time affiliated period is connected with the termination time affiliated period, step S132 is performed, Otherwise, step S133 is performed.
Step S132:It is respectively the generation time affiliated time to determine storage time section corresponding to the data to be stored Section and the termination time affiliated period.
Step S133:It is respectively the generation time affiliated time to determine storage time section corresponding to the data to be stored Between section, the termination time affiliated period and the generation time affiliated period and the termination time affiliated period Each period.
Now illustrate and step S131 to step S132 process are illustrated, for example, 24 hourly averages are being divided into 24 parts When, 24 parts of different periods are obtained, are respectively:0:00-1:00 ..., 5:00-6:00,6:00-7:00,7:00-8:00,8: 00-9:00,9:00-10:00 ..., 23:00-24:00.If the generation time is 6:15, the termination time is 8:31, then The generation time affiliated period is 6:00-7:00, the termination time affiliated period is 8:00-9:00, judge 6:00- 7:00 and 8:00-9:Whether 00 is adjacent, and judged result is non-conterminous, it is determined that storage time section corresponding to the data to be stored Respectively 6:00-7:00,7:00-8:00,8:00-9:00.
If the generation time is 6:15, the termination time is 7:30, then the generation time affiliated period is 6: 00-7:00, the termination time affiliated period is 7:00-8:00, judge 6:00-7:00 and 7:00-8:Whether 00 is adjacent, sentences Disconnected result is adjacent, it is determined that storage time section corresponding to the data to be stored is respectively 6:00-7:00,7:00-8:00.
In the present embodiment, the n can with but be not limited to be equal to 24.When n is equal to 24,24 hourly averages are divided into 24 parts, 24 parts of different periods are obtained, the time span of each period is 60 minutes.
Certainly, the n can with but be not limited to be equal to 48.When n is equal to 48,24 hourly averages are divided into 48 parts, obtained The period different to 48 parts, the time span of each period is 30 minutes.
It should be noted that when 24 hourly averages are divided into n parts, it is necessary to sometime for original position, to originate Position can be the integral point moment, or the non-integral point moment.
Embodiment two
After being stored using the method shown in embodiment one to data, to access the data in storage server, then The method that the present embodiment can be used to be provided, refers to Fig. 3, and it illustrates the another of the data processing method of the application offer Kind flow chart, may comprise steps of:
Step S31:Obtain identity number, inquiry initial time and the poll-final time of data to be checked.
The inquiry initial time to data to be checked of now illustrating and poll-final time illustrate, for example, number to be checked According to being video data B 8:00 to 9:00 Video data, then the inquiry initial time of data to be checked is 8:00, poll-final Time is 9:00.
Step S32:When 24 hourly averages are divided into described n parts, determine it is described inquiry the initial time affiliated period and The poll-final time affiliated period.
In the present embodiment, the n is identical with the numerical value of the n in step S12 in embodiment one.
When 24 hourly averages are divided into n parts, n parts different period is obtained, the time span of each period is 24/ N hours.The inquiry initial time of the data to be checked is described to treat in some period in n parts different period Inquire about in some period of the poll-final time of data in n parts different period.
Period where the inquiry initial time be it is described inquiry the initial time affiliated period, the poll-final Period where time is the poll-final time affiliated period.
Now citing pair determines that the inquiry initial time affiliated period and the poll-final time affiliated period enter 24 hourly averages for example, n is equal to 24, i.e., is divided into 24 parts, obtains 24 parts of different periods by row explanation, are respectively:0:00- 1:00 ..., 5:00-6:00,6:00-7:00,7:00-8:00,8:00-9:00,9:00-10:00 ..., 23:00-24:00.Institute It is 5 to state inquiry initial time:15, the poll-final time is 7:30.Due to 5:15 5:00-6:In 00 period, therefore The inquiry initial time affiliated period is 5:00-6:00.Due to 7:30 7:00-8:In 00 period, therefore described look into It is 7 to ask the end time affiliated period:00-8:00.
Step S33:Initial time affiliated period and the poll-final time affiliated period are inquired about according to described, really Query time section corresponding to the fixed data to be checked.
Step S34:When being searched in storage server with the identity number of the data to be checked and the inquiry Between section match filename.
When now illustrating to being searched in storage server with the identity number of the data to be checked and the inquiry Between the process of filename that matches of section illustrate, for example, query time section corresponding to the data to be checked is 12:00-13: 00, the identification number of the data to be checked is TEST, is searched and TEST and 12 in storage server:00-13:00 The filename TEST_1200_1300.DAT matched somebody with somebody.
Step S35:The data to be checked are inquired about in file corresponding to the filename.
After the filename matched with the identity number of the data to be checked and the query time section is found, The data to be checked are inquired about in file corresponding to corresponding filename.
In the present embodiment, process data inquired about and the cooperation for not needing database, in inquiry, Ke Yizhi Connect the file in inquiry storage server, it is not necessary to inquire about database, accelerate inquiry velocity, so as to improve query performance.
In the present embodiment, step S33 detailed process may refer to Fig. 4, at the data provided it illustrates the application A kind of sub-process figure of reason method, may comprise steps of:
Step S331:Judging the inquiry initial time affiliated period and the poll-final time affiliated period is It is no adjacent.
If the inquiry initial time affiliated period and the poll-final time affiliated period are adjacent, step is performed Rapid S332, otherwise, perform step S333.
Step S332:It is respectively belonging to the inquiry initial time to determine query time section corresponding to the data to be checked Period and the poll-final time affiliated period.
Step S333:It is respectively belonging to the inquiry initial time to determine query time section corresponding to the data to be checked When period, the poll-final time affiliated period and the inquiry initial time affiliated period are with the poll-final Between each period between the affiliated period.
Now illustrate and step S331 to step S332 process are illustrated, for example, 24 hourly averages are being divided into 24 parts When, 24 parts of different periods are obtained, are respectively:0:00-1:00 ..., 5:00-6:00,6:00-7:00,7:00-8:00,8: 00-9:00,9:00-10:00 ..., 23:00-24:00.If the inquiry initial time is 5:15, the poll-final time is 7:30, then the inquiry initial time affiliated period is 5:00-6:00, the poll-final time affiliated period is 7: 00-8:00, judge 5:00-6:00 and 7:00-8:008:00-9:Whether 00 is adjacent, and judged result is non-conterminous, it is determined that described Storage query time section is respectively 5 corresponding to inquiry data to be stored:00-6:00,6:00-7:00,7:00-8:00.
If the inquiry initial time is 6:30, the poll-final time is 7:30, then it is described to inquire about initial time institute It is 6 to belong to the period:00-7:00, the poll-final time affiliated period is 7:00-8:00, judge 6:00-7:00 and 7: 00-8:Whether 00 is adjacent, and judged result is adjacent, it is determined that query time section corresponding to the data to be checked is respectively 6: 00-7:00,7:00-8:00.
Embodiment three
It is corresponding with above-described embodiment, this application provides a kind of data processing equipment, Fig. 5 is referred to, it illustrates this Apply for a kind of logical construction schematic diagram of data processing equipment provided, data processing equipment can include:First acquisition unit 51st, the first determining unit 52, the second determining unit 53, generation unit 54, establish unit 55 and memory cell 56.
First acquisition unit 51, for obtaining identification number, generation time and the termination time of data to be stored.
First determining unit 52, for when 24 hourly averages are divided into n parts, determining the generation time affiliated period The time affiliated period is terminated with described, wherein the n is the integer more than 1.
Second determining unit 53, for according to the generation time affiliated period and the termination time affiliated time Section, determines storage time section corresponding to the data to be stored.
Generation unit 54 is right for generating the identification number containing the data to be stored and the storage time section Answer the storage file name of numerical value.
Unit 55 is established, for establishing file corresponding to the storage file name in storage server.
Memory cell 56, for by the data storage to be stored in file corresponding to the storage file name.
In the present embodiment, the concrete structure of the second determining unit 53 may refer to Fig. 6, and the second determining unit 53 includes: First judgment sub-unit 531, the first determination subelement 532 and the second determination subelement 533.
First judgment sub-unit 531, for judge the generation time affiliated period and it is described termination the time it is affiliated when Between section it is whether adjacent, if so, the first determination subelement 532 of triggering determines corresponding to the data to be stored that storage time section is distinguished For the generation time affiliated period and the termination time affiliated period;If it is not, the second determination subelement 533 of triggering is true Storage time section corresponding to the fixed data to be stored is respectively the generation time affiliated period, belonging to the termination time Period and the generation time affiliated period and each period terminated between the time affiliated period.
Example IV
In the present embodiment, another data processing equipment is shown, refers to Fig. 7, in the data processing shown in Fig. 5 Also include on the basis of device:Second acquisition unit 71, the 3rd determining unit 72, the 4th determining unit 73, the and of searching unit 74 Query unit 75.
Second acquisition unit 71, for obtaining identity number, inquiry initial time and the inquiry knot of data to be checked The beam time.
3rd determining unit 72, for when 24 hourly averages are divided into described n parts, determining the inquiry initial time institute Belong to period and the poll-final time affiliated period.
4th determining unit 73, for according to the inquiry initial time affiliated period and the poll-final time institute Belong to the period, determine query time section corresponding to the data to be checked.
Searching unit 74, for being searched in storage server and the identity number of the data to be checked and described The filename of query time section matching.
Query unit 75, for inquiring about the data to be checked in file corresponding to the filename.
In the present embodiment, the concrete structure of the 4th determining unit 73 refers to Fig. 8, and the 4th determining unit 73 includes:The Two judgment sub-units 731, the 3rd determination subelement 732 and the 4th determination subelement 733.
Second judgment sub-unit 731, for judging the inquiry initial time affiliated period and during the poll-final Between the affiliated period it is whether adjacent, if so, when the 3rd determination subelement 732 of triggering determines to inquire about corresponding to the data to be checked Between section be respectively the inquiry initial time affiliated period and poll-final time affiliated period, if it is not, triggering the Four determination subelements 733 determine query time section corresponding to the data to be checked be respectively it is described inquiry initial time it is affiliated when Between section, the poll-final time affiliated period and inquiry initial time affiliated period and the poll-final time Each period between the affiliated period.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to. For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is joined See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except other identical element in the process including the key element, method, article or equipment being also present.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, this is being implemented The function of each unit can be realized in same or multiple softwares and/or hardware during application.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can Realized by the mode of software plus required general hardware platform.Based on such understanding, the technical scheme essence of the application On the part that is contributed in other words to prior art can be embodied in the form of software product, the computer software product It can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are causing a computer equipment (can be personal computer, server, either network equipment etc.) performs some of each embodiment of the application or embodiment Method described in part.
A kind of data processing method provided herein and device are described in detail above, it is used herein Specific case is set forth to the principle and embodiment of the application, and the explanation of above example is only intended to help and understands this The method and its core concept of application;Meanwhile for those of ordinary skill in the art, according to the thought of the application, specific There will be changes in embodiment and application, in summary, this specification content should not be construed as to the application's Limitation.

Claims (7)

  1. A kind of 1. data processing method, it is characterised in that including:
    Obtain identification number, generation time and the termination time of data to be stored;
    When 24 hourly averages are divided into n parts, the generation time affiliated period and the termination time affiliated time are determined Section, wherein the n is the integer more than 1;
    According to the generation time affiliated period and the termination time affiliated period, determine that the data to be stored are corresponding Storage time section, it is described according to the generation time affiliated period and it is described termination the time affiliated period, it is determined that described The process of storage time section corresponding to data to be stored, including:When judging the generation time affiliated period and the termination Between the affiliated period it is whether adjacent;If so, when storage time section corresponding to the determination data to be stored is respectively the generation Between the affiliated period and it is described termination the time affiliated period;If it is not, determine storage time section corresponding to the data to be stored Respectively described generation time affiliated period, the termination time affiliated period and the generation time affiliated period with The each period terminated between the time affiliated period;
    Identification number of the generation containing the data to be stored and the storage time section correspond to the storage file name of numerical value;
    File corresponding to the storage file name is established in storage server;
    By the data storage to be stored in file corresponding to the storage file name.
  2. 2. according to the method for claim 1, it is characterised in that the n is equal to 24.
  3. 3. according to the method for claim 1, it is characterised in that also include:
    Obtain identity number, inquiry initial time and the poll-final time of data to be checked;
    When 24 hourly averages are divided into described n parts, the inquiry initial time affiliated period and the poll-final are determined The time affiliated period;
    According to the inquiry initial time affiliated period and the poll-final time affiliated period, determine described to be checked Query time section corresponding to data;
    The text matched with the identity number of the data to be checked and the query time section is searched in storage server Part name;
    The data to be checked are inquired about in file corresponding to the filename.
  4. 4. according to the method for claim 3, it is characterised in that it is described according to it is described inquiry the initial time affiliated period and The poll-final time affiliated period, the process of query time section corresponding to the data to be checked is determined, including:
    Judge whether the inquiry initial time affiliated period and the poll-final time affiliated period are adjacent;
    If so, determine query time section corresponding to the data to be checked be respectively the inquiry initial time affiliated period and The poll-final time affiliated period;
    If it is not, determine query time section corresponding to the data to be checked be respectively the inquiry initial time affiliated period, Belonging to poll-final time affiliated period and the inquiry initial time affiliated period and the poll-final time Each period between period.
  5. A kind of 5. data processing equipment, it is characterised in that including:
    First acquisition unit, for obtaining identification number, generation time and the termination time of data to be stored;
    First determining unit, for when 24 hourly averages are divided into n parts, determining the generation time affiliated period and described The time affiliated period is terminated, wherein the n is the integer more than 1;
    Second determining unit, for according to the generation time affiliated period and it is described termination the time affiliated period, it is determined that Storage time section corresponding to the data to be stored, second determining unit include:First judgment sub-unit, first determine son Unit and the second determination subelement, wherein:First judgment sub-unit, for judging the generation time affiliated period and described Whether the termination time affiliated period is adjacent, if so, the first determination subelement of triggering determines to deposit corresponding to the data to be stored The storage period is respectively the generation time affiliated period and the termination time affiliated period;If it is not, triggering second is true Stator unit determines that storage time section corresponding to the data to be stored is respectively the generation time affiliated period, the end Only time affiliated period and the generation time affiliated period and it is described terminate the time affiliated period between it is each when Between section;
    Generation unit, numerical value is corresponded to for generating the identification number containing the data to be stored and the storage time section Storage file name;
    Unit is established, for establishing file corresponding to the storage file name in storage server;
    Memory cell, for by the data storage to be stored in file corresponding to the storage file name.
  6. 6. device according to claim 5, it is characterised in that also include:
    Second acquisition unit, for obtaining identity number, inquiry initial time and the poll-final time of data to be checked;
    3rd determining unit, for when 24 hourly averages are divided into described n parts, determining the inquiry initial time affiliated time Section and the poll-final time affiliated period;
    4th determining unit, for according to the inquiry initial time affiliated period and the poll-final time affiliated time Section, determines query time section corresponding to the data to be checked;
    Searching unit, during for being searched in storage server with the identity numbers of the data to be checked and the inquiry Between section match filename;
    Query unit, for inquiring about the data to be checked in file corresponding to the filename.
  7. 7. device according to claim 6, it is characterised in that the 4th determining unit includes:Second judgment sub-unit, 3rd determination subelement and the 4th determination subelement, wherein:
    Second judgment sub-unit, during for judging inquiry initial time affiliated period and the affiliated poll-final time Between section it is whether adjacent, if so, triggering the 3rd determination subelement determine that query time section corresponding to the data to be checked is respectively The inquiry initial time affiliated period and the poll-final time affiliated period, if it is not, triggering the 4th determines that son is single Member determines that query time section corresponding to the data to be checked is respectively the inquiry initial time affiliated period, the inquiry End time affiliated period and inquiry initial time affiliated period and the poll-final time affiliated period it Between each period.
CN201510131742.2A 2015-03-25 2015-03-25 A kind of data processing method and device Active CN104699816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510131742.2A CN104699816B (en) 2015-03-25 2015-03-25 A kind of data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510131742.2A CN104699816B (en) 2015-03-25 2015-03-25 A kind of data processing method and device

Publications (2)

Publication Number Publication Date
CN104699816A CN104699816A (en) 2015-06-10
CN104699816B true CN104699816B (en) 2017-12-12

Family

ID=53346936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510131742.2A Active CN104699816B (en) 2015-03-25 2015-03-25 A kind of data processing method and device

Country Status (1)

Country Link
CN (1) CN104699816B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105072366B (en) * 2015-08-18 2018-12-07 浙江宇视科技有限公司 A kind of generation method and device of video data table
CN106326358A (en) * 2016-08-10 2017-01-11 东方网力科技股份有限公司 Big data-based vehicle passing information inquiry method and device
CN107704526A (en) * 2017-09-15 2018-02-16 平安科技(深圳)有限公司 Storage method, device, computer equipment and the storage medium of data
CN109597566B (en) * 2017-09-30 2022-03-04 杭州海康威视系统技术有限公司 Data reading and storing method and device
CN110704507B (en) * 2019-09-27 2020-09-29 京东城市(北京)数字科技有限公司 Method and device for storing data and method and device for querying data
CN111125030B (en) * 2019-12-18 2023-09-22 北京数衍科技有限公司 Data storage method, device and server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456065A (en) * 2011-07-01 2012-05-16 中国人民解放军国防科学技术大学 Methods for storing and querying offline historical statistical data of data stream
CN103593363A (en) * 2012-08-15 2014-02-19 中国科学院声学研究所 Video content indexing structure building method and video searching method and device
CN104090987A (en) * 2014-07-28 2014-10-08 华中科技大学 Historical data storage and indexing method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9372251B2 (en) * 2009-10-05 2016-06-21 Harman International Industries, Incorporated System for spatial extraction of audio signals

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456065A (en) * 2011-07-01 2012-05-16 中国人民解放军国防科学技术大学 Methods for storing and querying offline historical statistical data of data stream
CN103593363A (en) * 2012-08-15 2014-02-19 中国科学院声学研究所 Video content indexing structure building method and video searching method and device
CN104090987A (en) * 2014-07-28 2014-10-08 华中科技大学 Historical data storage and indexing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于片花的新闻视频搜索引擎的设计和实现;张海勇;《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》;20060915(第09期);第1-50页 *

Also Published As

Publication number Publication date
CN104699816A (en) 2015-06-10

Similar Documents

Publication Publication Date Title
CN104699816B (en) A kind of data processing method and device
CN104270386B (en) Across application system user (asu) information integrating method and identity information management server
CN106959963A (en) A kind of data query method, apparatus and system
CN104182405A (en) Method and device for connection query
EP2674884A1 (en) Method, system and computer-readable recording medium for adding a new image and information on the new image to an image database
CN108664480A (en) A kind of multi-data source user information integration method and device
CN107783980A (en) Index data generates and data query method and device, storage and inquiry system
CN101771537A (en) Processing method and certificating method for distribution type certificating system and certificates of certification thereof
CN107480252A (en) A kind of data query method, client, service end and system
CN107689949B (en) Database authority management method and system
CN109740034A (en) The case-involving information query method of enterprise and device based on graphic data base
CN104008199B (en) A kind of data query method
CN105930407A (en) Cross-database associated query method and system for distributed database
CN104462429B (en) The generation method and device of query sentence of database
RU2420800C2 (en) Method of searching for electronic documents similar on semantic content, stored on data storage devices
CN104636368B (en) Data retrieval method, device and server
CN109903034B (en) Rule matching method and device, computer readable storage medium and computer equipment
CN104794130B (en) Relation query method and device between a kind of table
CN107483381A (en) The monitoring method and device of interlock account
CN108874950A (en) A kind of distributed data storage method and device based on ER relationship
CN103870511B (en) Information inquiry device and method based on shared drive
CN104463460B (en) Processing method and processing device for the waiting information that network data is launched
CN104376014B (en) Resource issue and querying method in a kind of structured P 2 P network
CN107784588A (en) Insurance user information merging method and device
CN109815646A (en) Code administration method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method and device for processing data

Effective date of registration: 20191212

Granted publication date: 20171212

Pledgee: Bank of Chengdu science and technology branch of Limited by Share Ltd.

Pledgor: CHENGDU HUAMAI COMMUNICATION TECHNOLOGY Co.,Ltd.

Registration number: Y2019510000066

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20201012

Granted publication date: 20171212

Pledgee: Bank of Chengdu science and technology branch of Limited by Share Ltd.

Pledgor: CHENGDU HUAMAI COMMUNICATION TECHNOLOGY Co.,Ltd.

Registration number: Y2019510000066

PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A data processing method and device

Effective date of registration: 20201125

Granted publication date: 20171212

Pledgee: Bank of Chengdu science and technology branch of Limited by Share Ltd.

Pledgor: CHENGDU HUAMAI COMMUNICATION TECHNOLOGY Co.,Ltd.

Registration number: Y2020510000105

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20210823

Granted publication date: 20171212

Pledgee: Bank of Chengdu science and technology branch of Limited by Share Ltd.

Pledgor: CHENGDU HUAMAI COMMUNICATION TECHNOLOGY Co.,Ltd.

Registration number: Y2020510000105

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A data processing method and device

Effective date of registration: 20210908

Granted publication date: 20171212

Pledgee: Bank of Chengdu science and technology branch of Limited by Share Ltd.

Pledgor: CHENGDU HUAMAI COMMUNICATION TECHNOLOGY Co.,Ltd.

Registration number: Y2021510000207

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20220809

Granted publication date: 20171212

Pledgee: Bank of Chengdu science and technology branch of Limited by Share Ltd.

Pledgor: CHENGDU HUAMAI COMMUNICATION TECHNOLOGY Co.,Ltd.

Registration number: Y2021510000207

PC01 Cancellation of the registration of the contract for pledge of patent right