CN111143407A - Data stream ordering method and device, electronic equipment and storage medium - Google Patents

Data stream ordering method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111143407A
CN111143407A CN201911089506.3A CN201911089506A CN111143407A CN 111143407 A CN111143407 A CN 111143407A CN 201911089506 A CN201911089506 A CN 201911089506A CN 111143407 A CN111143407 A CN 111143407A
Authority
CN
China
Prior art keywords
data stream
database
data
display
adjusting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911089506.3A
Other languages
Chinese (zh)
Inventor
刘均
李河金
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201911089506.3A priority Critical patent/CN111143407A/en
Publication of CN111143407A publication Critical patent/CN111143407A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24568Data stream processing; Continuous queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present application relates to the field of information processing, and in particular, to a data stream ordering method and apparatus, an electronic device, and a storage medium. The method comprises the following steps: acquiring a data stream and storing the data stream in a first database; storing the data stream in the first database into a second database according to a preset mapping relation; displaying the data stream in the second database; monitoring data stream changes in the second database and receiving display adjustment instructions; adjusting the position of the data stream display according to a display adjustment instruction and adjusting the position of the data stream in the second database; and adjusting the position of the data stream stored in the first database according to the adjusted position of the data stream in the second database, so that the data stream in the first database and the data stream in the second database keep the mapping relation. According to the technical scheme, the display sequence of the data streams can be rapidly adjusted, and the sequence of the data streams can not be disordered when the data streams are updated.

Description

