Specific embodiment
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and is only used for explaining the application, and should not be understood as the limitation to the application.On the contrary, this
The embodiment of application includes all changes fallen within the scope of the spiritual and intension of attached claims, modification and is equal
Object.
Fig. 1 is the flow diagram for the data warehouse INDEX MANAGEMENT method that one embodiment of the application proposes, this method comprises:
S11: the index that Data Mart is exported by first interface is received, the first interface is Data Mart and middle layer
Between unified interface, the middle layer is the preset interface layer between Data Mart and operation system.
Wherein, the present embodiment can create a middle layer between existing Data Mart and operation system, among this
Layer be managed collectively to the index that each Data Mart externally exports or be safeguarded to be unified.
Interface between middle layer and Data Mart is properly termed as first interface, and the index of different Data Mart output is all
It is exported by the unified first interface to middle layer.
S12: the index is stored in corresponding index pond.
Wherein, index pond can be set in middle layer, index pond includes public index pond and operational indicator pond, public index
Pond (publice) is one, and the number of type of service for including in the number and operation system in operational indicator pond is identical, and mutually
It is corresponding, for example, including reporting system and risk system in operation system, then the operational indicator pond being arranged in the intermediate layer includes
Report form index pond and risk indicator pond.
The middle layer includes index pond, and the index pond includes public index pond and operational indicator pond, the public finger
Marking pond is one, and the number in the operational indicator pond is identical as the number for the class of service that the operation system includes.
Index of the same name is not present in the same operational indicator pond, includes in different business index pond or does not include finger of the same name
Index of the same name is not present in mark, public index pond and each operational indicator pond.
Index needed for corresponding service can be generated in different data fairground, for example, reporting system can be generated in report fairground
Required index, index needed for risk system can be generated in risk fairground.
After Data Mart generates index, index can be saved in the index pond of corresponding business, for example, report fairground
The index of generation is stored in report form index pond, and the index that risk fairground generates is stored in risk indicator pond.
S13: the index is exported to corresponding operation system by second interface, the second interface is the centre
Unified interface between layer and the operation system.
Wherein, the index in different index ponds can be exported by unified second interface to corresponding operation system, example
Such as, reporting system can obtain index by second interface from report form index pond, risk system can by second interface from
Risk indicator obtains index in pond.
In addition, different business systems can also obtain index from public index pond, for example, reporting system can be from public
Index is obtained in index pond, risk system can also obtain index from public index pond.
The present embodiment is by setting middle layer, and there are unified interface, middle layer and business systems for middle layer and Data Mart
There is also unified interface, the index that Data Mart generates is stored in the index pond of middle layer, may be implemented to index system
Unified management can be inconsistent to avoid bore since there are unified interfaces for middle layer and each Data Mart and each operation system
The problem of, also, since unified management to avoid overlapping development and can be difficult to problem of management, to solve to be referred to table level
Mark management there are the problem of.
Fig. 2 is the flow diagram for the data warehouse INDEX MANAGEMENT method that another embodiment of the application proposes, Fig. 3 is Fig. 2
Corresponding system structure diagram.
Referring to Fig. 3, the system of the present embodiment includes Data Mart 31, middle layer 32 and operation system 33.Data Mart 31
It may include risk fairground, credit fairground, operation fairground etc..Middle layer 32 is properly termed as DW index interface layer, and middle layer 32 is wrapped
Public index pond, report form index pond, risk indicator pond etc. are included, further includes converter, derivatization device, screening washer and tracker.Business
System 33 includes reporting system and risk system etc..
Referring to fig. 2, this method comprises:
S21: Data Mart handles data source, obtains corresponding index.
For example, risk fairground handles data source, this index of loan balance is obtained.
S22: Data Mart is exported index to middle layer by first interface.
Wherein, first interface can be realized using java or .net.
Different data fairground can export respective index by unified first interface to middle layer.
S23: the converter in middle layer is reconstructed received index according to the preset format in the index pond, will
Index after reconstruct is stored in corresponding index pond.
Wherein, Data Mart can be exported in output-index using table mode, for example, risk fairground generates one
Table includes multiple indexs in the table, and later, risk fairground can export the table to middle layer.
Referring to Fig. 3, middle layer is provided that index pond, each index pond include following index: index encodes (code), pond
It encodes (code), index English name, index Chinese name, dimension, computation rule, data warehouse source table, status attribute, founder,
Modify people.
Since the format in the index pond of middle layer setting is different from the tableau format that Data Mart exports, conversion
Device can be reconstructed received table, to be suitble to the format in index pond.
After converter converts received index, index can be stored in corresponding index pond, for example, will
The index of risk fairground output is stored in risk indicator pond.
In order to guarantee that bore is unified and avoids overlapping development, each index pond be can satisfy: in the same operational indicator pond not
Comprising index of the same name, different business index pond may include index of the same name, in any operational indicator pond index not with public index
Index is of the same name in pond.
Index pond is a kind of structure design, can use oracle, the traditional databases such as mysql or distributed data base
It realizes.
S24: the derivatization device in middle layer derives new index according to existing index in the index pond.
For example, existing index includes day loan balance in index pond, then derivatization device can spread out according to day loan balance
Bear a moon loan balance.
In addition, the index derived can be stored in index pond belonging to the index of source, for example, day loan balance is located at fortune
Seek in index pond, then according to day loan balance it is derivative obtain the moon loan balance there may also be in operation indicator pond.
S25: after the screening washer in middle layer is recombinated the index in index pond according to the format of operation system demand,
It exports to corresponding operation system.
For example, risk system needs loan balance index and overdue index, then screening washer can take from risk indicator pond
Loan balance index and overdue index out, and export after being recombinated according to the format that risk system needs to risk system.
Wherein, the index in public index pond and corresponding operational indicator pond can be used in operation system, for example, report system
The index in public index pond and report form index pond can be used in system, and public index pond and risk indicator can be used in risk system
Index in pond.
S26: tracker in middle layer to generation, use and the alteration of the index in the index pond carry out with
Track.
For example, middle layer is after receiving a new index and being saved in index pond in Data Mart, tracker can be remembered
The new index is recorded, alternatively, after derivatization device derives new index according to existing index, it is new that tracker also can recorde this
Index.Alternatively,
After operation system uses an index, tracker also can recorde the index used.Alternatively,
When the index in operational indicator pond is placed into public index Chi Zhonghou, tracker also can recorde the change, for example,
When risk personnel have found that some index has existed inside operation indicator pond, and the one of demand bore and operation indicator pond
It causes, then can apply the index in operation indicator pond moving to public index pond.
In addition, tracker can also carry out, the online monitoring of index, life cycle management, index deactivate lower wire management control on line
System etc., specifically, temperature can be used according to the frequency monitoring index that index metadata is used;It can be supervised by index view
Achievement data is controlled to occupy memory space, calculate the realization health degree monitoring of the data such as space;It can be controlled by index metadata interface
The online access of index processed and offline deactivated control.
The present embodiment substitutes traditional table level INDEX MANAGEMENT by setting middle layer and index pond, the management of service index pond,
It, can be to avoid between each Data Mart or in same Data Mart between different tables due to there are unified INDEX MANAGEMENT platform
Bore disunity problem realizes that the interface bore of index transmission is consistent;It, can be to avoid since index is uniformly stored in index pond
Overlapping development caused by each Data Mart is developed respectively and problem of resource waste;By the way that the centre being managed collectively to index is arranged
Layer, can be managed collectively and be tracked to index life cycle, business side's visual system is allowed to check indication information.
Fig. 4 is the structural schematic diagram for the data warehouse INDEX MANAGEMENT device that another embodiment of the application proposes, the device 40
Including receiving module 41, preserving module 42 and sending module 43.
The index that fairground is exported by first interface for receiving data of receiving module 41, the first interface are data sets
Unified interface between city and middle layer, the middle layer are the preset interfaces between Data Mart and operation system
Layer;
Wherein, the present embodiment can create a middle layer between existing Data Mart and operation system, among this
Layer be managed collectively to the index that each Data Mart externally exports or be safeguarded to be unified.
Interface between middle layer and Data Mart is properly termed as first interface, and the index of different Data Mart output is all
It is exported by the unified first interface to middle layer.
Preserving module 42 is for the index to be stored in corresponding index pond;
Wherein, index pond can be set in middle layer, index pond includes public index pond and operational indicator pond, public index
Pond (publice) is one, and the number of type of service for including in the number and operation system in operational indicator pond is identical, and mutually
It is corresponding, for example, including reporting system and risk system in operation system, then the operational indicator pond being arranged in the intermediate layer includes
Report form index pond and risk indicator pond.
The middle layer includes index pond, and the index pond includes public index pond and operational indicator pond, the public finger
Marking pond is one, and the number in the operational indicator pond is identical as the number for the class of service that the operation system includes.
Index of the same name is not present in the same operational indicator pond, includes in different business index pond or does not include finger of the same name
Index of the same name is not present in mark, public index pond and each operational indicator pond.
Index needed for corresponding service can be generated in different data fairground, for example, reporting system can be generated in report fairground
Required index, index needed for risk system can be generated in risk fairground.
After Data Mart generates index, index can be saved in the index pond of corresponding business, for example, report fairground
The index of generation is stored in report form index pond, and the index that risk fairground generates is stored in risk indicator pond.
Sending module 43 is for being exported the index to corresponding operation system, the second interface by second interface
It is the unified interface between the middle layer and the operation system.
Wherein, the index in different index ponds can be exported by unified second interface to corresponding operation system, example
Such as, reporting system can obtain index by second interface from report form index pond, risk system can by second interface from
Risk indicator obtains index in pond.
In addition, different business systems can also obtain index from public index pond, for example, reporting system can be from public
Index is obtained in index pond, risk system can also obtain index from public index pond.
In one embodiment, the middle layer includes index pond, and the index pond includes public index pond and operational indicator
Pond, the public index pond are one, for the class of service that the number and the operation system in the operational indicator pond include
Number is identical.
In one embodiment, index of the same name is not present in the same operational indicator pond, include in different business index pond or
Person does not include index of the same name, and index of the same name is not present in public index pond and each operational indicator pond.
In one embodiment, the index pond includes following index:
Index coding, pond coding, index English name, index Chinese name, dimension, computation rule, data warehouse source table, state
Attribute, founder modify people.
The preserving module can specifically correspond to the index pond of above method embodiment.
Referring to Fig. 5, the device 40 further include: converter 44, for the preset format according to the index pond, to the finger
Mark is reconstructed, so that the index after reconstruct to be stored in corresponding index pond.
Wherein, Data Mart can be exported in output-index using table mode, for example, risk fairground generates one
Table includes multiple indexs in the table, and later, risk fairground can export the table to middle layer.
Referring to Fig. 3, middle layer is provided that index pond, each index pond include following index: index encodes (code), pond
It encodes (code), index English name, index Chinese name, dimension, computation rule, data warehouse source table, status attribute, founder,
Modify people.
Since the format in the index pond of middle layer setting is different from the tableau format that Data Mart exports, conversion
Device can be reconstructed received table, to be suitble to the format in index pond.
After converter converts received index, index can be stored in corresponding index pond, for example, will
The index of risk fairground output is stored in risk indicator pond.
In order to guarantee that bore is unified and avoids overlapping development, each index pond be can satisfy: in the same operational indicator pond not
Comprising index of the same name, different business index pond may include index of the same name, in any operational indicator pond index not with public index
Index is of the same name in pond.
Index pond is a kind of structure design, can use oracle, the traditional databases such as mysql or distributed data base
It realizes.
Referring to Fig. 5, the device 40 further include: screening washer 45, for by the index according to the operation system demand
After format is recombinated, export to corresponding operation system.
For example, risk system needs loan balance index and overdue index, then screening washer can take from risk indicator pond
Loan balance index and overdue index out, and export after being recombinated according to the format that risk system needs to risk system.
Wherein, the index in public index pond and corresponding operational indicator pond can be used in operation system, for example, report system
The index in public index pond and report form index pond can be used in system, and public index pond and risk indicator can be used in risk system
Index in pond.
Referring to Fig. 5, the device 40 further include: derivatization device 46, for being derived according to existing index in the index pond
New index.
For example, existing index includes day loan balance in index pond, then derivatization device can spread out according to day loan balance
Bear a moon loan balance.
In addition, the index derived can be stored in index pond belonging to the index of source, for example, day loan balance is located at fortune
Seek in index pond, then according to day loan balance it is derivative obtain the moon loan balance there may also be in operation indicator pond.
Referring to Fig. 5, the device 40 further include: tracker 47, for the index in the index pond generation, using and
Alteration is tracked.
For example, middle layer is after receiving a new index and being saved in index pond in Data Mart, tracker can be remembered
The new index is recorded, alternatively, after derivatization device derives new index according to existing index, it is new that tracker also can recorde this
Index.Alternatively,
After operation system uses an index, tracker also can recorde the index used.Alternatively,
When the index in operational indicator pond is placed into public index Chi Zhonghou, tracker also can recorde the change, for example,
When risk personnel have found that some index has existed inside operation indicator pond, and the one of demand bore and operation indicator pond
It causes, then can apply the index in operation indicator pond moving to public index pond.
In addition, tracker can also carry out, the online monitoring of index, life cycle management, index deactivate lower wire management control on line
System etc., specifically, temperature can be used according to the frequency monitoring index that index metadata is used;It can be supervised by index view
Achievement data is controlled to occupy memory space, calculate the realization health degree monitoring of the data such as space;It can be controlled by index metadata interface
The online access of index processed and offline deactivated control.
The present embodiment substitutes traditional table level INDEX MANAGEMENT by setting middle layer and index pond, the management of service index pond,
It, can be to avoid between each Data Mart or in same Data Mart between different tables due to there are unified INDEX MANAGEMENT platform
Bore disunity problem realizes that the interface bore of index transmission is consistent;It, can be to avoid since index is uniformly stored in index pond
Overlapping development caused by each Data Mart is developed respectively and problem of resource waste;By the way that the centre being managed collectively to index is arranged
Layer, can be managed collectively and be tracked to index life cycle, business side's visual system is allowed to check indication information.
Fig. 6 is the structural schematic diagram for the data warehouse that another embodiment of the application proposes, which includes data
Fairground 61, middle layer 62 and operation system 63, middle layer 62 is between Data Mart 61 and operation system 63, for index
It is managed collectively.The concrete composition of middle layer 62 may refer to Fig. 4 or embodiment illustrated in fig. 5.
The present embodiment is by setting middle layer, and there are unified interface, middle layer and business systems for middle layer and Data Mart
There is also unified interface, the index that Data Mart generates is stored in the index pond of middle layer, may be implemented to index system
Unified management can be inconsistent to avoid bore since there are unified interfaces for middle layer and each Data Mart and each operation system
The problem of, also, since unified management to avoid overlapping development and can be difficult to problem of management, to solve to be referred to table level
Mark management there are the problem of.
It should be noted that term " first ", " second " etc. are used for description purposes only in the description of the present application, without
It can be interpreted as indication or suggestion relative importance.In addition, in the description of the present application, unless otherwise indicated, the meaning of " multiple "
It is two or more.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the application
Embodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, can integrate in a processing module in each functional unit in each embodiment of the application
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiment or examples in can be combined in any suitable manner.
Although embodiments herein has been shown and described above, it is to be understood that above-described embodiment is example
Property, it should not be understood as the limitation to the application, those skilled in the art within the scope of application can be to above-mentioned
Embodiment is changed, modifies, replacement and variant.