CN106776893A - A kind of data output method and device - Google Patents

A kind of data output method and device Download PDF

Info

Publication number
CN106776893A
CN106776893A CN201611078662.6A CN201611078662A CN106776893A CN 106776893 A CN106776893 A CN 106776893A CN 201611078662 A CN201611078662 A CN 201611078662A CN 106776893 A CN106776893 A CN 106776893A
Authority
CN
China
Prior art keywords
data
query value
output process
target query
value
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
CN201611078662.6A
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.)
Inspur Communication Information System Co Ltd
Original Assignee
Inspur Communication Information System 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 Inspur Communication Information System Co Ltd filed Critical Inspur Communication Information System Co Ltd
Priority to CN201611078662.6A priority Critical patent/CN106776893A/en
Publication of CN106776893A publication Critical patent/CN106776893A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results

Abstract

The invention provides a kind of data output method and device, the data output method includes:Obtain configuration information;Judge to whether there is at least two Query Values in the configuration information, if it is, determining at least one target query value, and export the corresponding data of at least one target query value, otherwise, export the data in the configuration information.The present invention can shorten the time of data output.

Description

A kind of data output method and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of data output method and device.
Background technology
With the development of network technology, comprehensive resources system needs data to be processed also more and more, comprehensive resources system During various data are processed, various aggregation of data can be formed the larger form of data volume.
At present, when the larger form of these data volumes is derived from comprehensive resources system, according to the paging of form, enter page by page Row output, and cause the time of data output more long, it is necessary to switched over using manual type when number of pages is switched.
The content of the invention
A kind of data output method and device are the embodiment of the invention provides, the time of data output can be shortened.
In a first aspect, a kind of data output method is the embodiment of the invention provides, including:
Obtain configuration information;
Judge to whether there is at least two Query Values in the configuration information, if it is, determining that at least one target is looked into Inquiry value, and the corresponding data of at least one target query value are exported, otherwise, export the data in the configuration information.
Preferably,
The corresponding data of the output at least one target query value, including:
For target query value distributes corresponding output process each described, using target query value correspondence each described The output process, export the corresponding data of each described target query value.
Preferably:
The data output method is further included:
Output process threshold value is set;
Described is the corresponding output process of target query value distribution each described, including:
N1, calculate unallocated output process the target query value total quantity;
N2, the operating current output process quantity of acquisition;
N3, according to the output process threshold value and the current output process quantity, calculate the quantity of remaining output process;
N4, judge the total quantity whether less than the remaining output process quantity, if it is, defeated from the residue Go out in process to determine the total quantity target output process of the output process, by the total quantity of the output process mesh Mark output process distributes to each described target query value, otherwise, the remaining output process is distributed into the residue defeated Go out the quantity target query value of process, return to N1.
Preferably,
Before the acquisition configuration information, further include:
Determine the number of Query Value described in the configuration information;
When the number of the Query Value is at least two, the path of the corresponding data of each described Query Value is determined;
The corresponding data of the output at least one target query value, including:
For target query value each described, it is performed both by:
Determine the destination path of the corresponding data of the target query value, using the destination path, search the target The corresponding data of Query Value, and export the corresponding data of the target query value.
Preferably,
The data output method is further included:
Data-quantity threshold is set;
It is corresponding in the output target query value after the corresponding data of the lookup target query value Before data, further include:
Whether the quantity of the corresponding data of the target query value is judged less than the data-quantity threshold, if it is, defeated Go out the corresponding data of the target query value, otherwise, the corresponding data of the target query value are split at least two and is less than The subdata of the data-quantity threshold, and it is sequentially output described at least two subdatas for being less than the data-quantity threshold.
Second aspect, the embodiment of the invention provides a kind of data output device, including:Acquiring unit and data output list Unit;Wherein,
The acquiring unit, for obtaining configuration information;
The data outputting unit, for judging to whether there is at least two in the configuration information that the acquiring unit gets Individual Query Value, if it is, determining at least one target query value, and exports the corresponding number of at least one target query value According to, otherwise, the data in the output configuration information.
Preferably,
The data outputting unit, for being the corresponding output process of target query value distribution each described, using every The corresponding output process of one target query value, exports the corresponding data of each described target query value.
Preferably,
The data output device is further included:First setting unit;
The data outputting unit, including:First computation subunit, acquisition subelement, the second computation subunit and treatment Subelement;Wherein,
First setting unit, for setting output process threshold value;
First computation subunit, the total quantity of the target query value for calculating unallocated output process;
The acquisition subelement, for obtaining operating current output process quantity;
Second computing unit, for the output process threshold value set according to first setting unit and the acquisition The current output process quantity that subelement gets, calculates the quantity of remaining output process;
The treatment subelement, for judging total quantity that first computation subunit calculates whether less than described the The quantity of the remaining output process that two computing units are calculated, if it is, determining from the remaining output process described defeated Go out the total quantity target output process of process, the total quantity of the output process target output process is distributed to often One target query value, otherwise, the quantity that the remaining output process is distributed into the remaining output process is described Target query value, and trigger first computation subunit.
Preferably,
The data output device is further included:
Second setting unit and path determining unit;Wherein,
Second setting unit, the number for determining Query Value described in the configuration information;
The path determining unit, for when the number of the Query Value is at least two, determining to be looked into described in each Inquiry is worth the path of corresponding data;
The data outputting unit, for for target query value each described, being performed both by:Determined using the path Destination path between the target query value that unit is determined and corresponding data, searches the corresponding number of the target query value According to, and export the corresponding data of the target query value.
Preferably,
Second setting unit, is further used for setting data-quantity threshold;
The data outputting unit, is further used for judging whether the quantity of the corresponding data of the target query value is less than The data-quantity threshold that second setting unit is set, if it is, the corresponding data of the target query value are exported, otherwise, The corresponding data of the target query value are split at least two and is less than the subdata of the data-quantity threshold, and be sequentially output Described at least two subdatas for being less than the data-quantity threshold.
A kind of data output method and device are the embodiment of the invention provides, by obtaining configuration information, and configuration is judged Whether there is at least two Query Values in information, if it is, determining at least one target query at least two Query Values again Value, and the corresponding data of at least one Query Value are exported, data otherwise directly in output configuration information.Because basis gets Configuration information, directly export corresponding data, and without during output data page by page, page being switched using manual type Number, so as to shorten the time of data output.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of flow chart of data output method that one embodiment of the invention is provided;
Fig. 2 is a kind of flow chart of data output method that another embodiment of the present invention is provided;
Fig. 3 is a kind of structural representation of data output device that one embodiment of the invention is provided;
Fig. 4 is a kind of structural representation of data output device that another embodiment of the present invention is provided;
Fig. 5 is a kind of structural representation of data output device that another embodiment of the invention is provided.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments, based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained on the premise of creative work is not made, belongs to the scope of protection of the invention.
As shown in figure 1, the embodiment of the invention provides a kind of data output method, the method may comprise steps of:
Step 101, obtains configuration information;
Step 102, judges to whether there is at least two Query Values in the configuration information, if it is, performing step 103, otherwise perform step 104;
Step 103, determines at least one target query value, and export the corresponding number of at least one target query value According to;
Step 104, exports the data in the configuration information.
In above-described embodiment, by obtaining configuration information, and judge to whether there is at least two Query Values in configuration information, If it is, again at least two Query Values, determine at least one target query value, and it is corresponding to export at least one Query Value Data, data otherwise directly in output configuration information.Due to according to the configuration information for getting, directly exporting corresponding number According to, and without during output data page by page, number of pages is switched using manual type, so as to shorten data output when Between.
In order to further shorten the time of data output, in one embodiment of the invention, the specific embodiment party of step 103 Formula, can include:
For target query value distributes corresponding output process each described, using target query value correspondence each described The output process, export the corresponding data of each described target query value.
It is that each target query value distributes corresponding output process, so as to each mesh can be utilized in above-described embodiment The corresponding output process of mark Query Value, exports corresponding data, makes the corresponding data separate multi-process of multiple target query values defeated Go out, so as to effectively shorten the time of data output.
In one embodiment of the invention, the data output method may further include:Output process threshold value is set;
Described is the corresponding output process of target query value distribution each described, including:
N1, calculate unallocated output process the target query value total quantity;
N2, the operating current output process quantity of acquisition;
N3, according to the output process threshold value and the current output process quantity, calculate the quantity of remaining output process;
N4, judge the total quantity whether less than the remaining output process quantity, if it is, defeated from the residue Go out in process to determine the total quantity target output process of the output process, by the total quantity of the output process mesh Mark output process distributes to each described target query value, otherwise, the remaining output process is distributed into the residue defeated Go out the quantity target query value of process, return to N1.
In above-described embodiment, according to output process threshold value and the current output process quantity being currently running, calculate remaining Output process quantity, for example, output process threshold value is 8, the current output process quantity being currently running is 2, then remaining output Number of processes is 6.Judge whether the total quantity of the target query value of unallocated output process is less than remaining output process quantity, such as Fruit is that the output process quantity of correspondence number is then determined from remaining output process quantity, assigns them to target query value, For example, unappropriated output process is 5, less than remaining output process quantity (remaining output process quantity is 6), then from 6 5 output processes are determined in individual remaining output process, this 5 output processes are distributed into target query value.
When the total quantity of the target query value of unallocated output process is not less than remaining output process quantity, circulation is performed Following steps, until the total quantity of the target query value of unallocated output process is less than remaining output process quantity:Residue is defeated Go out course allocation and give target query value, then the target query value for recalculating unallocated output process.Due to residue export into Journey less than the target query value of unallocated output process total quantity when, will remaining output process distribute to target query value, The corresponding data separate residue output process of partial target Query Value can be made first to export, so as to further shorten data output Time.
In order to accurately and conveniently search the corresponding data of each Query Value, in one embodiment of the invention, step 101 it Before, may further include:
Determine the number of Query Value described in the configuration information;
When the number of the Query Value is at least two, the path of each Query Value corresponding data is determined;
The specific embodiment of step 103, can include:
For target query value each described, it is performed both by:
Determine the destination path of the corresponding data of the target query value, using the destination path, search the target The corresponding data of Query Value, and export the corresponding data of the target query value.
In above-described embodiment, before configuration information is obtained, the path of the corresponding data of each Query Value is predefined, from And make it is determined that after target query value, can be according to the path relation between the corresponding data of target query value, quick and precisely Find corresponding data, so as to be conducive to the output of corresponding data.
In order to further improve the efficiency of data output, in one embodiment of the invention, the data output method can enter One step includes:
Data-quantity threshold is set;
It is corresponding in the output target query value after the corresponding data of the lookup target query value Before data, further include:
Whether the quantity of the corresponding data of the target query value is judged less than the data-quantity threshold, if it is, defeated Go out the corresponding data of the target query value, otherwise, the corresponding data of the target query value are split at least two and is less than The subdata of the data-quantity threshold, and it is sequentially output described at least two subdatas for being less than the data-quantity threshold.
In above-described embodiment, when the quantity of the corresponding data of target query value is more than default data-quantity threshold, utilize Predetermined data split strategy, and the corresponding data of target query value are split, and export the data after splitting.Example Such as, during the data of one table format of output, data-quantity threshold is page 5, when one page 10 of form is exported, then by this page 10 Form split into two page 5 of form, then two less forms of data volume are sequentially output, due to the less form of data volume Committed memory space is small, accelerates data output rate, so as to the method exported again using the larger data of fractionation data volume, Improve data output efficiency.
As shown in Fig. 2 one embodiment of the invention provides a kind of data output method, the method can include following step Suddenly:
Step 201, sets output process threshold value.
For example, output process threshold value can be set according to the memory size of server, server memory is bigger, setting it is defeated Going out process threshold value can be relatively large, and the output process threshold value of such as setting is 8.
Step 202, determines the number of Query Value in configuration information, when the number of Query Value is at least two, it is determined that often Path between one Query Value and corresponding data.
For example, when output data be form types when, configuration information be it is corresponding with gauge outfit, Query Value be with it is each in table Individual project name correspondence.For example, there being 10 forms in system, gauge outfit is respectively table 1, table 2......Table 10, wherein, the He of table 1 The data difference stored in table 2 is as follows, then configuration information is the title (table 1 of each gauge outfit of correspondence......Table 10), it is right Query Value i.e. respectively name, sex and of that month spending amount is answered in the configuration information of table 1, its number is 3, then determine respectively Path between the corresponding data of each Query Value, may be such that when Query Value is received, can be according to corresponding path Directly find corresponding data.
Table 1
The number of Query Value is 1 in the configuration information of corresponding table 2, and now Query Value and configuration information are corresponded, then without The path between Query Value and corresponding data need to be additionally set up, corresponding data directly can be found by configuration information.
Table 2
Name
C
D
Step 203, obtains configuration information.
For example, the configuration information for getting user input is table 1.
Step 204, judges to whether there is at least two Query Values in the configuration information, if it is, performing step 205, otherwise perform step 206;
Step 205, determines at least one target query value, and utilize at least one target query value and corresponding number Destination path between, searches the corresponding data of at least one target query value, and perform step 207.
Step 206, exports the data in the configuration information, and terminate current process.
In step 204 to step 206, it is determined that in the configuration information for getting Query Value number, for example, when getting When configuration information is table 1, the number of Query Value is 3, then at least one target query value is determined from 3 Query Values, for example, The target query value determined is name and sex, then according to the path that pre-builds, find the corresponding data of name (A and ) and the corresponding data of sex (man and female) B.
Step 207, obtains operating current output process quantity, and according to the output process threshold value and described current Output process quantity, calculates the quantity of remaining output process.
For example, in the corresponding data procedures of the first configuration information are exported, the second configuration information corresponding data is received again Output request, in now first obtaining the output corresponding data of the first configuration information, still in operating current output process Quantity, for example, the current output process quantity being currently running is 2, then remaining output process quantity is 6.
Step 208, calculates the total quantity of the target query value of unallocated output process.
For example, the target query value determined is name and sex, the then number of the target query value of unallocated output process Measure is 2.
Step 209, judges whether the total quantity is less than the quantity of the remaining output process, if it is, performing step Rapid 210, otherwise perform step 211;
Step 210, determines the total quantity target output process of the output process from the remaining output process, will The total quantity target output process of the output process distributes to each described target query value, and performs step 212。
Step 211, the remaining output process is distributed to the quantity target query of the remaining output process Value, and perform step 207.
In step 209 to step 211, judge the total quantity of target query value of unallocated output process whether less than residue Output process quantity, if it is, the output process quantity of correspondence number is determined from remaining output process quantity, by its point Dispensing target query value, for example, unappropriated output process is 2, less than remaining output process quantity (remaining output process Quantity is 6), then to determine 2 output processes from 6 remaining output processes, and this 2 output processes are distributed into target query Value.
When the total quantity of the target query value of unallocated output process is not less than remaining output process quantity, circulation is performed Following steps, until the total quantity of the target query value of unallocated output process is less than remaining output process quantity:Residue is defeated Go out course allocation and give target query value, then the target query value for recalculating unallocated output process.
Step 212, using the corresponding output process of target query value each described, exports each described target The corresponding data of Query Value.
Using each corresponding output process of target query value, corresponding data are exported, make multiple target query values pair The data separate multi-process answered is exported, so as to the time of data output can be shortened.
In above-described embodiment, by obtaining configuration information, and judge to whether there is at least two Query Values in configuration information, If it is, again at least two Query Values, determine at least one target query value, and it is corresponding to export at least one Query Value Data, data otherwise directly in output configuration information.Due to according to the configuration information for getting, directly exporting corresponding number According to, and without during output data page by page, number of pages is switched using manual type, so as to shorten data output when Between.Meanwhile, using each corresponding output process of target query value, corresponding data are exported, make multiple target query values pair The data separate multi-process answered is exported, and also can further shorten the time of data output.
As shown in figure 3, a kind of data output device is the embodiment of the invention provides, including:Acquiring unit 301 and data are defeated Go out unit 302;Wherein,
The acquiring unit 301, for obtaining configuration information;
The data outputting unit 302, for judging to whether there is in the configuration information that the acquiring unit 301 gets At least two Query Values, if it is, determining at least one target query value, and export at least one target query value pair The data answered, otherwise, export the data in the configuration information.
In above-described embodiment, by obtaining configuration information, and judge to whether there is at least two Query Values in configuration information, If it is, again at least two Query Values, determine at least one target query value, and it is corresponding to export at least one Query Value Data, data otherwise directly in output configuration information.Due to according to the configuration information for getting, directly exporting corresponding number According to, and without during output data page by page, number of pages is switched using manual type, so as to shorten data output when Between.
In order to further shorten the time of data output, in one embodiment of the invention, the data outputting unit is used for It is corresponding described defeated using target query value each described for target query value distributes corresponding output process each described Go out process, export the corresponding data of each described target query value.
It is that each target query value distributes corresponding output process, so as to each mesh can be utilized in above-described embodiment The corresponding output process of mark Query Value, exports corresponding data, makes the corresponding data separate multi-process of multiple target query values defeated Go out, so as to effectively shorten the time of data output.
In one embodiment of the invention, as shown in figure 4, the data output device is further included:First setting unit 401;
The data outputting unit 302, including:First computation subunit 402, acquisition subelement 403, second calculate son list Unit 404 and treatment subelement 405;Wherein,
First setting unit 401, for setting output process threshold value;
First computation subunit 402, the total quantity of the target query value for calculating unallocated output process;
The acquisition subelement 403, for obtaining operating current output process quantity;
Second computing unit 404, for the output process threshold value set according to first setting unit 401 and institute State and obtain the current output process quantity that subelement 403 gets, calculate the quantity of remaining output process;
The treatment subelement 405, for judging whether the total quantity that first computation subunit 402 is calculated is less than The quantity of the remaining output process that second computing unit 404 is calculated, if it is, from the remaining output process really The total quantity target output process of the fixed output process, by the total quantity of the output process target output process Each described target query value is distributed to, otherwise, the remaining output process is distributed to the number of the remaining output process The amount target query value, and trigger first computation subunit.
In above-described embodiment, according to output process threshold value and the current output process quantity being currently running, calculate remaining Output process quantity, for example, output process threshold value is 8, the current output process quantity being currently running is 2, then remaining output Number of processes is 6.Judge whether the total quantity of the target query value of unallocated output process is less than remaining output process quantity, such as Fruit is that the output process quantity of correspondence number is then determined from remaining output process quantity, assigns them to target query value, For example, unappropriated output process is 5, less than remaining output process quantity (remaining output process quantity is 6), then from 6 5 output processes are determined in individual remaining output process, this 5 output processes are distributed into target query value.
When the total quantity of the target query value of unallocated output process is not less than remaining output process quantity, circulation is performed Following steps, until the total quantity of the target query value of unallocated output process is less than remaining output process quantity:Residue is defeated Go out course allocation and give target query value, then the target query value for recalculating unallocated output process.Due to residue export into Journey less than the target query value of unallocated output process total quantity when, will remaining output process distribute to target query value, The corresponding data separate residue output process of partial target Query Value can be made first to export, so as to further shorten data output Time.
In order to accurately and conveniently search the corresponding data of each Query Value, as shown in figure 5, in one embodiment of the invention, The data output device is further included:Second setting unit 501 and path determining unit 502;Wherein,
Second setting unit 501, the number for determining Query Value described in the configuration information;
The path determining unit 502, for when the number of the Query Value is at least two, determining described in each The path of the corresponding data of Query Value;
The data outputting unit 302, for for target query value each described, being performed both by:Using the path The destination path of the corresponding data of target query value that determining unit 501 is determined, searches the corresponding number of the target query value According to, and export the corresponding data of the target query value.
In above-described embodiment, before configuration information is obtained, between the corresponding data of predetermined each Query Value Path so that it is determined that after target query value, can according to the path relation between the corresponding data of target query value, Corresponding data are fast and accurately found, so as to be conducive to the output of corresponding data.
In order to further improve the efficiency of data output, in one embodiment of the invention, second setting unit 501, It is further used for setting data-quantity threshold;
The data outputting unit 302, be further used for judging the corresponding data of the target query value quantity whether Less than the data-quantity threshold that second setting unit 501 is set, if it is, exporting the corresponding number of the target query value According to, otherwise, the corresponding data of the target query value are split into at least two subdatas for being less than the data-quantity threshold, and It is sequentially output described at least two subdatas for being less than the data-quantity threshold.
In above-described embodiment, when the quantity of the corresponding data of target query value is more than default data-quantity threshold, utilize Predetermined data split strategy, and the corresponding data of target query value are split, and export the data after splitting.Example Such as, during the data of one table format of output, data-quantity threshold is page 5, when one page 10 of form is exported, then by this page 10 Form split into two page 5 of form, then two less forms of data volume are sequentially output, due to the less form of data volume Committed memory space is small, accelerates data output rate, so as to the method exported again using the larger data of fractionation data volume, Improve data output efficiency.
The contents such as the information exchange between each unit, implementation procedure in said apparatus, due to implementing with the inventive method Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
In sum, each embodiment of the invention at least has the advantages that:
1st, in the embodiment of the present invention, by obtaining configuration information, and judge to be looked into the presence or absence of at least two in configuration information Inquiry value, if it is, again at least two Query Values, determining at least one target query value, and export at least one Query Value Corresponding data, data otherwise directly in output configuration information.Due to according to the configuration information for getting, directly exporting correspondence Data, and without during output data page by page, number of pages is switched using manual type, so as to shorten data output Time.
2nd, it is that each target query value distributes corresponding output process, so as to using each in the embodiment of the present invention The corresponding output process of individual target query value, exports corresponding data, makes to enter the corresponding data separate of multiple target query values more Journey is exported, so as to effectively shorten the time of data output.
3rd, in the embodiment of the present invention, when unallocated output process target query value total quantity not less than residue export into During number of passes amount, remaining output process is distributed into target query value, then the target query value for recalculating unallocated output process. Due in total quantity of the remaining output process less than the target query value of unallocated output process, will remaining output process point Dispensing target query value, can be such that the corresponding data separate residue output process of partial target Query Value first exports, so that further Shorten the time of data output.
4th, before configuration information is obtained, the path between the corresponding data of each Query Value is predefined, so that Make it is determined that after target query value, can be according to the path relation between the corresponding data of target query value, fast and accurately Corresponding data are found, so as to be conducive to the output of corresponding data.
5th, when the quantity of the corresponding data of target query value is more than default data-quantity threshold, using predetermined number According to strategy is split, the corresponding data of target query value are split, and exported the data after splitting.Due to data volume is larger Data carry out fractionation output, so as to improve data output efficiency.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity Or operation makes a distinction with another entity or operation, and not necessarily require or imply these entities or exist between operating Any this actual relation or order.And, term " including ", "comprising" or its any other variant be intended to it is non- It is exclusive to include, so that process, method, article or equipment including a series of key elements not only include those key elements, But also other key elements including being not expressly set out, or also include by this process, method, article or equipment are solid Some key elements.In the absence of more restrictions, the key element limited by sentence " including ", does not arrange Except also there is other identical factor in the process including the key element, method, article or equipment.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through Programmed instruction related hardware is completed, and foregoing program can be stored in the storage medium of embodied on computer readable, the program Upon execution, the step of including above method embodiment is performed;And foregoing storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, skill of the invention is merely to illustrate Art scheme, is not intended to limit the scope of the present invention.All any modifications made within the spirit and principles in the present invention, Equivalent, improvement etc., are all contained in protection scope of the present invention.

