CN111027290A - Data report naming method and device, electronic equipment and storage medium - Google Patents

Data report naming method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111027290A
CN111027290A CN201911153700.3A CN201911153700A CN111027290A CN 111027290 A CN111027290 A CN 111027290A CN 201911153700 A CN201911153700 A CN 201911153700A CN 111027290 A CN111027290 A CN 111027290A
Authority
CN
China
Prior art keywords
suffix
data report
unit
preset
naming
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
CN201911153700.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.)
Beike Technology Co Ltd
Original Assignee
Beike 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 Beike Technology Co Ltd filed Critical Beike Technology Co Ltd
Priority to CN201911153700.3A priority Critical patent/CN111027290A/en
Publication of CN111027290A publication Critical patent/CN111027290A/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/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/164File meta data generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (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 application provides a data report naming method, a data report naming device, electronic equipment and a storage medium, wherein the method comprises the following steps: when a data report is generated, acquiring a suffix of the named data report in the data analysis platform; determining a suffix for naming for a currently generated data report according to a preset suffix naming rule and the acquired suffix; the named suffix determined for the currently generated data report is the suffix which does not exist in the acquired suffixes and is arranged first according to a preset suffix naming rule; naming a currently generated data report using the determined suffix. The method can enhance the readability of the data report name.

Description

Data report naming method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data report naming method and apparatus, an electronic device, and a storage medium.
Background
At present, basic information of data report creation and report on a data analysis platform is basically the same, when a user creates a report, a prompt box does not need to be popped up first and then the user enters an edit page of the report, all systems need to create a default report name for the report, and a report is globally and uniquely identified for the created report name.
The existing mode of naming the report by the self-adding rule is only to simply add a suffix, if a historical report is deleted, the report naming is discontinuous, or the mode of naming by using a purely random character string causes poor readability of the report name.
Disclosure of Invention
In view of the above, the present application provides a data report naming method, apparatus, electronic device and storage medium, which can enhance readability of data report names.
In order to solve the technical problem, the technical scheme of the application is realized as follows:
in one embodiment, a data report naming method is provided and applied to a data analysis platform, and the method comprises the following steps:
when a data report is generated, acquiring a suffix of the named data report in the data analysis platform;
determining a suffix for naming for a currently generated data report according to a preset suffix naming rule and the acquired suffix; the named suffix determined for the currently generated data report is the suffix which does not exist in the acquired suffixes and is arranged first according to a preset suffix naming rule;
naming a currently generated data report using the determined suffix.
Wherein the obtaining a suffix of a named data report in the data analysis platform comprises:
acquiring the name of a named data report in the data analysis platform;
checking the validity of the prefix of the name of the data report according to a prefix naming rule;
acquiring the name of the data report with legal prefix;
and intercepting the prefix of the name of the data report, and acquiring the suffix of the name of the data report.
Determining a suffix for naming for a currently generated data report according to a preset suffix naming rule and the acquired suffix, wherein the method comprises the following steps:
generating a first suffix according to the preset suffix naming rule, and comparing the generated first suffix with the obtained suffix; the first suffix is the suffix with the first rank in the suffixes generated according to the preset suffix naming rule;
if the acquired suffix has the same suffix as the first suffix, continuing to generate a next suffix according to the preset suffix naming rule, and comparing again;
and determining the generated suffix as the suffix of the currently generated data report until the acquired suffix does not have the suffix generated according to the preset suffix naming rule.
Determining a suffix for naming for a currently generated data report according to a preset suffix naming rule and the acquired suffix, wherein the method comprises the following steps:
determining a final position-ranked suffix in the obtained suffixes according to a preset suffix naming rule, and determining the suffix as an Mth suffix generated according to the preset suffix naming rule;
determining whether M is equal to N, if so, generating an (N + 1) th suffix according to a preset suffix naming rule, and determining the M as a suffix of a currently generated data report; otherwise, generating a first suffix according to the preset suffix naming rule, and comparing the generated first suffix with the obtained suffix; if the acquired suffix has the same suffix as the first suffix, continuing to generate a next suffix according to the preset suffix naming rule, and comparing again; determining the generated suffix as the suffix of the currently generated data report until the acquired suffix does not have the suffix generated according to the preset suffix naming rule;
wherein N is the total number of acquired suffixes; the first suffix is the suffix with the first rank in the suffixes generated according to the preset suffix naming rule.
In another embodiment, there is provided a data report naming apparatus applied to a data analysis platform, the apparatus including: the device comprises a first generating unit, an acquiring unit, a first determining unit and a naming unit;
the first generating unit is used for generating a data report;
the acquisition unit is used for acquiring a suffix of a named data report in the data analysis platform when the first generation unit generates the data report;
the first determining unit is used for determining a suffix for naming for the currently generated data report according to a preset suffix naming rule and the suffix acquired by the acquiring unit; the named suffix determined for the currently generated data report is the suffix which does not exist in the acquired suffixes and is arranged first according to a preset suffix naming rule;
the naming unit is used for naming the currently generated data report by using the suffix determined by the first determining unit.
Wherein the acquisition unit includes: the device comprises a first acquisition subunit, a verification unit, a second acquisition subunit, an interception unit and a third acquisition subunit;
the first obtaining subunit is configured to obtain a name of a named data report in the data analysis platform;
the verification unit is used for verifying the validity of the prefix of the name of the data report acquired by the first acquisition subunit according to a prefix naming rule;
the second obtaining subunit is configured to obtain a name of the data report verified by the verifying unit;
the intercepting unit is used for intercepting the prefix of the name of the data report acquired by the second acquiring subunit;
the third obtaining subunit is configured to obtain a suffix obtained by intercepting the prefix of the name of the data report by the intercepting unit.
Wherein the first determination unit includes: a second generating unit, a comparing unit and a second determining unit;
the second generating unit is used for generating a first suffix according to the preset suffix naming rule; the first suffix is the suffix with the first rank in the suffixes generated according to the preset suffix naming rule;
the comparison unit is used for comparing the first suffix generated by the second generation unit with the acquired suffix; if the acquired suffix has the same suffix as the first suffix, triggering the second generating unit to continue generating the next suffix according to the preset suffix naming rule, and comparing again;
the second determining unit is configured to determine the generated suffix as a suffix of the currently generated data report until the acquired suffix does not include a suffix generated according to the preset suffix naming rule.
Wherein the first determination unit includes: the device comprises a second determining unit, a judging unit, a second generating unit and a third determining unit;
the second determining unit is used for determining a final position-ranked suffix in the obtained suffixes according to a preset suffix naming rule and determining the suffix as an Mth suffix generated according to the preset suffix naming rule;
the judging unit is used for determining whether M is equal to N; wherein N is the total number of acquired suffixes;
the second generating unit is used for generating an (N + 1) th suffix according to a preset suffix naming rule when the judging unit determines that M is equal to N; when M is not equal to N, generating a first suffix according to the preset suffix naming rule; triggering the judging unit to compare the generated first suffix with the acquired suffix; if the acquired suffix has the same suffix as the first suffix, continuing to generate a next suffix according to the preset suffix naming rule, and triggering the judging unit again for comparison;
the third determining unit is configured to determine, when the second generating unit generates an N +1 th suffix, the N +1 th suffix as a suffix used for naming of a currently generated data report; determining the generated suffix as the suffix of the currently generated data report until the acquired suffix does not have the suffix generated according to the preset suffix naming rule; and N is the total number of the acquired suffixes, and the first suffix is the suffix with the first rank in the suffixes generated according to the preset suffix naming rule.
In another embodiment, an electronic device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the data report naming method as described when executing the program.
In another embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the data report naming method.
According to the technical scheme, in the above embodiment, a suffix is generated for the currently generated data report according to the preset suffix naming rule and the suffix of the named data report on the platform, and the named suffix determined for the currently generated data report is the suffix which does not exist in the acquired suffix and is arranged according to the preset suffix naming rule first, if the suffix is in the suffix of the named data report, that is, if the suffix is missing, the suffix padding is required. According to the scheme, when the data report is named, the suffix of the data report can be subjected to automatic bit filling, and the readability of the name of the data report is enhanced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a schematic diagram of a data report naming process in an embodiment of the present application;
FIG. 2 is a suffix of an embodiment of the present application for obtaining a named data report in a data analysis platform;
FIG. 3 is a first flowchart illustrating a process for determining a suffix for naming for a currently generated data report in accordance with an embodiment of the present application;
FIG. 4 is a second flowchart illustrating the determination of a suffix for naming for a currently generated data report in an embodiment of the present application;
FIG. 5 is a schematic diagram of an apparatus for implementing the above technique in an embodiment of the present application;
FIG. 6 is a schematic diagram of another apparatus used in the above technique in the example of the present application;
fig. 7 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements explicitly listed, but may include other steps or elements not explicitly listed or inherent to such process, method, article, or apparatus.
The technical solution of the present invention will be described in detail with specific examples. Several of the following embodiments may be combined with each other and some details of the same or similar concepts or processes may not be repeated in some embodiments.
The embodiment of the application provides a data report naming method, which is applied to a data analysis platform, and is used for generating a suffix for a currently generated data report according to a preset suffix naming rule and a named suffix of a named data report on the platform, wherein the named suffix determined for the currently generated data report is the suffix which does not exist in the acquired suffix and is arranged at the first position according to the preset suffix naming rule, and if the named suffix exists in the named data report, namely if the suffix is lacked, suffix padding is needed. According to the scheme, when the data report is named, the suffix of the data report can be subjected to automatic bit filling, and the readability of the name of the data report is enhanced.
The following describes in detail a process for implementing data report naming in an embodiment of the present application with reference to the accompanying drawings.
In the embodiment of the present application, when a data report is generated, the data report is named, and a name named for the data report is a name of the data report.
The name of the data report in the embodiment of the application is composed of a prefix and a suffix and corresponds to the naming rules of the prefix and the suffix respectively.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating a data report naming process in an embodiment of the present application. The method comprises the following specific steps:
step 101, when a data report is generated, obtaining a suffix of the named data report in the data analysis platform.
Referring to fig. 2, fig. 2 is a suffix of the embodiment of the present application for obtaining a named data report in a data analysis platform. The method comprises the following specific steps:
step 201, obtaining the name of the named data report in the data analysis platform.
During the specific implementation of the step, the list stream, namely the names of all data reports, is obtained in a stream mode; then, acquiring each value in the list by a forEach method, namely the name of each data report;
step 202, checking the validity of the prefix of the name of the data report according to a prefix naming rule.
The prefix naming rule in the embodiment of the application can be a preset fixed prefix, such as a data report and the like;
checking the validity of the prefix is to determine whether the prefix of the data report conforms to the prefix naming rule, such as comparison method, or length of character string, etc.
The step is implemented by determining that the data report name contains a prefix named according to a prefix naming rule so as to avoid that the obtained data report name is illegal or does not belong to the scope of data report naming performed by the embodiment of the application.
Step 203, obtaining the name of the data report with legal prefix.
Step 204, intercepting the prefix of the name of the data report, and acquiring the suffix of the name of the data report.
In the embodiment of the present application, the suffix of the name of the data report may be implemented by a number, and then the suffix of the name of the data report obtained after the prefix is intercepted is a data set.
Step 102, determining a suffix for naming for the currently generated data report according to a preset suffix naming rule and the acquired suffix.
Wherein the named suffix determined for the currently generated data report is the suffix which does not exist in the acquired suffixes and is arranged first according to the preset suffix naming rule.
If the preset suffix naming rule is a rule of increasing 1 from 1, if the obtained suffixes are 1, 3 and 5, the suffix which does not exist in the obtained suffixes and is arranged first according to the preset suffix naming rule is 2;
if the preset suffix naming rule is a rule that 1 is decreased from 100, if the suffixes obtained are 100, 99, 95, the suffix that is not present in the obtained suffixes and is arranged first according to the preset rear axle naming rule is 98.
In the embodiment of the present application, two implementation manners, but not limited to the following two implementation manners, are available for determining a suffix used for naming for a currently generated data report according to a preset suffix naming rule and an acquired suffix, specifically:
the first method comprises the following steps:
referring to fig. 3, fig. 3 is a schematic flow chart illustrating a first method for determining a suffix for naming for a currently generated data report according to an embodiment of the present application.
Step 301, generating a first suffix according to the preset suffix naming rule, and comparing the generated first suffix with the obtained suffix.
The first suffix is the suffix with the first rank in the suffixes generated according to the preset suffix naming rule; i.e. the suffix initially generated according to the preset rules is the first suffix here.
And step 302, if the acquired suffix has the same suffix as the first suffix, continuing to generate the next suffix according to the preset suffix naming rule, and comparing again.
Step 303, determining the generated suffix as the suffix of the currently generated data report until the acquired suffix does not have the suffix generated according to the preset suffix naming rule.
If the preset suffix naming rule is a naming rule with increment of 1, and the first suffix generated according to the preset suffix naming rule is 1, comparing the obtained suffix with 1;
assuming that the set of acquired suffixes is {1, 2, 4, 6}, the same suffix as the generated first suffix exists in the acquired suffixes, and the generation of the next suffix (second suffix) 2 is continued.
Using a comparison of 2 with the acquired suffix, determining that 2 is present in the acquired suffix, generating a next suffix (third suffix) 3 according to a preset suffix naming rule, using 3 for comparison with the acquired suffix, determining that 3 is not present in the acquired suffix, using suffix 3 as the suffix for naming of the currently generated report.
The preset suffix naming rule is incremented by 1, and in specific implementation, the preset suffix naming rule is not limited to the increment, so long as the name of the report named by the preset suffix naming rule is readable. As can be seen from the above, if data reports are deleted from the sequentially named data reports according to the preset suffix rule, padding naming is performed when the data reports are subsequently generated, so that naming of the data reports is more readable.
And the second method comprises the following steps:
referring to fig. 4, fig. 4 is a second flowchart illustrating a process for determining a suffix for naming for a currently generated data report according to an embodiment of the present application. The method comprises the following specific steps:
step 401, determining a final position-ordered suffix in the obtained suffixes according to a preset suffix naming rule, and determining the suffix as an mth suffix generated according to the preset suffix naming rule.
Wherein M is an integer greater than 0.
Step 402, determining whether M is equal to N, if yes, executing step 403; otherwise, step 405 is performed.
N is the total number of acquired suffixes and is an integer greater than 0.
Step 403, generating an N +1 th suffix according to a preset suffix naming rule, determining the N +1 th suffix as a suffix of the currently generated data report, and ending the process.
And 404, generating a first suffix according to the preset suffix naming rule, and comparing the generated first suffix with the acquired suffix.
The first suffix is the suffix with the first rank in the suffixes generated according to the preset suffix naming rule.
Step 405, if the acquired suffix has the same suffix as the first suffix, continuing to generate a next suffix according to the preset suffix naming rule, and comparing again; and determining the generated suffix as the suffix of the currently generated data report until the acquired suffix does not have the suffix generated according to the preset suffix naming rule.
If the preset suffix naming rule is a naming rule of increasing 1, assuming that the set of acquired suffixes is {1, 2, 3}, the suffix of the last rank is determined to be 3, the 3 rd suffix is determined to be generated according to the naming rule of increasing 1, and the total number of acquired suffixes is determined to be 3, then further determining that 3 is 3, and thus generating the 3+1 th suffix 4 as the suffix for naming of the currently generated data report according to the preset suffix rule.
The preset suffix naming rule is incremented by 1, and in specific implementation, the preset suffix naming rule is not limited to the increment, so long as the name of the report named by the preset suffix naming rule is readable. As can be seen from the above, if data reports are deleted from the sequentially named data reports according to the preset suffix rule, padding naming is performed when the data reports are subsequently generated, so that naming of the data reports is more readable.
In the embodiment of the application, whether the acquired suffix has a suffix which needs to be subjected to bit padding is determined firstly, if the acquired suffix does not have the suffix, the next suffix is generated directly according to a preset suffix naming rule, and when the suffix which needs to be subjected to bit padding exists, namely, the deleted data report exists, the suffix is subjected to bit padding naming according to the one-to-one comparison mode.
Step 103, naming the currently generated data report by using the determined suffix.
In the embodiment of the application, the data report is named as prefix named by a prefix naming rule and a suffix named by a preset suffix naming rule;
if the preset prefix naming rule is the default naming data report, the name of the currently generated data report is the data report + the determined suffix.
In summary, according to the present application, by obtaining the suffix of the name of the named data report and by determining that the data report generated at present is subjected to padding naming, a consecutive suffix meeting a preset suffix naming rule is generated, so that the name of the data report is readable.
And when the suffix of the named data report name is obtained, the prefix of the data report name is legally verified, and the illegal data report name is filtered out, so that the efficiency and the accuracy of naming the data report are improved.
Based on the same inventive concept, the embodiment of the application provides a data report naming device which is applied to a data analysis platform. Referring to fig. 5, fig. 5 is a schematic structural diagram of an apparatus applied to the above technology in the embodiment of the present application. The device comprises: a first generation unit 501, an acquisition unit 502, a first determination unit 503, and a naming unit 504;
a first generating unit 501 for generating a data report;
an obtaining unit 502, configured to obtain a suffix of a named data report in the data analysis platform when the first generating unit 501 generates the data report;
a first determining unit 503, configured to determine a suffix for naming for a currently generated data report according to a preset suffix naming rule and the suffix acquired by the acquiring unit 502; the named suffix determined for the currently generated data report is the suffix which does not exist in the acquired suffixes and is arranged first according to a preset suffix naming rule;
a naming unit 504 configured to name the currently generated data report using the suffix determined by the first determining unit 503.
Preferably, the obtaining unit 502 includes: a first acquisition subunit 5021, a verification unit 5022, a second acquisition subunit 5023, an interception unit 5024 and a third acquisition subunit 5025;
a first obtaining subunit 5021, configured to obtain names of named data reports in the data analysis platform;
a checking unit 5022, configured to check validity of the prefix of the name of the data report acquired by the first acquiring subunit 5021 according to a prefix naming rule;
a second obtaining subunit 5023, configured to obtain a name of the data report whose prefix verified by the verifying unit 5022 is legal;
an intercepting unit 5024, configured to intercept a prefix of the name of the data report acquired by the second acquiring subunit 5023;
a third obtaining subunit 5025, configured to obtain a suffix obtained by intercepting the prefix of the name of the data report by the intercepting unit 5024.
Preferably, the first determining unit 503 includes: a second generating unit 5031, a comparing unit 5032 and a second determining unit 5033;
a second generating unit 5031, configured to generate a first suffix according to the preset suffix naming rule; the first suffix is the suffix with the first rank in the suffixes generated according to the preset suffix naming rule;
a comparing unit 5032 for comparing the first suffix generated by the second generating unit 5031 with the acquired suffix; if the obtained suffix has the same suffix as the first suffix, the second generating unit 5031 is triggered to continue generating the next suffix according to the preset suffix naming rule, and the comparison is performed again;
a second determining unit 5033, configured to determine the suffix generated by the second generating unit 5031 as the suffix of the currently generated data report until the suffix acquired by the acquiring unit 502 does not exist in the suffix generated according to the preset suffix naming rule.
The units of the above embodiments may be integrated into one body, or may be separately deployed; may be combined into one unit or further divided into a plurality of sub-units.
Based on the same inventive concept, another data report naming device is provided in the embodiment of the present application, and is applied to a data analysis platform. Referring to fig. 6, fig. 6 is a schematic structural diagram of another apparatus applied to the above technology in the embodiment of the present application. The device comprises: a first generation unit 601, an acquisition unit 602, a first determination unit 603, and a naming unit 604;
a first generating unit 601, configured to generate a data report;
an obtaining unit 602, configured to obtain a suffix of a named data report in the data analysis platform when the first generating unit 601 generates the data report;
a first determining unit 603, configured to determine a suffix for naming for a currently generated data report according to a preset suffix naming rule and the suffix acquired by the acquiring unit 602; the named suffix determined for the currently generated data report is the suffix which does not exist in the acquired suffixes and is arranged first according to a preset suffix naming rule;
a naming unit 604 for naming the currently generated data report using the suffix determined by the first determining unit 603.
Preferably, the obtaining unit 602 includes: a first acquisition sub-unit 6021, a verification unit 6022, a second acquisition sub-unit 6023, an interception unit 6024, and a third acquisition sub-unit 6025;
a first obtaining subunit 6021, configured to obtain a name of a named data report in the data analysis platform;
a checking unit 6022, configured to check validity of the prefix of the name of the data report acquired by the first acquiring subunit 6021 according to a prefix naming rule;
a second obtaining subunit 6023, configured to obtain a name of the data report whose prefix checked by the checking unit is legal;
an intercepting unit 6024, configured to intercept a prefix of the name of the data report acquired by the second acquiring subunit 6023;
a third obtaining subunit 6025, configured to obtain a suffix obtained by intercepting the prefix of the name of the data report by the intercepting unit 6024.
Preferably, the first determining unit 603 includes: a second determination unit 6031, a determination unit 6032, a second generation unit 6033, and a third determination unit 6034;
a second determining unit 6031 configured to determine, from among the obtained suffixes, a rearmost suffix in the ranking according to a preset suffix naming rule, and determine the suffix as an M-th suffix generated according to the preset suffix naming rule;
a judgment unit 6032 configured to determine whether M is equal to N; wherein N is the total number of acquired suffixes;
a second generating unit 6033 configured to generate an N +1 th suffix according to a preset suffix naming rule when the judging unit 6032 determines that M is equal to N; when M is not equal to N, generating a first suffix according to the preset suffix naming rule; and triggers the judgment unit 6032 to compare the generated first suffix with the acquired suffix; if the acquired suffix has the same suffix as the first suffix, the next suffix is continuously generated according to the preset suffix naming rule, and the judgment unit 6032 is triggered again for comparison;
a third determination unit 6034 configured to determine, when the second generation unit 6033 generates an N +1 th suffix, the N +1 th suffix as a suffix used for naming of a currently generated data report; determining the generated suffix as the suffix of the currently generated data report until the acquired suffix does not have the suffix generated according to the preset suffix naming rule; and N is the total number of the acquired suffixes, and the first suffix is the suffix with the first rank in the suffixes generated according to the preset suffix naming rule.
The units of the above embodiments may be integrated into one body, or may be separately deployed; may be combined into one unit or further divided into a plurality of sub-units.
In another embodiment, an electronic device is also provided that includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the data report naming method when executing the program.
In another embodiment, a computer-readable storage medium is also provided having stored thereon computer instructions that, when executed by a processor, perform the steps in the data report naming method.
Fig. 7 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 7, the electronic device may include: a processor (processor)710, a communication Interface (Communications Interface)720, a memory (memory)730, and a communication bus 740, wherein the processor 710, the communication Interface 720, and the memory 730 communicate with each other via the communication bus 740. Processor 710 may call logic instructions in memory 730 to perform the following method:
when a data report is generated, acquiring a suffix of the named data report in the data analysis platform;
determining a suffix for naming for a currently generated data report according to a preset suffix naming rule and the acquired suffix; the named suffix determined for the currently generated data report is the suffix which does not exist in the acquired suffixes and is arranged first according to a preset suffix naming rule;
naming a currently generated data report using the determined suffix.
In addition, the logic instructions in the memory 730 can be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A data report naming method is applied to a data analysis platform and is characterized by comprising the following steps:
when a data report is generated, acquiring a suffix of the named data report in the data analysis platform;
determining a suffix for naming for a currently generated data report according to a preset suffix naming rule and the acquired suffix; the named suffix determined for the currently generated data report is the suffix which does not exist in the acquired suffixes and is arranged first according to a preset suffix naming rule;
naming a currently generated data report using the determined suffix.
2. The method of claim 1, wherein obtaining a suffix for a named data report in the data analysis platform comprises:
acquiring the name of a named data report in the data analysis platform;
checking the validity of the prefix of the name of the data report according to a prefix naming rule;
acquiring the name of the data report with legal prefix;
and intercepting the prefix of the name of the data report, and acquiring the suffix of the name of the data report.
3. The method according to claim 1, wherein the determining a suffix for naming for the currently generated data report according to a preset suffix naming rule and the obtained suffix comprises:
generating a first suffix according to the preset suffix naming rule, and comparing the generated first suffix with the obtained suffix; the first suffix is the suffix with the first rank in the suffixes generated according to the preset suffix naming rule;
if the acquired suffix has the same suffix as the first suffix, continuing to generate a next suffix according to the preset suffix naming rule, and comparing again;
and determining the generated suffix as the suffix of the currently generated data report until the acquired suffix does not have the suffix generated according to the preset suffix naming rule.
4. The method according to claim 1, wherein the determining a suffix for naming for the currently generated data report according to a preset suffix naming rule and the obtained suffix comprises:
determining a final position-ranked suffix in the obtained suffixes according to a preset suffix naming rule, and determining the suffix as an Mth suffix generated according to the preset suffix naming rule;
determining whether M is equal to N, if so, generating an (N + 1) th suffix according to a preset suffix naming rule, and determining the M as a suffix of a currently generated data report; otherwise, generating a first suffix according to the preset suffix naming rule, and comparing the generated first suffix with the obtained suffix; if the acquired suffix has the same suffix as the first suffix, continuing to generate a next suffix according to the preset suffix naming rule, and comparing again; determining the generated suffix as the suffix of the currently generated data report until the acquired suffix does not have the suffix generated according to the preset suffix naming rule;
wherein N is the total number of acquired suffixes; the first suffix is the suffix with the first rank in the suffixes generated according to the preset suffix naming rule.
5. A data report naming device applied to a data analysis platform is characterized by comprising: the device comprises a first generating unit, an acquiring unit, a first determining unit and a naming unit;
the first generating unit is used for generating a data report;
the acquisition unit is used for acquiring a suffix of a named data report in the data analysis platform when the first generation unit generates the data report;
the first determining unit is used for determining a suffix for naming for the currently generated data report according to a preset suffix naming rule and the suffix acquired by the acquiring unit; the named suffix determined for the currently generated data report is the suffix which does not exist in the acquired suffixes and is arranged first according to a preset suffix naming rule;
the naming unit is used for naming the currently generated data report by using the suffix determined by the first determining unit.
6. The apparatus of claim 5, wherein the obtaining unit comprises: the device comprises a first acquisition subunit, a verification unit, a second acquisition subunit, an interception unit and a third acquisition subunit;
the first obtaining subunit is configured to obtain a name of a named data report in the data analysis platform;
the verification unit is used for verifying the validity of the prefix of the name of the data report acquired by the first acquisition subunit according to a prefix naming rule;
the second obtaining subunit is configured to obtain a name of the data report verified by the verifying unit;
the intercepting unit is used for intercepting the prefix of the name of the data report acquired by the second acquiring subunit;
the third obtaining subunit is configured to obtain a suffix obtained by intercepting the prefix of the name of the data report by the intercepting unit.
7. The apparatus according to claim 5, wherein the first determining unit comprises: a second generating unit, a comparing unit and a second determining unit;
the second generating unit is used for generating a first suffix according to the preset suffix naming rule; the first suffix is the suffix with the first rank in the suffixes generated according to the preset suffix naming rule;
the comparison unit is used for comparing the first suffix generated by the second generation unit with the acquired suffix; if the acquired suffix has the same suffix as the first suffix, triggering the second generating unit to continue generating the next suffix according to the preset suffix naming rule, and comparing again;
the second determining unit is configured to determine the generated suffix as a suffix of the currently generated data report until the acquired suffix does not include a suffix generated according to the preset suffix naming rule.
8. The apparatus according to claim 5, wherein the first determining unit comprises: the device comprises a second determining unit, a judging unit, a second generating unit and a third determining unit;
the second determining unit is used for determining a final position-ranked suffix in the obtained suffixes according to a preset suffix naming rule and determining the suffix as an Mth suffix generated according to the preset suffix naming rule;
the judging unit is used for determining whether M is equal to N; wherein N is the total number of acquired suffixes;
the second generating unit is used for generating an (N + 1) th suffix according to a preset suffix naming rule when the judging unit determines that M is equal to N; when M is not equal to N, generating a first suffix according to the preset suffix naming rule; triggering the judging unit to compare the generated first suffix with the acquired suffix; if the acquired suffix has the same suffix as the first suffix, continuing to generate a next suffix according to the preset suffix naming rule, and triggering the judging unit again for comparison;
the third determining unit is configured to determine, when the second generating unit generates an N +1 th suffix, the N +1 th suffix as a suffix used for naming of a currently generated data report; determining the generated suffix as the suffix of the currently generated data report until the acquired suffix does not have the suffix generated according to the preset suffix naming rule; and N is the total number of the acquired suffixes, and the first suffix is the suffix with the first rank in the suffixes generated according to the preset suffix naming rule.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1-4 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 4.
CN201911153700.3A 2019-11-22 2019-11-22 Data report naming method and device, electronic equipment and storage medium Pending CN111027290A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911153700.3A CN111027290A (en) 2019-11-22 2019-11-22 Data report naming method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911153700.3A CN111027290A (en) 2019-11-22 2019-11-22 Data report naming method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111027290A true CN111027290A (en) 2020-04-17

Family

ID=70202026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911153700.3A Pending CN111027290A (en) 2019-11-22 2019-11-22 Data report naming method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111027290A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012014590A (en) * 2010-07-02 2012-01-19 Nikon Corp File/folder management program and device
CN103678384A (en) * 2012-09-18 2014-03-26 鸿富锦精密工业(深圳)有限公司 Sequential index generating system and sequential index generating method
CN104796354A (en) * 2014-11-19 2015-07-22 中国科学院信息工程研究所 Out-of-order data packet string matching method and system
CN105354510A (en) * 2015-10-28 2016-02-24 广东欧珀移动通信有限公司 Photo naming method and naming system
CN106789917A (en) * 2016-11-25 2017-05-31 北京百家互联科技有限公司 Data package processing method and device
CN107153618A (en) * 2016-03-02 2017-09-12 阿里巴巴集团控股有限公司 A kind of processing method and processing device of Memory Allocation
CN107341155A (en) * 2016-04-29 2017-11-10 阿里巴巴集团控股有限公司 File designation method and device
CN108804330A (en) * 2018-06-12 2018-11-13 Oppo(重庆)智能科技有限公司 Test method, device, storage medium and electronic equipment
CN109787722A (en) * 2019-01-25 2019-05-21 北京数码视讯技术有限公司 Data transmission method, device and server
CN109977373A (en) * 2019-03-28 2019-07-05 中科驭数(北京)科技有限公司 Identification number assignment method, identification number recovery method and device
CN110086850A (en) * 2019-03-19 2019-08-02 视联动力信息技术股份有限公司 A kind of processing method of file and view networking Dropbox system
CN110096889A (en) * 2019-04-18 2019-08-06 深圳前海微众银行股份有限公司 File test method, device, equipment and computer readable storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012014590A (en) * 2010-07-02 2012-01-19 Nikon Corp File/folder management program and device
CN103678384A (en) * 2012-09-18 2014-03-26 鸿富锦精密工业(深圳)有限公司 Sequential index generating system and sequential index generating method
CN104796354A (en) * 2014-11-19 2015-07-22 中国科学院信息工程研究所 Out-of-order data packet string matching method and system
CN105354510A (en) * 2015-10-28 2016-02-24 广东欧珀移动通信有限公司 Photo naming method and naming system
CN107153618A (en) * 2016-03-02 2017-09-12 阿里巴巴集团控股有限公司 A kind of processing method and processing device of Memory Allocation
CN107341155A (en) * 2016-04-29 2017-11-10 阿里巴巴集团控股有限公司 File designation method and device
CN106789917A (en) * 2016-11-25 2017-05-31 北京百家互联科技有限公司 Data package processing method and device
CN108804330A (en) * 2018-06-12 2018-11-13 Oppo(重庆)智能科技有限公司 Test method, device, storage medium and electronic equipment
CN109787722A (en) * 2019-01-25 2019-05-21 北京数码视讯技术有限公司 Data transmission method, device and server
CN110086850A (en) * 2019-03-19 2019-08-02 视联动力信息技术股份有限公司 A kind of processing method of file and view networking Dropbox system
CN109977373A (en) * 2019-03-28 2019-07-05 中科驭数(北京)科技有限公司 Identification number assignment method, identification number recovery method and device
CN110096889A (en) * 2019-04-18 2019-08-06 深圳前海微众银行股份有限公司 File test method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN107147501A (en) Timestamp processing method and processing device
CN105141605B (en) Session method, Website server and browser
CN110022315B (en) Weight management method, device and equipment in block chain type account book
CN106713370A (en) Identity authentication method, server and mobile terminal
CN110147410B (en) Data verification method, system, device and equipment in block chain type account book
CN103747013A (en) Cloud terminal login verification method and device
CN104836777B (en) Identity verification method and system
CN108234441B (en) Method, apparatus, electronic device and storage medium for determining forged access request
CN105809066B (en) The storage method and terminal of encryption data
CN105224450B (en) Concurrent testing method and device
CN104462934B (en) A kind of information processing method and electronic equipment
CN104408345A (en) Method and device for checking identity and server
CN107517121A (en) Equipment configuration method and device
CN105184559A (en) System and method for payment
CN109783287A (en) Test instruction generation method, system, terminal and medium based on configuration file
CN109165712A (en) Distributed generation method, device and computer storage medium by stages number
CN111027290A (en) Data report naming method and device, electronic equipment and storage medium
CN105792150B (en) The judgment method and device of short message verification code
CN104618112A (en) Method for verifying dynamic password of dynamic token
CN107220818B (en) Online payment method and device
CN108345508A (en) Interface calls test method and device
CN109145645B (en) Method for protecting short message verification code in android mobile phone
CN115511622A (en) Intelligent contract upgrading method, device, equipment and storage medium
CN113986747A (en) Data generation method and device, electronic equipment and storage medium
CN113407593A (en) Data sampling method and device, electronic equipment and readable storage medium

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