Freight rate data cut-off method and related equipment
By using the cooperation of high-speed storage components and real-time transaction components in the freight rate data system, the problem that the cut-off freight data in the freight rate data system cannot be updated in time is solved, and the timely processing of emergency cut-off data and the improvement of system response efficiency are achieved. .
Patent Information
- Application Number
- CN202411025792.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-09-20
AI Technical Summary
The existing freight rate data system cannot be updated in time when the freight rate data is cut off, resulting in the inability to process emergency cutoff data in a timely manner and affecting the response to transaction requests.
Introduce a high-speed storage component into the freight rate data system. The real-time transaction component searches for the target cut-off freight rate data from the high-speed storage component and compares it with the transaction freight rate data in the memory database. It filters and cuts off the same freight rate data to avoid in-memory storage. Multiple write operations in the database reduce interruption of transaction freight data.
It realizes timely processing of emergency cut-off freight data, reduces the number of write operations to the memory database, and improves the system's response efficiency and data stability.
Smart Images

Figure CN118674552A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of civil aviation, and in particular relates to a method for cutting off freight rate data and related equipment. Background Art
[0002] With the continuous development of the civil aviation industry, freight rate data has become more and more important, which has gradually increased the sensitivity of freight rate data. In particular, when erroneous freight rate data appears in the market, it is necessary to urgently cut off the erroneous freight rate data and stop the loss in time, so the emergency requirements for freight rate data are very high.
[0003] Currently, if Figure 1 As shown, the freight rate data system consists of a data processing component, a data update component and a real-time transaction component. The data processing component periodically pushes updated freight rate data to the data update component at an interval of one hour. The data update component updates the memory database of the data update component according to the updated freight rate data, and distributes the updated freight rate data to the memory database of the real-time transaction component. The real-time transaction component processes the transaction request according to the transaction freight rate data stored in the memory database of the real-time transaction component, thereby conducting transactions.
[0004] However, when the updated freight rate data includes the cut-off freight rate data, the cut-off freight rate data is also updated to the memory database of the data update component according to the above time interval. When the cut-off freight rate data has been generated but has not been updated to the memory database of the data update component, the real-time transaction component can only respond to the transaction request based on the unupdated transaction freight rate data stored in the memory database of the real-time transaction component. This makes it impossible to cut off the freight rate data that needs to be cut off in time. Summary of the invention
[0005] In view of the above problems, the present application proposes a method and related equipment for terminating freight rate data, so that the freight rate data that needs to be urgently terminated can be terminated in time. The specific scheme is as follows:
[0006] A freight rate data cut-off method is applied to a freight rate data system, wherein the freight rate data system comprises: a real-time transaction component, a high-speed storage component and a data processing component;
[0007] The method comprises:
[0008] The real-time transaction component obtains the target cut-off freight rate data corresponding to the target freight rate data identifier from the high-speed storage component in response to the transaction request, wherein the target freight rate data identifier is the freight rate data identifier carried in the transaction request, and the high-speed storage component stores the freight rate data identifier and the cut-off freight rate data having a corresponding relationship and sent in real time by the data processing component;
[0009] The real-time transaction component obtains the target transaction freight rate data corresponding to the target freight rate data identifier from the memory database of the real-time transaction component;
[0010] The real-time transaction component determines the same freight rate data in the target cut-off freight rate data and the target transaction freight rate data, and filters the same freight rate data in the memory database of the real-time transaction component to cut off the same freight rate data.
[0011] A freight rate data system, comprising: a real-time transaction component, a high-speed storage component and a data processing component;
[0012] The real-time transaction component is used to obtain, in response to a transaction request, a target cut-off freight rate data corresponding to a target freight rate data identifier from the high-speed storage component, wherein the target freight rate data identifier is a freight rate data identifier carried in the transaction request, and the high-speed storage component stores the freight rate data identifier and the cut-off freight rate data having a corresponding relationship and sent in real time by the data processing component;
[0013] The real-time transaction component is further used to obtain the target transaction freight rate data corresponding to the target freight rate data identifier from the memory database of the real-time transaction component;
[0014] The real-time transaction component is further used to determine the same freight rate data in the target cut-off freight rate data and the target transaction freight rate data, and filter the same freight rate data in the memory database of the real-time transaction component to cut off the same freight rate data.
[0015] A computer program product includes a computer program, which, when executed by a processor, implements the steps of any one of the freight rate data cutoff methods provided in the present application.
[0016] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of any one of the freight rate data cutoff methods provided in the present application.
[0017] An electronic device comprises a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of any one of the freight rate data cut-off methods provided in the present application.
[0018] Based on the above technical solution, the present application provides a method for cutting off freight rate data and related equipment, which are applied to a cut-off system for freight rate data, and the system includes a real-time transaction component, a high-speed storage component and a data processing component. The data processing component writes the cut-off freight rate data into the high-speed storage component in real time. When the real-time transaction component receives a transaction request, it first searches for the target cut-off freight rate data related to the transaction request from the high-speed storage component, then searches for the target transaction freight rate data related to the transaction request from the memory database of the real-time transaction component, and finally compares the target cut-off freight rate data with the target transaction freight rate data, filters out the same freight rate data, and filters the same freight rate data in the memory database of the real-time transaction component. In this way, when the cut-off freight rate data is included in the updated freight rate data, the cut-off freight rate data can be cut off in time, avoiding processing and trading the transaction request according to the cut-off freight rate data.
[0019] At the same time, since the write operation process will affect the use of the transaction freight data in the memory database of the real-time transaction component, the present application does not increase the push frequency of the regular freight data in the updated freight data, and writes the cut-off freight data to the high-speed storage in real time through the data processing component instead of writing it to the memory database of the real-time transaction component in real time, which greatly reduces the number of write operations on the memory database and effectively reduces the situation where the use of the transaction freight data in the memory database of the real-time transaction component is interrupted multiple times. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0021] Figure 1 A structural diagram of a freight rate data system disclosed in an embodiment of the present application;
[0022] Figure 2 A flow chart of a method for cutting off freight rate data disclosed in an embodiment of the present application;
[0023] Figure 3 A schematic diagram of the structure of another freight rate data system disclosed in an embodiment of the present application;
[0024] Figure 4 A schematic diagram of a data publishing component disclosed in an embodiment of the present application obtaining cut-off fare data published by an airline company;
[0025] Figure 5 A schematic diagram of a real-time trading component terminating the same freight rate data is disclosed for an embodiment of the present application;
[0026] Figure 6 A schematic diagram of a process of a method for a real-time transaction component to determine the same freight rate data in target cut-off freight rate data and target transaction freight rate data disclosed in an embodiment of the present application;
[0027] Figure 7 A schematic diagram of a process of converting cut-off freight rate data into a cut-off freight rate data file by a data push component disclosed in an embodiment of the present application;
[0028] Figure 8 A schematic diagram of a cut-off freight rate data file disclosed in an embodiment of the present application;
[0029] Fig. 9 This is a hardware structure block diagram of a freight rate data cutoff device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0030] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0031] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0032] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0033] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0034] In order to ensure that the freight rate data that needs to be urgently closed can be closed in time, the present application provides a method for closing the freight rate data. The following is a further detailed description of the method for closing the freight rate data provided by the present application in conjunction with the accompanying drawings and specific implementation methods.
[0035] Please see attached Figure 2 , Figure 2 A flow chart of a method for cutting off freight rate data provided in an embodiment of the present application. The method is applied to a freight rate data system, which includes a real-time transaction component, a high-speed storage component and a data processing component;
[0036] For easier understanding, please refer to Figure 3 , Figure 3 The structure diagram of a freight rate data system disclosed in the embodiment of the present application is shown in FIG. The data processing component is connected to the high-speed storage component, and the high-speed storage component is connected to the real-time transaction component.
[0037] It should be noted that the data processing component may include a data publishing component, a data pushing component and a data receiving component. The data publishing component is connected to the data pushing component, the data pushing component is connected to the data receiving component, and the data receiving component is connected to the high-speed storage component.
[0038] The method may include the following steps:
[0039] Step S101: the real-time transaction component responds to the transaction request and obtains the target cut-off freight rate data corresponding to the target freight rate data identifier from the high-speed storage component. The target freight rate data identifier is the freight rate data identifier carried in the transaction request. The high-speed storage component stores the freight rate data identifier and the cut-off freight rate data with a corresponding relationship sent by the data processing component in real time.
[0040] It should be noted that the high-speed storage component can be used to store the memory object of the freight rate data conversion, so that the memory object corresponds to the memory object used in the real-time transaction component, providing a convenient and efficient read and write interface. With the help of the freight rate data synchronization and mutual exclusion mechanism provided by the high-speed storage, the atomicity and consistency of the freight rate data operation can be guaranteed.
[0041] In this application, after receiving a transaction request, the real-time transaction component can search the high-speed storage component for the target freight rate data identifier carried in the transaction request. If found, the target cut-off freight rate data corresponding to the target freight rate data identifier is obtained from the high-speed storage component; if not found, the transaction request is processed according to the transaction freight rate processing in the memory database of the real-time transaction component to conduct the transaction.
[0042] The process of storing the freight rate data identifier and the cut-off freight rate data with corresponding relationship sent in real time by the data processing component in the high-speed storage component is as follows: first, the data publishing component can obtain the cut-off freight rate data released by the airline, and send the cut-off freight rate data to the data pushing component. Then the data pushing component can convert the cut-off freight rate data into a cut-off freight rate data file, and send the cut-off freight rate data file to the data receiving component. Finally, the data receiving component can extract the cut-off freight rate data file to obtain the cut-off freight rate data, determine the freight rate data identifier corresponding to the cut-off freight rate data based on the cut-off freight rate data, and send the cut-off freight rate data and the freight rate data identifier with corresponding relationship to the high-speed storage component for storage.
[0043] Among them, after the data publishing component can obtain the cut-off fare data released by the airline, the data publishing component verifies the various attribute values of the cut-off fare data to ensure the rationality, compliance and legality of the cut-off fare data. For example: the date field in the cut-off fare data is set to February 30, 2022, which is abnormal data and unreasonable; an airline has released a cut-off fare data for other airlines, which is malicious data and non-compliant; the airfare field in the cut-off fare data is set to "abc", the data type does not match, and it is illegal. After verification, the data is persisted and sent to the data push component.
[0044] The data push component supports real-time monitoring and receiving of cut-off freight rate data. It can group the cut-off freight rate data according to its category, and then generate a cut-off freight rate data file according to the corresponding data file template for the grouped cut-off freight rate data, and push it to the data receiving component in real time.
[0045] After the data push component converts the cut-off freight rate data into a cut-off freight rate data file, the data push component can calculate the MD5 code of the cut-off freight rate data file according to the MD5 algorithm and the cut-off freight rate data file, and send the MD5 code of the cut-off freight rate data file to the data receiving component. The data receiving component verifies the cut-off freight rate data file according to the MD5 code of the cut-off freight rate data file to determine whether the cut-off freight rate data file is complete.
[0046] If the cut-off freight rate data file is complete, the data receiving component can extract the cut-off freight rate data file to obtain the cut-off freight rate data. Based on the cut-off freight rate data, determine the freight rate data identifier corresponding to the cut-off freight rate data, pre-process the cut-off freight rate data and the freight rate data identifier with the corresponding relationship, and process the cut-off freight rate data and the freight rate data identifier with the corresponding relationship into the memory object used in the real-time transaction component (with the airline name + freight rate data type as the key, and the binary string as the value, and write the key and value in the form of a key-value pair to Redis), and send it to the high-speed storage component for storage.
[0047] For easier understanding, please refer to Figure 4 , Figure 4 A schematic diagram of a data publishing component disclosed in an embodiment of the present application obtaining the closing fare data released by an airline. At 1:23:56 p.m. on June 9, 2023, a common private fare and a regular fare with the private fare as the original fare can be calculated.
[0048] Step S102: the real-time transaction component obtains the target transaction freight rate data corresponding to the target freight rate data identifier from the memory database of the real-time transaction component.
[0049] In this application, the real-time transaction component is the core component of the fare data system, in which the fare calculation service can determine the target fare data identifier based on the passenger's specified itinerary, travel date, passenger identity, ticket purchase channel and other information. Then, according to the target fare data identifier, find the qualified fare, tax, agency fee, refund fee, change fee and related information in the memory database, that is, the target transaction fare data corresponding to the target fare data identifier (based on the airline name 1E and the fare data type STAFARERCVDCURRENT to form the Redis key: 1ESTAFARERCVDCURRENT).
[0050] Step S103: the real-time transaction component determines the same freight rate data in the target cut-off freight rate data and the target transaction freight rate data, and filters the same freight rate data in the memory database of the real-time transaction component to cut off the same freight rate data.
[0051] It should be noted that filtering the same freight rate data in the memory database of the real-time trading component means ignoring the same freight rate data that does not meet the conditions in the memory database and selecting the remaining data that meets the conditions. Unlike the deletion operation, filtering does not involve removing data from the memory database. In other words, the same freight rate data after filtering is still retained in the memory database, but in the subsequent processing process, these same freight rate data will be ignored.
[0052] In this application, Redis is accessed to obtain the same freight rate data, the same freight rate data binary string is copied to the C++ object memory, and the C++ object is used to filter the freight rate data in the memory data so that the same freight rate data no longer participates in the freight rate calculation process.
[0053] For easier understanding, please refer to Figure 5 , Figure 5 This is a schematic diagram of a real-time transaction component that terminates the same freight rate data disclosed in an embodiment of the present application. At 1:25:58 p.m. on June 9, 2023, the original ordinary private freight rate and the regular freight rate with this private freight rate as the original freight rate cannot be calculated.
[0054] In summary, the present application provides a method for cutting off freight rate data, which is applied to a cut-off system for freight rate data, and the system includes a real-time transaction component, a high-speed storage component and a data processing component. The data processing component writes the cut-off freight rate data into the high-speed storage component in real time. When the real-time transaction component receives a transaction request, it first searches for the target cut-off freight rate data related to the transaction request from the high-speed storage component, then searches for the target transaction freight rate data related to the transaction request from the memory database of the real-time transaction component, and finally compares the target cut-off freight rate data with the target transaction freight rate data, filters out the same freight rate data, and filters the same freight rate data in the memory database of the real-time transaction component. In this way, when the cut-off freight rate data is included in the updated freight rate data, the cut-off freight rate data can be cut off in time, avoiding processing and trading the transaction request according to the cut-off freight rate data.
[0055] At the same time, since the write operation process will affect the use of the transaction freight data in the memory database of the real-time transaction component, the present application does not increase the push frequency of the regular freight data in the updated freight data, and writes the cut-off freight data to the high-speed storage in real time through the data processing component instead of writing it to the memory database of the real-time transaction component in real time, which greatly reduces the number of write operations on the memory database and effectively reduces the situation where the use of the transaction freight data in the memory database of the real-time transaction component is interrupted multiple times.
[0056] Furthermore, the method for cutting off the freight rate data may further include step S104.
[0057] Step S104: After the real-time transaction component's memory database periodically updates the freight rate data identifiers and the cut-off freight rate data with corresponding relationships, the high-speed storage component deletes the freight rate data identifiers and the cut-off freight rate data with corresponding relationships in the memory database of the real-time transaction component.
[0058] It should be noted that, when writing a memory object to a high-speed storage component, the life cycle of the memory object can be set, and the cut-off freight rate data that exceeds the life cycle can be regularly cleared.
[0059] In the present application, in addition to realizing the data link of freight rate data cutoff through the high-speed storage component, there is also a data link of freight rate data cutoff that is realized by periodically updating the freight rate data identifier and cutoff freight rate data with corresponding relationship in the memory database of the real-time transaction component through the data update component. At this time, the cutoff freight rate data has been cutoff and written into the memory database, and the cutoff freight rate data in the high-speed storage component is no longer effective. When the life cycle of the cutoff freight rate data ends, the high-speed storage component can delete the freight rate data identifier and cutoff freight rate data with corresponding relationship in the memory database of the real-time transaction component, thereby avoiding the impact of data deposition on system performance.
[0060] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0061] Based on the above-mentioned embodiment disclosed in the present application, in another embodiment of the present application, a specific implementation method for determining the same freight rate data in the target cut-off freight rate data and the target transaction freight rate data by the real-time transaction component is described in detail.
[0062] As an example of an implementation method, please see the attached Figure 6 , is a process diagram of a method disclosed in the present application for determining the same freight rate data in the target cut-off freight rate data and the target transaction freight rate data by a real-time transaction component. The method may include the following steps:
[0063] Step S201: The real-time transaction component obtains the unique number of the target cut-off freight rate data and the unique number of the target transaction freight rate data.
[0064] It should be noted that the number is a unique identifier of the freight rate data. The target cut-off freight rate data includes a plurality of cut-off freight rate data with different numbers, and the target transaction freight rate data includes a plurality of transaction freight rate data with different numbers.
[0065] Step S202: the real-time transaction component determines the same unique number between the unique number of the target cut-off freight rate data and the unique number of the target transaction freight rate data.
[0066] In the present application, the real-time transaction component can determine which freight rate data of the target cut-off freight rate data and the target transaction freight rate data match by comparing the unique number of the target cut-off freight rate data with the unique number of the target transaction freight rate data.
[0067] Step S203: the real-time transaction component determines the freight rate data corresponding to the same unique number as the same freight rate data in the target cut-off freight rate data and the target transaction freight rate data.
[0068] In the present application, the real-time transaction component may regard the freight rate data that matches the target cut-off freight rate data and the target transaction freight rate data as the same freight rate data.
[0069] On the basis of the above-mentioned embodiment disclosed in the present application, in another embodiment of the present application, a specific implementation manner of converting the cut-off freight rate data into a cut-off freight rate data file by the data push component is described in detail.
[0070] As an example of an implementation method, please see the attached Figure 7 , is a process diagram of a method disclosed in the present application for a data push component to convert cut-off freight rate data into a cut-off freight rate data file. The method may include the following steps:
[0071] Step S301: The data push component obtains the category of the cut-off freight rate data.
[0072] In the present application, there are multiple categories of cut-off freight rate data, such as private freight rates, regular freight rates, etc. The category of the cut-off freight rate data can be obtained according to the content of the cut-off freight rate data.
[0073] It should be noted that private fares refer to passenger fare data that carriers selectively provide to specific organizations or individuals based on agreements signed with them, and are not publicly released or sold to the public; rule-based fares refer to new fare data constructed by using rule data, and can also be generated based on rule restrictions.
[0074] Step S302: the data push component determines a target data file template from a plurality of preset data file templates, and the category of the target data file template is consistent with the category of the cut-off freight rate data.
[0075] It should be noted that different categories of cut-off freight rate data have their own data file templates, which define the name, value type, start and end character positions, etc. of each field of the cut-off freight rate data.
[0076] In the present application, the data push component can determine a data file template whose category is consistent with the category of the cut-off freight rate data from a plurality of preset data file templates as the target data file template.
[0077] For ease of understanding, the preset private freight rate data file template can be specifically referred to in Table 1 as shown below:
[0078] Table 1
[0079] Step S303: the data push component converts the cut-off freight rate data into a cut-off freight rate data file according to the target data file template.
[0080] In this application, the data push component can convert the cut-off freight rate data according to the name, value type, start and end character position of each field specified in the target data file template to obtain the cut-off freight rate data file. For ease of understanding, please refer to Figure 8 , Figure 8 This is a schematic diagram of a cut-off freight rate data file disclosed in an embodiment of the present application.
[0081] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0082] Although operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order.Multitasking and parallel processing may be advantageous under certain circumstances.
[0083] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0084] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0085] The method is described in detail in the embodiments disclosed in the above application. The method of the application can be implemented in various forms of systems. Therefore, the application also discloses a freight rate data system, and a specific embodiment is given below for detailed description.
[0086] Please see attached Figure 3 , Figure 3 This is a structural diagram of a freight rate data system disclosed in an embodiment of the present application, the system comprising: a real-time transaction component, a high-speed storage component and a data processing component;
[0087] The real-time transaction component is used to obtain the target cut-off freight rate data corresponding to the target freight rate data identifier from the high-speed storage component in response to the transaction request, wherein the target freight rate data identifier is the freight rate data identifier carried in the transaction request, and the high-speed storage component stores the freight rate data identifier and the cut-off freight rate data having a corresponding relationship and sent in real time by the data processing component.
[0088] The real-time transaction component is further used to obtain the target transaction freight rate data corresponding to the target freight rate data identifier from the memory database of the real-time transaction component.
[0089] The real-time transaction component is further used to determine the same freight rate data in the target cut-off freight rate data and the target transaction freight rate data, and filter the same freight rate data in the memory database of the real-time transaction component to cut off the same freight rate data.
[0090] As an implementable embodiment, the data processing component includes: a data publishing component, a data pushing component and a data receiving component;
[0091] The data publishing component is used to obtain the cut-off fare data published by the airline company and send the cut-off fare data to the data pushing component.
[0092] The data push component is used to convert the cut-off freight rate data into a cut-off freight rate data file, and send the cut-off freight rate data file to the data receiving component.
[0093] The data receiving component is used to extract the cut-off freight rate data file to obtain the cut-off freight rate data, determine the freight rate data identifier corresponding to the cut-off freight rate data based on the cut-off freight rate data, and send the cut-off freight rate data and the freight rate data identifier having a corresponding relationship to the high-speed storage component for storage.
[0094] As an implementable embodiment, the real-time transaction component determines the same freight rate data in the target cut-off freight rate data and the target transaction freight rate data, and is specifically set as follows:
[0095] The real-time transaction component obtains the unique number of the target cut-off freight rate data and the unique number of the target transaction freight rate data;
[0096] The real-time transaction component determines the same unique number between the unique number of the target cut-off freight rate data and the unique number of the target transaction freight rate data;
[0097] The real-time transaction component determines the freight rate data corresponding to the same unique number as the same freight rate data in the target cut-off freight rate data and the target transaction freight rate data.
[0098] As an implementable embodiment, after the memory database of the real-time transaction component periodically updates the freight data identifiers and the cut-off freight data having a corresponding relationship, the high-speed storage component is also used to delete the freight data identifiers and the cut-off freight data having a corresponding relationship in the memory database of the real-time transaction component.
[0099] As an implementable method, the data push component converts the cut-off freight rate data into a cut-off freight rate data file, which is specifically configured as follows:
[0100] The data push component obtains the category of the cut-off freight rate data.
[0101] The data push component determines a target data file template from a plurality of preset data file templates, and the category of the target data file template is consistent with the category of the cut-off freight rate data.
[0102] The data push component converts the cut-off freight rate data into the cut-off freight rate data file according to the target data file template.
[0103] As an implementable embodiment, the data push component is further used to calculate the MD5 code of the cut-off freight rate data file according to the MD5 algorithm and the cut-off freight rate data file, and send the MD5 code of the cut-off freight rate data file to the data receiving component.
[0104] The data receiving component is further used to verify the cut-off freight rate data file according to the MD5 code of the cut-off freight rate data file to determine whether the cut-off freight rate data file is complete.
[0105] The data receiving component extracts the cut-off freight rate data file to obtain the cut-off freight rate data, determines the freight rate data identifier corresponding to the cut-off freight rate data based on the cut-off freight rate data, and sends the cut-off freight rate data and the freight rate data identifier having a corresponding relationship to the high-speed storage component for storage, which is specifically configured as follows:
[0106] If the cut-off freight rate data file is complete, the data receiving component extracts the cut-off freight rate data file to obtain the cut-off freight rate data, determines the freight rate data identifier corresponding to the cut-off freight rate data based on the cut-off freight rate data, and sends the cut-off freight rate data and the freight rate data identifier having a corresponding relationship to the high-speed storage component for storage.
[0107] The above-mentioned freight rate data system includes a processor and a memory. The above-mentioned real-time transaction components, high-speed storage components and data processing components are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0108] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the freight rate is determined by adjusting the kernel parameters.
[0109] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein when the program is run, any one of the freight rate data cutoff methods provided by the embodiment of the present invention is executed.
[0110] An embodiment of the present invention provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of any one of the freight rate data cutoff methods provided in the embodiments of the present invention.
[0111] An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the freight rate data cutoff methods provided in the embodiments of the present invention are implemented.
[0112] Reference Fig. 9 , Fig. 9This is a block diagram of the hardware structure of a freight rate data cut-off device provided in an embodiment of the present application. The hardware structure of the freight rate data cut-off device may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4.
[0113] In the embodiment of the present application, the number of the processor 1 , the communication interface 2 , the memory 3 , and the communication bus 4 is at least one, and the processor 1 , the communication interface 2 , and the memory 3 communicate with each other through the communication bus 4 .
[0114] The processor 1 may be a central processing unit CPU, or an application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
[0115] The memory 3 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), etc., for example, at least one disk memory.
[0116] The memory stores a program, and the processor can call the program stored in the memory, wherein the program is used for the steps of any method for cutting off freight rate data.
[0117] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 generate 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.
[0118] In a typical configuration, the device includes one or more processors (CPU), memory and bus. The device may also include input / output interface, network interface and the like.
[0119] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
[0120] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0121] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0122] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application 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 codes.
[0123] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A cut-off method for freight rate data, It is characterized in that Applied to a freight rate data system, the freight rate data system comprises: a real-time transaction component, a high-speed storage component and a data processing component; The method comprises: The real-time transaction component obtains the target cut-off freight rate data corresponding to the target freight rate data identifier from the high-speed storage component in response to the transaction request, wherein the target freight rate data identifier is the freight rate data identifier carried in the transaction request, and the high-speed storage component stores the freight rate data identifier and the cut-off freight rate data having a corresponding relationship and sent in real time by the data processing component; The real-time transaction component obtains the target transaction freight rate data corresponding to the target freight rate data identifier from the memory database of the real-time transaction component; The real-time transaction component determines the same freight rate data in the target cut-off freight rate data and the target transaction freight rate data, and filters the same freight rate data in the memory database of the real-time transaction component to cut off the same freight rate data.
2. The method for cutting off the freight rate data according to claim 1, It is characterized in that The data processing component includes: a data publishing component, a data pushing component and a data receiving component; The method further comprises: The data publishing component obtains the cut-off fare data published by the airline, and sends the cut-off fare data to the data pushing component; The data push component converts the cut-off freight rate data into a cut-off freight rate data file, and sends the cut-off freight rate data file to the data receiving component; The data receiving component extracts the cut-off freight rate data file to obtain the cut-off freight rate data, determines the freight rate data identifier corresponding to the cut-off freight rate data based on the cut-off freight rate data, and sends the cut-off freight rate data and the freight rate data identifier having a corresponding relationship to the high-speed storage component for storage.
3. The method for cutting off the freight rate data according to claim 1, It is characterized in that The real-time transaction component determines the same freight rate data in the target cut-off freight rate data and the target transaction freight rate data, including: The real-time transaction component obtains the unique number of the target cut-off freight rate data and the unique number of the target transaction freight rate data; The real-time transaction component determines the same unique number between the unique number of the target cut-off freight rate data and the unique number of the target transaction freight rate data; The real-time transaction component determines the freight rate data corresponding to the same unique number as the same freight rate data in the target cut-off freight rate data and the target transaction freight rate data.
4. The method for cutting off the freight rate data according to claim 1, It is characterized in that The method further comprises: After the memory database of the real-time transaction component periodically updates the freight rate data identifiers and the cut-off freight rate data having a corresponding relationship, the high-speed storage component deletes the freight rate data identifiers and the cut-off freight rate data having a corresponding relationship in the memory database of the real-time transaction component.
5. The method for cutting off the freight rate data according to claim 2, It is characterized in that The data push component converts the cut-off freight rate data into a cut-off freight rate data file, including: The data push component obtains the category of the cut-off freight rate data; The data push component determines a target data file template from a plurality of preset data file templates, wherein the category of the target data file template is consistent with the category of the cut-off freight rate data; The data push component converts the cut-off freight rate data into the cut-off freight rate data file according to the target data file template.
6. The method for cutting off the freight rate data according to claim 2, It is characterized in that After the data push component converts the cut-off freight rate data into a cut-off freight rate data file, the method further includes: The data push component calculates the MD5 code of the cut-off freight rate data file according to the MD5 algorithm and the cut-off freight rate data file, and sends the MD5 code of the cut-off freight rate data file to the data receiving component; The data receiving component verifies the cut-off freight rate data file according to the MD5 code of the cut-off freight rate data file to determine whether the cut-off freight rate data file is complete; The data receiving component extracts the cut-off freight rate data file to obtain the cut-off freight rate data, determines the freight rate data identifier corresponding to the cut-off freight rate data based on the cut-off freight rate data, and sends the cut-off freight rate data and the freight rate data identifier having a corresponding relationship to the high-speed storage component for storage, including: If the cut-off freight rate data file is complete, the data receiving component extracts the cut-off freight rate data file to obtain the cut-off freight rate data, determines the freight rate data identifier corresponding to the cut-off freight rate data based on the cut-off freight rate data, and sends the cut-off freight rate data and the freight rate data identifier having a corresponding relationship to the high-speed storage component for storage.
7. A freight rate data system, It is characterized in that include: Real-time transaction components, high-speed storage components, and data processing components; The real-time transaction component is used to obtain, in response to a transaction request, a target cut-off freight rate data corresponding to a target freight rate data identifier from the high-speed storage component, wherein the target freight rate data identifier is a freight rate data identifier carried in the transaction request, and the high-speed storage component stores the freight rate data identifier and the cut-off freight rate data having a corresponding relationship and sent in real time by the data processing component; The real-time transaction component is further used to obtain the target transaction freight rate data corresponding to the target freight rate data identifier from the memory database of the real-time transaction component; The real-time transaction component is further used to determine the same freight rate data in the target cut-off freight rate data and the target transaction freight rate data, and filter the same freight rate data in the memory database of the real-time transaction component to cut off the same freight rate data.
8. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method for cutting off the freight rate data described in any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method for cutting off the freight rate data described in any one of claims 1 to 6 are implemented.
10. An electronic device comprising a memory, a processor and a computer program stored in the memory, It is characterized in that The processor executes the computer program to implement the steps of the method for cutting off freight rate data according to any one of claims 1 to 6.