Data stream ordering method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of information processing, and in particular, to a data stream ordering method and apparatus, an electronic device, and a storage medium.
Background
When the electronic equipment and other devices communicate, a data stream is obtained. Data stream for easy viewing, the electronic device displays the data stream. If the electronic device is a vehicle diagnosis device, the vehicle diagnosis device can obtain a data stream of the vehicle, namely the vehicle data stream, and the vehicle data stream provides a basis for vehicle fault diagnosis, so that maintenance personnel can know the working condition of the vehicle at any time and diagnose the fault of the vehicle in time. In the prior art, when a vehicle diagnostic device displays an automobile data stream, the automobile data stream can be displayed only according to a fixed data stream display sequence.
Therefore, how to provide a scheme for adjusting the data stream ordering is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application provides a data stream ordering method, a data stream ordering device, electronic equipment and a storage medium, and aims to solve the technical problem that existing electronic equipment can only display data streams according to a fixed sequence when displaying the data streams.
In a first aspect, the present application provides a data stream ordering method, including:
acquiring a data stream and storing the data stream in a first database;
storing the data stream in the first database into a second database according to a preset mapping relation;
displaying the data stream in the second database;
monitoring data stream changes in the second database and receiving display adjustment instructions;
adjusting the position of the data stream display according to a display adjustment instruction and adjusting the position of the data stream in the second database;
and adjusting the position of the data stream stored in the first database according to the adjusted position of the data stream in the second database, so that the data stream in the first database and the data stream in the second database keep the mapping relation.
The monitoring of the data stream change in the second database specifically includes:
and starting a monitoring thread to monitor the position change of the data stream in the second database.
Preferably, the acquiring the data stream and storing the data stream in the first database includes:
and acquiring data streams and storing the data streams in a first database according to the acquisition sequence of the data streams.
Preferably, the storing the data stream in the first database in a second database according to a preset mapping relationship includes:
and storing the data stream in the first database into a second database according to the acquisition sequence.
Preferably, the method further comprises:
distributing a first original sequence number to the data stream in the first database according to the acquisition sequence;
and distributing a second original sequence number and a display sequence number to the data stream in the second database according to the acquisition sequence, wherein the second original sequence number is equal to the first original sequence number.
Preferably, the displaying the data stream in the second database includes:
and displaying the data stream according to the sequence of the display sequence number.
Preferably, the adjusting the position of the data stream display according to the display adjustment instruction and the adjusting the position of the data stream in the second database includes:
and adjusting the position of the data stream display according to a display adjusting instruction, and adjusting the position and the display sequence number of the data stream in the second database according to the sequence of the data stream display.
Preferably, the adjusting the position of the data stream stored in the first database according to the adjusted position of the data stream in the second database includes:
and changing the storage position of the data stream of the first database according to the position of the second original sequence number, so that the mapping relation is kept between the first original sequence number of the data stream in the first database and the second original sequence number in the second database.
In a second aspect, the present application further provides a data stream sorting apparatus, including:
the acquisition module is used for acquiring a data stream and storing the data stream in a first database;
the storage module is used for storing the data stream in the first database into a second database according to a preset mapping relation;
the display module is used for displaying the data stream in the second database;
the monitoring module is used for monitoring the data stream change in the second database and receiving a display adjusting instruction;
the position adjusting module is used for adjusting the position of the data stream display according to the display adjusting instruction and adjusting the position of the data stream in the second database;
and the storage adjusting module is used for adjusting the position of the data stream stored in the first database according to the adjusted position of the data stream in the second database, so that the mapping relationship between the data stream in the first database and the data stream in the second database is maintained.
Preferably, the obtaining module is specifically configured to obtain a data stream and store the data stream in a first database according to an obtaining order of the data stream.
Preferably, the storage module is specifically configured to store the data stream in the first database in a second database according to the acquisition order.
Preferably, the data stream sorting apparatus further includes:
a first allocation module, configured to allocate a first original sequence number to the data stream in the first database according to the acquisition order;
and the second allocating module is used for allocating a second original sequence number and a display sequence number to the data stream in the second database according to the acquisition sequence, wherein the second original sequence number is equal to the first original sequence number.
Preferably, the data stream sorting apparatus further includes:
and the monitoring module is also used for starting a monitoring thread to monitor the position change of the data stream in the second database.
Preferably, the display module is specifically configured to display the data stream according to the sequence of the display sequence numbers.
Preferably, the position adjusting module is specifically configured to adjust a position of the data stream display according to a display adjustment instruction, and adjust a position and a display sequence number of the data stream in the second database according to a sequence of the data stream display.
Preferably, the storage adjusting module is specifically configured to change a storage location of the data stream of the first database according to a location of the second original sequence number, so that the first original sequence number of the data stream in the first database and the second original sequence number in the second database maintain the mapping relationship.
In a third aspect, the present application further provides an electronic device, including:
a memory for storing a data stream ordering program;
a processor, configured to implement the data stream sorting method according to the embodiment of the first aspect of the present application when executing the data stream sorting program.
In a fourth aspect, the present application further provides a storage medium, where the storage medium is a computer-readable storage medium, and a data stream sorting program is stored in the storage medium, where the data stream sorting program, when executed by a processor, implements the data stream sorting method according to the embodiment of the first aspect of the present application.
Compared with the prior art, the technical scheme provided by the application acquires the data stream and stores the data stream in the first database; storing the data stream in the first database into a second database according to a preset mapping relation; displaying the data stream in the second database; receiving a display adjustment instruction; adjusting the position of the data stream display according to a display adjustment instruction and adjusting the position of the data stream in the second database; and adjusting the position of the data stream stored in the first database according to the adjusted position of the data stream in the second database, so that the data stream in the first database and the data stream in the second database keep the mapping relation, the display sequence of the data streams can be quickly adjusted, and the data streams are not disordered when being updated.
Drawings
Fig. 1 is a flowchart of a data stream sorting method according to a first embodiment of the present application.
FIG. 2 is a schematic diagram of electronic device and vehicle communication in the present application.
FIG. 3 is a schematic diagram of the location of a data stream in a first database and in a second database before adjusting the bit values stored in the first database.
FIG. 4 is a schematic diagram illustrating the location of a data stream in a first database and a second database after adjusting the bit values of the data stream stored in the first database.
Fig. 5 is a block diagram of a data stream sorting apparatus according to a second embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic device according to a third embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the descriptions in this application referring to "first", "second", etc. are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a data stream sorting method according to a first embodiment of the present application, where the data stream sorting method can be executed by a data stream sorting apparatus, and the data stream sorting apparatus can be implemented in a hardware and/or software manner, and is used to sort displayed data streams and prevent display confusion when a subsequent data stream is updated.
The data stream ordering method can be applied to electronic equipment. The electronic equipment is capable of acquiring data streams transmitted by other devices and has a processing function. Referring to fig. 2, fig. 2 is a schematic diagram of an Electronic device acquiring a data stream, in this embodiment, the Electronic device is a vehicle diagnostic device 1, and when the vehicle diagnostic device diagnoses a vehicle 2, the vehicle diagnostic device 1 may acquire the data stream transmitted by an Electronic Control Unit (ECU) of the vehicle 2.
Referring to fig. 1, the data stream sorting method includes:
s11: a data stream is obtained and stored in a first database.
A data stream is an ordered set of data sequences of bytes with a start and an end. When acquiring the data stream, the data stream transmitted by other devices is acquired. If the electronic device is a vehicle diagnosis device, the vehicle diagnosis device acquires data of the vehicle and forms a data stream. A diagnostic program may be included in the vehicle diagnostic device that obtains a data stream from the vehicle. The acquisition of the data stream is ordered. In this application, each element in the data stream is referred to as data, i.e. the data stream comprises a plurality of data. When the data stream is acquired, the data a is acquired first, the data B is acquired second, and the data C is acquired second.
When the data stream is acquired, the data in the acquired data stream is stored in a first database. The first database is used for storing the acquired data stream. When storing the data stream, the data stream may be stored in a vector. Vector (Vector), a computer programming language term, a Vector in languages such as VB, C + +, Pascal, Python, or other programming languages, is a place to store data, similar to one-dimensional arrays and linked lists. When storing the data streams to the vectors in the first database, the data streams may be stored in the first database in the order in which they were obtained. If the data stream is acquired, the data a is acquired first, then the data B is acquired, and then the data C is acquired, when the vector in the first database stores the data stream, the data a is stored first, then the data B is stored, and then the data C is stored. Namely, acquiring a data stream and storing the data stream in a first database, comprising:
and acquiring data streams and storing the data streams in a first database according to the acquisition sequence of the data streams.
Preferably, after acquiring the data stream and storing the data stream in the first database, the method further includes:
and distributing a first original sequence number to the data stream in the first database according to the acquisition sequence.
The method comprises the steps of distributing a first original sequence number to data of a data stream in a first database according to an obtaining sequence, and distributing a first original sequence number 0 to the data A, distributing a first original sequence number 1 to the data B and distributing a first original sequence number 2 to the data C if the data A and the data B are obtained first and the data C is obtained second when the data stream is obtained. It can be understood that the first original sequence number may also use 1 as a starting sequence number, which is not limited in this application, and the first original sequence number of the data stream may be allocated according to the acquisition sequence of the data stream.
S12: and storing the data stream in the first database in a second database according to a preset mapping relation.
The vehicle diagnosis device may include a display program configured to store the data stream in the first database in the second database according to a preset mapping relationship. It will be appreciated that the diagnostic program streams the data in the first database to the display program, which is then stored. The second database stores the data stream for display, that is, when the electronic device displays the data stream, the data stream is called from the second database. When the data stream in the first database is stored in the second database, the data stream may be stored in a vector. And when the data stream is stored in the vector in the second database, storing according to a first preset mapping relation. The mapping relationship is not limited, and can be in one-to-one correspondence in sequence or staggered. In this application, storing the data stream in the first database in the second database according to a preset mapping relationship by using the mapping relationship as a corresponding relationship includes:
and storing the data stream in the first database into a second database according to the acquisition sequence.
If the data stream is acquired, the data a is acquired first, then the data B is acquired, and then the data C is acquired, when the vector in the second database stores the data stream, the data a is stored first, then the data B is stored, and then the data C is stored. That is, the storage sequence of the data stream in the second database is consistent with the storage sequence of the data stream in the first database, and the mapping relationship is a one-to-one correspondence relationship.
Preferably, after the data stream in the first database is stored in the second database according to the preset mapping relationship, the method further includes:
and distributing a second original sequence number and a display sequence number to the data stream in the second database according to the acquisition sequence, wherein the second original sequence number is equal to the first original sequence number.
The allocation manner of the second original serial number, the initial value of the display serial number, and the first original serial number is the same, and the description of the present application is omitted. It should be noted that, in the present application, the first original serial number and the second original serial number are not changed, and the display serial number is changed according to the display sequence of the data stream. The initial value of the display sequence number in the second database may be different from the second original sequence number or equal to the second original sequence number. For example, the first original serial number and the second original serial number both use 0 as the starting serial number, and the display serial number uses 1 as the starting serial number. For example, data a in a data stream has a first original sequence number of 0 in a first database, a second original sequence number of 0 when data a is stored in a second database, and a display sequence number of 1.
S13: and displaying the data stream in the second database.
The electronic device may include a display screen, and the display screen may be a touch screen, so that a user may perform a touch operation on the touch screen. The display screen is used for displaying the data stream in the second database. It will be appreciated that the display program may display the data stream. Specifically, displaying the data stream in the second database includes:
and displaying the data stream according to the sequence of the display sequence number.
For example, the display sequence number is 1 as the starting sequence number, in the data stream, the data stream in the second database includes data a, data B and data C, where the display sequence number of data a is 1, the display sequence number of data B is 2, and the display sequence number of data C is 3, when the data stream is displayed, data a is displayed in the first row, data B is displayed in the 2 nd row, and data C is displayed in the 3 rd row. Display other data and so on.
S14: monitoring the second database for changes in data flow and receiving display adjustment instructions.
Wherein monitoring for data flow changes in the second database may comprise: and starting a monitoring thread to monitor the position change of the data stream in the second database. The monitoring can be carried out in real time. The display adjustment instructions are used to adjust the position of the data stream display. The display adjustment instruction may be generated by a user operating the electronic device. Specifically, if the electronic device displays the data stream on the touch screen, the user may drag data of the data stream by operating the touch screen to generate the adjustment instruction. It is to be understood that, when the electronic device includes other control devices, such as a personal computer and a mouse, the user may also operate the mouse to generate the display adjustment command. It is to be understood that the display program, which may be an electronic device, receives the display adjustment instruction.
S15: and adjusting the position of the data stream display according to the display adjustment instruction and adjusting the position of the data stream in the second database.
When the display position of the data stream is adjusted by the display adjusting instruction, the position of the data stream in the second database is also correspondingly adjusted, so that the position of the data stream in the second database corresponds to the display position of the data stream. If the data stream in the second database includes data a, data B, and data C, where the display sequence number of data a is 1, the display sequence number of data B is 2, and the display sequence number of data C is 3, when the data stream is displayed, data a is displayed in the first row, data B is displayed in the 2 nd row, and data C is displayed in the 3 rd row. When the adjustment is performed according to the display adjustment instruction, the data A is displayed in the third row, the data C is displayed in the first row, namely, the display sequence is the data C, the data B and the data A, the position of the data stream in the second database is also adjusted, and the sequence of the data stream in the second database is also the data C, the data B and the data A. Preferably, the further adjusting the display sequence number of the data stream in the second database, that is, adjusting the display position of the data stream according to the display adjustment instruction and adjusting the position of the data stream in the second database, includes:
and adjusting the position of the data stream display according to a display adjusting instruction, and adjusting the position and the display sequence number of the data stream in the second database according to the sequence of the data stream display.
After the display adjustment instruction is received and adjusted, the display sequence is data C, data B and data A in sequence, and the sequence of the data stream in the second database is also data C, data B and data A. Before adjustment, the display sequence is data A, data B and data C in sequence, the display sequence numbers of the data C, the data B and the data A are 3, 2 and 1 in sequence, and the second original sequence numbers of the data C, the data B and the data A are 2, 1 and 0 in sequence, after adjustment, the display sequence is data C, data B and data A in sequence, according to the display sequence, the display sequence numbers of the data C, the data B and the data A are 1, 2 and 3 in sequence, and the second original sequence numbers of the data C, the data B and the data A are unchanged and are 2, 1 and 0 in sequence. It is understood that after the data C, the data B, and the data a, if other data is included, the display sequence number of the other data is not changed since the display position is not changed.
The location of the data stream in the second database is detected, so that the change of the location of the data stream in the second database can be determined in time, so that when the change of the location of the data stream in the second database is determined, step S16 is performed.
S16: and adjusting the position of the data stream stored in the first database according to the adjusted position of the data stream in the second database, so that the data stream in the first database and the data stream in the second database keep the mapping relation.
Referring to fig. 3 and 4 together, fig. 3 is a schematic diagram illustrating the position of the data stream stored in the first database before being adjusted according to the adjusted position of the data stream in the second database, and fig. 4 is a schematic diagram illustrating the position of the data stream stored in the first database after being adjusted according to the adjusted position of the data stream in the second database, where the original mapping relationship, i.e., the one-to-one correspondence relationship, is maintained. The mapping relation is maintained, so that when the data stream in the first database is stored in the second database, the storage sequence of the second database is not disordered, and the disorder of the display sequence of the data stream is not caused. If the storage sequence of the data A, the data B and the data C in the second database is the data C, the data B and the data A after adjustment according to the display adjustment instruction, when the data stream is updated, the storage sequence of the data stream in the first database is consistent with the storage sequence of the second database, namely the storage sequence of the data stream in the first database is also the data C, the data B and the data A, and the original mapping relationship, namely the one-to-one corresponding relationship, is maintained. Specifically, adjusting the position of the data stream stored in the first database according to the adjusted position of the data stream in the second database, so that the data stream in the first database and the data stream in the second database maintain the mapping relationship may include:
and changing the storage position of the data stream of the first database according to the position of the second original sequence number, so that the mapping relation is kept between the first original sequence number of the data stream in the first database and the second original sequence number in the second database.
That is, if the mapping relationship is one-to-one before the data stream is adjusted to be stored in the first database, after the adjustment, the mapping relationship between the first original sequence number and the second original sequence number is not in one-to-one correspondence, and by changing the storage sequence of the data in the data stream, the first original sequence number and the second original sequence number can be further in one-to-one correspondence. If the storage positions of the data A, the data B and the data C are the data A, the data B and the data C in sequence before the position displayed by the data stream is adjusted according to the display adjustment instruction, the storage sequence of the data in the second database is the data C, the data B and the data A in sequence after the position displayed by the data stream is adjusted according to the display adjustment instruction, the second original sequence number sequence of the data C, the data B and the data A is 3, 2, 1 in sequence, the storage sequence of the data A, the data B and the data C in the first database is the data A, the data B and the data C in sequence, the storage position of the data stream in the first database is changed, and then the storage sequence of the data A, the data B and the data C in the first database is the data C, the data B and the data A in sequence, namely the second original sequence number sequence of the data C, the data B and the data A is 3, 2 in sequence, 1, thereby keeping the original mapping relation.
In the data stream sorting method provided by this embodiment, a data stream is obtained and stored in a first database; storing the data stream in the first database into a second database according to a preset mapping relation; displaying the data stream in the second database; receiving a display adjustment instruction; adjusting the position of the data stream display according to a display adjustment instruction and adjusting the position of the data stream in the second database; and adjusting the position of the data stream stored in the first database according to the adjusted position of the data stream in the second database, so that the data stream in the first database and the data stream in the second database keep the mapping relation, the display sequence of the data streams can be quickly adjusted, and the data streams are not disordered when being updated.
Referring to fig. 5, a second embodiment of the present application provides a data stream sorting apparatus 20 for sorting displayed data streams and preventing confusion in display when subsequent data streams are updated. The data stream sorting device 20 is applied to an electronic device, and can implement the data stream sorting method of the foregoing embodiment, where the data stream sorting device 20 includes:
an obtaining module 21, configured to obtain a data stream and store the data stream in a first database;
the storage module 22 is configured to store the data stream in the first database in a second database according to a preset mapping relationship;
a display module 23, configured to display the data stream in the second database;
a monitoring module 24, configured to monitor changes in data streams in the second database and receive display adjustment instructions;
a position adjusting module 25, configured to adjust a position of the data stream display according to a display adjustment instruction and adjust a position of the data stream in the second database;
and a storage adjustment module 26, configured to adjust, according to the adjusted position of the data stream in the second database, a position where the data stream is stored in the first database, so that the data stream in the first database and the data stream in the second database maintain the mapping relationship.
The data stream sorting device provided by this embodiment obtains a data stream and stores the data stream in a first database; storing the data stream in the first database into a second database according to a preset mapping relation; displaying the data stream in the second database; receiving a display adjustment instruction; adjusting the position of the data stream display according to a display adjustment instruction and adjusting the position of the data stream in the second database; and adjusting the position of the data stream stored in the first database according to the adjusted position of the data stream in the second database, so that the data stream in the first database and the data stream in the second database keep the mapping relation, the display sequence of the data streams can be quickly adjusted, and the data streams are not disordered when being updated.
Preferably, the obtaining module 21 is specifically configured to obtain a data stream and store the data stream in a first database according to an obtaining sequence of the data stream.
Preferably, the storage module 22 is specifically configured to store the data stream in the first database in the second database according to the obtaining order.
Preferably, the data stream sorting device 20 further includes:
a first allocation module, configured to allocate a first original sequence number to the data stream in the first database according to the acquisition order;
and the second allocating module is used for allocating a second original sequence number and a display sequence number to the data stream in the second database according to the acquisition sequence, wherein the second original sequence number is equal to the first original sequence number.
Preferably, the data stream sorting device 20 further includes:
and the detection module is also used for starting a monitoring thread to monitor the position change of the data stream in the second database.
Preferably, the display module 23 is specifically configured to display the data stream according to the sequence of the display sequence numbers.
Preferably, the position adjusting module 25 is specifically configured to adjust the position of the data stream display according to the display adjustment instruction, and adjust the position and the display sequence number of the data stream in the second database according to the sequence of the data stream display.
Preferably, the storage adjusting module 26 is specifically configured to change a storage location of the data stream of the first database according to a location of the second original sequence number, so that the first original sequence number of the data stream in the first database and the second original sequence number in the second database maintain the mapping relationship.
The product can execute the method provided by any embodiment of the application, and has the corresponding functional module and the beneficial effect of the execution method.
Referring to fig. 6, a third embodiment of the present application further provides an electronic device and a storage medium, which both have the corresponding effects of the data stream sorting method provided in the foregoing embodiments of the present application.
The electronic device provided in the embodiment of the present application includes a memory 31 and a processor 32, where the memory 31 stores a data flow sorting program, and the processor 32 implements the following steps when executing the data flow sorting program stored in the memory 31:
acquiring a data stream and storing the data stream in a first database;
storing the data stream in the first database into a second database according to a preset mapping relation;
displaying the data stream in the second database;
monitoring data stream changes in the second database and receiving display adjustment instructions;
adjusting the position of the data stream display according to a display adjustment instruction and adjusting the position of the data stream in the second database;
and adjusting the position of the data stream stored in the first database according to the adjusted position of the data stream in the second database, so that the data stream in the first database and the data stream in the second database keep the mapping relation.
Preferably, the processor of the electronic device further implements the following steps when executing the data stream ordering program stored in the memory: and starting a monitoring thread to monitor the position change of the data stream in the second database.
Preferably, the processor of the electronic device further implements the following steps when executing the data stream ordering program stored in the memory: and acquiring data streams and storing the data streams in a first database according to the acquisition sequence of the data streams.
Preferably, the processor of the electronic device further implements the following steps when executing the data stream ordering program stored in the memory: and storing the data stream in the first database into a second database according to the acquisition sequence.
Preferably, the processor of the electronic device further implements the following steps when executing the data stream ordering program stored in the memory: distributing a first original sequence number to the data stream in the first database according to the acquisition sequence; and distributing a second original sequence number and a display sequence number to the data stream in the second database according to the acquisition sequence, wherein the second original sequence number is equal to the first original sequence number.
Preferably, the processor of the electronic device further implements the following steps when executing the data stream ordering program stored in the memory: and displaying the data stream according to the sequence of the display sequence number.
Preferably, the processor of the electronic device further implements the following steps when executing the data stream ordering program stored in the memory: and adjusting the position of the data stream display according to a display adjusting instruction, and adjusting the position and the display sequence number of the data stream in the second database according to the sequence of the data stream display.
Preferably, the processor of the electronic device further implements the following steps when executing the data stream ordering program stored in the memory: and changing the storage position of the data stream of the first database according to the position of the second original sequence number, so that the mapping relation is kept between the first original sequence number of the data stream in the first database and the second original sequence number in the second database.
A storage medium provided in an embodiment of the present application is a computer-readable storage medium, where a data stream sorting program is stored in the computer-readable storage medium, and when the data stream sorting program is executed by a processor, the following steps are specifically implemented:
acquiring a data stream and storing the data stream in a first database;
storing the data stream in the first database into a second database according to a preset mapping relation;
displaying the data stream in the second database;
monitoring data stream changes in the second database and receiving display adjustment instructions;
adjusting the position of the data stream display according to a display adjustment instruction and adjusting the position of the data stream in the second database;
and adjusting the position of the data stream stored in the first database according to the adjusted position of the data stream in the second database, so that the data stream in the first database and the data stream in the second database keep the mapping relation.
Preferably, the data stream ordering program stored in the computer readable storage medium, when executed by the processor, further implements the following steps: and starting a monitoring thread to monitor the position change of the data stream in the second database.
Preferably, the data stream ordering program stored in the computer readable storage medium, when executed by the processor, implements the following steps: and acquiring data streams and storing the data streams in a first database according to the acquisition sequence of the data streams.
Preferably, the data stream ordering program stored in the computer readable storage medium, when executed by the processor, implements the following steps: and storing the data stream in the first database into a second database according to the acquisition sequence.
Preferably, the data stream ordering program stored in the computer readable storage medium, when executed by the processor, implements the following steps: distributing a first original sequence number to the data stream in the first database according to the acquisition sequence; and distributing a second original sequence number and a display sequence number to the data stream in the second database according to the acquisition sequence, wherein the second original sequence number is equal to the first original sequence number.
Preferably, the data stream ordering program stored in the computer readable storage medium, when executed by the processor, implements the following steps: and displaying the data stream according to the sequence of the display sequence number.
Preferably, the data stream ordering program stored in the computer readable storage medium, when executed by the processor, implements the following steps: and adjusting the position of the data stream display according to a display adjusting instruction, and adjusting the position and the display sequence number of the data stream in the second database according to the sequence of the data stream display.
Preferably, the data stream ordering program stored in the computer readable storage medium, when executed by the processor, implements the following steps: and changing the storage position of the data stream of the first database according to the position of the second original sequence number, so that the mapping relation is kept between the first original sequence number of the data stream in the first database and the second original sequence number in the second database.
The computer-readable storage medium includes Random Access Memory (RAM), Memory, Read-Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, Compact disk Read-Only Memory (CD-ROM), or any other form of storage medium known in the art.
For a description of a related part in a data stream sorting method, an apparatus, an electronic device, and a storage medium provided in the embodiments of the present application, reference is made to the detailed description of the corresponding part in a data stream sorting method provided in the foregoing embodiments of the present application, and details are not repeated herein. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
The modules or units described in the embodiments of the present application may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A method of data stream ordering, the method comprising:
acquiring a data stream and storing the data stream in a first database;
storing the data stream in the first database into a second database according to a preset mapping relation;
displaying the data stream in the second database;
monitoring data stream changes in the second database and receiving display adjustment instructions;
adjusting the position of the data stream display according to a display adjustment instruction and adjusting the position of the data stream in the second database;
and adjusting the position of the data stream stored in the first database according to the adjusted position of the data stream in the second database, so that the data stream in the first database and the data stream in the second database keep the mapping relation.
2. The method of claim 1, wherein the monitoring for data flow changes in the second database specifically comprises:
and starting a monitoring thread to monitor the position change of the data stream in the second database.
3. The method of claim 1, wherein the obtaining the data stream and storing the data stream in a first database comprises:
and acquiring data streams and storing the data streams in a first database according to the acquisition sequence of the data streams.
4. The method of claim 3, wherein storing the data stream in the first database in a second database according to a preset mapping relationship comprises:
and storing the data stream in the first database into a second database according to the acquisition sequence.
5. The method of claim 4, wherein the method further comprises:
distributing a first original sequence number to the data stream in the first database according to the acquisition sequence;
and distributing a second original sequence number and a display sequence number to the data stream in the second database according to the acquisition sequence, wherein the second original sequence number is equal to the first original sequence number.
6. The method of claim 5, wherein said displaying the data stream in the second database comprises:
and displaying the data stream according to the sequence of the display sequence number.
7. The method of claim 5, wherein said adjusting the position of the display of the data stream and adjusting the position of the data stream in the second database according to the display adjustment instruction comprises:
and adjusting the position of the data stream display according to a display adjusting instruction, and adjusting the position and the display sequence number of the data stream in the second database according to the sequence of the data stream display.
8. The method of claim 7, wherein said adjusting the location at which the data stream is stored in the first database based on the adjusted location of the data stream in the second database comprises:
and changing the storage position of the data stream of the first database according to the position of the second original sequence number, so that the mapping relation is kept between the first original sequence number of the data stream in the first database and the second original sequence number in the second database.
9. A data stream ordering apparatus, characterized in that the data stream ordering apparatus comprises:
the acquisition module is used for acquiring a data stream and storing the data stream in a first database;
the storage module is used for storing the data stream in the first database into a second database according to a preset mapping relation;
the display module is used for displaying the data stream in the second database;
the monitoring module is used for monitoring the data stream change in the second database and receiving a display adjusting instruction;
the position adjusting module is used for adjusting the position of the data stream display according to the display adjusting instruction and adjusting the position of the data stream in the second database;
and the storage adjusting module is used for adjusting the position of the data stream stored in the first database according to the adjusted position of the data stream in the second database, so that the mapping relationship between the data stream in the first database and the data stream in the second database is maintained.
10. An electronic device, characterized in that the electronic device comprises:
a memory for storing a data stream ordering program;
a processor for implementing the data stream ordering method of any one of claims 1 to 8 when executing the data stream ordering program.
CN201911089506.3A 2019-11-08 2019-11-08 Data stream ordering method and device, electronic equipment and storage medium Pending CN111143407A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911089506.3A CN111143407A (en) 2019-11-08 2019-11-08 Data stream ordering method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911089506.3A CN111143407A (en) 2019-11-08 2019-11-08 Data stream ordering method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111143407A true CN111143407A (en) 2020-05-12

