Block chain data processing method and device, apparatus and readable storage medium
A data processing and blockchain technology, applied in the blockchain field, can solve problems such as inability to connect to the application layer, low query efficiency, and queries that do not support complex logic.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0035] figure 1 It is a flow chart of the blockchain data processing method provided by Embodiment 1 of the present invention. The embodiment of the present invention provides a blockchain data processing method for the problem that the existing blockchain does not support the query of some specific conditions or the query of complex logic, and the query efficiency is low.
[0036] Such as figure 1 As shown, the specific steps of the method are as follows:
[0037] Step S101, when the Key-Value data needs to be stored, analyze the Value in the Key-Value data, and determine the data type of the Value.
[0038] Generally, the following two methods can be used in the blockchain system to write the blockchain data into the Key-Value database, one way is: Put(Key, Value), given the Key and Value; the other way is : Write(Value), Value is given, but Key is not defined.
[0039] In this embodiment, in order to be able to store the blockchain data of the Key-Value structure into a...
Embodiment 2
[0062] figure 2 It is a flow chart of the blockchain data processing method provided by Embodiment 2 of the present invention. On the basis of the first embodiment above, in this embodiment, Value includes data type, data format, number of fields and Value. Determine the target table corresponding to the data category of Value according to the data category information table, including: judging whether the data category of Value already exists in the data category information table; if the data category of Value already exists in the data category information table, then from the data category Obtain the storage information of the data category of Value in the information table; according to the storage information of the data category of Value, judge whether the data format and number of fields in Value are consistent with the data format and number of fields in the storage information; if they are consistent, then from the data category Obtain the target table correspondin...
Embodiment 3
[0102] image 3 It is a flow chart of the blockchain data processing method provided by Embodiment 3 of the present invention. On the basis of the first or second embodiment above, in this embodiment, an exemplary description will be given of the process of querying blockchain data when the data Key, data category and business field to be queried are known. Such as image 3 As shown, the specific steps of the method are as follows:
[0103] Step S301, in response to the data query request of the blockchain system, obtain the Key, data category and business field of the data to be queried.
[0104] This embodiment supports data query in the following ways: the first is to query all fields by specifying the Key and data category, which can be expressed as QueryAll(Key, DataType), where DataType represents the data category; the second is to specify the Key, data category And business field query, can be expressed as QueryFields(Key, DataType, fields[]), where DataType represe...
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