The content of the invention
, can not be straight to solve tables of data it is a primary object of the present invention to provide a kind for the treatment of method and apparatus of tables of data
The problem of whether display is in filtration condition in itself seen.
To achieve these goals, according to an aspect of the invention, there is provided a kind of processing method of tables of data.According to
The processing method of the tables of data of the present invention includes:Obtain the data row in tables of data;Detect the filtration condition of data row;According to inspection
The filtration condition of the data row measured updates the data the global filter identification in table, wherein, global mistake is provided with tables of data
Filter mark, global filter identification are used to represent whether tables of data be in filtration condition, global filter identification include the first mark with
Second mark, first identifies for representing that tables of data is in filtration condition, and second identifies and be not in filtering for mark data table
State;Global filter identification is shown in tables of data.
Further, the filtration condition arranged according to the data detected, which updates the data the global filter identification in table, to be included:
Obtain the filtration condition of data row and the mapping relations of global filter identification;The filtration condition that is arranged by the data that detect and reflect
Penetrate Relation acquisition and the corresponding global filter identification of filtration condition of the data row detected;The overall situation according to acquiring filters
Mark updates the data the global filter identification in table.
Further, the global filter identification updated the data according to the global filter identification acquired in table includes:It is logical
Cross total columns that data of the filtration condition statistics in filtration condition of the data row detected arrange;In the number in filtration condition
In the case of being 0 according to total columns of row, global filter identification is updated for the second mark;In the total of the data row in filtration condition
Columns is more than in the case of 0, updates global filter identification for the first mark.
Further, tables of data arranges including multiple data, and the filtration condition of detection data row is included to multiple data row
Filtration condition is detected successively, and the filtration condition arranged according to the data detected updates the data the global filter identification bag in table
Include:When the filtration condition arranged multiple data detects successively, judge whether to detect the data row in filtration condition;
If detecting the data row in filtration condition, global filter identification state is updated for the first mark.
Further, after global filter identification is shown in tables of data, this method also includes:Judge the global mistake of display
Filter mark is the first mark or the second mark;In the case where the global filter identification for judging display is the first mark, to clear
Except global filter identification performs operation, wherein, it is provided with tables of data and removes global filter identification, removes global filter identification
For all filter conditions in the table that clears data;After the filter condition for the table that clears data, second is shown in tables of data
Mark.
To achieve these goals, according to another aspect of the present invention, there is provided a kind of processing unit of tables of data.The dress
Put including:Acquiring unit, for obtaining the row of the data in tables of data;Detection unit, for detecting the filtration condition of data row;More
New unit, for updating the data the global filter identification in table according to the filtration condition of the data row detected, wherein, in data
Global filter identification is provided with table, global filter identification is used to represent whether tables of data is in filtration condition, overall situation filtering mark
Knowledge includes the first mark and the second mark, and first identifies for representing that tables of data is in filtration condition, and second identifies for identifying
Tables of data is not in filtration condition;Display unit, for showing global filter identification in tables of data.
Further, updating block includes:First acquisition module, for the filtration condition for obtaining data row and global filtering
The mapping relations of mark;Second acquisition module, the filtration condition and mapping relations that the data for detecting arrange obtain and detection
Global filter identification corresponding to the filtration condition of the data row arrived;First update module, for according to the global mistake acquired
Filter mark updates the data the global filter identification in table.
Further, updating block includes:Statistical module, the filtration condition statistics of the data row for detecting were in
Total columns of the data row of filter state;Second update module, the feelings that total columns for being arranged in the data in filtration condition is 0
Under condition, global filter identification is updated for the second mark;3rd update module, for total row in the data row in filtration condition
Number is more than in the case of 0, updates global filter identification for the first mark.
Further, tables of data arranges including multiple data, and the filtration condition of detection data row is included to multiple data row
Filtration condition is detected successively, and updating block includes:First judge module, for the filtration condition that multiple data arrange according to
It is secondary when being detected, judge whether to detect the data row in filtration condition;4th update module, if for detecting everywhere
Arranged in the data of filtration condition, update global filter identification state for the first mark.
Further, the device also includes:Second judge module, for judging that the global filter identification of display is the first mark
Know or second identifies;Processing module, in the case of being the first mark in the global filter identification for judging display, to removing
Global filter identification performs operation, wherein, it is provided with tables of data and removes global filter identification, is removed global filter identification and use
All filter conditions in the table that clears data;Display module, for after the filter condition for the table that clears data, in tables of data
The middle mark of display second.
By the present invention, using the method comprised the following steps:Obtain the data row of tables of data;Detect the filtering of data row
State;The filtration condition arranged according to the data detected updates the data the global filter identification in table, wherein, set in tables of data
Global filter identification is equipped with, global filter identification is used to represent whether tables of data is in filtration condition, and global filter identification includes
First mark and the second mark, first identifies for representing that tables of data is in filtration condition, and second identifies for mark data table
It is not in filtration condition;Global filter identification is shown in tables of data, solves whether tables of data intuitively can not be located in itself in display
In the filtration condition the problem of, realize whether database intuitively display can be in filtration condition in itself.
Embodiment
In order that those skilled in the art is better understood from the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, in ordinary skill
Personnel do not make the every other embodiment obtained under the premise of creative work, should all belong to the protection model of the present invention
Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use
Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or
Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
Cover non-exclusive include.
In the case where not conflicting, the feature in embodiment and embodiment in the application can be mutually combined.Below will
The present invention will be described in detail with reference to the accompanying drawings and embodiments.
Fig. 1 is the flow chart according to the first embodiment of the processing method of the tables of data of the present invention.As shown in figure 1, the party
Method includes steps S101 to step S104:
Step S101, obtain the data row in tables of data.
Obtaining the row of the data in tables of data can be the data row obtained in tables of data or obtain tables of data
In multiple data row.
For example, a student information data table, the tables of data stores the correlation such as family information, school grade situation of student
Information.It is as shown in table 1 below:
Table 1
In this step, it can obtain multiple data row to obtain the data row in tables of data, and the plurality of data row are to use
Arranged in the multiple data for representing different attribute in tables of data.By taking table 1 as an example, obtain table 1 in student name, sex, nationality and
The data such as mathematics achievement arrange.
Step S102, the filtration condition of detection data row.
Detect the filtration condition of data row, can be detect in tables of data the filtration condition of data row or
Detect the filtration condition of multiple data row in tables of data.
The one or more data got in tables of data are arranged, filtering can be pre-set to one or more data row
Condition, one or more data are arranged and perform filter operation, the filtering shape of detection data row according to the filter condition pre-set
State.Wherein, the filtration condition of one or more data row has 2 kinds, is to be in filtration condition and be not in filtration condition respectively.
Illustrated by taking table 1 as an example, the filter condition set to table 1 is less than 70 points of student information for data achievement, right
Data row in table 1 are filtered.Text information is arranged to runic for representing data row in filtering shape during data are arranged
State, it is as shown in the table:
Table 2
In this step, the filtration condition of multiple data row in tables of data, the filtering shape of the plurality of data row can be detected
State has 2 kinds, is to be in filtration condition and be not in filtration condition respectively.As shown in table 2, by detecting multiple data in tables of data
Whether the word of row is runic, you can the filtration condition for judging data row is in filtration condition or is not in filtration condition.
The data row for detecting mathematics achievement by this method are in filtration condition.
It should be noted that arbitrary form can be arranged to the data row in filtration condition, the form can be passed through
Intuitively judge that data row are in filtration condition, for example, text color is arranged to red use in can arranging data
Filtration condition is in representing that data arrange.
Step S103, the filtration condition arranged according to the data detected update the data the global filter identification in table.
The filtration condition of the one or more data row detected can be in filtration condition and be not in filtration condition.
According to the one or more data arrange in filtration condition and be not in filtration condition and update the data global filtering mark in table
Know.Global filter identification is provided with tables of data, global filter identification is used to represent whether tables of data is in filtration condition, entirely
Office's filter identification includes the first mark and the second mark, and first identifies for representing that tables of data is in filtration condition, the second mark
For representing that tables of data is not in filtration condition.
Specifically, by obtaining the filtration condition of data row and the mapping relations of global filter identification, pass through what is detected
The filtration condition and mapping relations of data row, the corresponding global filter identification of filtration condition of the data row with detecting is obtained,
The global filter identification in table is updated the data by the global filter identification acquired.
The filtration condition arranged according to the data detected in table 1 updates the data the global filter identification in table, such as following table
It is shown:
Table 4
In this step, the filtration condition of the one or more data row detected can be in filtration condition and not locate
In filtration condition.According to data arrange in filtration condition and be not in filtration condition and update the data global filtering mark in table
Know.As shown in table 4, the data row of Chinese Achievement Test are in filtration condition.Filtration condition pair is according to the data of Chinese Achievement Test row
The global filter identification answered updates the data the global filter identification in table.
Preferably, in order to lift the renewal speed of the global filter identification in tables of data, provided in an embodiment of the present invention
In the processing method of tables of data, the filtration condition arranged according to the data detected updates the data the global filter identification bag in table
Include:Total columns that data of the filtration condition statistics in filtration condition arranged by the data detected arrange;In filtering shape
In the case that total columns of the data row of state is 0, global filter identification is updated for the second mark;In the data in filtration condition
Total columns of row is more than in the case of 0, updates global filter identification for the first mark.
The total columns arranged by counting the data in filtration condition, quickly updates global filtering by the situation of total columns
Mark, improves the renewal speed of the global filter identification in tables of data, ensure that and global filter identification is upgraded in time.
Preferably, in order to preferably lift the renewal speed of the global filter identification in tables of data, in the embodiment of the present invention
In the processing method of the tables of data of offer, the filtration condition arranged according to the data detected updates the data the global filtering mark in table
Knowledge includes:When the filtration condition for arranging multiple data detects successively, judge whether to detect the number in filtration condition
According to row;If detecting the data row in filtration condition, global filter identification state is updated for the first mark.
By detect successively data arrange filtration condition, if detect data row be in filtration condition, immediately more
New global filter identification, preferably improve the renewal speed of the global filter identification in tables of data.It ensure that and the overall situation is filtered
Mark upgrades in time.
Preferably, in order to lift the processing speed of removing filter condition, at the place of tables of data provided in an embodiment of the present invention
In reason method, this method also includes:The global filter identification for judging display is the first mark or the second mark;Judging to show
Global filter identification be the first mark in the case of, perform operation to removing global filter identification, wherein, set in tables of data
It is equipped with and removes global filter identification, removes global filter identification for all filter conditions in the table that clears data;Removing number
After the filter condition of table, the second mark is shown in tables of data.
In the case where judging tables of data processing filtration condition, operation is performed to removing global filter identification, is realized
Clear data all filter conditions in table, improves the processing speed for removing filter condition.
Step S104, global filter identification is shown in tables of data.
The processing method of tables of data provided in an embodiment of the present invention, arranged by obtaining the data in tables of data;Detect data
The filtration condition of row;The filtration condition arranged according to the data detected updates the data the global filter identification in table;In tables of data
The middle global filter identification of display, solves the problems, such as whether tables of data intuitively display can not be in filtration condition in itself, realizes
Whether database intuitively display can be in filtration condition in itself.
It should be noted that can be in such as one group of computer executable instructions the flow of accompanying drawing illustrates the step of
Performed in computer system, although also, show logical order in flow charts, in some cases, can be with not
The order being same as herein performs shown or described step.
The embodiment of the present invention additionally provides a kind of processing unit of tables of data, it is necessary to illustrate, the embodiment of the present invention
The processing unit of tables of data can be used for the processing method for performing the tables of data that the embodiment of the present invention is provided.Below to the present invention
The processing unit for the tables of data that embodiment provides is introduced:
Fig. 2 is the schematic diagram according to the first embodiment of the processing unit of the tables of data of the present invention.As shown in Fig. 2 the dress
Put including:Acquiring unit 10, detection unit 20, updating block 30 and display unit 40.
Acquiring unit 10, for obtaining the row of the data in tables of data.
Detection unit 20, for detecting the filtration condition of data row.
Updating block 30, for updating the data the global filtering mark in table according to the filtration condition of the data row detected
Know, wherein, global filter identification is provided with tables of data, global filter identification is used to represent tables of data whether in filtering shape
State, global filter identification include the first mark and the second mark, and first identifies for representing that tables of data is in filtration condition, and second
Identify and be not in filtration condition for mark data table.
Display unit 40, for showing global filter identification in tables of data.
The processing unit of tables of data provided in an embodiment of the present invention, the data in tables of data are obtained by acquiring unit 10
Row.Detection unit 20 detects the filtration condition of data row.The filtration condition that updating block 30 arranges according to the data detected updates
Global filter identification in tables of data, wherein, global filter identification is provided with tables of data, global filter identification represents data
Whether table is in filtration condition, and global filter identification includes the first mark and the second mark, and the first mark represents that tables of data is in
Filtration condition, the second mark represent that tables of data is not in filtration condition.Display unit 40 shows global filtering mark in tables of data
Know, solve the problems, such as whether tables of data intuitively display can not be in filtration condition in itself, realizing database can intuitively show
Show whether itself is in filtration condition.
Fig. 3 is the schematic diagram according to the second embodiment of the processing unit of the tables of data of the present invention.The embodiment can be made
For a kind of preferred embodiment of embodiment illustrated in fig. 2, as shown in figure 3, the device includes:Acquiring unit 10, detection unit 20,
Updating block 30 and display unit 40.Wherein, updating block 30 also includes:First acquisition module 301, the second acquisition module 302
With the first update module 303.
Acquiring unit 10, detection unit 20, act in the effect of updating block 30 and display unit 40 and above-described embodiment
It is identical, it will not be repeated here.
First acquisition module 301, for obtaining the filtration condition of data row and the mapping relations of global filter identification.
Second acquisition module 302, what the filtration condition and mapping relations that the data for detecting arrange were obtained and detected
Global filter identification corresponding to the filtration condition of data row.
First update module 303, for updating the data the global filtering in table according to the global filter identification acquired
Mark.
Fig. 4 is the schematic diagram according to the second embodiment of the processing unit of the tables of data of the present invention.The embodiment can be made
For a kind of preferred embodiment of embodiment illustrated in fig. 2, as shown in figure 4, the device includes:Acquiring unit 10, detection unit 20,
Updating block 30 and display unit 40.Wherein, updating block 30 also includes:Statistical module 304, the second update module 305 and
Three update modules 306.
Acquiring unit 10, detection unit 20, act in the effect of updating block 30 and display unit 40 and above-described embodiment
It is identical, it will not be repeated here.
Statistical module 304, the filtration condition statistics of the data row for detecting are in the total of the data row of filtration condition
Columns.
Second update module 305, in the case of being 0 in total columns of the data row in filtration condition, renewal is complete
Office's filter identification is the second mark.
3rd update module 306, in the case of being more than 0 in total columns of the data row in filtration condition, more
New global filter identification is the first mark.
Fig. 5 is the schematic diagram according to the second embodiment of the processing unit of the tables of data of the present invention.The embodiment can be made
For a kind of preferred embodiment of embodiment illustrated in fig. 2, as shown in figure 5, the device includes:Acquiring unit 10, detection unit 20,
Updating block 30 and display unit 40.Wherein, updating block 30 also includes:First judge module 307 and the 4th update module
308。
Acquiring unit 10, detection unit 20, act in the effect of updating block 30 and display unit 40 and above-described embodiment
It is identical, it will not be repeated here.
First judge module 307, during for detecting successively in the filtration condition for arranging multiple data, judge whether to examine
The data in filtration condition are measured to arrange.
4th update module 308, if for detecting the data row in filtration condition, update global filter identification shape
State is the first mark.
Fig. 6 is the schematic diagram according to the second embodiment of the processing unit of the tables of data of the present invention.The embodiment can be made
For a kind of preferred embodiment of embodiment illustrated in fig. 2, as shown in fig. 6, the device includes:Acquiring unit 10, detection unit 20,
Updating block 30, display unit 40, the second judge module 50, processing module 60 and display module 70.
Acquiring unit 10, detection unit 20, act in the effect of updating block 30 and display unit 40 and above-described embodiment
It is identical, it will not be repeated here.
Second judge module 50, the global filter identification for judging display are the first mark or the second mark.
Processing module 60 is complete to removing in the case of being the first mark in the global filter identification for judging display
Office's filter identification performs operation, wherein, it is provided with tables of data and removes global filter identification, is removed global filter identification and be used for
All filter conditions to clear data in table.
Display module 70, for after the filter condition for the table that clears data, the second mark to be shown in tables of data.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored
Performed in the storage device by computing device, either they are fabricated to respectively each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific
Hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.