Data processing method and apparatus

A data processing device and data processing technology, applied in the field of communication, can solve the problems of large storage space, waste of server resources, and no actual saving of storage space, and achieve the effects of saving storage space, improving utilization rate, and reducing waste of server resources

Active Publication Date: 2017-02-15
云南腾云信息产业有限公司
View PDF6 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] For example, three ordered attributes include operating system (OS, Operating System), Internet Protocol address (IP, Internet Protocol) and uniform resource locator (URL, Uniform ResourceLocator); wherein, the attribute value of OS includes Android, Mac OS X, windows mobile, Symbian, etc., the attribute values ​​of IP include 172.10.1.1, 172.10.1.2...172.10.225.225, and the attribute values ​​of URL include http: / / www.baidu.com / , http: / / www.google. com.hk / , http: / / www.qq.com / , etc.; in multi-valued combined storage, the more common method is to use "_" as the splicing character to perform simple splicing of attribute values, such as "v=Android_172.10.1 .2_http: / / www.baidu.com / ", but this storage method takes up 40 bytes and requires a large storage space; another method is to use the hash (hash) value of the above simple splicing results as a new The combined value of the method, the storage space of this method depends on the range of the return value of the hash function. If you use the hash function that comes with java, you will get a 32-bit integer number, which can be represented by only 4 bytes, but additional The overhead of maintaining the correspondence between all hash values ​​and original values ​​does not actually save storage space. Therefore, the multi-value combination storage method in the prior art has a large storage space and is likely to cause waste of server resources.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data processing method and apparatus
  • Data processing method and apparatus
  • Data processing method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0028] see figure 1 , figure 1 is a schematic flowchart of the data processing method provided in the first embodiment of the present invention. The methods include:

[0029] In step S101, attributes to be combined and stored and corresponding attribute values ​​are acquired.

[0030] In step S102, a preset number corresponding to each attribute value is acquired.

[0031] Wherein, the steps S101 and S102 may specifically be:

[0032] The data processing method can be run on a server, and the server is mainly used for combined storage of various attribute values.

[0033] The attributes to be combined and stored in the embodiments of the present invention may specifically include: OS operating system, Internet Protocol address IP, Uniform Resource Locator URL, etc.; wherein, the corresponding attribute value of OS may include Android, Mac OS X, windows mobile , Symbian, etc., the attribute values ​​of IP include 172.10.1.1, 172.10.1.2...172.10.225.225, and the attribute v...

no. 2 example

[0042] see figure 2 , figure 2 It is a schematic flowchart of the data processing method provided in the second embodiment of the present invention. Wherein, the data processing method is based on running on a server, and the server is mainly used for combined storage of various attribute values.

[0043] Different from the first embodiment, this embodiment mainly describes in detail the process of converting the digital numbers into byte strings according to the first preset rule to obtain corresponding codes. The methods include:

[0044]In step S201, two or more attributes and corresponding attribute values ​​are set.

[0045] In step S202, the attribute values ​​of each attribute are numbered sequentially.

[0046] Wherein, the steps S201 and S202 can be specifically the preprocessing process of the attribute value; before the data is processed and stored, an attribute database is established first, which contains various attributes and corresponding attribute values...

no. 3 example

[0071] Different from the second embodiment, this embodiment is mainly aimed at converting the digital numbers into byte strings according to the first preset rules to obtain corresponding codes, and converting the corresponding codes according to the second preset rules respectively, The implementation of these two processes to obtain corresponding digital numbers is described in detail.

[0072] For ease of understanding and description, the attributes to be combined and stored in the embodiment of the present invention may specifically include the following three types: OS operating system, Internet Protocol address IP and Uniform Resource Locator URL; wherein, the corresponding attribute value of OS may include Android, Mac For OS X, windows mobile, Symbian, etc., the attribute values ​​of IP include 172.10.1.1, 172.10.1.2...172.10.225.225, and the attribute values ​​of URL include http: / / www.baidu.com / , http: / / www.google .com.hk / , http: / / www.qq.com / , etc.

[0073] In the...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a data processing method and apparatus. The method comprises the steps of obtaining to-be-combined-and-stored attributes and corresponding attribute values; obtaining preset digital numbers corresponding to the attribute values; performing byte string conversion on the digital numbers according to a first preset rule to obtain corresponding codes; and performing combination and storage on the codes. According to a bit compression-based storage method, the attribute values are combined and stored by utilizing corresponding byte string storage formats through number conversion; and compared with an existing mode of performing simple attribute value splicing storage by using a splicing connector and performing storage by utilizing a hash function, the method has the advantages that the storage space can be greatly saved, so that the server resource waste is reduced and the utilization rate is increased.

Description

technical field [0001] The invention belongs to the technical field of communication, and in particular relates to a data processing method and device. Background technique [0002] In data storage and analysis, multiple attribute values ​​are usually combined and stored. Generally, this storage method is called "multi-value combination". Currently, multi-valued composite storage mostly uses byte[] byte strings. For the sake of illustration, it is assumed that there are the following three ordered attributes and related specific attribute values ​​that need to be stored in combination. [0003] For example, three ordered attributes include operating system (OS, Operating System), Internet Protocol address (IP, Internet Protocol) and uniform resource locator (URL, Uniform ResourceLocator); wherein, the attribute value of OS includes Android, Mac OS X, windows mobile, Symbian, etc., the attribute values ​​of IP include 172.10.1.1, 172.10.1.2...172.10.225.225, and the attribu...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/955
Inventor 沈健
Owner 云南腾云信息产业有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products