Multi-dimensional range query method and device for seismic data
By pre-establishing a multi-level B+ tree index structure and query model, and using multiple historical track header keywords and query sequence data to determine pointer information, the problem of redundant data access in multi-dimensional range queries is solved, and efficient query and user optimization are achieved. experience.
Patent Information
- Application Number
- CN201911181069.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-27
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2039-11-27
AI Technical Summary
When the existing technology queries seismic data in a multi-dimensional range, the selectivity of the first track header keyword is low, resulting in a large amount of redundant data being accessed during the query process, affecting efficiency and user experience.
By obtaining multiple trace head keywords of seismic data and their corresponding query condition data, a multi-level B+ tree index structure is established in advance, and multiple historical trace head keywords and query sequence data are used to determine pointer information, narrow the query scanning range, and avoid Redundant data access.
It realizes fast multi-dimensional range query, improves query efficiency and user experience, reduces redundant data access, and optimizes query performance.
Smart Images

Figure CN112860734B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of high performance computing and big data technology, and in particular to a method and device for multi-dimensional range query of seismic data. Background Art
[0002] Seismic data processing is an important technology in the oil exploration industry. Its function is to process and calculate seismic data collected in the field according to specific processing algorithms, so as to obtain images of underground geological structures, which are used to guide subsequent drilling and oil production. With the continuous application of new exploration technologies and high-precision acquisition technologies in oil exploration, the amount of raw seismic data collected from the field has grown rapidly. At present, the scale of a single data body has exceeded the PB level, and the number of seismic traces can reach hundreds of billions. The object processed by seismic applications is usually such a huge seismic data body. The seismic data body is logically similar to a data table in a relational database. It is organized in row order, and each row of records is called a seismic trace. The seismic trace consists of two parts, the trace header and the trace body. The trace header stores attribute information related to the seismic trace, and each attribute is called a trace header keyword. The trace body is a floating-point array, and each floating-point number is called a sampling point. Since the seismic data body is a high-dimensional structured data, each seismic trace has hundreds of attribute information, which is stored in different trace header keywords.
[0003] However, when accessing a seismic data volume, a large number of interactive seismic applications are usually only interested in a portion of the data set of the seismic data volume. Therefore, a large number of seismic data accesses specify the value range of some attributes to filter out specific data sets, and may also specify the order of certain attributes to determine the sorting method of the query results.
[0004] Since multi-dimensional range query is the most common data query mode in seismic applications, its query speed is crucial to the performance of seismic applications, especially interactive applications, and user experience. Efficient index query is the basis for ensuring query efficiency and reducing the latency of seismic data query.
[0005] In the prior art, the query range of the first header keyword is usually used to determine the data range to be scanned, and the query ranges of other keywords are used to filter data records during the data scanning process. When the selectivity of the first header keyword is low, a large amount of redundant data will be accessed during the query process, seriously affecting the query efficiency and user experience. Summary of the invention
[0006] The embodiment of the present invention provides a multi-dimensional range query method for seismic data, which is used for fast multi-dimensional range query of seismic data, avoiding access to a large amount of redundant data during the query process, improving query efficiency, and optimizing user experience. The method includes:
[0007] Acquire a group of trace header keywords of seismic data and query condition data corresponding to each trace header keyword in the group of trace header keywords;
[0008] Determine one or more pointers corresponding to the group of trace header keywords according to query condition data corresponding to each trace header keyword in the group of trace header keywords and a pre-established query model, wherein the one or more pointers carry pointer information corresponding to each pointer, and the query model is pre-established according to multiple historical trace header keywords and query sequence data of seismic data;
[0009] querying seismic data according to one or more pointers corresponding to the group of trace header keywords;
[0010] The query sequence data is obtained as follows:
[0011] Determine an approximate value of the amount of data to be read corresponding to each preset sorting scheme in a plurality of preset sorting schemes;
[0012] Obtaining query sequence data according to the approximate value of the amount of data to be read corresponding to each preset sorting scheme;
[0013] The query model is pre-established based on multiple historical header keywords and query sequence data of seismic data, including: the query model is pre-established based on one or more B+ trees and query sequence data corresponding to each historical header keyword in the multiple historical header keywords of seismic data.
[0014] The embodiment of the present invention provides a multi-dimensional range query device for seismic data, which is used for fast multi-dimensional range query of seismic data, avoiding access to a large amount of redundant data during the query process, improving query efficiency, and optimizing user experience. The device includes:
[0015] A data acquisition module, used for acquiring a group of trace header keywords of seismic data and query condition data corresponding to each trace header keyword in the group of trace header keywords;
[0016] a pointer determination module, for determining one or more pointers corresponding to the group of trace header keywords according to query condition data corresponding to each trace header keyword in the group of trace header keywords, and a pre-established query model, wherein the one or more pointers carry pointer information corresponding to each pointer, and the query model is pre-established according to multiple historical trace header keywords and query sequence data of seismic data;
[0017] A data query module, used for querying seismic data according to one or more pointers corresponding to the group of trace header keywords;
[0018] The query sequence data is obtained as follows:
[0019] Determine an approximate value of the amount of data to be read corresponding to each preset sorting scheme in a plurality of preset sorting schemes;
[0020] Obtaining query sequence data according to the approximate value of the amount of data to be read corresponding to each preset sorting scheme;
[0021] The query model is pre-established based on multiple historical header keywords and query sequence data of seismic data, including: the query model is pre-established based on one or more B+ trees and query sequence data corresponding to each historical header keyword in the multiple historical header keywords of seismic data.
[0022] An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned multi-dimensional range query method for seismic data when executing the computer program.
[0023] An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned multi-dimensional range query method for seismic data when executing the computer program.
[0024] Compared with the prior art, in which the query range of the first header keyword is used to determine the data range to be scanned, and the query range of other keywords is used to screen data records during the data scanning process, the embodiment of the present invention obtains a group of header keywords of seismic data and the query condition data corresponding to each header keyword in the group of header keywords; according to the query condition data corresponding to each header keyword in the group of header keywords, and the pre-established query model, one or more pointers corresponding to the group of header keywords are determined, wherein the one or more pointers carry pointer information corresponding to each pointer, and the query model is pre-established according to multiple historical header keywords and query sequence data of seismic data; and according to the one or more pointers corresponding to the group of header keywords, seismic data is queried. The embodiment of the present invention determines the one or more pointers corresponding to the group of header keywords according to the query condition data corresponding to each header keyword in a group of header keywords and the pre-established query model, and then queries seismic data according to the determined pointers, which effectively narrows the query scanning range, can quickly query seismic data in a multi-dimensional range, avoids accessing a large amount of redundant data during the query process, improves query efficiency, and optimizes user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0026] Figure 1 Schematic diagram of a multi-dimensional range query method for seismic data in an embodiment of the present invention;
[0027] Figure 2 A schematic diagram of a secondary B+ tree structure in an embodiment of the present invention;
[0028] Figure 3 A bitmap of the multi-dimensional range query filtering stage of seismic data in an embodiment of the present invention;
[0029] Figure 4 A flowchart of a distributed index construction algorithm in an embodiment of the present invention;
[0030] Figure 5 A schematic diagram of the structure and merging process of a temporary tree in an embodiment of the present invention;
[0031] Figure 6 Schematic diagram of a multi-dimensional range query method for seismic data in an embodiment of the present invention;
[0032] Figure 7 A schematic diagram of implementing index construction through the IndexBTreeWriter class in an embodiment of the present invention;
[0033] Figure 8 This is a schematic diagram of implementing a multi-dimensional range query through the IndexBTreeReader class in an embodiment of the present invention;
[0034] Fig. 9 It is a structural diagram of a multi-dimensional range query device for seismic data in an embodiment of the present invention. DETAILED DESCRIPTION
[0035] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0036] As mentioned above, since multi-dimensional range query is the most common data query mode in seismic applications, its query speed is crucial to the performance and user experience of seismic applications, especially interactive applications. Efficient index query is the basis for ensuring query efficiency and reducing the latency of seismic data query. As a balanced search tree designed for disk or other direct access auxiliary storage devices, B+ tree index can effectively reduce the number of disk I / O operations during query. And because B+ tree can support fast range scanning along leaf nodes, it has better range query performance and is widely used in current seismic data queries. However, when performing multi-dimensional range query, B+ tree index only uses the query range of the first header keyword to determine the data range to be scanned, and the query range of other keywords is used to filter data records during the data scanning process. When the selectivity of the first header keyword is low, a large amount of redundant data will be accessed during the query process, which seriously affects the query efficiency and user experience.
[0037] In order to quickly query seismic data in a multi-dimensional range, avoid accessing a large amount of redundant data during the query process, improve query efficiency, and optimize user experience, an embodiment of the present invention provides a multi-dimensional range query method for seismic data, such as Figure 1 As shown, the method may include:
[0038] Step 101, obtaining a group of trace header keywords of seismic data and query condition data corresponding to each trace header keyword in the group of trace header keywords;
[0039] Step 102, determining one or more pointers corresponding to the group of trace header keywords according to query condition data corresponding to each trace header keyword in the group of trace header keywords and a pre-established query model, wherein the one or more pointers carry pointer information corresponding to each pointer, and the query model is pre-established according to multiple historical trace header keywords and query sequence data of seismic data;
[0040] Step 103: query the seismic data according to one or more pointers corresponding to the group of trace header keywords.
[0041] Depend on Figure 1As shown, it can be known that the embodiment of the present invention obtains a group of header keywords of seismic data and the query condition data corresponding to each header keyword in the group of header keywords; determines one or more pointers corresponding to the group of header keywords according to the query condition data corresponding to each header keyword in the group of header keywords and a pre-established query model, wherein the one or more pointers carry pointer information corresponding to each pointer, and the query model is pre-established according to multiple historical header keywords and query sequence data of seismic data; and queries seismic data according to the one or more pointers corresponding to the group of header keywords. The embodiment of the present invention determines one or more pointers corresponding to the group of header keywords according to the query condition data corresponding to each header keyword in a group of header keywords and a pre-established query model, and then queries seismic data according to the determined pointers, which effectively narrows the scanning range of the query, can quickly query seismic data in a multi-dimensional range, avoids accessing a large amount of redundant data during the query process, improves query efficiency, and optimizes user experience.
[0042] During specific implementation, a group of trace header keywords of seismic data and query condition data corresponding to each trace header keyword in the group of trace header keywords are obtained.
[0043] In the embodiment, the header keywords include any combination of shot point coordinates, detection point coordinates, number of sampling points, shot number, and track number.
[0044] In the embodiment, the query condition data corresponding to each header keyword may be one or more values, or a value range, which may be set as needed.
[0045] In a specific implementation, one or more pointers corresponding to the group of trace header keywords are determined based on the query condition data corresponding to each trace header keyword in the group of trace header keywords and a pre-established query model, wherein the one or more pointers carry pointer information corresponding to each pointer, and the query model is pre-established based on multiple historical trace header keywords and query sequence data of the seismic data; and the seismic data is queried based on the one or more pointers corresponding to the group of trace header keywords.
[0046] In an embodiment, a query model is pre-established based on multiple historical header keywords and query sequence data of seismic data, including: the query model is pre-established based on one or more B+ trees and query sequence data corresponding to each historical header keyword in the multiple historical header keywords of the seismic data.
[0047] In the embodiment, the query model is a multi-level B+ tree index structure. The multi-level B+ tree index adopts a multi-level structure, each level corresponds to a historical header keyword, and is composed of a number of independent B+ trees. The B+ tree of each level is composed of the header keyword corresponding to the level. This structure ensures that the query condition data of each header keyword can be used to search the B+ tree of the corresponding level during the query process, reducing the access to redundant data to achieve the purpose of obtaining higher query performance.
[0048] For example, Figure 2 As shown in the figure, it is a schematic diagram of a two-level B+ tree structure composed of the header keyword KeyA and the header keyword KeyB. The first level (level 0) contains a B+ tree TreeA0, which consists of all different values of KeyA in the data body (a0, a1, ..., a n-1 Each header keyword a in the leaf node of TreeA0 i There is a pointer to a second-level (level 1) B+ tree TreeB i The second layer contains n B+ trees consisting of KeyB: TreeB0, TreeB1, ..., TreeB n-1 . TreeB i The KeyB value in the data body comes from all the data that satisfy KeyA = a i The second level is the lowest level in the multi-level B+ tree. i The leaf nodes of store pointers to the corresponding positions of the data body. The pointers carry pointer information corresponding to each pointer, and the pointer information includes: the number of the seismic channel.
[0049] In the embodiment, the query model, i.e., a multi-level B+ tree index structure, has the following characteristics:
[0050] 1. The number of layers is the same as the number of header keywords;
[0051] 2. Starting from the top layer, in the order of the header keywords, each layer corresponds to a header keyword;
[0052] 3. Within each level, the index is organized into several independent B+ trees;
[0053] 4. The lower B+ tree is a subtree of the upper B+ tree, and the leaf nodes of the upper B+ tree store pointers to its sub-B+ trees;
[0054] 5. The leaf nodes of the bottom-level B+ tree store pointers to the corresponding locations of the seismic data volume;
[0055] 6. The query model, i.e., a multi-level B+ tree index structure, is a universal index structure. Compared with a single-level B+ tree, each header keyword in the query process of the multi-level B+ tree can independently determine the size of data that needs to be read in each level, thereby avoiding reading redundant data. The amount of data accessed in the whole process is less, so as to achieve more efficient query performance.
[0056] In an embodiment, the query sequence data is obtained as follows: determine an approximate value of the amount of data to be read corresponding to each preset sorting scheme in multiple preset sorting schemes; and obtain the query sequence data according to the approximate value of the amount of data to be read corresponding to each preset sorting scheme.
[0057] The inventors found that in the process of querying seismic data, the order of the header keywords used to construct the query model will greatly affect the model performance. In order to select the most suitable index structure, it is necessary to evaluate the query performance of some specific index candidate schemes (i.e., preset sorting schemes).
[0058] The concept of three-star index is proposed in the prior art. An ideal index should meet all the conditions of three-star index. The three conditions of ideal index are as follows:
[0059] 1. If a query needs to access index rows that are adjacent or close enough, then the index can be given the first star, which minimizes the size of the index data that must be scanned;
[0060] 2. If the order of the index rows is consistent with the query requirements, the index can be assigned a second star. The index query structure that meets this condition can avoid sorting operations;
[0061] 3. If the index row contains all the header keywords in the query condition, then no other read operations on the storage device are required during the index query process. Such an index can be assigned a third star.
[0062] However, in the process of selecting an index, the first star and the second star cannot always be satisfied at the same time in most cases. In order to minimize the index data read, we need to put the header keyword that can filter out the least data at the front of the index, which may cause the order of the index rows to be different from the query requirements. Therefore, the present invention proposes three preset sorting schemes as follows:
[0063] Solution A: Put the header key with the best selectivity in the row first, then add the header keys that need to be sorted in the correct order, and finally add the remaining relevant header keys in the query to the index in any order;
[0064] Solution B: Arrange the header keywords that need to be sorted in order at the front of the index slice, and then add the other relevant header keywords in the query in any order;
[0065] Solution C: Divide the query into two phases: filtering phase and scanning phase. In the filtering phase, use an index that contains only the header keywords in the row, and use the index to find all pointers to valid seismic traces. Use these pointers to build a bitmap, such as Figure 3 As shown, all valid seismic traces are marked. In the scanning phase, the index containing all trace header keywords in the sorting requirement is used to sequentially scan the leaf nodes at the bottom of the index, and all seismic trace records marked as valid in the bitmap are selected as the final result.
[0066] During the query process, the performance of the above three preset sorting schemes will change dynamically according to the characteristics of the data and query conditions. In order to select the most suitable index, an embodiment of the present invention determines the approximate value of the amount of data to be read corresponding to each preset sorting scheme in multiple preset sorting schemes; and obtains the query sequence data according to the approximate value of the amount of data to be read corresponding to each preset sorting scheme. The inventors have found that the performance of the query depends to a large extent on the amount of data to be read. Therefore, when the application performs a data query, the approximate value of the amount of data to be read (Estimated Read Size, ERS) corresponding to each preset sorting scheme in multiple preset sorting schemes is determined, and then the preset sorting scheme with the smallest ERS is selected as the query sequence data. The specific steps are as follows:
[0067] 1. In addition to the top-level B+ tree, the number of B+ trees to be searched at each level is determined based on the number of valid index items obtained in the previous level query;
[0068] 2. Estimate the number of query results at each level based on the query scope of each keyword;
[0069] 3. The node size of each B+ tree in a multi-level B+ tree is preset. The height of each layer of the B+ tree can be estimated based on the node size and the number of different values of the header keywords of each layer, and then the amount of data that needs to be read during the search process can be estimated. ERS is calculated by summing the amount of data read at each level. Since plan A needs to consider the sorting time, the dynamic index strategy will count the proportion of time occupied by sorting during the query process when executing the query statement, and calculate its average value avr_sort_ratio. Then adjust the ERS value of plan A to ERS=ERS*(1+avr_sort_ratio);
[0070] 4. Calculate the ERS values of the three solutions and compare them to get the query sequence data.
[0071] In the embodiment, the user directly submits the query conditions for selecting filtering keywords and the query conditions for sorting, without paying attention to whether solution A, solution B or solution C is used.
[0072] In the embodiment, the index selection process is hidden from the user, and the most suitable index scheme is automatically calculated for the user.
[0073] In an embodiment, a distributed index construction algorithm based on the MapReduce programming model can be used to quickly construct a multi-level B+ tree, that is, a query model, using the computing resources of multiple computing nodes. In a multi-level B+ tree, except for the top level, the B+ trees in the remaining levels are independent of each other. Therefore, the tree construction process can be divided into multiple subtasks based on the value of the first header keyword and executed concurrently. The ability to quickly and concurrently build indexes using the computing resources of multiple nodes improves the efficiency of index construction and improves the user experience of interactive applications. The process of the distributed index construction algorithm is as follows: Figure 4 As shown, the specific steps are as follows:
[0074] 1. In the Map phase, the header data is evenly divided into M data slices, each of which represents a Map task, and then these tasks are randomly assigned to each Map Worker;
[0075] 2. After receiving the Map task, the Map Worker executes the Map function to process the data slice: read all the trace headers in the data slice, and then generate a key / value pair for each seismic trace. The key is composed of the first trace header keyword of the index, and the values of the trace header keywords other than the first trace header keyword in the index are stored in the value field, and the value also contains the pointer information pointing to the seismic trace;
[0076] 3. Map Worker uses a partitioning function: hash(key) mod R to divide the locally generated key / value pairs into R groups. Each group of data belongs to a Reduce task. Then Map Worker sends each group of data to the corresponding Reduce Worker.
[0077] 4. After receiving the key / value pairs sent from each Map Worker, the Reduce Worker executes the Reduce function and builds a temporary tree locally. The top layer is organized into an ordered array, and the structure of other layers is the same as that of a complete multi-level B+ tree.
[0078] 5. After all ReduceWorker temporary trees are generated, the master process merges all temporary trees. The structure and merging process of the temporary tree are as follows: Figure 5As shown. The top-level arrays of each temporary tree are merged to create a new B+ tree, which is used as the top-level B+ tree of the multi-level B+ tree. The leaf nodes of the top-level B+ tree contain pointers to the locations of the subtrees in the lower layers, which contain information such as file identifiers and stored offsets.
[0079] In the embodiment, when the application executes a query, it is necessary to select the most appropriate query model. If the query model does not exist, the distributed index construction program is started to create the index. The system administrator configures a list of available nodes for the index construction program, and the index construction program only occupies a small part of the computing resources of each node to avoid affecting the operation of other applications.
[0080] In the embodiment, Figure 6 As shown, the top-level B+ tree is searched according to the query conditions of the corresponding header keywords to find the valid index records in the leaf nodes; then the pointer information in these index records is found to find the set of lower-level sub-B+ trees; based on the found B+ tree, the search is continued according to the query conditions of the corresponding header keywords to find the pointer information of the valid index records, and it is determined whether the node it points to is the bottom-level node. If it is not the bottom-level node, the search is continued to find the set of lower-level sub-B+ trees, otherwise the bottom-level B+ tree structure is searched according to the query conditions of the corresponding header keywords to find the earthquake data corresponding to all valid index items, and the query ends.
[0081] In the embodiment, the index is constructed by the IndexBTreeWriter class, such as Figure 7 As shown, the specific steps are as follows:
[0082] 1. Call the constructor IndexBTreeWriter(const IndexAttr&index_attr,HeadInfo*head_info) to generate an IndexBTreeWriter class;
[0083] 2. According to the query's filtering and sorting conditions, call the OpenWrite(int64_t diff_key_num) function to estimate the total number of index slices that need to be read using the three index selection schemes, and then select the most suitable index method for this query from Scheme A, Scheme B, and Scheme C;
[0084] 3. Repeatedly call the WriteOneIndex(const IndexElement&index) function to add an index slice generated by the query for each seismic data until all index slices are constructed.
[0085] In the embodiment, the multi-dimensional range query is implemented by the IndexBTreeReader class, such as Figure 8 As shown, the specific steps are as follows:
[0086] 1. Call the constructor IndexBTreeReader(const IndexAttr&index_attr,HeadInfo*head_info) to generate an IndexBTreeReader class;
[0087] 2. Call GetValidTraces(const RowFilterByKey&row_filter,std::vector<int64_t> *valid_trace_arr) function, which queries the existing multi-level B+ tree index and records all traces that meet the filter conditions in an integer vector pointer named valid_trace_arr.
[0088] In the embodiment, the same level of a multi-level B+ tree is composed of several independent B+ trees. This structure ensures that during the query process, the query conditions of each header keyword can be used to search the B+ tree of the corresponding level, reducing the access to redundant data and thus achieving higher query performance.
[0089] Based on the same inventive concept, the embodiment of the present invention also provides a multi-dimensional range query device for seismic data, as described in the following embodiments. Since the principles of solving these problems are similar to the multi-dimensional range query method for seismic data, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0090] Fig. 9 FIG. 1 is a structural diagram of a multi-dimensional range query device for seismic data in an embodiment of the present invention. Fig. 9 As shown, the device comprises:
[0091] A data acquisition module 901 is used to acquire a group of trace header keywords of seismic data and query condition data corresponding to each trace header keyword in the group of trace header keywords;
[0092] A pointer determination module 902 is used to determine one or more pointers corresponding to the group of trace header keywords according to query condition data corresponding to each trace header keyword in the group of trace header keywords and a pre-established query model, wherein the one or more pointers carry pointer information corresponding to each pointer, and the query model is pre-established according to multiple historical trace header keywords and query sequence data of seismic data;
[0093] The data query module 903 is used to query the seismic data according to one or more pointers corresponding to the group of trace header keywords.
[0094] In one embodiment, the header keywords include any combination of shot point coordinates, detection point coordinates, number of sampling points, shot number, and track number.
[0095] In one embodiment, the query sequence data is obtained as follows:
[0096] Determine an approximate value of the amount of data to be read corresponding to each preset sorting scheme in a plurality of preset sorting schemes;
[0097] The query sequence data is obtained according to the approximate value of the amount of data to be read corresponding to each preset sorting scheme.
[0098] In one embodiment, the query model is pre-established based on multiple historical header keywords and query sequence data of the seismic data, including: the query model is pre-established based on one or more B+ trees and query sequence data corresponding to each historical header keyword in the multiple historical header keywords of the seismic data.
[0099] In summary, the embodiment of the present invention obtains a group of header keywords of seismic data and query condition data corresponding to each header keyword in the group of header keywords; determines one or more pointers corresponding to the group of header keywords according to the query condition data corresponding to each header keyword in the group of header keywords and a pre-established query model, wherein the one or more pointers carry pointer information corresponding to each pointer, and the query model is pre-established according to multiple historical header keywords and query sequence data of seismic data; and queries seismic data according to the one or more pointers corresponding to the group of header keywords. The embodiment of the present invention determines one or more pointers corresponding to the group of header keywords according to the query condition data corresponding to each header keyword in a group of header keywords and a pre-established query model, and then queries seismic data according to the determined pointers, which effectively narrows the scanning range of the query, enables fast multi-dimensional range query of seismic data, avoids accessing a large amount of redundant data during the query process, improves query efficiency, and optimizes user experience.
[0100] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0101] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0102] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0103] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0104] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A multi-dimensional range query method for seismic data, characterized in that: include: Acquire a group of trace header keywords of seismic data and query condition data corresponding to each trace header keyword in the group of trace header keywords; Determine one or more pointers corresponding to the group of trace header keywords according to query condition data corresponding to each trace header keyword in the group of trace header keywords and a pre-established query model, wherein the one or more pointers carry pointer information corresponding to each pointer, and the query model is pre-established according to multiple historical trace header keywords and query sequence data of seismic data; querying seismic data according to one or more pointers corresponding to the group of trace header keywords; The query sequence data is obtained as follows: Determine an approximate value of the amount of data to be read corresponding to each preset sorting scheme in a plurality of preset sorting schemes; Obtaining query sequence data according to the approximate value of the amount of data to be read corresponding to each preset sorting scheme; The query model is pre-established based on multiple historical header keywords and query sequence data of seismic data, including: the query model is pre-established based on one or more B+ trees and query sequence data corresponding to each historical header keyword in the multiple historical header keywords of seismic data.
2. The method according to claim 1, characterized in that The header keywords include any combination of shot point coordinates, detection point coordinates, sampling point number, shot number, and track number.
3. A multi-dimensional range query device for seismic data, characterized in that: include: A data acquisition module, used for acquiring a group of trace header keywords of seismic data and query condition data corresponding to each trace header keyword in the group of trace header keywords; a pointer determination module, for determining one or more pointers corresponding to the group of trace header keywords according to query condition data corresponding to each trace header keyword in the group of trace header keywords, and a pre-established query model, wherein the one or more pointers carry pointer information corresponding to each pointer, and the query model is pre-established according to multiple historical trace header keywords and query sequence data of seismic data; A data query module, used for querying seismic data according to one or more pointers corresponding to the group of trace header keywords; The query sequence data is obtained as follows: Determine an approximate value of the amount of data to be read corresponding to each preset sorting scheme in a plurality of preset sorting schemes; Obtaining query sequence data according to the approximate value of the amount of data to be read corresponding to each preset sorting scheme; The query model is pre-established based on multiple historical header keywords and query sequence data of seismic data, including: the query model is pre-established based on one or more B+ trees and query sequence data corresponding to each historical header keyword in the multiple historical header keywords of seismic data.
4. The device according to claim 3, characterized in that The header keywords include any combination of shot point coordinates, detection point coordinates, sampling point number, shot number, and track number.
5. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 2 is implemented.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 2 is implemented.
Citation Information
Patent Citations
Profiling and inquiring method for massive database records
CN101676899A
Method for describing seismic data
CN102073727A
Indexing method applied to time sequence historical database
CN102890722A
Multidimensional database query method and apparatus
CN105550241A
Double-cache double-thread display method for seismic data
CN109343117A
