Summary of the invention
Fundamental purpose of the present invention is the disposal route and the device that provide a kind of tables of data, intuitively display itself whether can not be in the problem of filtration condition to solve tables of data.
To achieve these goals, according to an aspect of the present invention, a kind of disposal route of tables of data is provided.Disposal route according to tables of data of the present invention comprises: obtain the data rows in tables of data; Detect the filtration condition of data rows; According to the overall filter identification in the filtration condition updated data table of the data rows detected, wherein, overall filter identification is provided with in tables of data, overall situation filter identification is for representing whether tables of data is in filtration condition, overall situation filter identification comprises the first mark and the second mark, first mark is for representing that tables of data is in filtration condition, and the second mark is used for identification data table and is not in filtration condition; Overall filter identification is shown in tables of data.
Further, comprise according to the overall filter identification in the filtration condition updated data table of the data rows detected: obtain the filtration condition of data rows and the mapping relations of overall filter identification; The overall filter identification corresponding with the filtration condition of the data rows detected is obtained by the filtration condition of data rows that detects and mapping relations; According to the overall filter identification in the overall filter identification updated data table acquired.
Further, comprise according to the overall filter identification in the overall filter identification updated data table acquired: the total columns being in the data rows of filtration condition by the filtration condition statistics of the data rows detected; When total columns of the data rows being in filtration condition is 0, upgrading overall filter identification is the second mark; When total columns of the data rows being in filtration condition is greater than 0, upgrading overall filter identification is the first mark.
Further, tables of data comprises multiple data rows, detect the filtration condition of data rows to comprise and detecting successively the filtration condition of multiple data rows, comprising according to the overall filter identification in the filtration condition updated data table of the data rows detected: when detecting successively the filtration condition of multiple data rows, judging whether to detect the data rows being in filtration condition; If the data rows being in filtration condition detected, upgrading overall filter identification state is the first mark.
Further, show overall filter identification in tables of data after, the method also comprises: judge that the overall filter identification of display is the first mark or the second mark; When the overall filter identification judging to show is the first mark, to the overall filter identification executable operations of removing, wherein, is provided with in tables of data and removes overall filter identification, removing all filterconditions of overall filter identification for clearing data in table; After the filtercondition of table that clears data, in tables of data, show the second mark.
To achieve these goals, according to a further aspect in the invention, a kind for the treatment of apparatus of tables of data is provided.This device comprises: acquiring unit, for obtaining the data rows in tables of data; Detecting unit, for detecting the filtration condition of data rows; Updating block, for according to the overall filter identification in the filtration condition updated data table of data rows detected, wherein, overall filter identification is provided with in tables of data, overall situation filter identification is for representing whether tables of data is in filtration condition, overall situation filter identification comprises the first mark and the second mark, and the first mark is for representing that tables of data is in filtration condition, and the second mark is used for identification data table and is not in filtration condition; Display unit, for showing overall filter identification in tables of data.
Further, updating block comprises: the first acquisition module, for the mapping relations of the filtration condition and overall filter identification that obtain data rows; Second acquisition module, obtains the overall filter identification corresponding with the filtration condition of the data rows detected for the filtration condition of data rows that detects and mapping relations; First update module, for the overall filter identification in the overall filter identification updated data table that basis acquires.
Further, updating block comprises: statistical module, and the filtration condition statistics for the data rows detected is in total columns of the data rows of filtration condition; Second update module, for when total columns of the data rows being in filtration condition is 0, upgrading overall filter identification is the second mark; 3rd update module, during for being greater than 0 at total columns of the data rows being in filtration condition, upgrading overall filter identification is the first mark.
Further, tables of data comprises multiple data rows, detect the filtration condition of data rows to comprise and detecting successively the filtration condition of multiple data rows, updating block comprises: the first judge module, for when detecting successively the filtration condition of multiple data rows, judge whether to detect the data rows being in filtration condition; 4th update module, if for the data rows being in filtration condition being detected, upgrading overall filter identification state is the first mark.
Further, this device also comprises: the second judge module, for judging that the overall filter identification shown is the first mark or the second mark; Processing module, for when the overall filter identification judging to show is the first mark, to the overall filter identification executable operations of removing, wherein, being provided with in tables of data and removing overall filter identification, removing all filterconditions of overall filter identification for clearing data in table; Display module, for after the filtercondition of table that clears data, shows the second mark in tables of data.
By the present invention, adopt the method comprised the following steps: the data rows obtaining tables of data; Detect the filtration condition of data rows; According to the overall filter identification in the filtration condition updated data table of the data rows detected, wherein, overall filter identification is provided with in tables of data, overall situation filter identification is for representing whether tables of data is in filtration condition, overall situation filter identification comprises the first mark and the second mark, first mark is for representing that tables of data is in filtration condition, and the second mark is used for identification data table and is not in filtration condition; In tables of data, show overall filter identification, solve tables of data and intuitively display itself whether can not be in the problem of filtration condition, achieve database and intuitively display itself whether can be in filtration condition.
Embodiment
Better the present invention program is understood in order to make those skilled in the art, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment obtained under those of ordinary skill in the art do not make creative work prerequisite, all should belong to protection scope of the present invention.
It should be noted that, term " first ", " second " etc. in instructions of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged in the appropriate case, so as embodiments of the invention described herein can with except here diagram or describe those except order implement.In addition, term " comprises " and " having " and their any distortion, and intention is to cover not exclusive comprising.
When not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
Fig. 1 is the process flow diagram of the first embodiment of disposal route according to tables of data of the present invention.As shown in Figure 1, the method comprises following step S101 to step S104:
Step S101, obtains the data rows in tables of data.
The data rows obtained in tables of data can be obtain a data rows in tables of data, also can be obtain the multiple data rows in tables of data.
Such as, a student information data table, this tables of data stores the family information of student, the relevant informations such as school grade situation.As shown in table 1 below:
Table 1
In this step, the data rows obtained in tables of data can be obtain multiple data rows, and the plurality of data rows is the multiple data rows for representing different attribute in tables of data.For table 1, obtain the student name in table 1, the data rows such as sex, nationality and mathematics achievement.
Step S102, detects the filtration condition of data rows.
Detecting the filtration condition of data rows, can be the filtration condition detecting a data rows in tables of data, also can be the filtration condition detecting multiple data rows in tables of data.
To the one or more data rows got in tables of data, can filtercondition be pre-set to one or more data rows, according to the filtercondition pre-set, filter operation is performed to one or more data rows, detect the filtration condition of data rows.Wherein, the filtration condition of one or more data rows has 2 kinds, is be in filtration condition and be not in filtration condition respectively.
Be described for table 1, the filtercondition that his-and-hers watches 1 are arranged is data achievement lower than the student information of 70 points, and the data rows in his-and-hers watches 1 is filtered.Word message in data rows is arranged to runic be used for representing that this data rows is in filtration condition, as shown in the table:
Table 2
In this step, can detect the filtration condition of multiple data rows in tables of data, the filtration condition of the plurality of data rows has 2 kinds, is be in filtration condition and be not in filtration condition respectively.As shown in table 2, by detecting whether the word of multiple data rows in tables of data is runic, can judge that the filtration condition of this data rows is as being in filtration condition or not being in filtration condition.Detect that the data rows of mathematics achievement is in filtration condition by the method.
It should be noted that, arbitrary form can be set to the data rows being in filtration condition, can judging that this data rows is in filtration condition by this formal intuition, such as, can being arranged to text color in data rows red for representing that data rows is in filtration condition.
Step S103, according to the overall filter identification in the filtration condition updated data table of the data rows detected.
The filtration condition of the one or more data rows detected can for being in filtration condition and not being in filtration condition.Being in filtration condition and not being in the overall filter identification in filtration condition updated data table according to this one or more data rows.Overall filter identification is provided with in tables of data, overall situation filter identification is for representing whether tables of data is in filtration condition, overall situation filter identification comprises the first mark and the second mark, first mark is for representing that tables of data is in filtration condition, and the second mark is for representing that tables of data is not in filtration condition.
Particularly, by obtaining the filtration condition of data rows and the mapping relations of overall filter identification, by the filtration condition of data rows that detects and mapping relations, obtain the overall filter identification corresponding with the filtration condition of the data rows detected, by the overall filter identification in the overall filter identification updated data table that acquires.
According to the overall filter identification in the filtration condition updated data table of the data rows detected in Table 1, as shown in the table:
Table 4
In this step, the filtration condition of the one or more data rows detected can for being in filtration condition and not being in filtration condition.Being in filtration condition and not being in the overall filter identification in filtration condition updated data table according to data rows.As shown in table 4, the data rows of Chinese Achievement Test is in filtration condition.The overall filter identification in overall filter identification updated data table corresponding to filtration condition is according to the data rows of Chinese Achievement Test.
Preferably, in order to promote the renewal speed of the overall filter identification in tables of data, in the disposal route of the tables of data provided in the embodiment of the present invention, comprise according to the overall filter identification in the filtration condition updated data table of the data rows detected: the total columns being in the data rows of filtration condition by the filtration condition statistics of the data rows detected; When total columns of the data rows being in filtration condition is 0, upgrading overall filter identification is the second mark; When total columns of the data rows being in filtration condition is greater than 0, upgrading overall filter identification is the first mark.
Be in total columns of the data rows of filtration condition by statistics, upgrade overall filter identification fast by the situation of total columns, improve the renewal speed of the overall filter identification in tables of data, ensure that upgrading in time to overall filter identification.
Preferably, in order to better promote the renewal speed of the overall filter identification in tables of data, in the disposal route of the tables of data provided in the embodiment of the present invention, comprising according to the overall filter identification in the filtration condition updated data table of the data rows detected: when detecting successively the filtration condition of multiple data rows, judging whether to detect the data rows being in filtration condition; If the data rows being in filtration condition detected, upgrading overall filter identification state is the first mark.
By detecting the filtration condition of data rows successively, if data rows detected be in filtration condition, upgrade overall filter identification immediately, better improve the renewal speed of the overall filter identification in tables of data.Ensure that upgrading in time to overall filter identification.
Preferably, remove the processing speed of filtercondition to promote, in the disposal route of the tables of data provided in the embodiment of the present invention, the method also comprises: judge that the overall filter identification of display is the first mark or the second mark; When the overall filter identification judging to show is the first mark, to the overall filter identification executable operations of removing, wherein, is provided with in tables of data and removes overall filter identification, removing all filterconditions of overall filter identification for clearing data in table; After the filtercondition of table that clears data, in tables of data, show the second mark.
When judging tables of data process filtration condition, to the overall filter identification executable operations of removing, achieving filterconditions all in the table that clears data, improving the processing speed removing filtercondition.
Step S104, shows overall filter identification in tables of data.
The disposal route of the tables of data that the embodiment of the present invention provides, by obtaining the data rows in tables of data; Detect the filtration condition of data rows; According to the overall filter identification in the filtration condition updated data table of the data rows detected; In tables of data, show overall filter identification, solve tables of data and intuitively display itself whether can not be in the problem of filtration condition, achieve database and intuitively display itself whether can be in filtration condition.
It should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the process flow diagram of accompanying drawing, and, although show logical order in flow charts, but in some cases, can be different from the step shown or described by order execution herein.
The embodiment of the present invention additionally provides a kind for the treatment of apparatus of tables of data, it should be noted that, the treating apparatus of the tables of data of the embodiment of the present invention may be used for the disposal route performing the tables of data that the embodiment of the present invention provides.Below the treating apparatus of the tables of data that the embodiment of the present invention provides is introduced:
Fig. 2 is the schematic diagram of the first embodiment for the treatment of apparatus according to tables of data of the present invention.As shown in Figure 2, this device comprises: acquiring unit 10, detecting unit 20, updating block 30 and display unit 40.
Acquiring unit 10, for obtaining the data rows in tables of data.
Detecting unit 20, for detecting the filtration condition of data rows.
Updating block 30, for according to the overall filter identification in the filtration condition updated data table of data rows detected, wherein, overall filter identification is provided with in tables of data, overall situation filter identification is for representing whether tables of data is in filtration condition, overall situation filter identification comprises the first mark and the second mark, and the first mark is for representing that tables of data is in filtration condition, and the second mark is used for identification data table and is not in filtration condition.
Display unit 40, for showing overall filter identification in tables of data.
The treating apparatus of the tables of data that the embodiment of the present invention provides, obtains the data rows in tables of data by acquiring unit 10.Detecting unit 20 detects the filtration condition of data rows.Updating block 30 is according to the overall filter identification in the filtration condition updated data table of the data rows detected, wherein, overall filter identification is provided with in tables of data, overall situation filter identification represents whether tables of data is in filtration condition, overall situation filter identification comprises the first mark and the second mark, first label table shows that tables of data is in filtration condition, and the second label table shows that tables of data is not in filtration condition.Display unit 40 shows overall filter identification in tables of data, solves tables of data and intuitively display itself whether can not be in the problem of filtration condition, achieves database and intuitively display itself whether can be in filtration condition.
Fig. 3 is the schematic diagram of the second embodiment for the treatment of apparatus according to tables of data of the present invention.This embodiment can as a kind of preferred implementation embodiment illustrated in fig. 2, and as shown in Figure 3, this device comprises: acquiring unit 10, detecting unit 20, updating block 30 and display unit 40.Wherein, updating block 30 also comprises: the first acquisition module 301, second acquisition module 302 and the first update module 303.
Acquiring unit 10, detecting unit 20, the effect of updating block 30 and display unit 40 with act on identical in above-described embodiment, do not repeat them here.
First acquisition module 301, for the mapping relations of the filtration condition and overall filter identification that obtain data rows.
Second acquisition module 302, obtains the overall filter identification corresponding with the filtration condition of the data rows detected for the filtration condition of data rows that detects and mapping relations.
First update module 303, for the overall filter identification in the overall filter identification updated data table that basis acquires.
Fig. 4 is the schematic diagram of the second embodiment for the treatment of apparatus according to tables of data of the present invention.This embodiment can as a kind of preferred implementation embodiment illustrated in fig. 2, and as shown in Figure 4, this device comprises: acquiring unit 10, detecting unit 20, updating block 30 and display unit 40.Wherein, updating block 30 also comprises: statistical module 304, second update module 305 and the 3rd update module 306.
Acquiring unit 10, detecting unit 20, the effect of updating block 30 and display unit 40 with act on identical in above-described embodiment, do not repeat them here.
Statistical module 304, the filtration condition statistics for the data rows detected is in total columns of the data rows of filtration condition.
Second update module 305, for when total columns of the data rows being in filtration condition is 0, upgrading overall filter identification is the second mark.
3rd update module 306, during for being greater than 0 at total columns of the data rows being in filtration condition, upgrading overall filter identification is the first mark.
Fig. 5 is the schematic diagram of the second embodiment for the treatment of apparatus according to tables of data of the present invention.This embodiment can as a kind of preferred implementation embodiment illustrated in fig. 2, and as shown in Figure 5, this device comprises: acquiring unit 10, detecting unit 20, updating block 30 and display unit 40.Wherein, updating block 30 also comprises: the first judge module 307 and the 4th update module 308.
Acquiring unit 10, detecting unit 20, the effect of updating block 30 and display unit 40 with act on identical in above-described embodiment, do not repeat them here.
First judge module 307, for when detecting successively the filtration condition of multiple data rows, judges whether to detect the data rows being in filtration condition.
4th update module 308, if for the data rows being in filtration condition being detected, upgrading overall filter identification state is the first mark.
Fig. 6 is the schematic diagram of the second embodiment for the treatment of apparatus according to tables of data of the present invention.This embodiment can as a kind of preferred implementation embodiment illustrated in fig. 2, and as shown in Figure 6, this device comprises: acquiring unit 10, detecting unit 20, updating block 30, display unit 40, second judge module 50, processing module 60 and display module 70.
Acquiring unit 10, detecting unit 20, the effect of updating block 30 and display unit 40 with act on identical in above-described embodiment, do not repeat them here.
Second judge module 50, for judging that the overall filter identification shown is the first mark or the second mark.
Processing module 60, for when the overall filter identification judging to show is the first mark, to the overall filter identification executable operations of removing, wherein, being provided with in tables of data and removing overall filter identification, removing all filterconditions of overall filter identification for clearing data in table.
Display module 70, for after the filtercondition of table that clears data, shows the second mark in tables of data.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.