Family

ID=70517063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911089506.3A Pending CN111143407A (en) 2019-11-08 2019-11-08 Data stream ordering method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111143407A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114283749A (en) * 2021-12-30 2022-04-05 京东方科技集团股份有限公司 Source driver, display panel, display device and data driving method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090182779A1 (en) * 2008-01-15 2009-07-16 At&T Services, Inc. Complex dependencies for efficient data warehouse updates
CN102023979A (en) * 2009-09-09 2011-04-20 中国工商银行股份有限公司 Meta-data management method and system
CN103222243A (en) * 2012-12-05 2013-07-24 华为技术有限公司 Data processing method and apparatus
CN107895049A (en) * 2017-12-05 2018-04-10 泰康保险集团股份有限公司 Data processing method and device, computer-readable recording medium, electronic equipment
CN108521798A (en) * 2018-04-25 2018-09-11 深圳市元征软件开发有限公司 Car data stream display methods, system and automotive diagnostic installation
CN109272426A (en) * 2018-08-02 2019-01-25 温军华 A kind of seating plan method of adjustment and its device based on data interchange

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090182779A1 (en) * 2008-01-15 2009-07-16 At&T Services, Inc. Complex dependencies for efficient data warehouse updates
CN102023979A (en) * 2009-09-09 2011-04-20 中国工商银行股份有限公司 Meta-data management method and system
CN103222243A (en) * 2012-12-05 2013-07-24 华为技术有限公司 Data processing method and apparatus
CN107895049A (en) * 2017-12-05 2018-04-10 泰康保险集团股份有限公司 Data processing method and device, computer-readable recording medium, electronic equipment
CN108521798A (en) * 2018-04-25 2018-09-11 深圳市元征软件开发有限公司 Car data stream display methods, system and automotive diagnostic installation
CN109272426A (en) * 2018-08-02 2019-01-25 温军华 A kind of seating plan method of adjustment and its device based on data interchange

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114283749A (en) * 2021-12-30 2022-04-05 京东方科技集团股份有限公司 Source driver, display panel, display device and data driving method
CN114283749B (en) * 2021-12-30 2023-07-21 京东方科技集团股份有限公司 Source driver, display panel, display device and data driving method

