CN106326425B - Data classification treating method and apparatus - Google Patents
Data classification treating method and apparatus Download PDFInfo
- Publication number
- CN106326425B CN106326425B CN201610720678.6A CN201610720678A CN106326425B CN 106326425 B CN106326425 B CN 106326425B CN 201610720678 A CN201610720678 A CN 201610720678A CN 106326425 B CN106326425 B CN 106326425B
- Authority
- CN
- China
- Prior art keywords
- item
- record
- sorting item
- data
- sorting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2457—Query processing with adaptation to user needs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of data classification treating method and apparatus, which comprises receives the data classification item data of user's input;The data classification item data includes sorting item coding and sorting item title;Obtain the information of historical data sorting item;The historical data sorting item includes a plurality of record, and every record includes at least: history sorting item coding, history sorting item title and sorting item version;It determines in a plurality of record and encodes identical first historical record with the presence or absence of with the sorting item;If it is present determining whether the sorting item title is identical as the history sorting item title of first historical record;If it is not the same, then the data classification item data is added in the historical data sorting item, newly-increased record is formed;The sorting item version of the newly-increased record is next version of the sorting item version of first historical record.
Description
Technical field
The present invention relates to technical field of data processing more particularly to a kind of data classification treating method and apparatus.
Background technique
In data record, the relationship of object and classification is typically all close coupling relationship, is become so as to cause in classification
When change, the relationship of object and classification can also change, so that the effect of version retrospect be not achieved, bring to operator many
It is inconvenient.
By taking financial management as an example, situations such as classification of financial data can adjust often with business event, change.This
Kind change will have a direct impact on the trackability of data record before.Such as: the data of certain enterprise's last year according to certain classify into
Row setting, has adjusted classification this year, just influences whether the data classification of last year, and historical record is caused to become inaccuracy.
Summary of the invention
In view of this, Version Control is established for classification the present invention provides a kind of data classification treating method and apparatus,
It can be traced according to the different editions of classification, even if classification is changed, historical record will not be influenced, it is effective to protect
The trackability of data is hindered.
In a first aspect, the embodiment of the invention provides a kind of data classification processing methods, comprising:
Receive the data classification item data of user's input;The data classification item data includes sorting item coding and sorting item
Title;
Obtain historical data sorting item;The historical data sorting item includes a plurality of record, and every record includes at least: going through
History sorting item coding, history sorting item title and sorting item version;
It determines in a plurality of record and encodes identical first historical record with the presence or absence of with the sorting item;
If it is present determine the sorting item title whether the history sorting item title phase with first historical record
Together;If it is not the same, then the data classification item data is added in the historical data sorting item, newly-increased record is formed;Institute
State next version of sorting item version of the sorting item version of newly-increased record for first historical record.
Preferably, identical first historical record is encoded with the sorting item if be not present in a plurality of record,
The data classification item data is added in the historical data sorting item and forms newly-increased record;The sorting item of the newly-increased record
Version is initial version.
Preferably, the sorting item version records in a digital format.
Preferably, the record further includes sorting item rank and parent coding.
It is further preferred that sorting item rank and the parent coding of the newly-increased record encode really all in accordance with the sorting item
It is fixed.
Preferably, the method also includes:
Receive the operational order of the data classification item of user's input;The operational order includes operational motion information, wait grasp
Make sorting item coding and sorting item version;
It is determined accordingly in the historical data sorting item according to described to activity classification item coding and sorting item version
To operation note;
According to the operational motion information, corresponding operation is carried out to operation note to described;The operation includes: modification
And deletion.
Second aspect, the embodiment of the invention provides a kind of data classification processing units, comprising:
Receiving unit, for receiving the data classification item data of user's input;The data classification item data includes classification
Item coding and sorting item title;
Storage unit is used for store historical data sorting item;
Acquiring unit, for obtaining historical data sorting item;The historical data sorting item includes a plurality of record, every note
Record includes at least: history sorting item coding, history sorting item title and sorting item version;
Processing unit encodes identical first history with the presence or absence of with the sorting item for determining in a plurality of record
Record;
If it is present the processing unit determine the sorting item title whether the history with first historical record
Sorting item title is identical;If it is not the same, then the historical data is added in the data classification item data by the processing unit
In sorting item, newly-increased record is formed;The sorting item version of the newly-increased record is the sorting item version of first historical record
Next version.
Preferably, identical first historical record is encoded with the sorting item if be not present in a plurality of record,
The data classification item data is added in the historical data sorting item and forms newly-increased record by the processing unit;It is described newly-increased
The sorting item version of record is initial version.
Preferably, the record further includes sorting item rank and parent coding, and the processing unit is also used to, according to described
Sorting item coding determines the sorting item rank and parent coding of the newly-increased record.
Preferably, the receiving unit is also used to, and receives the operational order of the data classification item of user's input;The operation
Instruction includes operational motion information, to activity classification item coding and sorting item version;
The processing unit is also used to, and is encoded with sorting item version to activity classification item in the historical data according to described
It determines in sorting item accordingly to operation note;
The processing unit is also used to, and according to the operational motion information, is grasped accordingly to described to operation note
Make;The operation includes: modification and deletion.
Data classification processing method provided in an embodiment of the present invention establishes Version Control for classification, can be according to classification
Different editions traced, even if classification is changed, historical record will not be influenced, effectively ensured data can
Retrospective.
Detailed description of the invention
Fig. 1 is the flow chart of data classification processing method provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of data classification processing unit provided in an embodiment of the present invention;
Fig. 3 is the entity structure schematic diagram of data classification processing unit provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into
It is described in detail to one step, it is clear that the described embodiments are only some of the embodiments of the present invention, rather than whole implementation
Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
All other embodiment, shall fall within the protection scope of the present invention.
Data classification processing method provided in an embodiment of the present invention, includes the following steps, specific as shown in Figure 1.
Step 110, the data classification item data of user's input is received;
Specifically, data classification item data includes sorting item coding and sorting item title;
Such as in a specific example, the data classification item data of user's input is " 101102, business demand portion ".
It wherein 101102 is encoded for sorting item, business demand portion is sorting item title.
Step 120, historical data sorting item is obtained;
Specifically, historical data sorting item includes a plurality of record, every record is included at least: history sorting item coding is gone through
History sorting item title and sorting item version;It additionally may include sorting item rank and parent coding.
Sorting item version is used to record the sorting item to be which time record under same sorting item coding.Sorting item rank
Refer to the hierarchical relationship in sorting item record, if sorting item rank is 1, illustrates that the sorting item is mother stock category, if it is
2, illustrate to illustrate for the subclassification item under mother stock category if it is 3 for the classification event ... and so under subclassification item.
Parent encodes the attaching relation for referring to the sorting item, can be found by the parent coding of a sorting item and be encoded with the parent
Identical sorting item illustrates that the sorting item is the subclassification item belonged under the sorting item being searched.
In a specific example, historical data sorting item is as shown in table 1 below.
Table 1
In table 1, historical data sorting item includes three records.
Step 130, it determines in a plurality of record and encodes identical first historical record with the presence or absence of with sorting item;
If it does, step 140 is executed, it is no to then follow the steps 160.
The sorting item of aforementioned user's input is encoded to 101102, and there are identical sorting item codings in table 1, therefore execute
Step 140.
Step 140, determine whether sorting item title is identical as the history sorting item title of the first historical record;
If identical, terminate process;If it is different, executing step 150.
In this example, the sorting item of user's input is entitled " business demand portion ", in the record of historical data sorting item
" business department " it is different, therefore execute step 150.
Step 150, it sorts data into item data to be added in historical data sorting item, forms newly-increased record;Wherein, note is increased newly
The sorting item version of record is next version of the sorting item version of the first historical record.
It in this example, is that " 101102, business demand portion " are added to history number by the data classification item data of user's input
According in sorting item, forming new record, table 2 specific as follows.It accordingly also include that sorting item rank and parent are compiled in record
The information of code.These information can be confirmed by sorting item coding and preset rules.
Table 2
Because the sorting item version of the first historical record is " 1 ", the sorting item version for increasing record newly is " 2 ".Certainly,
Not limiting sorting item version in practical applications can only be number, be also possible to otherwise be recorded, for example use
English alphabet a, b, c ..., or colophon is carried out using Roman number or other modes.
Step 160, the data classification item data is added in the historical data sorting item and forms newly-increased record;Its
In, the sorting item version for increasing record newly is initial version.
Specifically, user can be configured initial version.
Further, maintenance, such as modification or deletion can also be managed to classification.
By the operational order for receiving the data classification item of user's input;According to activity classification item coding and sorting item version
This is determined in the historical data sorting item accordingly to operation note;It wherein include that operational motion is believed in operational order
It ceases, to the information of activity classification item coding and sorting item version;Later according to operational motion information, treats operation note and carry out phase
The operation answered, such as modification or deletion.
Data classification processing method provided by the invention establishes Version Control for classification, can be according to the difference of classification
Version is traced, even if classification is changed, will not influence historical record, has effectively ensured the traceable of data
Property.
Correspondingly, the embodiment of the invention also provides a kind of data classification processing units, as shown in Fig. 2, including receiving list
Member 1, storage unit 2, acquiring unit 3 and processing unit 4
Wherein, receiving unit 1, storage unit 2, acquiring unit 3 are connect with processing unit 4 respectively;Acquiring unit 3 and storage
It is also connected between unit 2;
Receiving unit 1, for receiving the data classification item data of user's input;The data classification item data includes classification
Item coding and sorting item title;
Storage unit 2 is used for store historical data sorting item;
Acquiring unit 3, for obtaining historical data sorting item;The historical data sorting item includes a plurality of record, and every
Record includes at least: history sorting item coding, history sorting item title and sorting item version;
Processing unit 4 is gone through for determining in a plurality of record with the presence or absence of with sorting item coding identical first
Records of the Historian record;
If it is present processing unit 4 determine sorting item title whether the history sorting item title with the first historical record
It is identical;If it is not the same, then the data classification item data is added in historical data sorting item processing unit, newly-increased note is formed
Record;The sorting item version of newly-increased record is next version of the sorting item version of the first historical record.
If processing unit divides data there is no identical first historical record is encoded with sorting item in a plurality of record
Class item data, which is added in historical data sorting item, forms newly-increased record;The sorting item version of newly-increased record is initial version.
The updated historical data sorting item of data is stored in storage unit 2.
In addition, record further includes sorting item rank and parent coding, processing unit 4 is also used to, and is encoded according to sorting item true
The sorting item rank and parent coding of fixed newly-increased record.
In addition, receiving unit 1 is also used to, the operational order of the data classification item of user's input is received;The operational order
Including operational motion information, to activity classification item coding and sorting item version;
Processing unit 4 is also used to, and is divided to activity classification item coding and sorting item version in the historical data according to described
It determines in category accordingly to operation note;Also, it according to the operational motion information, is carried out accordingly to described to operation note
Operation;The operation includes: modification and deletion.
It can be a server, institutional framework schematic diagram such as Fig. 3 that the entity of above-mentioned data classification processing unit, which is realized,
It is shown, including processor 31, memory 32, communication interface 33 and bus 34.Wherein, processor 31, memory 32 and communication connect
Mouth 33 passes through the communication connection between the realization of bus 34.
Processor 31 can use general central processing unit (Central Processing Unit, CPU), micro process
Device, application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or one or
Multiple integrated circuits, for executing relative program, to realize processing unit that present invention is proposed.
Memory 32 may include read-only memory (Read Only Memory, ROM), and static storage device is dynamically deposited
Store up equipment or random access memory (Random Access Memory, RAM).It is aforementioned that the present invention may be implemented in memory 32
The storage unit that embodiment is proposed.
The receiving unit and acquiring unit that present invention is proposed may be implemented in communication interface 33.
Bus 34 may include an access, in server all parts (such as processor 31, memory 32 and communication interface
33) information is transmitted between.
Data classification processing unit provided in an embodiment of the present invention establishes Version Control for classification, can be according to classification
Different editions traced, even if classification is changed, historical record will not be influenced, effectively ensured data can
Retrospective.
Professional should further appreciate that, described in conjunction with the examples disclosed in the embodiments of the present disclosure
Unit and algorithm steps can be realized with electronic hardware, in the above description be generally described respectively according to function
Exemplary composition and step.Each specific application is used different methods to achieve the described function, but this reality
Now it is not considered that exceeding the range of the embodiment of the present invention.Specifically, the operation and control section can dredging collateral logic hardwares
It realizes, can be the logical integrated circuit manufactured using integrated circuit technology, the present embodiment is not construed as limiting this.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can be executed with hardware, processor
The combination of software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only memory
(ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field
In any other form of storage medium well known to interior.
Above-described specific embodiment carries out the purpose of the embodiment of the present invention, technical scheme and beneficial effects
It is further described, it should be understood that the foregoing is merely the specific embodiments of the embodiment of the present invention, and does not have to
It is all within the spirit and principle of the embodiment of the present invention in the protection scope for limiting the embodiment of the present invention, any modification for being made,
Equivalent replacement, improvement etc., should be included within the protection scope of the embodiment of the present invention.
Claims (6)
1. a kind of data classification processing method, which is characterized in that the described method includes:
Receive the data classification item data of user's input;The data classification item data includes sorting item coding and classification key name
Claim;
Obtain historical data sorting item;The historical data sorting item includes a plurality of record, and every record includes at least: history point
Category coding, history sorting item title and sorting item version;
It determines in a plurality of record and encodes identical first historical record with the presence or absence of with the sorting item;
If it is present determining whether the sorting item title is identical as the history sorting item title of first historical record;
If it is not the same, then the data classification item data is added in the historical data sorting item, newly-increased record is formed;It is described new
Increase the sorting item version of record as next version of the sorting item version of first historical record;
Wherein, the method also includes:
Receive the operational order of the data classification item of user's input;The operational order includes operational motion information, wait operate point
Category coding and sorting item version;
It is determined in the historical data sorting item accordingly wait grasp according to described to activity classification item coding and sorting item version
It notes down;
According to the operational motion information, corresponding operation is carried out to operation note to described;The operation includes: modification and deletes
It removes;
It wherein, will be described if there is no identical first historical record is encoded with the sorting item in a plurality of record
Data classification item data, which is added in the historical data sorting item, forms newly-increased record;The sorting item version of the newly-increased record is
Initial version.
2. data classification processing method according to claim 1, which is characterized in that the sorting item version is in a digital format
Record.
3. data classification processing method according to claim 1, which is characterized in that the record further includes sorting item rank
It is encoded with parent.
4. data classification processing method according to claim 3, which is characterized in that the sorting item rank of the newly-increased record
It encodes and determines all in accordance with the sorting item with parent coding.
5. a kind of data classification processing unit, which is characterized in that described device includes:
Receiving unit, for receiving the data classification item data of user's input;The data classification item data includes that sorting item is compiled
Code and sorting item title;
Storage unit is used for store historical data sorting item;
Acquiring unit, for obtaining historical data sorting item;The historical data sorting item includes a plurality of record, and every record is extremely
It less include: history sorting item coding, history sorting item title and sorting item version;
Processing unit encodes identical first history note with the presence or absence of with the sorting item for determining in a plurality of record
Record;
If it is present the processing unit determines whether the sorting item title classifies with the history of first historical record
Item title is identical;If it is not the same, then the processing unit classifies the data classification item data addition historical data
Xiang Zhong forms newly-increased record;The sorting item version of the newly-increased record is under the sorting item version of first historical record
One version;
Wherein, the receiving unit is also used to, and receives the operational order of the data classification item of user's input;The operational order packet
Include operational motion information, to activity classification item coding and sorting item version;
The processing unit is also used to, and is classified to activity classification item coding and sorting item version in the historical data according to described
It determines in accordingly to operation note;
The processing unit is also used to, and according to the operational motion information, carries out corresponding operation to operation note to described;Institute
Stating operation includes: modification and deletion;
Wherein, if there is no encode identical first historical record, the place with the sorting item in a plurality of record
It manages device and the newly-increased record of formation in the historical data sorting item is added in the data classification item data;The newly-increased record
Sorting item version is initial version.
6. data classification processing unit according to claim 5, which is characterized in that the record further includes sorting item rank
It is encoded with parent, the processing unit is also used to, and the sorting item rank of the newly-increased record is determined according to sorting item coding
It is encoded with parent.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610720678.6A CN106326425B (en) | 2016-08-24 | 2016-08-24 | Data classification treating method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610720678.6A CN106326425B (en) | 2016-08-24 | 2016-08-24 | Data classification treating method and apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106326425A CN106326425A (en) | 2017-01-11 |
CN106326425B true CN106326425B (en) | 2019-11-05 |
Family
ID=57790249
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610720678.6A Active CN106326425B (en) | 2016-08-24 | 2016-08-24 | Data classification treating method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106326425B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114139510B (en) * | 2021-11-08 | 2022-11-25 | 盟拓软件(苏州)有限公司 | Excel table-based process operation method and device, electronic equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102110121A (en) * | 2009-12-24 | 2011-06-29 | 阿里巴巴集团控股有限公司 | Method and system for processing data |
CN102682127A (en) * | 2012-05-16 | 2012-09-19 | 北京像素软件科技股份有限公司 | Data version control method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3992263B2 (en) * | 2000-03-30 | 2007-10-17 | 株式会社日立製作所 | Database-file linkage method |
-
2016
- 2016-08-24 CN CN201610720678.6A patent/CN106326425B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102110121A (en) * | 2009-12-24 | 2011-06-29 | 阿里巴巴集团控股有限公司 | Method and system for processing data |
CN102682127A (en) * | 2012-05-16 | 2012-09-19 | 北京像素软件科技股份有限公司 | Data version control method |
Also Published As
Publication number | Publication date |
---|---|
CN106326425A (en) | 2017-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI718643B (en) | Method and device for identifying abnormal groups | |
CN107766568B (en) | Efficient query processing using histograms in columnar databases | |
US9607063B1 (en) | NoSQL relational database (RDB) data movement | |
JP5092165B2 (en) | Data construction method and system | |
CN108038018B (en) | Extensible log data storage method and device | |
EP2721477A1 (en) | Processing repetitive data | |
WO2020168756A1 (en) | Cluster log feature extraction method, and apparatus, device and storage medium | |
US10698890B2 (en) | Dual overlay query processing | |
CN105095237A (en) | Method and device used for generating schema of not-only-structured-query-language database | |
CN108363684A (en) | List creation method, device and server | |
CN111858146B (en) | Method, apparatus and computer program product for recovering data | |
CN102866954A (en) | Method and device for allocating internal memory | |
US10049128B1 (en) | Outlier detection in databases | |
CN106469152A (en) | A kind of document handling method based on ETL and system | |
US20200134062A1 (en) | Determining a storage pool to store changed data objects indicated in a database | |
CN103593447A (en) | Data processing method and device applied to database table | |
CN106326425B (en) | Data classification treating method and apparatus | |
EP3477462B1 (en) | Tenant aware, variable length, deduplication of stored data | |
CN110019017B (en) | High-energy physical file storage method based on access characteristics | |
US20200133554A1 (en) | Processing event messages for changed data objects to determine a storage pool to store the changed data objects | |
CN111104259B (en) | Database recovery method and device and storage medium | |
WO2017065795A1 (en) | Incremental update of a neighbor graph via an orthogonal transform based indexing | |
CN110019169A (en) | A kind of method and device of data processing | |
WO2020199482A1 (en) | Large sample research report information extraction method and apparatus, device, and storage medium | |
CN112036579A (en) | Self-learning online updating method, system and device for multi-classification model |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |