Disclosure of Invention
In view of this, the present invention provides a data statistical method and system, which can implement diversification of data statistical methods, and the data statistical methods are flexible and diverse.
According to an aspect of the present invention, there is provided a data statistical method, including:
determining the type of data to be counted; the data types comprise original types, multi-element groups, recording units, algebraic data types, abstract data types, reference types and function types;
acquiring data type attribute information corresponding to the determined data type to be counted according to the determined data type to be counted; wherein the data type attribute information comprises a numeric type, a byte type, a text type, a logic type, a date type and an object type;
and screening data corresponding to the data type attribute information in a target database according to the acquired data type attribute information corresponding to the determined data type to be counted.
Wherein, the determining the data type to be counted comprises:
and determining the data type to be counted according to the definition of the data type in the data structure.
The obtaining of the data attribute information corresponding to the determined data type to be counted according to the determined data type to be counted includes:
and listing the types of the variables corresponding to the determined data types to be counted according to the determined data types to be counted, and acquiring the data type attribute information of the types of the variables corresponding to the determined data types to be counted.
The step of screening out data corresponding to the data type attribute information in a target database according to the acquired data type attribute information corresponding to the determined data type to be counted includes:
and screening data corresponding to the data type attribute information in a target database in a mode that a group of data corresponds to one data type attribute information according to the acquired data type attribute information corresponding to the determined data type to be counted.
After the data corresponding to the data type attribute information is screened from the target database according to the acquired data type attribute information corresponding to the determined data type to be counted, the method further includes:
and adopting a classification display mode to display the data corresponding to the data type attribute information in the target database in a classification mode.
According to another aspect of the present invention, there is provided a data statistics system comprising:
the device comprises a determining unit, an acquiring unit and a screening unit;
the determining unit is used for determining the type of the data to be counted; the data types comprise original types, multi-element groups, recording units, algebraic data types, abstract data types, reference types and function types;
the acquiring unit is used for acquiring data type attribute information corresponding to the determined data type to be counted according to the determined data type to be counted; wherein the data type attribute information comprises a numeric type, a byte type, a text type, a logic type, a date type and an object type;
and the screening unit is used for screening data corresponding to the data type attribute information in a target database according to the acquired data type attribute information corresponding to the determined data type to be counted.
Wherein, the determining unit is specifically configured to:
and determining the data type to be counted according to the definition of the data type in the data structure.
The obtaining unit is specifically configured to:
and listing the types of the variables corresponding to the determined data types to be counted according to the determined data types to be counted, and acquiring the data type attribute information of the types of the variables corresponding to the determined data types to be counted.
Wherein, the screening unit is specifically configured to:
and screening data corresponding to the data type attribute information in a target database in a mode that a group of data corresponds to one data type attribute information according to the acquired data type attribute information corresponding to the determined data type to be counted.
Wherein, the data statistical system further comprises:
and the display unit is used for displaying the data corresponding to the data type attribute information in the target database in a classified display mode.
It can be found that, according to the above scheme, the data type to be counted can be determined; the data type comprises an original type, a multi-element group, a recording unit, an algebraic data type, an abstract data type, a reference type, a function type and the like, and data type attribute information corresponding to the determined data type to be counted is obtained according to the determined data type to be counted; the data type attribute information comprises a digital type, a byte type, a text type, a logic type, a date type, an object type and the like, and data corresponding to the data type attribute information is screened from a target database according to the acquired data type attribute information corresponding to the determined data type to be counted, so that the diversification of data counting modes can be realized, and the data counting modes are flexible and diverse.
Furthermore, the above scheme can adopt a classification display mode to display the data corresponding to the data type attribute information in the target database in a classification manner, so that the data corresponding to the data type attribute information can be known clearly, and the data of the data type attribute information can be compared conveniently.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be noted that the following examples are only illustrative of the present invention, and do not limit the scope of the present invention. Similarly, the following examples are only some but not all examples of the present invention, and all other examples obtained by those skilled in the art without any inventive work are within the scope of the present invention.
The invention provides a data statistical method, which can realize diversification of data statistical modes, and the data statistical modes are flexible and various.
Referring to fig. 1, fig. 1 is a schematic flow chart of an embodiment of data statistics according to the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 1 if the results are substantially the same. As shown in fig. 1, the method comprises the steps of:
s101: determining the type of data to be counted; the data types include original types, multi-element groups, recording units, algebraic data types, abstract data types, reference types, function types and the like.
The determining the data type to be counted may include:
and determining the data type to be counted according to the definition of the data type in the data structure.
In this embodiment, the definition of a data type in a data structure is a set of values and a set of operations defined on this set of values.
In this embodiment, the data types may include primitive types, tuples, record units, algebraic data types, abstract data types, reference types, and function types.
In this embodiment, the data type is that in order to divide the data into the data of the required memory size difference, only need apply for big memory when need using big data during the programming, just can make full use of memory, for example the fat must sleep double bed, just give other double bed, thin people single bed is just enough.
S102: acquiring data type attribute information corresponding to the determined data type to be counted according to the determined data type to be counted; the data type attribute information includes numeric type, byte type, text type, logic type, date type, object type, and the like.
The obtaining of the data attribute information corresponding to the determined data type to be counted according to the determined data type to be counted may include:
and listing the types of the variables corresponding to the determined data types to be counted according to the determined data types to be counted, and acquiring the data type attribute information of the types of the variables corresponding to the determined data types to be counted.
In this embodiment, the variables of the data type are where the values are stored, they have names and data types. The data type of the variables determines how the bits representing these values are stored in the memory of the computer. A variable may also be specified in its data type when declared. All variables have a data type to decide which data can be stored.
In the present embodiment, the data kind attribute information includes a numeric type, a byte type, a text type, a logical type, a date type, an object type, and the like.
In the present embodiment, the digital type may include an integer type, a long integer type, a single-precision floating point type, a double-precision floating point type, a monetary type, and the like.
S103: and screening data corresponding to the data type attribute information in a target database according to the acquired data type attribute information corresponding to the determined data type to be counted.
The screening, according to the obtained data category attribute information corresponding to the determined data type to be counted, of the data in the target database, may include:
and screening data corresponding to the data type attribute information in a target database in a mode that a group of data corresponds to the data type attribute information according to the acquired data type attribute information corresponding to the determined data type to be counted.
After the data corresponding to the data type attribute information is screened from the target database according to the acquired data type attribute information corresponding to the determined data type to be counted, the method may further include:
and adopting a classification display mode to display the data corresponding to the data type attribute information in the target database in a classification mode.
It can be seen that, in the present embodiment, the type of data to be counted may be determined; the data type comprises an original type, a multi-element group, a recording unit, an algebraic data type, an abstract data type, a reference type, a function type and the like, and data type attribute information corresponding to the determined data type to be counted is obtained according to the determined data type to be counted; the data type attribute information comprises a digital type, a byte type, a text type, a logic type, a date type, an object type and the like, and data corresponding to the data type attribute information is screened from a target database according to the acquired data type attribute information corresponding to the determined data type to be counted, so that the diversification of data counting modes can be realized, and the data counting modes are flexible and diverse.
Referring to fig. 2, fig. 2 is a schematic flow chart of another embodiment of the data statistical method of the present invention. In this embodiment, the method includes the steps of:
s201: determining the type of data to be counted; the data types include original types, multi-element groups, recording units, algebraic data types, abstract data types, reference types, function types and the like.
As described above in S101, further description is omitted here.
S202: acquiring data type attribute information corresponding to the determined data type to be counted according to the determined data type to be counted; the data type attribute information includes numeric type, byte type, text type, logic type, date type, object type, and the like.
As described above in S102, further description is omitted here.
S203: and screening data corresponding to the data type attribute information in a target database according to the acquired data type attribute information corresponding to the determined data type to be counted.
As described above in S103, which is not described herein.
S204: and adopting a classification display mode to display the data corresponding to the data type attribute information in the target database in a classification mode.
It can be found that in this embodiment, a classification display mode may be adopted to display the data corresponding to the data type attribute information in the target database in a classification manner, so that the data corresponding to the data type attribute information can be known clearly, and the comparison of the data type attribute information is facilitated.
The invention also provides a data statistical system which can realize the diversification of data statistical modes, and the data statistical modes are flexible and various.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an embodiment of a data statistics system according to the present invention. In this embodiment, the data statistical system 30 includes a determining unit 31, an obtaining unit 32, and a screening unit 33.
The determining unit 31 is used for determining the type of the data to be counted; the data types include original types, multi-element groups, recording units, algebraic data types, abstract data types, reference types, function types and the like.
The acquiring unit 32 is configured to acquire data type attribute information corresponding to the determined data type to be counted according to the determined data type to be counted; the data type attribute information includes numeric type, byte type, text type, logic type, date type, object type, and the like.
The screening unit 33 is configured to screen data corresponding to the data type attribute information from the target database according to the acquired data type attribute information corresponding to the determined data type to be counted.
Optionally, the determining unit 31 may be specifically configured to:
and determining the data type to be counted according to the definition of the data type in the data structure.
Optionally, the obtaining unit 32 may be specifically configured to:
and listing the types of the variables corresponding to the determined data types to be counted according to the determined data types to be counted, and acquiring the data type attribute information of the types of the variables corresponding to the determined data types to be counted.
Optionally, the screening unit 33 may be specifically configured to:
and screening data corresponding to the data type attribute information in a target database in a mode that a group of data corresponds to the data type attribute information according to the acquired data type attribute information corresponding to the determined data type to be counted.
Referring to fig. 4, fig. 4 is a schematic structural diagram of another embodiment of the data statistics system of the present invention. Different from the previous embodiment, the data statistics system 40 of this embodiment further includes: a unit 41 is shown.
The display unit 41 is configured to display the data corresponding to the data type attribute information in the target database in a classified manner.
Each unit module of the data statistics system 30/40 can respectively execute the corresponding steps in the above method embodiments, and therefore, the detailed description of each unit module is omitted here, please refer to the description of the corresponding steps above.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a data statistics system according to another embodiment of the present invention. Each unit module of the data statistical system can respectively execute the corresponding steps in the above method embodiments. For a detailed description of the above method, please refer to the above method, which is not repeated herein.
In this embodiment, the data statistics system includes: a processor 51, a memory 52 coupled to the processor 51, a filter 53, and a presenter 54.
The processor 51 is used for determining the type of data to be counted; the data type comprises an original type, a multi-element group, a recording unit, an algebraic data type, an abstract data type, a reference type, a function type and the like, and data type attribute information corresponding to the determined data type to be counted is obtained according to the determined data type to be counted; the data type attribute information includes numeric type, byte type, text type, logic type, date type, object type, and the like.
The memory 52 is used for storing an operating system, instructions executed by the processor 51, and the like.
The filter 53 is configured to filter out data corresponding to the data type attribute information from the target database according to the acquired data type attribute information corresponding to the determined data type to be counted.
The display 54 is configured to display the data corresponding to the data type attribute information in the target database in a classified manner.
Optionally, the processor 51 may be specifically configured to:
and determining the data type to be counted according to the definition of the data type in the data structure.
Optionally, the processor 51 may be specifically configured to:
and listing the types of the variables corresponding to the determined data types to be counted according to the determined data types to be counted, and acquiring the data type attribute information of the types of the variables corresponding to the determined data types to be counted.
Optionally, the filter 53 may be specifically configured to:
and screening data corresponding to the data type attribute information in a target database in a mode that a group of data corresponds to the data type attribute information according to the acquired data type attribute information corresponding to the determined data type to be counted.
It can be found that, according to the above scheme, the data type to be counted can be determined; the data type comprises an original type, a multi-element group, a recording unit, an algebraic data type, an abstract data type, a reference type, a function type and the like, and data type attribute information corresponding to the determined data type to be counted is obtained according to the determined data type to be counted; the data type attribute information comprises a digital type, a byte type, a text type, a logic type, a date type, an object type and the like, and data corresponding to the data type attribute information is screened from a target database according to the acquired data type attribute information corresponding to the determined data type to be counted, so that the diversification of data counting modes can be realized, and the data counting modes are flexible and diverse.
Furthermore, the above scheme can adopt a classification display mode to display the data corresponding to the data type attribute information in the target database in a classification manner, so that the data corresponding to the data type attribute information can be known clearly, and the data of the data type attribute information can be compared conveniently.
In the several embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a module or a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be substantially or partially implemented in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a part of the embodiments of the present invention, and not intended to limit the scope of the present invention, and all equivalent devices or equivalent processes performed by the present invention through the contents of the specification and the drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.