Claims (10)

1. a kind of data output method, it is characterised in that including:
Obtain configuration information;
Judge to whether there is at least two Query Values in the configuration information, if it is, determine at least one target query value, And the corresponding data of at least one target query value are exported, otherwise, export the data in the configuration information.
2. method according to claim 1, it is characterised in that
The corresponding data of the output at least one target query value, including:
For target query value distributes corresponding output process each described, using the corresponding institute of target query value each described Output process is stated, the corresponding data of each described target query value are exported.
3. method according to claim 2, it is characterised in that further include:
Output process threshold value is set;
Described is the corresponding output process of target query value distribution each described, including:
N1, calculate unallocated output process the target query value total quantity;
N2, the operating current output process quantity of acquisition;
N3, according to the output process threshold value and the current output process quantity, calculate the quantity of remaining output process;
N4, judge the total quantity whether less than the remaining output process quantity, if it is, from the residue export into The total quantity target output process of the output process is determined in journey, the total quantity of the output process target is defeated Go out course allocation to each described target query value, otherwise, by the remaining output process distribute to the residue export into The quantity target query value of journey, returns to N1.
4. method according to claim 1, it is characterised in that
Before the acquisition configuration information, further include:
Determine the number of Query Value described in the configuration information;
When the number of the Query Value is at least two, the path of the corresponding data of each described Query Value is determined;
The corresponding data of the output at least one target query value, including:
For target query value each described, it is performed both by:
Determine the destination path of the corresponding data of the target query value, using the destination path, search the target query It is worth corresponding data, and exports the corresponding data of the target query value.
5. method according to claim 4, it is characterised in that further include:
Data-quantity threshold is set;
After the corresponding data of the lookup target query value, in the corresponding data of the output target query value Before, further include:
Whether the quantity of the corresponding data of the target query value is judged less than the data-quantity threshold, if it is, output institute The corresponding data of target query value are stated, otherwise, the corresponding data of the target query value at least two is split into less than described The subdata of data-quantity threshold, and it is sequentially output described at least two subdatas for being less than the data-quantity threshold.
6. a kind of data output device, it is characterised in that including:Acquiring unit and data outputting unit;Wherein,
The acquiring unit, for obtaining configuration information;
The data outputting unit, for judging to be looked into the presence or absence of at least two in the configuration information that the acquiring unit gets Inquiry value, if it is, determining at least one target query value, and exports the corresponding data of at least one target query value, Otherwise, the data in the configuration information are exported.
7. data output device according to claim 6, it is characterised in that
The data outputting unit, for being the corresponding output process of target query value distribution each described, using each The corresponding output process of the target query value, exports the corresponding data of each described target query value.
8. data output device according to claim 7,
Further include:First setting unit;
The data outputting unit, including:First computation subunit, acquisition subelement, the second computation subunit and treatment are single Unit;Wherein,
First setting unit, for setting output process threshold value;
First computation subunit, the total quantity of the target query value for calculating unallocated output process;
The acquisition subelement, for obtaining operating current output process quantity;
Second computing unit, it is single for the output process threshold value set according to first setting unit and acquisition The current output process quantity that unit gets, calculates the quantity of remaining output process;
The treatment subelement, by judging whether the total quantity that first computation subunit is calculated is less than based on described second Calculate the quantity of remaining output process that unit is calculated, if it is, determine from the remaining output process it is described export into The total quantity target output process of journey, each is distributed to by the total quantity of the output process target output process The target query value, otherwise, the remaining output process is distributed to the quantity target of the remaining output process Query Value, and trigger first computation subunit.
9. data output device according to claim 6, it is characterised in that
Further include:Second setting unit and path determining unit;Wherein,
Second setting unit, the number for determining Query Value described in the configuration information;
The path determining unit, for when the number of the Query Value is at least two, determining each described Query Value The path of corresponding data;
The data outputting unit, for for target query value each described, being performed both by:Determine the target query value pair The destination path of the data answered, using the destination path, searches the corresponding data of the target query value, and export the mesh The corresponding data of mark Query Value.
10. data output device according to claim 9, it is characterised in that
Second setting unit, is further used for setting data-quantity threshold;
Whether the data outputting unit, be further used for judging the quantity of the corresponding data of the target query value less than described The data-quantity threshold that second setting unit is set, if it is, the corresponding data of the target query value are exported, otherwise, by institute State the corresponding data of target query value split at least two less than the data-quantity threshold subdata, and be sequentially output described At least two subdatas for being less than the data-quantity threshold.
CN201611078662.6A 2016-11-30 2016-11-30 A kind of data output method and device Pending CN106776893A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611078662.6A CN106776893A (en) 2016-11-30 2016-11-30 A kind of data output method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611078662.6A CN106776893A (en) 2016-11-30 2016-11-30 A kind of data output method and device

