WO2019174190A1 - Method for importing data back, apparatus, computer device and storage medium - Google Patents

Method for importing data back, apparatus, computer device and storage medium Download PDF

Info

Publication number
WO2019174190A1
WO2019174190A1 PCT/CN2018/102607 CN2018102607W WO2019174190A1 WO 2019174190 A1 WO2019174190 A1 WO 2019174190A1 CN 2018102607 W CN2018102607 W CN 2018102607W WO 2019174190 A1 WO2019174190 A1 WO 2019174190A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
service identifier
sub
segment
data
Prior art date
Application number
PCT/CN2018/102607
Other languages
French (fr)
Chinese (zh)
Inventor
陈健鹏
罗云
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019174190A1 publication Critical patent/WO2019174190A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases

Definitions

  • the service ID configured on the Hadoop server including the following identifiers:

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

A method for importing data back, an apparatus, a computer device and a storage medium. The method comprises: acquiring a current year and a current month which generated business data in a Hadoop server, and a business identification configured in the Hadoop server (S101); creating a table name according to a combination of the current year and the current month of the business data (S102); creating a dynamic table in a MongoDB database server according to the table name, acquiring a creating date of the dynamic table, and acquiring an inheriting class corresponding to the business identification configured in the Hadoop server; and performing corresponding operation on the business data according to the type of the inheriting class and filling in the dynamic table (S103). According to the method, a Hadoop server does not need to call a Java program in a MongoDB database across a wide-area domain, but only needs to import a business identification to the MongoDB database to realize data operations corresponding to the business identification, thereby avoiding the problem of data operation timeout.

Description