Similar Documents

Publication Publication Date Title
US7835581B2 (en) Neurophysiologically driven high speed image triage system and method
RU2716743C1 (en) Method of recognizing and displaying operator access to objects of process, as well as operator system
JP2007249312A (en) Field equipment management device and method
US20110153079A1 (en) Apparatus and method for distributing and monitoring robot application and robot driven thereby
CA2965283C (en) Systems and methods of subject state change notification
DE112019003871T5 (en) Center device, display device, identification result display system for a vehicle state, identification result transmission program for a vehicle state, and identification result display program for a vehicle state
JP2020021135A5 (en) Center device, vehicle state specific result display system, vehicle state specific result transmission program, and vehicle state specific result transmission method
CN111143407A (en) Data stream ordering method and device, electronic equipment and storage medium
CN111736539B (en) Monitoring data display method, device, system, server and storage medium
JP2020081280A5 (en) Image display control system, image display system, image analysis device, image display control program and image display control method
CN110730200B (en) Device with operator server and operator client
US20160072682A1 (en) Device for managing and configuring field devices in an automation installation
CN111104424A (en) Data stream display method and device, electronic equipment and storage medium
DE112013006758T5 (en) Engineering Tool
CN109269628B (en) Method for monitoring motor vibration, terminal device and computer readable storage medium
JP2016021248A5 (en) Diagnosis support apparatus, diagnosis support system, diagnosis support method, and program
CN110413643A (en) Data query method and apparatus
WO2020127285A1 (en) Method and device for determining segments in received time series data of a system component
CN111247491A (en) Method for operating an agricultural apparatus and assembly comprising an agricultural apparatus
US20090136098A1 (en) Context sensitive pacing for effective rapid serial visual presentation
EP2750913B1 (en) Method for operating a control device for a display of a vehicle and respectively operating control device
JP2021009644A (en) Display apparatus and display method
JP5585853B2 (en) Monitoring status display device, monitoring status display method, and monitoring status display program
JP4197466B2 (en) How to display process event occurrence history
US20240129637A1 (en) Display screen flicker detection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination