CPC G06F 16/24568 (2019.01) [G06F 16/22 (2019.01); G06F 16/2386 (2019.01); G06F 16/2456 (2019.01)] | 7 Claims |
1. A method for processing information by batch-stream fusion, comprising:
obtaining an index based on an input query statement by a client;
extracting a pre-computed index data segment based on the index as a query result by a query engine; and
extracting a re-computed index data segment to update the query result by an updating device, wherein the step of extracting the pre-computed index data segment based on the index as the query result specifically includes:
acquiring statistical information of the index by the query engine;
retrieving a pre-created index with the statistical information in an internal memory by the query engine;
positioning the pre-computed index data segment in a storage medium based on the pre-created index by the query engine;
taking the positioned pre-computed index data segment as the query result by the query engine, wherein the step of extracting the pre-computed index data segment specifically includes:
defining a pre-created index based on a predefined unified model by a pre-created index definition device;
performing pre-computation based on the pre-created index to obtain the index data segment by a pre-computation device; and
storing the statistical information of the pre-created index in an internal memory, and storing the pre-computed index data segment in the storage medium by an information storage device, wherein the step of extracting the re-computed index data segment to update the query result specifically includes:
performing re-computation in a data source based on the index, the index being divided into a batch index, a stream index and a fusion index, and the data source including a batch data source and a stream data source by the updating device;
performing re-computation through the computation engine to obtain a re-computed index data segment, the computation engine comprising the batch processing computation engine and the stream processing computation engine, and the re-computed index data segment being divided into a batch index data segment and a stream index data segment by the updating device;
storing the re-computed index data segment in the storage medium by the updating device; and extracting the re-computed index data segment in the storage medium to update the query result by the updating device.
|