数据回导方法、装置、计算机设备及存储介质Data return method, device, computer device and storage medium
本申请要求于2018年3月15日提交中国专利局、申请号为201810214182.0、申请名称为“数据回导方法、装置、计算机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application filed on March 15, 2018, the Chinese Patent Office, Application No. 201101214182.0, the application of the name of "data-returning method, device, computer equipment and storage medium", the entire contents of which are incorporated by reference. Combined in this application.
技术领域Technical field
本申请涉及数据库数据管理技术领域,尤其涉及一种数据回导方法、装置、计算机设备及存储介质。The present application relates to the field of database data management technologies, and in particular, to a data return method, device, computer device, and storage medium.
背景技术Background technique
目前,Hadoop服务器(Hadoop服务器是一个分布式文件系统服务器)和MongoDB数据库服务器(MongoDB据库服务器是一个分布式文档存储数据库)一般是分布在不同的城市或省份。当需要通过Hadoop服务器对MongoDB数据库服务器中的历史数据(如1年前的数据)进行删除时,常采用的方法是Hadoop跨广域网调用MongoDB数据库中的Java程序,以实现对历史数据的删除,但是上述方式容易导致大量的超时,导致数据删除和更新的效率低下。Currently, Hadoop servers (Hadoop servers are a distributed file system server) and MongoDB database servers (MongoDB database servers are a distributed document storage database) are generally distributed in different cities or provinces. When it is necessary to delete historical data (such as data from a year ago) in the MongoDB database server through the Hadoop server, the commonly used method is that Hadoop calls the Java program in the MongoDB database across the WAN to implement the deletion of historical data, but The above approach is prone to a large number of timeouts, resulting in inefficient data deletion and updating.
发明内容Summary of the invention
本申请提供了一种数据回导方法、装置、计算机设备及存储介质,旨在解决现有技术中过Hadoop服务器对MongoDB数据库服务器中的历史数据进行数据操作时,需调用MongoDB数据库中的Java程序以实现对历史数据的操作,导致超时严重问题。The present application provides a data return method, device, computer device and storage medium, and aims to solve the problem that the Java program in the MongoDB database needs to be called when the Hadoop server performs data operations on the historical data in the MongoDB database server in the prior art. In order to achieve the operation of historical data, causing serious problems with timeout.
第一方面,本申请提供了一种数据回导方法,其包括:In a first aspect, the present application provides a data homing method, including:
获取由Hadoop服务器中产生业务数据的当前年份和当前月份,及在Hadoop服务器中所配置的业务标识;Obtain the current year and current month of the business data generated by the Hadoop server, and the service identifier configured in the Hadoop server;
根据业务数据的当前年份和当前月份的组合创建表名;Create a table name based on the combination of the current year and the current month of the business data;
根据表名在MongoDB数据库服务器创建动态表,获取动态表的创建日期,及获取与在Hadoop服务器中所配置的业务标识对应的继承类,根据继承类的类 型对业务数据进行相应操作写入动态表。Create a dynamic table based on the table name in the MongoDB database server, obtain the creation date of the dynamic table, and obtain the inheritance class corresponding to the service identifier configured in the Hadoop server, and write the dynamic data to the dynamic data according to the type of the inherited class. .
第二方面,本申请提供了一种数据回导装置,其包括:In a second aspect, the present application provides a data feedback device, including:
信息获取单元,用于获取由Hadoop服务器中产生业务数据的当前年份和当前月份,及在Hadoop服务器中所配置的业务标识;An information obtaining unit, configured to acquire a current year and a current month of the service data generated by the Hadoop server, and a service identifier configured in the Hadoop server;
建表单元,用于根据业务数据的当前年份和当前月份的组合创建表名;a table unit for creating a table name according to a combination of a current year and a current month of the business data;
数据操作单元,用于根据表名在MongoDB数据库服务器创建动态表,获取动态表的创建日期,及获取与在Hadoop服务器中所配置的业务标识对应的继承类,根据继承类的类型对业务数据进行相应操作写入动态表。The data operation unit is configured to create a dynamic table according to the table name in the MongoDB database server, obtain a creation date of the dynamic table, and obtain an inheritance class corresponding to the service identifier configured in the Hadoop server, and perform business data according to the type of the inherited class. The corresponding operation is written to the dynamic table.
第三方面,本申请又提供了一种计算机设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现本申请提供的任一项所述的数据回导方法。In a third aspect, the present application further provides a computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor implementing the computer program The data return method according to any one of the preceding claims.
第四方面,本申请还提供了一种存储介质,其中所述存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行本申请提供的任一项所述的数据回导方法。In a fourth aspect, the present application also provides a storage medium, wherein the storage medium stores a computer program, the computer program comprising program instructions, the program instructions, when executed by a processor, causing the processor to execute the application The data return method of any of the provided.
本申请提供一种数据回导方法、装置、计算机设备及存储介质。该方法通过获取由Hadoop服务器中产生业务数据的当前年份和当前月份,及在Hadoop服务器中所配置的业务标识;根据业务数据的当前年份和当前月份的组合创建表名;根据表名在MongoDB数据库服务器创建动态表,获取动态表的创建日期,及获取与在Hadoop服务器中所配置的业务标识对应的继承类,根据继承类的类型对业务数据进行相应操作写入动态表。该方法实现Hadoop服务器无需跨广域调用MongoDB数据库中的Java程序,而只需向MongoDB数据库传入业务标识,就能实现与业务标识对应的数据操作,避免了数据操作超时的问题。The application provides a data return method, device, computer device and storage medium. The method obtains the current year and the current month of the service data generated by the Hadoop server, and the service identifier configured in the Hadoop server; creates a table name according to the combination of the current year and the current month of the service data; according to the table name in the MongoDB database The server creates a dynamic table, obtains the creation date of the dynamic table, and obtains an inheritance class corresponding to the service identifier configured in the Hadoop server, and writes the business data to the dynamic table according to the type of the inherited class. The method realizes that the Hadoop server does not need to call the Java program in the MongoDB database across the wide domain, but only needs to pass the service identifier to the MongoDB database, thereby realizing the data operation corresponding to the service identifier, thereby avoiding the problem of data operation timeout.
附图说明DRAWINGS
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. Obviously, the drawings in the following description are some embodiments of the present application, For the ordinary technicians, other drawings can be obtained based on these drawings without any creative work.
图1为本申请实施例提供的一种数据回导方法的示意流程图;FIG. 1 is a schematic flowchart of a data return method according to an embodiment of the present application;
图2为本申请实施例提供的一种数据回导方法的另一示意流程图;FIG. 2 is another schematic flowchart of a data return method according to an embodiment of the present disclosure;
图3为本申请实施例提供的一种数据回导方法的另一示意流程图;FIG. 3 is another schematic flowchart of a data return method according to an embodiment of the present disclosure;
图4是本申请实施例提供的一种数据回导方法的子流程示意图;4 is a schematic diagram of a sub-flow of a data return method provided by an embodiment of the present application;
图5为本申请实施例提供的一种数据回导方法的另一子流程示意图;FIG. 5 is a schematic diagram of another sub-process of a data return method according to an embodiment of the present disclosure;
图6为本申请实施例提供的一种数据回导装置的示意性框图;FIG. 6 is a schematic block diagram of a data returning apparatus according to an embodiment of the present application;
图7为本申请实施例提供的一种数据回导装置的另一示意性框图;FIG. 7 is another schematic block diagram of a data returning apparatus according to an embodiment of the present application;
图8为本申请实施例提供的一种数据回导装置的另一示意性框图;FIG. 8 is another schematic block diagram of a data returning apparatus according to an embodiment of the present disclosure;
图9为本申请实施例提供的一种数据回导装置的子单元示意性框图;FIG. 9 is a schematic block diagram of a subunit of a data returning apparatus according to an embodiment of the present disclosure;
图10为本申请实施例提供的一种数据回导装置的另一子单元示意性框图;FIG. 10 is a schematic block diagram of another subunit of a data returning apparatus according to an embodiment of the present disclosure;
图11为本申请实施例提供的一种计算机设备的示意性框图。FIG. 11 is a schematic block diagram of a computer device according to an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
请参阅图1,图1是本申请实施例提供的一种数据回导方法的示意流程图。该方法应用于台式电脑、手提电脑、平板电脑等终端中。如图1所示,该方法包括步骤S101~S103。Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a data return method provided by an embodiment of the present application. The method is applied to terminals such as desktop computers, laptop computers, and tablet computers. As shown in FIG. 1, the method includes steps S101 to S103.
S101、获取由Hadoop服务器中产生业务数据的当前年份和当前月份,及在Hadoop服务器中所配置的业务标识。S101. Obtain a current year and a current month of the service data generated by the Hadoop server, and a service identifier configured in the Hadoop server.
在本实施例中,由Java后台获取由Hadoop服务器中产生业务数据的当前年份和当前月份,及在Hadoop服务器中所配置的业务标识;Java后台是与MongoDB数据库服务器连接的、并存储有创建MongoDB集合权限程序的平台。In this embodiment, the current year and the current month of the service data generated by the Hadoop server and the service identifier configured in the Hadoop server are obtained by the Java background; the Java background is connected with the MongoDB database server, and the MongoDB is created and stored. The platform for the collection permission program.
将Hadoop服务器产生业务数据进行数据跑数、并写入MongoDB数据库服务器时,会在与Hadoop服务器远程连接的Java后台中由预先设置的指定脚本来自动获取产生业务数据的当前年份和当前月份组合创建表名,及自动获取在Hadoop服务器中所配置的业务标识。该业务标识是根据对业务数据的处理需求在Hadoop服务器中预先配置的,即业务标识可形象的看做一任务类型标识,业务标识是在Hadoop服务器将业务数据传输前就配置好的。When the Hadoop server generates business data for data running and writes to the MongoDB database server, it will automatically obtain the combination of the current year and the current month of the generated business data by a specified script set in advance in the Java background remotely connected to the Hadoop server. The name of the table, and the service ID configured on the Hadoop server is automatically obtained. The service identifier is pre-configured in the Hadoop server according to the processing requirements of the service data, that is, the service identifier can be visually regarded as a task type identifier, and the service identifier is configured before the Hadoop server transmits the service data.
由于是Hadoop服务器直接预先告知Java后台即将传输业务数据的时间区 间,以及针对该业务数据的操作类型的业务标识,也就是在业务数据传输至MongoDB数据库服务器之前,在Java后台中就可针对即将接收的业务数据对应建表、删表等准备操作。无需Hadoop服务器先跨广域调用Java后台中的Java程序对业务数据进行对应数据操作后再传输至MongoDB数据库服务器。Because it is the time interval in which the Hadoop server directly informs the Java background that the business data is about to be transmitted, and the service identifier of the operation type for the service data, that is, before the business data is transmitted to the MongoDB database server, it can be received in the Java background. The business data corresponds to the preparation of the table, the deletion of the table, and the like. It is not necessary for the Hadoop server to first call the Java program in the Java background across the wide area to perform corresponding data operations on the business data and then transfer it to the MongoDB database server.
在一实施例中,如图2所示,所述步骤S101之前还包括:In an embodiment, as shown in FIG. 2, before the step S101, the method further includes:
S101s、预先配置用于定义方法的接口类,及与接口类对应的继承类。S101s, an interface class for defining a method, and an inheritance class corresponding to the interface class.
在本实施例中,接口类用于定义方法,继承类则是实现接口类的具体方法;例如,可在Java后台中所配置的接口类可定义创建索引方法、删除索引方法、创建表方法、删除表方法、检测MongoDB表是否存在方法、重命名表方法等方法。In this embodiment, the interface class is used to define a method, and the inherited class is a specific method for implementing an interface class; for example, an interface class that can be configured in the Java background can define an index creation method, an index deletion method, a table creation method, Methods such as deleting table methods, detecting whether MongoDB tables exist, and renaming table methods.
其中,Java接口是一系列方法的声明,是一些方法特征的集合,一个接口只有方法的特征没有方法的实现,因此这些方法可以在不同的地方被不同的类实现,而这些实现可以具有不同的行为(功能)。继承是使用已存在的类的定义作为基础建立新类的技术,新类的定义可以增加新的数据或新的功能,也可以用父类的功能,但不能选择性地继承父类。也就是可以利用接口类中定义的方法,通过继承的方式来进一步细化具体实现方法。当在Java后台中预先配置接口类和继承类,就能对Hadoop服务器中所传输的业务标识进行精准识别。Among them, the Java interface is a set of method declarations, which is a collection of method features. An interface only has the method features and no method implementation, so these methods can be implemented in different places by different classes, and these implementations can have different Behavior (function). Inheritance is the technique of building a new class based on the definition of an existing class. The definition of a new class can add new data or new functions, or it can use the functionality of a parent class, but it cannot selectively inherit the parent class. That is, you can use the methods defined in the interface class to further refine the concrete implementation method through inheritance. When the interface class and the inheritance class are pre-configured in the Java background, the service identity transmitted in the Hadoop server can be accurately identified.
在一实施例中,如图3所示,所述步骤S101之后、步骤S102之前还包括:In an embodiment, as shown in FIG. 3, after the step S101 and before the step S102, the method further includes:
S101a、将当前年份和当前月份传入Java后台中指定脚本;S101a, passing the current year and the current month into the specified script in the Java background;
S101b、将Hadoop服务器中配置的业务标识传输至Java后台;S101b, transmitting the service identifier configured in the Hadoop server to the Java background;
S101c、解析业务标识,获取与业务标识对应的继承类。S101c: Parse the service identifier, and obtain an inheritance class corresponding to the service identifier.
在本实施例中,当在Hadoop服务器中启动数据库定时任务(如数据库的定时JOB)时,将Hadoop服务器产生业务数据进行数据跑数、并写入MongoDB数据库服务器时,会在与Hadoop服务器远程连接的Java后台中由指定脚本根据产生业务数据的当前年份和当前月份组合创建表名,例如XXXX201608,其中XXXX为业务数据对应的数据来源部门标识,201608表示2016年8月。In this embodiment, when the database timing task (such as the timed JOB of the database) is started in the Hadoop server, the Hadoop server generates the service data for data running and writes to the MongoDB database server, and then connects to the Hadoop server remotely. In the Java background, the specified script creates a table name based on the combination of the current year and the current month in which the business data is generated, for example, XXXX201608, where XXXX is the data source department identifier corresponding to the business data, and 201608 indicates August 2016.
Hadoop服务器中配置的业务标识,包括以下标识:The service ID configured on the Hadoop server, including the following identifiers:
reateCollection,即创建表;ReateCollection, which creates a table;
createIndexs,即创建索引;createIndexs, which creates an index;
dropCollection,即删除表;dropCollection, which deletes the table;
renameCollection,即重命名表;renameCollection, which renames the table;
当Java后台解析出业务标识后,则可以从Java后台中调用与业务标识对应的继承类。After the Java background parses the service identifier, the inheritance class corresponding to the service identifier can be called from the Java background.
而上述业务标识在具体表示时,因各自都有自定义的格式,例如createIndexs的业务标识在具体实施时,包括splitStringByIndexs(区分索引个数),splitStringByUnique(区分唯一索引),splitStringByColumn(区分列个数)这三个变量,假设When the above service identifiers are specifically represented, each has a customized format. For example, the business identifier of createIndexs includes splitStringByIndexs (the number of indexes), splitStringByUnique (distinguishes the unique index), and splitStringByColumn (the number of columns). These three variables, hypothesis
String splitStringByIndexs=″####″,String splitStringByIndexs="####",
String splitStringByUnique=″@@@@″,String splitStringByUnique="@@@@",
String splitStringByColumn=″::::″,String splitStringByColumn="::::",
则createIndexs的业务标识可表示如下:Then the business identifier of createIndexs can be expressed as follows:
aa::::bb@@@@true####cc@@@@falseAa::::bb@@@@true####cc@@@@false
即为按字段aa、bb建复合唯一索引,按字段cc建非唯一索引,Java则根据这种格式进行分割判断;其他业务标识的格式也是类似的格式,因为种类众多,此处不再赘述。That is, a composite unique index is built according to the fields aa and bb, and a non-unique index is built according to the field cc. Java performs segmentation judgment according to this format; the format of other service identifiers is also a similar format, because there are many kinds, and details are not described herein again.
通过在Java后台中解析了业务标识后,就获知了需对业务数据产生的数据操作类型,此时即避免了Hadoop服务器先跨广域调用Java后台中的Java程序对业务数据进行对应数据操作。After parsing the service identifier in the Java background, the data operation type that needs to be generated for the business data is known. At this time, the Hadoop server is prevented from first calling the Java program in the Java background across the wide area to perform corresponding data operations on the service data.
在一实施例中,如图4所示,所述步骤S101c包括以下子步骤:In an embodiment, as shown in FIG. 4, the step S101c includes the following sub-steps:
S1011c、获取与业务标识对应的字符串中所包括用于区分索引个数的第一指定字符串的个数N,并根据第一指定字符串将业务标识对应划分为N+1段,分别记为第一子业务标识段至第N+1子业务业务标识段;S1011c: Obtain a number N of the first specified character string for distinguishing the number of indexes from the character string corresponding to the service identifier, and divide the service identifier into N+1 segments according to the first specified character string, respectively The first sub-service identification segment to the N+1th sub-service service identification segment;
S1012c、分别识别第一子业务标识段至第N+1子业务业务标识段中是否存在用于区分唯一索引的第二指定字符串;S1012c, respectively, identifying whether a second designated character string for distinguishing the unique index exists in the first sub-service identifier segment to the N+1th sub-service service identifier segment;
S1013c、若未识别存在有第二指定字符串,根据对应的子业务标识段创建非唯一索引;S1013c. If the second specified character string is not identified, the non-unique index is created according to the corresponding sub-service identifier segment.
S1014c、若识别到存在有第二指定字符串,根据对应的子业务标识段创建唯一索引。S1014c: If it is recognized that the second specified character string exists, create a unique index according to the corresponding sub-service identifier segment.
即,先获取业务标识对应的字符串中所包括用于区分索引个数的第一指定字符串的个数N,并根据第一指定字符串将业务标识对应划分为N+1段,分别 记为第一子业务标识段、第二子业务业务标识段、……、第N+1子业务业务标识段;That is, the number N of the first specified character string for distinguishing the number of indexes included in the character string corresponding to the service identifier is obtained, and the service identifier is correspondingly divided into N+1 segments according to the first specified character string, respectively The first sub-service identification segment, the second sub-service service identification segment, ..., the N+1th sub-service service identification segment;
之后分别识别第一子业务标识段、第二子业务业务标识段、……、第N+1子业务业务标识段中用于区分唯一索引的第二指定字符串,若未识别存在有到第二指定字符串则将对应的子业务标识段创建非唯一索引,若识别到存在有第二指定字符串则将对应的子业务标识段创建唯一索引。可见,通过识别指定字符串,就能识别对业务数据的操作类型,从而在MongoDB数据库服务器快速创建动态表以进行针对业务数据的操作。And then identifying the second sub-service identifier segment, the second sub-service service identifier segment, ..., the second designated string in the N+1 sub-service service identifier segment for distinguishing the unique index, if not identified The second specified string creates a non-unique index for the corresponding sub-service identifier segment. If the second specified string exists, the corresponding sub-service identifier segment is created with a unique index. It can be seen that by identifying the specified string, the type of operation on the business data can be identified, thereby quickly creating a dynamic table in the MongoDB database server for operation on the business data.
例如,第一指定字符串设置为″####″,即一旦识别到业务标识中有4个连续的#字符则将其视为分段标识,根据第一指定字符串的个数N将业务标识对应划分为N+1段。第二指定字符串设置为″@@@@″,即一旦识别到业务标识中有4个连续的@字符则将其视为创建唯一索引标识,根据第二指定字符串在对应包括有@@@@的子业务标识段中创建唯一索引。For example, the first specified character string is set to "####", that is, once there are 4 consecutive # characters in the service identifier, it is regarded as a segment identifier, according to the number N of the first designated string. The service identifier is correspondingly divided into N+1 segments. The second specified string is set to "@@@@", that is, once there are 4 consecutive @ characters in the service identifier, it is regarded as creating a unique index identifier, and the corresponding designated string includes @@ Create a unique index in the @@'s child business identity segment.
在一实施例中,如图5所示,所述步骤S1014c之后还包括以下子步骤:In an embodiment, as shown in FIG. 5, the step S1014c further includes the following substeps:
S1015c、分别识别第一子业务标识段至第N+1子业务业务标识段中是否存在用于区分列个数的第三指定字符串;S1015c, respectively, whether a third specified character string for distinguishing the number of columns exists in the first sub-service identifier segment to the N+1th sub-service service identifier segment;
S1016c、若未识别存在有第三指定字符串,根据对应的子业务标识段创建非复合索引;S1016c. If the third specified character string is not identified, the non-composite index is created according to the corresponding sub-service identifier segment.
S1017c、若识别到存在有第三指定字符串,根据对应的子业务标识段创建复合索引。S1017c: If it is recognized that the third specified character string exists, create a composite index according to the corresponding sub-service identifier segment.
即,分别识别第一子业务标识段、第二子业务业务标识段、……、第N+1子业务业务标识段中用于区分列个数的第三指定字符串,若未识别存在有到第三指定字符串则将对应的子业务标识段创建非复合索引,若识别到存在有第三指定字符串则将对应的子业务标识段创建复合索引。可见,通过识别指定字符串,就能识别对业务数据的操作类型,从而在MongoDB数据库服务器快速创建动态表以进行针对业务数据的操作。That is, the third specified character string for distinguishing the number of columns in the first sub-service identification segment, the second sub-service service identification segment, ..., the N+1 sub-service service identification segment is respectively identified, if not identified The third specified string is used to create a non-composite index for the corresponding sub-service identifier segment. If the third specified string exists, the corresponding sub-service identifier segment is created with a composite index. It can be seen that by identifying the specified string, the type of operation on the business data can be identified, thereby quickly creating a dynamic table in the MongoDB database server for operation on the business data.
例如,第三指定字符串设置为″::::″,即一旦识别到业务标识中有4个连续的:字符则将其视为创建复合索引标识,根据第三指定字符串在对应包括有::::的子业务标识段中创建复合索引。For example, the third specified string is set to "::::", that is, once there are 4 consecutive: characters in the service identifier, it is regarded as creating a composite index identifier, and the corresponding string is included according to the third specified string. Create a composite index in the sub-business identity segment of ::::.
S102、根据业务数据的当前年份和当前月份的组合创建表名。S102. Create a table name according to a combination of a current year of the business data and a current month.
在本实施例中,在与Hadoop服务器远程连接的Java后台中由指定脚本根据产生业务数据的当前年份和当前月份组合创建表名,例如XXXX201608,其中XXXX为业务数据对应的数据来源部门标识,201608表示2016年8月。In this embodiment, in the Java background remotely connected to the Hadoop server, the specified script creates a table name according to the current year and the current month combination of the generated service data, for example, XXXX201608, where XXXX is the data source department identifier corresponding to the service data, 201608 Indicates August 2016.
S103、根据表名在MongoDB数据库服务器创建动态表,获取动态表的创建日期,及获取与在Hadoop服务器中所配置的业务标识对应的继承类,根据继承类的类型对业务数据进行相应操作写入动态表。S103: Create a dynamic table in the MongoDB database server according to the table name, obtain a creation date of the dynamic table, and obtain an inheritance class corresponding to the service identifier configured in the Hadoop server, and perform corresponding operations on the service data according to the type of the inherited class. Dynamic table.
在本实施例中,当解析出业务标识对应的继承类为删除表,且业务标识中还包括具体的操作条件(如删除一年前的表),则可以先根据表名在MongoDB数据库服务器创建动态表,然后先删除与动态表创建日期间隔超出预设时间阈值(如上述设置的一年)的数据,再将业务数据写入动态表;其中,动态表的创建日期为当前年份和当前月份的组合。In this embodiment, when the inherited class corresponding to the service identifier is parsed, and the service identifier further includes a specific operation condition (for example, deleting a table one year ago), the device may be first created according to the table name in the MongoDB database server. Dynamic table, and then delete the data with the dynamic table creation date interval exceeding the preset time threshold (such as the year set above), and then write the business data to the dynamic table; wherein the dynamic table creation date is the current year and the current month The combination.
可见,该方法实现Hadoop服务器无需跨广域调用MongoDB数据库中的Java程序,而只需向MongoDB数据库传入业务标识,就能实现与业务标识对应的数据操作,避免了数据操作超时的问题。It can be seen that the method realizes that the Hadoop server does not need to call the Java program in the MongoDB database across the wide domain, but only needs to pass the service identifier to the MongoDB database, and the data operation corresponding to the service identifier can be realized, thereby avoiding the problem of data operation timeout.
本申请实施例还提供一种数据回导装置,该数据回导装置用于执行前述任一项数据回导方法。具体地,请参阅图6,图6是本申请实施例提供的一种数据回导装置的示意性框图。数据回导装置100可以安装于台式电脑、平板电脑、手提电脑、等终端中。The embodiment of the present application further provides a data returning device, which is used to perform any of the foregoing data return methods. Specifically, please refer to FIG. 6. FIG. 6 is a schematic block diagram of a data returning apparatus provided by an embodiment of the present application. The data retreading device 100 can be installed in a desktop computer, a tablet computer, a laptop computer, or the like.
如图6所示,数据回导装置100包括信息获取单元101、建表单元102、数据操作单元103。As shown in FIG. 6, the data returning apparatus 100 includes an information acquiring unit 101, a table building unit 102, and a data operation unit 103.
信息获取单元101,用于获取由Hadoop服务器中产生业务数据的当前年份和当前月份,及在Hadoop服务器中所配置的业务标识。The information obtaining unit 101 is configured to acquire a current year and a current month of the service data generated by the Hadoop server, and a service identifier configured in the Hadoop server.
在一实施例中,如图7所示,所述数据回导装置100还包括:In an embodiment, as shown in FIG. 7, the data retrace device 100 further includes:
配置单元101s,用于预先配置用于定义方法的接口类,及与接口类对应的继承类。The configuration unit 101s is configured to pre-configure an interface class for defining a method, and an inheritance class corresponding to the interface class.
在一实施例中,如图8所示,所述数据回导装置100还包括:In an embodiment, as shown in FIG. 8, the data retrace device 100 further includes:
第一传输单元101a,用于将当前年份和当前月份传入Java后台中指定脚本;The first transmission unit 101a is configured to pass the current year and the current month to the specified script in the Java background;
第二传输单元101b,用于将Hadoop服务器中配置的业务标识传输至Java后台;The second transmission unit 101b is configured to transmit the service identifier configured in the Hadoop server to the Java background;
业务标识解析单元101c,用于解析业务标识,获取与业务标识对应的继承 类。The service identifier parsing unit 101c is configured to parse the service identifier and obtain an inheritance class corresponding to the service identifier.
在一实施例中,如图9所示,所述业务标识解析单元101c包括以下子单元:In an embodiment, as shown in FIG. 9, the service identifier parsing unit 101c includes the following subunits:
第一识别单元1011c,用于获取与业务标识对应的字符串中所包括用于区分索引个数的第一指定字符串的个数N,并根据第一指定字符串将业务标识对应划分为N+1段,分别记为第一子业务标识段至第N+1子业务业务标识段;The first identifying unit 1011c is configured to obtain the number N of the first specified character string included in the character string corresponding to the service identifier, and divide the service identifier into N according to the first specified character string. The +1 segment is respectively recorded as the first sub-service identification segment to the N+1th sub-service service identification segment;
第一判断单元1012c,用于分别识别第一子业务标识段至第N+1子业务业务标识段中是否存在用于区分唯一索引的第二指定字符串;a first determining unit 1012c, configured to respectively identify, in the first sub-service identifier segment to the N+1th sub-service service identifier segment, a second specified character string for distinguishing the unique index;
第二识别单元1013c,用于若未识别存在有第二指定字符串,根据对应的子业务标识段创建非唯一索引;a second identifying unit 1013c, configured to create a non-unique index according to the corresponding sub-service identification segment if the second specified character string is not identified;
第三识别单元1014c,用于若识别到存在有第二指定字符串,根据对应的子业务标识段创建唯一索引。The third identifying unit 1014c is configured to create a unique index according to the corresponding sub-service identifier segment if it is recognized that the second specified character string exists.
在一实施例中,如图10所示,所述业务标识解析单元101c还包括以下子单元:In an embodiment, as shown in FIG. 10, the service identifier parsing unit 101c further includes the following subunits:
第二判断单元1015c,用于分别识别第一子业务标识段至第N+1子业务业务标识段中是否存在用于区分列个数的第三指定字符串;a second determining unit 1015c, configured to respectively identify, in the first sub-service identifier segment to the N+1th sub-service service identifier segment, a third designated character string for distinguishing the number of columns;
第四识别单元1016c,用于若未识别存在有第三指定字符串,根据对应的子业务标识段创建非复合索引;a fourth identifying unit 1016c, configured to create a non-composite index according to the corresponding sub-service identifier segment if the third specified character string is not identified;
第五识别单元1017c,用于若识别到存在有第三指定字符串,根据对应的子业务标识段创建复合索引。The fifth identifying unit 1017c is configured to create a composite index according to the corresponding sub-service identifier segment if it is recognized that the third specified character string exists.
建表单元102,用于根据业务数据的当前年份和当前月份的组合创建表名。The table building unit 102 is configured to create a table name according to a combination of a current year of the business data and a current month.
数据操作单元103,用于根据表名在MongoDB数据库服务器创建动态表,获取动态表的创建日期,及获取与在Hadoop服务器中所配置的业务标识对应的继承类,根据继承类的类型对业务数据进行相应操作写入动态表。The data operation unit 103 is configured to create a dynamic table according to the table name in the MongoDB database server, obtain a creation date of the dynamic table, and obtain an inheritance class corresponding to the service identifier configured in the Hadoop server, and the business data according to the type of the inherited class. Write the dynamic table by performing the corresponding operation.
可见,该装置实现Hadoop服务器无需跨广域调用MongoDB数据库中的Java程序,而只需向MongoDB数据库传入业务标识,就能实现与业务标识对应的数据操作,避免了数据操作超时的问题。It can be seen that the device realizes that the Hadoop server does not need to call the Java program in the MongoDB database across the wide domain, but only needs to pass the service identifier to the MongoDB database, and the data operation corresponding to the service identifier can be realized, thereby avoiding the problem of data operation timeout.
上述数据回导装置可以实现为一种计算机程序的形式,该计算机程序可以在如图11所示的计算机设备上运行。The data return device described above can be implemented in the form of a computer program that can be run on a computer device as shown in FIG.
请参阅图11,图11是本申请实施例提供的一种计算机设备的示意性框图。该计算机设备500设备可以是终端。该终端可以是平板电脑、笔记本电脑、台 式电脑、个人数字助理等电子设备。Referring to FIG. 11, FIG. 11 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 device can be a terminal. The terminal can be an electronic device such as a tablet computer, a notebook computer, a desktop computer, or a personal digital assistant.
参阅图11,该计算机设备500包括通过系统总线501连接的处理器502、存储器和网络接口505,其中,存储器可以包括非易失性存储介质503和内存储器504。Referring to FIG. 11, the computer device 500 includes a processor 502, a memory, and a network interface 505 connected by a system bus 501, wherein the memory can include a non-volatile storage medium 503 and an internal memory 504.
该非易失性存储介质503可存储操作系统5031和计算机程序5032。该计算机程序5032包括程序指令,该程序指令被执行时,可使得处理器502执行一种数据回导方法。The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform a data return method.
该处理器502用于提供计算和控制能力,支撑整个计算机设备500的运行。The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.
该内存储器504为非易失性存储介质503中的计算机程序5032的运行提供环境,该计算机程序5032被处理器502执行时,可使得处理器502执行一种数据回导方法。The internal memory 504 provides an environment for operation of the computer program 5032 in the non-volatile storage medium 503, which when executed by the processor 502, may cause the processor 502 to perform a data return method.
该网络接口505用于进行网络通信,如发送分配的任务等。本领域技术人员可以理解,图11中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备500的限定,具体的计算机设备500可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。The network interface 505 is used for network communication, such as sending assigned tasks and the like. It will be understood by those skilled in the art that the structure shown in FIG. 11 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device 500 to which the solution of the present application is applied, and a specific computer device. 500 may include more or fewer components than shown, or some components may be combined, or have different component arrangements.
其中,所述处理器502用于运行存储在存储器中的计算机程序5032,以实现如下功能:获取由Hadoop服务器中产生业务数据的当前年份和当前月份,及在Hadoop服务器中所配置的业务标识;根据业务数据的当前年份和当前月份的组合创建表名;根据表名在MongoDB数据库服务器创建动态表,获取动态表的创建日期,及获取与在Hadoop服务器中所配置的业务标识对应的继承类,根据继承类的类型对业务数据进行相应操作写入动态表。The processor 502 is configured to run a computer program 5032 stored in the memory to: obtain a current year and a current month of the service data generated by the Hadoop server, and a service identifier configured in the Hadoop server; Create a table name according to the combination of the current year and the current month of the business data; create a dynamic table in the MongoDB database server according to the table name, obtain the creation date of the dynamic table, and obtain an inheritance class corresponding to the service identifier configured in the Hadoop server, The corresponding operation of the business data is written to the dynamic table according to the type of the inherited class.
在一实施例中,处理器502还执行如下操作:预先配置用于定义方法的接口类,及与接口类对应的继承类。In an embodiment, the processor 502 also performs the following operations: pre-configuring an interface class for defining a method, and an inheritance class corresponding to the interface class.
在一实施例中,处理器502还执行如下操作:将当前年份和当前月份传入Java后台中指定脚本;将Hadoop服务器中配置的业务标识传输至Java后台;解析业务标识,获取与业务标识对应的继承类。In an embodiment, the processor 502 further performs the following operations: the current year and the current month are transmitted to the specified script in the Java background; the service identifier configured in the Hadoop server is transmitted to the Java background; the service identifier is parsed, and the service identifier is obtained. Inherited class.
在一实施例中,处理器502还执行如下操作:获取与业务标识对应的字符串中所包括用于区分索引个数的第一指定字符串的个数N,并根据第一指定字符串将业务标识对应划分为N+1段,分别记为第一子业务标识段至第N+1子业 务业务标识段;分别识别第一子业务标识段至第N+1子业务业务标识段中是否存在用于区分唯一索引的第二指定字符串;若未识别存在有第二指定字符串,根据对应的子业务标识段创建非唯一索引;若识别到存在有第二指定字符串,根据对应的子业务标识段创建唯一索引。In an embodiment, the processor 502 further performs the following operations: acquiring the number N of the first specified character string included in the character string corresponding to the service identifier for distinguishing the number of indexes, and according to the first specified character string, The service identifier is correspondingly divided into N+1 segments, which are respectively recorded as the first sub-service identification segment to the N+1th sub-service service identification segment; respectively, whether the first sub-service identification segment to the N+1 sub-service service identification segment are respectively identified. There is a second specified character string for distinguishing the unique index; if the second specified character string is not identified, a non-unique index is created according to the corresponding sub-service identification segment; if it is recognized that the second specified character string exists, according to the corresponding The child business identity segment creates a unique index.
在一实施例中,处理器502还执行如下操作:分别识别第一子业务标识段至第N+1子业务业务标识段中是否存在用于区分列个数的第三指定字符串;若未识别存在有第三指定字符串,根据对应的子业务标识段创建非复合索引;若识别到存在有第三指定字符串,根据对应的子业务标识段创建复合索引。In an embodiment, the processor 502 further performs: separately identifying, in the first sub-service identifier segment to the N+1th sub-service service identifier segment, whether there is a third designated character string for distinguishing the number of columns; The third specified string is identified, and the non-composite index is created according to the corresponding sub-service identifier segment. If the third specified string is found, the composite index is created according to the corresponding sub-service identifier segment.
本领域技术人员可以理解,图11中示出的计算机设备的实施例并不构成对计算机设备具体构成的限定,在其他实施例中,计算机设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。例如,在一些实施例中,计算机设备可以仅包括存储器及处理器,在这样的实施例中,存储器及处理器的结构及功能与图11所示实施例一致,在此不再赘述。It will be understood by those skilled in the art that the embodiment of the computer device shown in FIG. 11 does not constitute a limitation on the specific configuration of the computer device. In other embodiments, the computer device may include more or fewer components than illustrated. Or combine some parts, or different parts. For example, in some embodiments, the computer device may include only a memory and a processor. In such an embodiment, the structure and function of the memory and the processor are the same as those of the embodiment shown in FIG. 11, and details are not described herein again.
应当理解,在本申请实施例中,处理器502可以是中央处理单元(Central Processing Unit,CPU),该处理器502还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be another general-purpose processor, a digital signal processor (DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
在本申请的另一实施例中提供一种存储介质。该存储介质可以为计算机可读存储介质。该存储介质存储有计算机程序,其中计算机程序包括程序指令。该程序指令被处理器执行时实现:获取由Hadoop服务器中产生业务数据的当前年份和当前月份,及在Hadoop服务器中所配置的业务标识;根据业务数据的当前年份和当前月份的组合创建表名;根据表名在MongoDB数据库服务器创建动态表,获取动态表的创建日期,及获取与在Hadoop服务器中所配置的业务标识对应的继承类,根据继承类的类型对业务数据进行相应操作写入动态表。In another embodiment of the present application, a storage medium is provided. The storage medium can be a computer readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. The program instruction is implemented by the processor: obtaining the current year and current month of the business data generated by the Hadoop server, and the service identifier configured in the Hadoop server; creating the table name according to the combination of the current year and the current month of the service data Create a dynamic table based on the table name in the MongoDB database server, obtain the creation date of the dynamic table, and obtain the inheritance class corresponding to the business identity configured in the Hadoop server, and perform corresponding operations on the business data according to the type of the inherited class. table.
在一实施例中,该程序指令被处理器执行时实现:预先配置用于定义方法的接口类,及与接口类对应的继承类。In an embodiment, the program instructions are implemented by the processor: an interface class for defining a method and an inheritance class corresponding to the interface class are pre-configured.
在一实施例中,该程序指令被处理器执行时实现:将当前年份和当前月份传入Java后台中指定脚本;将Hadoop服务器中配置的业务标识传输至Java后 台;解析业务标识,获取与业务标识对应的继承类。In an embodiment, when the program instruction is executed by the processor, the current year and the current month are transmitted to the specified script in the Java background; the service identifier configured in the Hadoop server is transmitted to the Java background; the service identifier is obtained, and the service is obtained. Identifies the corresponding inherited class.
在一实施例中,该程序指令被处理器执行时实现:获取与业务标识对应的字符串中所包括用于区分索引个数的第一指定字符串的个数N,并根据第一指定字符串将业务标识对应划分为N+1段,分别记为第一子业务标识段至第N+1子业务业务标识段;分别识别第一子业务标识段至第N+1子业务业务标识段中是否存在用于区分唯一索引的第二指定字符串;若未识别存在有第二指定字符串,根据对应的子业务标识段创建非唯一索引;若识别到存在有第二指定字符串,根据对应的子业务标识段创建唯一索引。In an embodiment, when the program instruction is executed by the processor, obtaining: a number N of the first specified character string included in the character string corresponding to the service identifier for distinguishing the number of indexes, and according to the first specified character The string is divided into N+1 segments, which are respectively recorded as the first sub-service identifier segment to the N+1th sub-service service identifier segment, and respectively identify the first sub-service identifier segment to the N+1-sub-service segment. Whether there is a second specified character string for distinguishing the unique index; if the second specified character string is not identified, a non-unique index is created according to the corresponding sub-service identification segment; if it is recognized that the second specified character string exists, according to A corresponding index is created for the corresponding sub-service identification segment.
在一实施例中,该程序指令被处理器执行时实现:分别识别第一子业务标识段至第N+1子业务业务标识段中是否存在用于区分列个数的第三指定字符串;若未识别存在有第三指定字符串,根据对应的子业务标识段创建非复合索引;若识别到存在有第三指定字符串,根据对应的子业务标识段创建复合索引。In an embodiment, when the program instruction is executed by the processor, respectively: whether a third specified character string for distinguishing the number of columns exists in the first sub-service identifier segment to the N+1th sub-service service identifier segment; If the third specified string is not identified, the non-composite index is created according to the corresponding sub-service identifier segment; if the third specified string is found, the composite index is created according to the corresponding sub-service identifier segment.
所述存储介质可以是前述设备的内部存储单元,例如设备的硬盘或内存。所述存储介质也可以是所述设备的外部存储设备,例如所述设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储介质还可以既包括所述设备的内部存储单元也包括外部存储设备。The storage medium may be an internal storage unit of the aforementioned device, such as a hard disk or a memory of the device. The storage medium may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a smart memory card (SMC), a secure digital (SD) card, and a flash memory card. (Flash Card), etc. Further, the storage medium may also include both an internal storage unit of the device and an external storage device.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的设备、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the device, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again. Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, for clarity of hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,也可以将具有相同功能的单元集合成一个单元,例如多个单元 或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, or a unit set having the same function. Synthesizing a unit, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, and the like, which can store program codes.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any equivalent person can be easily conceived within the technical scope of the present invention by any person skilled in the art. Modifications or substitutions are intended to be included within the scope of the invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (20)

  1. 一种数据回导方法,其特征在于,包括:A data return method, comprising:
    获取由Hadoop服务器中产生业务数据的当前年份和当前月份,及在Hadoop服务器中所配置的业务标识;Obtain the current year and current month of the business data generated by the Hadoop server, and the service identifier configured in the Hadoop server;
    根据业务数据的当前年份和当前月份的组合创建表名;Create a table name based on the combination of the current year and the current month of the business data;
    根据表名在MongoDB数据库服务器创建动态表,获取动态表的创建日期,及获取与在Hadoop服务器中所配置的业务标识对应的继承类,根据继承类的类型对业务数据进行相应操作写入动态表。Create a dynamic table based on the table name in the MongoDB database server, obtain the creation date of the dynamic table, and obtain the inheritance class corresponding to the service identifier configured in the Hadoop server, and write the dynamic data to the dynamic data according to the type of the inherited class. .
  2. 根据权利要求1所述的数据回导方法,其特征在于,所述获取由Hadoop服务器中产生业务数据的当前年份和当前月份,及在Hadoop服务器中所配置的业务标识之前,还包括:The data homing method according to claim 1, wherein the obtaining the current year and the current month of the service data generated by the Hadoop server and the service identifier configured in the Hadoop server further includes:
    预先配置用于定义方法的接口类,及与接口类对应的继承类。An interface class for defining a method and an inheritance class corresponding to the interface class are pre-configured.
  3. 根据权利要求1所述的数据回导方法,其特征在于,所述获取由Hadoop服务器中产生业务数据的当前年份和当前月份,及在Hadoop服务器中所配置的业务标识之后,还包括:The data homing method according to claim 1, wherein the obtaining the current year and the current month of the service data generated by the Hadoop server, and the service identifier configured in the Hadoop server, further includes:
    将当前年份和当前月份传入Java后台中指定脚本;Pass the current year and the current month into the specified script in the Java background;
    将Hadoop服务器中配置的业务标识传输至Java后台;Transfer the service identifier configured in the Hadoop server to the Java background;
    解析业务标识,获取与业务标识对应的继承类。Parse the business identifier and obtain the inheritance class corresponding to the business identifier.
  4. 根据权利要求3所述的数据回导方法,其特征在于,所述解析业务标识,获取与业务标识对应的继承类,包括:The data homing method according to claim 3, wherein the parsing the service identifier and obtaining the inheritance class corresponding to the service identifier comprises:
    获取与业务标识对应的字符串中所包括用于区分索引个数的第一指定字符串的个数N,并根据第一指定字符串将业务标识对应划分为N+1段,分别记为第一子业务标识段至第N+1子业务业务标识段;Obtaining, by the string corresponding to the service identifier, the number N of the first specified character string for distinguishing the number of indexes, and dividing the service identifier into N+1 segments according to the first specified character string, respectively a sub-service identification segment to an N+1th sub-service service identification segment;
    分别识别第一子业务标识段至第N+1子业务业务标识段中是否存在用于区分唯一索引的第二指定字符串;Identifying, by the first sub-service identifier segment to the N+1th sub-service service identifier segment, respectively, a second designated character string for distinguishing the unique index;
    若未识别存在有第二指定字符串,根据对应的子业务标识段创建非唯一索引;If the second specified string is not identified, a non-unique index is created according to the corresponding sub-service identifier segment;
    若识别到存在有第二指定字符串,根据对应的子业务标识段创建唯一索引。If it is recognized that the second specified string exists, a unique index is created according to the corresponding sub-service identifier segment.
  5. 根据权利要求4所述的数据回导方法,其特征在于,所述分别识别第一 子业务标识段至第N+1子业务业务标识段中是否存在用于区分唯一索引的第二指定字符串之后,还包括:The data returning method according to claim 4, wherein the identifying the second specified string for distinguishing the unique index from the first sub-service identifier segment to the (N+1)th sub-service service identifier segment respectively After that, it also includes:
    分别识别第一子业务标识段至第N+1子业务业务标识段中是否存在用于区分列个数的第三指定字符串;Identifying, by the first sub-service identifier segment to the N+1th sub-service service identifier segment, whether there is a third designated character string for distinguishing the number of columns;
    若未识别存在有第三指定字符串,根据对应的子业务标识段创建非复合索引;If the third specified string is not identified, a non-composite index is created according to the corresponding sub-service identifier segment;
    若识别到存在有第三指定字符串,根据对应的子业务标识段创建复合索引。If it is recognized that there is a third specified string, a composite index is created according to the corresponding sub-service identifier segment.
  6. 一种数据回导装置,其特征在于,包括:A data feedback device, comprising:
    信息获取单元,用于获取由Hadoop服务器中产生业务数据的当前年份和当前月份,及在Hadoop服务器中所配置的业务标识;An information obtaining unit, configured to acquire a current year and a current month of the service data generated by the Hadoop server, and a service identifier configured in the Hadoop server;
    建表单元,用于根据业务数据的当前年份和当前月份的组合创建表名;a table unit for creating a table name according to a combination of a current year and a current month of the business data;
    数据操作单元,用于根据表名在MongoDB数据库服务器创建动态表,获取动态表的创建日期,及获取与在Hadoop服务器中所配置的业务标识对应的继承类,根据继承类的类型对业务数据进行相应操作写入动态表。The data operation unit is configured to create a dynamic table according to the table name in the MongoDB database server, obtain a creation date of the dynamic table, and obtain an inheritance class corresponding to the service identifier configured in the Hadoop server, and perform business data according to the type of the inherited class. The corresponding operation is written to the dynamic table.
  7. 根据权利要求6所述的数据回导装置,其特征在于,还包括:The data feedback device according to claim 6, further comprising:
    配置单元,用于预先配置用于定义方法的接口类,及与接口类对应的继承类。A configuration unit for pre-configuring an interface class for defining a method and an inheritance class corresponding to the interface class.
  8. 根据权利要求7所述的数据回导装置,其特征在于,还包括:The data feedback device according to claim 7, further comprising:
    第一传输单元,用于将当前年份和当前月份传入Java后台中指定脚本;a first transmission unit, configured to pass the current year and the current month to the specified script in the Java background;
    第二传输单元,用于将Hadoop服务器中配置的业务标识传输至Java后台;a second transmission unit, configured to transmit the service identifier configured in the Hadoop server to the Java background;
    业务标识解析单元,用于解析业务标识,获取与业务标识对应的继承类。The service identifier parsing unit is configured to parse the service identifier and obtain an inheritance class corresponding to the service identifier.
  9. 根据权利要求8所述的数据回导装置,其特征在于,所述业务标识解析单元,包括:The data returning device according to claim 8, wherein the service identifier parsing unit comprises:
    第一识别单元,用于获取与业务标识对应的字符串中所包括用于区分索引个数的第一指定字符串的个数N,并根据第一指定字符串将业务标识对应划分为N+1段,分别记为第一子业务标识段至第N+1子业务业务标识段;The first identifying unit is configured to obtain the number N of the first specified character string included in the character string corresponding to the service identifier, and divide the service identifier into N+ according to the first specified character string. The first segment is recorded as the first sub-service identification segment to the N+1th sub-service service identification segment;
    第一判断单元,用于分别识别第一子业务标识段至第N+1子业务业务标识段中是否存在用于区分唯一索引的第二指定字符串;a first determining unit, configured to respectively identify, in the first sub-service identifier segment to the N+1th sub-service service identifier segment, a second specified character string for distinguishing the unique index;
    第二识别单元,用于若未识别存在有第二指定字符串,根据对应的子业务标识段创建非唯一索引;a second identifying unit, configured to create a non-unique index according to the corresponding sub-service identification segment if the second specified character string is not identified;
    第三识别单元,用于若识别到存在有第二指定字符串,根据对应的子业务标识段创建唯一索引。The third identifying unit is configured to create a unique index according to the corresponding sub-service identification segment if the second specified character string exists.
  10. 根据权利要求9所述的数据回导装置,其特征在于,所述业务标识解析单元,还包括:The data redirection device according to claim 9, wherein the service identifier parsing unit further comprises:
    第二判断单元,用于分别识别第一子业务标识段至第N+1子业务业务标识段中是否存在用于区分列个数的第三指定字符串;a second determining unit, configured to respectively identify whether a third specified character string for distinguishing the number of columns exists in the first sub-service identifier segment to the N+1th sub-service service identifier segment;
    第四识别单元,用于若未识别存在有第三指定字符串,根据对应的子业务标识段创建非复合索引;a fourth identifying unit, configured to create a non-composite index according to the corresponding sub-service identifier segment if the third specified character string is not identified;
    第五识别单元,用于若识别到存在有第三指定字符串,根据对应的子业务标识段创建复合索引。The fifth identifying unit is configured to create a composite index according to the corresponding sub-service identifier segment if the third specified character string exists.
  11. 一种计算机设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1-5中任一项所述的数据回导方法。A computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes the computer program as claimed in claim 1 The data return method of any of 5.
  12. 根据权利要求11所述的计算机设备,其特征在于,所述获取由Hadoop服务器中产生业务数据的当前年份和当前月份,及在Hadoop服务器中所配置的业务标识之前,还包括:The computer device according to claim 11, wherein the obtaining the current year and the current month of the service data generated by the Hadoop server and the service identifier configured in the Hadoop server further includes:
    预先配置用于定义方法的接口类,及与接口类对应的继承类。An interface class for defining a method and an inheritance class corresponding to the interface class are pre-configured.
  13. 根据权利要求11所述的计算机设备,其特征在于,所述获取由Hadoop服务器中产生业务数据的当前年份和当前月份,及在Hadoop服务器中所配置的业务标识之后,还包括:The computer device according to claim 11, wherein the obtaining the current year and the current month of the service data generated by the Hadoop server and the service identifier configured in the Hadoop server further includes:
    将当前年份和当前月份传入Java后台中指定脚本;Pass the current year and the current month into the specified script in the Java background;
    将Hadoop服务器中配置的业务标识传输至Java后台;Transfer the service identifier configured in the Hadoop server to the Java background;
    解析业务标识,获取与业务标识对应的继承类。Parse the business identifier and obtain the inheritance class corresponding to the business identifier.
  14. 根据权利要求13所述的计算机设备,其特征在于,所述解析业务标识,获取与业务标识对应的继承类,包括:The computer device according to claim 13, wherein the parsing the service identifier and obtaining the inheritance class corresponding to the service identifier comprises:
    获取与业务标识对应的字符串中所包括用于区分索引个数的第一指定字符串的个数N,并根据第一指定字符串将业务标识对应划分为N+1段,分别记为第一子业务标识段至第N+1子业务业务标识段;Obtaining, by the string corresponding to the service identifier, the number N of the first specified character string for distinguishing the number of indexes, and dividing the service identifier into N+1 segments according to the first specified character string, respectively a sub-service identification segment to an N+1th sub-service service identification segment;
    分别识别第一子业务标识段至第N+1子业务业务标识段中是否存在用于区分唯一索引的第二指定字符串;Identifying, by the first sub-service identifier segment to the N+1th sub-service service identifier segment, respectively, a second designated character string for distinguishing the unique index;
    若未识别存在有第二指定字符串,根据对应的子业务标识段创建非唯一索引;If the second specified string is not identified, a non-unique index is created according to the corresponding sub-service identifier segment;
    若识别到存在有第二指定字符串,根据对应的子业务标识段创建唯一索引。If it is recognized that the second specified string exists, a unique index is created according to the corresponding sub-service identifier segment.
  15. 根据权利要求14所述的计算机设备,其特征在于,所述分别识别第一子业务标识段至第N+1子业务业务标识段中是否存在用于区分唯一索引的第二指定字符串之后,还包括:The computer device according to claim 14, wherein the identifying the second specified character string for distinguishing the unique index from the first sub-service identification segment to the N+1th sub-service service identification segment respectively Also includes:
    分别识别第一子业务标识段至第N+1子业务业务标识段中是否存在用于区分列个数的第三指定字符串;Identifying, by the first sub-service identifier segment to the N+1th sub-service service identifier segment, whether there is a third designated character string for distinguishing the number of columns;
    若未识别存在有第三指定字符串,根据对应的子业务标识段创建非复合索引;If the third specified string is not identified, a non-composite index is created according to the corresponding sub-service identifier segment;
    若识别到存在有第三指定字符串,根据对应的子业务标识段创建复合索引。If it is recognized that there is a third specified string, a composite index is created according to the corresponding sub-service identifier segment.
  16. 一种存储介质,其特征在于,所述存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行以下操作:A storage medium, characterized in that the storage medium stores a computer program, the computer program comprising program instructions that, when executed by a processor, cause the processor to perform the following operations:
    获取由Hadoop服务器中产生业务数据的当前年份和当前月份,及在Hadoop服务器中所配置的业务标识;Obtain the current year and current month of the business data generated by the Hadoop server, and the service identifier configured in the Hadoop server;
    根据业务数据的当前年份和当前月份的组合创建表名;Create a table name based on the combination of the current year and the current month of the business data;
    根据表名在MongoDB数据库服务器创建动态表,获取动态表的创建日期,及获取与在Hadoop服务器中所配置的业务标识对应的继承类,根据继承类的类型对业务数据进行相应操作写入动态表。Create a dynamic table based on the table name in the MongoDB database server, obtain the creation date of the dynamic table, and obtain the inheritance class corresponding to the service identifier configured in the Hadoop server, and write the dynamic data to the dynamic data according to the type of the inherited class. .
  17. 根据权利要求16所述的存储介质,其特征在于,所述获取由Hadoop服务器中产生业务数据的当前年份和当前月份,及在Hadoop服务器中所配置的业务标识之前,还包括:The storage medium according to claim 16, wherein the obtaining the current year and the current month of the service data generated by the Hadoop server, and the service identifier configured in the Hadoop server, further includes:
    预先配置用于定义方法的接口类,及与接口类对应的继承类。An interface class for defining a method and an inheritance class corresponding to the interface class are pre-configured.
  18. 根据权利要求16所述的存储介质,其特征在于,所述获取由Hadoop服务器中产生业务数据的当前年份和当前月份,及在Hadoop服务器中所配置的业务标识之后,还包括:The storage medium according to claim 16, wherein the obtaining the current year and the current month of the service data generated by the Hadoop server and the service identifier configured in the Hadoop server further includes:
    将当前年份和当前月份传入Java后台中指定脚本;Pass the current year and the current month into the specified script in the Java background;
    将Hadoop服务器中配置的业务标识传输至Java后台;Transfer the service identifier configured in the Hadoop server to the Java background;
    解析业务标识,获取与业务标识对应的继承类。Parse the business identifier and obtain the inheritance class corresponding to the business identifier.
  19. 根据权利要求18所述的存储介质,其特征在于,所述解析业务标识,获取与业务标识对应的继承类,包括:The storage medium according to claim 18, wherein the parsing the service identifier and obtaining the inheritance class corresponding to the service identifier comprises:
    获取与业务标识对应的字符串中所包括用于区分索引个数的第一指定字符串的个数N,并根据第一指定字符串将业务标识对应划分为N+1段,分别记为第一子业务标识段至第N+1子业务业务标识段;Obtaining, by the string corresponding to the service identifier, the number N of the first specified character string for distinguishing the number of indexes, and dividing the service identifier into N+1 segments according to the first specified character string, respectively a sub-service identification segment to an N+1th sub-service service identification segment;
    分别识别第一子业务标识段至第N+1子业务业务标识段中是否存在用于区分唯一索引的第二指定字符串;Identifying, by the first sub-service identifier segment to the N+1th sub-service service identifier segment, respectively, a second designated character string for distinguishing the unique index;
    若未识别存在有第二指定字符串,根据对应的子业务标识段创建非唯一索引;If the second specified string is not identified, a non-unique index is created according to the corresponding sub-service identifier segment;
    若识别到存在有第二指定字符串,根据对应的子业务标识段创建唯一索引。If it is recognized that the second specified string exists, a unique index is created according to the corresponding sub-service identifier segment.
  20. 根据权利要求19所述的存储介质,其特征在于,所述分别识别第一子业务标识段至第N+1子业务业务标识段中是否存在用于区分唯一索引的第二指定字符串之后,还包括:The storage medium according to claim 19, wherein the identifying the second specified character string for distinguishing the unique index from the first sub-service identification segment to the (N+1)th sub-service service identification segment respectively Also includes:
    分别识别第一子业务标识段至第N+1子业务业务标识段中是否存在用于区分列个数的第三指定字符串;Identifying, by the first sub-service identifier segment to the N+1th sub-service service identifier segment, whether there is a third designated character string for distinguishing the number of columns;
    若未识别存在有第三指定字符串,根据对应的子业务标识段创建非复合索引;If the third specified string is not identified, a non-composite index is created according to the corresponding sub-service identifier segment;
    若识别到存在有第三指定字符串,根据对应的子业务标识段创建复合索引。If it is recognized that there is a third specified string, a composite index is created according to the corresponding sub-service identifier segment.
PCT/CN2018/102607 2018-03-15 2018-08-28 Method for importing data back, apparatus, computer device and storage medium WO2019174190A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810214182.0A CN108446371B (en) 2018-03-15 2018-03-15 Data back-leading method and device, computer equipment and storage medium
CN201810214182.0 2018-03-15

Publications (1)

Publication Number Publication Date
WO2019174190A1 true WO2019174190A1 (en) 2019-09-19

Family

ID=63194483

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/102607 WO2019174190A1 (en) 2018-03-15 2018-08-28 Method for importing data back, apparatus, computer device and storage medium

Country Status (2)

Country Link
CN (1) CN108446371B (en)
WO (1) WO2019174190A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108446371B (en) * 2018-03-15 2020-10-27 平安科技(深圳)有限公司 Data back-leading method and device, computer equipment and storage medium
CN109324887B (en) * 2018-09-28 2024-05-10 中国平安财产保险股份有限公司 Auditing data parallel processing method and system
CN112364031B (en) * 2021-01-12 2021-04-06 支付宝(杭州)信息技术有限公司 Business derivative record storage method based on credible account book database
CN113076320B (en) * 2021-04-20 2024-08-16 北京沃东天骏信息技术有限公司 Method, apparatus, device and computer readable medium for configuring data table

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897335A (en) * 2016-06-28 2017-06-27 阿里巴巴集团控股有限公司 A kind of storage method of business datum, the generation method of record identifier and device
CN107066591A (en) * 2017-04-18 2017-08-18 北京思特奇信息技术股份有限公司 A kind of method and device handled business
CN107220266A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 It is a kind of to create Service Database, business datum storage and the method and device for determining business datum
CN108446371A (en) * 2018-03-15 2018-08-24 平安科技(深圳)有限公司 Data return guiding method, device, computer equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9128991B2 (en) * 2012-04-03 2015-09-08 Sas Institute, Inc. Techniques to perform in-database computational programming
CN104317899A (en) * 2014-10-24 2015-01-28 西安未来国际信息股份有限公司 Big-data analyzing and processing system and access method
CN107665233B (en) * 2017-07-24 2020-07-31 深圳壹账通智能科技有限公司 Database data processing method and device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220266A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 It is a kind of to create Service Database, business datum storage and the method and device for determining business datum
CN106897335A (en) * 2016-06-28 2017-06-27 阿里巴巴集团控股有限公司 A kind of storage method of business datum, the generation method of record identifier and device
CN107066591A (en) * 2017-04-18 2017-08-18 北京思特奇信息技术股份有限公司 A kind of method and device handled business
CN108446371A (en) * 2018-03-15 2018-08-24 平安科技(深圳)有限公司 Data return guiding method, device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ZENG, QIANG: "Integration of Hadoop and MongoDB for Massive Data Processing", THESIS OF MASTER'S DEGREE OF ENGINEERING OF HUNAN UNIVERSITY, 29 December 2015 (2015-12-29), pages 1 *

Also Published As

Publication number Publication date
CN108446371A (en) 2018-08-24
CN108446371B (en) 2020-10-27

Similar Documents

Publication Publication Date Title
WO2019174190A1 (en) Method for importing data back, apparatus, computer device and storage medium
US10614233B2 (en) Managing access to documents with a file monitor
WO2020062793A1 (en) Message queue-based request processing method, apparatus and device, and storage medium
WO2018188437A1 (en) Multi-tenant data isolation method, device and system
US8826408B2 (en) Consolidating disparate cloud service data and behavior based on trust relationships between cloud services
WO2019061991A1 (en) Multi-element universal model platform modeling method, electronic device, and computer readable storage medium
WO2022027867A1 (en) Mdc-based multithreaded link tracking method and apparatus, and computer-readable storage medium
US10528528B2 (en) Supporting multi-tenant applications on a shared database using pre-defined attributes
US11171994B2 (en) Tag-based security policy creation in a distributed computing environment
WO2017128710A1 (en) Port redirection method, server and system
JP2014041458A (en) Apparatus and method for determining content of access control for data
CN109522751B (en) Access right control method and device, electronic equipment and computer readable medium
US11630660B2 (en) Firmware management
US20180276017A1 (en) Scalable policy management in an edge virtual bridging (evb) environment
US11620188B2 (en) Methods, devices, and a computer readable medium for restoring a file in a virtual machine disk
US10158990B2 (en) SMS message reading control method and terminal
CN111698675B (en) Data processing method, device and computer readable storage medium
US20160127478A1 (en) Creating Services Using Service Modules
US9513943B2 (en) Scalable policy assignment in an edge virtual bridging (EVB) environment
CN113746783B (en) Group chat authority control method, team instant messaging application and background server
US10185613B2 (en) Error determination from logs
CN113220762A (en) Method, device, processor and storage medium for realizing general record processing of key service field change in big data application
US10581917B2 (en) Systems and methods for enforcing device policies
CN111694810A (en) Data warehouse creation method and device, electronic equipment and readable storage medium
CN110609731A (en) Method, apparatus and computer program product for managing virtual machines

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 25.01.2021)

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18909946

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 18909946

Country of ref document: EP

Kind code of ref document: A1