Publications (1)

Publication Number Publication Date
CN106776893A true CN106776893A (en) 2017-05-31

Family

ID=58898988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611078662.6A Pending CN106776893A (en) 2016-11-30 2016-11-30 A kind of data output method and device

Country Status (1)

Country Link
CN (1) CN106776893A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108287667A (en) * 2018-01-24 2018-07-17 上海应用技术大学 A kind of method and its device accessing data

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7319825B2 (en) * 2004-09-03 2008-01-15 Ricoh Company, Ltd. Image forming apparatus including function for providing status information by electronic mail
CN101425055A (en) * 2008-10-29 2009-05-06 金蝶软件(中国)有限公司 Table outputting method, device, system and apparatus
CN101697170A (en) * 2009-10-27 2010-04-21 用友软件股份有限公司 Method and device for dynamically selecting database
CN102148848A (en) * 2010-02-10 2011-08-10 中兴通讯股份有限公司 Data management method and system
CN102201009A (en) * 2011-06-21 2011-09-28 深圳市凯立德科技股份有限公司 Form generating method and device
CN102254009A (en) * 2011-07-15 2011-11-23 福建星网锐捷通讯股份有限公司 Method for extracting data of webpage table
CN103500196A (en) * 2013-09-22 2014-01-08 成都交大光芒科技股份有限公司 EXCEL data export method and export device in multi-concurrence large data volume environment
CN104463460A (en) * 2014-12-03 2015-03-25 北京国双科技有限公司 Method and device for processing scheduling information for network data delivery
CN105426516A (en) * 2015-11-30 2016-03-23 广东电网有限责任公司电力科学研究院 Power system data query method and system
CN105468709A (en) * 2015-11-19 2016-04-06 中国建设银行股份有限公司 Data inquiry device and data inquiry method based on HBase

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7319825B2 (en) * 2004-09-03 2008-01-15 Ricoh Company, Ltd. Image forming apparatus including function for providing status information by electronic mail
CN101425055A (en) * 2008-10-29 2009-05-06 金蝶软件(中国)有限公司 Table outputting method, device, system and apparatus
CN101697170A (en) * 2009-10-27 2010-04-21 用友软件股份有限公司 Method and device for dynamically selecting database
CN102148848A (en) * 2010-02-10 2011-08-10 中兴通讯股份有限公司 Data management method and system
CN102201009A (en) * 2011-06-21 2011-09-28 深圳市凯立德科技股份有限公司 Form generating method and device
CN102254009A (en) * 2011-07-15 2011-11-23 福建星网锐捷通讯股份有限公司 Method for extracting data of webpage table
CN103500196A (en) * 2013-09-22 2014-01-08 成都交大光芒科技股份有限公司 EXCEL data export method and export device in multi-concurrence large data volume environment
CN104463460A (en) * 2014-12-03 2015-03-25 北京国双科技有限公司 Method and device for processing scheduling information for network data delivery
CN105468709A (en) * 2015-11-19 2016-04-06 中国建设银行股份有限公司 Data inquiry device and data inquiry method based on HBase
CN105426516A (en) * 2015-11-30 2016-03-23 广东电网有限责任公司电力科学研究院 Power system data query method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108287667A (en) * 2018-01-24 2018-07-17 上海应用技术大学 A kind of method and its device accessing data

