Data query method and device for HBase

A data query and data technology, applied in the field of data processing, can solve problems such as complex operations, and achieve the effect of simple operation and reduced difficulty

Inactive Publication Date: 2015-04-29
INSPUR SOFTWARE CO LTD
View PDF5 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] It can be seen from the above description that in the prior art, if you want to query HBase with multiple conditions, you need to pre-set index data. When generating index data, you need to splice the RowKey in HBase, which is complicated.

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 query method and device for HBase
  • Data query method and device for HBase

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work belong to the protection of the present invention. scope.

[0046] The embodiment of the present invention provides a data query method of HBase, see figure 1 , the method includes:

[0047] S1: Map the data in HBase to at least one Java Bean, where the class name of the Java Bean is mapped to the table name of the table in HBase, and the attribute mapping information of the Java Bean includes: the pre-selected...

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 query method and device for HBase; the method comprises the following steps: S1, mapping the data in HBase into at least one Java Bean, mapping the class name of the Java Bean into the tabe name of the table in HBase, the attribute mapping information of the Java Bean comprises the fragment data selected beforehand in cell of HBase, the RowKey corresponding to the fragment data, the list cluster name and list name; S2, determining the index attribute of the index field according to the fragment data; S3, marking the index attribute through the note form; S4, generating at least one index data according to the index attribute, wherein each index data comprises the table name mapped by the Java Bean of the index attribute corresponding to the index data, the fragment data mapped by index attribute corresponding to the index data, list cluster name and list name. The data query method and device for HBase can reduce the index data generating difficulty.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to an HBase data query method and device. Background technique [0002] HBase (Hadoop Database, distributed computing database) is a distributed, scalable NoSQL (Not Only Structured Query Language, non-relational database) database, which is built on the Hadoop infrastructure, relying on the rapid development of Hadoop, HBase It is widely used in the field of big data. [0003] HBase stores data in the form of a table. The table is composed of rows and columns. The columns are divided into several column clusters. Each column belongs to a certain column cluster. Each row of the table corresponds to a unique RowKey (row key). The key and column family name and column name determine a cell. Querying data in HBase is mainly achieved by finding the RowKey corresponding to the data. HBase does not have a secondary index mechanism. If you want to perform multi-condition queries...

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
IPC IPC(8): G06F17/30
CPCG06F16/25G06F16/2228
Inventor周正德徐正礼魏金雷
OwnerINSPUR SOFTWARE CO LTD