Data processing method and data processing device

A data processing and data technology, applied in the electronic field, can solve problems such as reducing data processing efficiency and consuming system resources.

Active Publication Date: 2014-12-03
HUAWEI TECH CO LTD
View PDF2 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the method for obtaining data in the prior art reduces the efficiency of data processing and consumes system resources at the same time

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 data processing device
  • Data processing method and data processing device
  • Data processing method and data processing device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] First, please refer to figure 1 , the data processing method in the embodiment of the present application includes the following content:

[0037] S101: Obtain a target key.

[0038] S102: Determine the key type to which the target key belongs, and determine a target index area corresponding to the key type of the target key.

[0039] S103: Obtain a target index item of the target key by querying the target index area.

[0040] S104: Obtain data corresponding to the target key in the data area according to the target index item.

[0041] In this embodiment of the application, the storage medium is stored in the form of Key-Value, in other words, multiple keys are stored in the storage medium, and multiple values ​​corresponding to multiple keys are stored, wherein each value has a corresponding key.

[0042] In the technical field to which this application belongs, Key is called a key, also called a primary key; Value is a value corresponding to a key, and may also ...

Embodiment 2

[0109] Please refer to Figure 7 , the embodiment of the present application provides a data processing device, including:

[0110] Obtaining unit 101, configured to obtain the target key;

[0111] A determining unit 102, configured to determine the key type to which the target key belongs, and determine the target index area corresponding to the key type of the target key;

[0112] An obtaining unit 103, configured to obtain a target index item of the target key by querying the target index area;

[0113] The data obtaining unit 104 is configured to obtain data corresponding to the target key in the data area according to the target index item.

[0114] Further, the data processing device in the embodiment of the present application may also include:

[0115] An allocating unit, configured to allocate at least one key of the same type as the key to include the target index area before the obtaining unit obtains the target key.

[0116] The data writing unit is used to wri...

Embodiment 3

[0121] An embodiment of the present application provides a storage device. Figure 8 For the meanings and specific implementations of the terms involved in the storage device shown, please refer to the preceding Figure 1 to Figure 7 and descriptions of the examples.

[0122] Please refer to Figure 8 As shown, the storage device includes:

[0123] Interface 201, used to obtain the target key;

[0124] Processor 202, configured to determine the key type to which the target key belongs, and determine a target index area corresponding to the key type of the target key; obtain a target index item of the target key by querying the target index area; Obtain data corresponding to the target key in the data area according to the target index item.

[0125] Optionally, the processor 202 is also used for:

[0126] Before said obtaining the target key, allocate the target index area for at least one key of the same type as the key.

[0127] Optionally, the processor 202 is also us...

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 provides a data processing method and a data processing device used for improving data processing efficiency and lowering consumption of system resources. The method is applied to a storage medium which stores multiple keys and Values corresponding to all the Keys. The method includes: acquiring a destination key; determining a key type of the destination key, and determining a target index area corresponding to the key type of the destination key; acquiring target index entries of the destination key by searching the target index area; acquiring data, corresponding to the destination key, in a data field according to the target index entries.

Description

technical field [0001] The present invention relates to the field of electronic technology, in particular to a data processing method and a data processing device. Background technique [0002] The protocol for interconnection between networks (English: Internet Protocol; IP for short) hard disk is a hard disk that provides physical communication through the IP protocol. It abandons the traditional serial connection (English: Serial Attached SCSI; abbreviation: SAS) / serial advanced technology attachment (English: Serial Advanced Technology Attachment; abbreviation: SATA) interface, making the connection between the host and the hard disk easier, There is almost no distance limit. [0003] Some current storage media, such as IP hard disks, store data in the structure of Key-Value, that is, key-value pairs. Among them, Key is the key, usually a string, and Value is the value corresponding to the key, also known as data or data content, Key-Value data is referred to as KV dat...

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/00G06F12/0261G06F16/2453
Inventor 张雷刘小威
Owner HUAWEI TECH CO LTD
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