Similar Documents

Publication Publication Date Title
US9798774B1 (en) Graph data search method and apparatus
EP3023885B1 (en) Method and device for storing data
CN108829610B (en) Memory management method and device in neural network forward computing process
US20160203179A1 (en) Systems and methods for rapid data analysis
CN106325756B (en) Data storage method, data calculation method and equipment
CN110502546A (en) A kind of data processing method and device
CN108334528B (en) Information recommendation method and device
RU2013155626A (en) RECOMMENDED SYSTEM FOR UPDATING DATA
CN108804383B (en) Support point parallel enumeration method and device based on measurement space
CN101661484A (en) Query method and query system
CN102169491B (en) Dynamic detection method for multi-data concentrated and repeated records
CN104281664A (en) Data segmenting method and system of distributed graph calculating system
CN105488176A (en) Data processing method and device
CN107315657A (en) A kind of method and device of data backup
CN106201917A (en) A kind of data handling system and method
CN103514284B (en) Data display system and data display method
CN107239451A (en) Database index creation method and device
CN105550220B (en) A kind of method and device of the access of heterogeneous system
CN110895533A (en) Form mapping method and device, computer equipment and storage medium
US9262472B2 (en) Concatenation for relations
CN106776893A (en) A kind of data output method and device
CN106909647B (en) Data retrieval method and device
CN110825953B (en) Data query method, device and equipment
CN105468726B (en) Method for computing data and system based on local computing and distributed computing
CN106845787A (en) A kind of data method for automatically exchanging and device

Legal Events

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

Application publication date: 20170531