Unlock instant, AI-driven research and patent intelligence for your innovation.

Queue-based data statistics method and device, computer equipment and storage medium

A data statistics and queue technology, applied in the field of data processing, can solve problems such as low accuracy of data statistics and data changes, and achieve the effect of improving accuracy and avoiding omissions

Active Publication Date: 2021-07-09
PINGAN INT SMART CITY TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, because this data statistics method counts data by running batches at regular intervals, it does not take into account changes in the state of the data, which easily leads to repeated statistics of the same data, which in turn leads to low accuracy of data statistics

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
  • Queue-based data statistics method and device, computer equipment and storage medium
  • Queue-based data statistics method and device, computer equipment and storage medium
  • Queue-based data statistics method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment approach

[0054] see image 3 , image 3 A specific implementation manner of step S2 is shown, and this embodiment includes:

[0055] S21: Encapsulating the order data to be counted into corresponding Java objects.

[0056] S22: Judging whether the queue is full, and obtaining a first judging result.

[0057] Further, if the first judgment result is that the queue is full, then wait for the elements of the queue to be dequeued, or wake up the queue of another thread, and then put the Java object into the tail of the queue.

[0058] S23: If the first judgment result is that the queue is not full, then by accessing the variable variable, put the Java objects into the tail of the queue sequentially.

[0059] Specifically, the volatile variable refers to volatile, which is used as an instruction keyword to ensure that this instruction will not be omitted due to compiler optimization, and requires direct reading of the value each time. In this embodiment, since the counter count of the F...

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 relates to the technical field of data processing, and discloses a queue-based data statistics method and device, computer equipment and a storage medium, and the method comprises the steps of packaging obtained to-be-counted order data into a Java object, putting the Java object into the tail of the queue, and if it is monitored that the order state of an element in the queue is changed, placing the elements with the changed order states in the tail of the queue again, taking the elements sequentially out from the head of the queue according to preset dequeuing time, and obtaining dequeuing elements; in a preset time interval, identifying storage information of each dequeuing element, and performing data statistics according to the storage information to obtain a data statistics result of the order state; and when a preset time interval is reached, obtaining a target statistical result. The invention also relates to a block chain technology. To-be-counted order data is stored in a block chain. According to the invention, data statistics is carried out on the order information in each order state, so that the accuracy of data statistics is improved.

Description

technical field [0001] The present application relates to the technical field of data processing, and in particular to a queue-based data statistics method, device, computer equipment and storage medium. Background technique [0002] Data statistics is the core business of many systems, but data statistics is an operation that consumes a lot of CPU resources. The existing data statistics methods use the method of running batches at regular intervals to count data, and archive and store the counted data. When querying, you can directly query the archive table. [0003] However, because this data statistics method counts data by running batches at regular intervals, it does not take into account changes in the state of the data, which easily leads to repeated statistics of the same data, which in turn leads to low accuracy of data statistics. There is an urgent need for a method that can improve the accuracy of data statistics. Contents of the invention [0004] The purpos...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/2458G06F16/2455G06F9/52G06Q30/02
CPCG06F16/2462G06F16/2455G06F9/526G06Q30/0201Y02D10/00
Inventor 周文星
Owner PINGAN INT SMART CITY TECH CO LTD