A method and system for implementing hbase multi-condition query based on solr
A multi-condition, query request technology, applied in the field of big data, can solve problems such as difficulty in meeting query requirements, and achieve the effects of satisfying multi-condition queries, reducing query time, and improving query efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0032] figure 1 It is the implementation flowchart of the method for implementing HBase multi-condition query based on Solr provided by the embodiment of the present invention, and is described in detail as follows:
[0033] In step S101, the Solr server obtains the multi-condition query request submitted by the client;
[0034] In step S102, using the pre-established index supporting the multi-condition query request, return the data table row key RowKey set of the multi-condition query request to the client;
[0035] Wherein, the element of the RowKey set is a data table row key, and the data table row key is a row key of a data table in the open source database HBase.
[0036] Wherein, the data row includes a data table row key.
[0037] By associating the index supporting the multi-condition query request with the data row, the association of the index supporting the multi-condition query request and the row key of the data table in the data row is completed.
[0038] B...
Embodiment 2
[0042] The embodiment of the present invention describes the implementation process of establishing an index that supports multi-condition query requests, and the details are as follows:
[0043] The operation code of the external request, the name of the data table, the current timestamp and the row key of the data table are spliced into the row key of the cache table, and an index supporting multi-condition query requests is established for the data row.
[0044] Among them, the row key of the cache table includes the following characteristics:
[0045] Operation code + data table name + timestamp + data table row key (RowKey), the structure adopted is as follows:
[0046]
[0047] Among them, the operation code, data table name, timestamp and the positional relationship of the data table row key in the data row need to agree on the order among the index building process, index deletion process and query process.
Embodiment 3
[0049] figure 2 It is an implementation flowchart of establishing an index that supports multi-condition query requests provided by the embodiment of the present invention, and is described in detail as follows:
[0050] In step S201, the splicing request is received, and the opcode, data table name, current timestamp and data table row key in the splicing request are spliced into the row key of the cache table;
[0051] In step S202, before the cache table warehousing thread is started, the preput () hook of the cache table is used to start the data table warehousing thread first, and when the data table warehousing thread is completed, the preput () hook of the cache table returns. The cache table warehousing thread continues to run, and at the same time, the postput() hook of the data table starts the Solr warehousing thread first, and then starts the confirmation thread. Using the confirmation thread, it is confirmed that the data row does not exist in the data table or...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com