CN111090691B - A data processing method, device, electronic device and storage medium - Google Patents
A data processing method, device, electronic device and storage medium Download PDFInfo
- Publication number
- CN111090691B CN111090691B CN201911319414.XA CN201911319414A CN111090691B CN 111090691 B CN111090691 B CN 111090691B CN 201911319414 A CN201911319414 A CN 201911319414A CN 111090691 B CN111090691 B CN 111090691B
- Authority
- CN
- China
- Prior art keywords
- data source
- access
- management platform
- unified management
- target
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Bioethics (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本申请公开了一种数据处理方法、装置、电子设备和存储介质,涉及数据处理领域。具体实现方案为:统一管理平台响应于目标内容提供方的数据源接入请求,获取与数据源接入请求匹配的接入类型和接入参数,统一管理平台预先连接多个内容提供方;统一管理平台在多个类型的数据源接入模块中,获取与接入类型匹配的目标数据源接入模块;统一管理平台根据接入参数触发目标数据源接入模块,接入与数据源接入请求匹配的目标数据源;统一管理平台从目标数据源中获取目标数据,并将目标数据存储于与所述目标内容提供方匹配的存储空间中。本申请的技术方案,可以实现不同内容提供方的数据源由一个统一管理平台进行管理和维护。
The present application discloses a data processing method, apparatus, electronic device and storage medium, and relates to the field of data processing. The specific implementation scheme is as follows: the unified management platform, in response to the data source access request of the target content provider, obtains the access type and access parameters matching the data source access request, and the unified management platform connects multiple content providers in advance; The management platform obtains the target data source access module matching the access type in multiple types of data source access modules; the unified management platform triggers the target data source access module according to the access parameters, and the access and data source access A matching target data source is requested; the unified management platform obtains the target data from the target data source, and stores the target data in the storage space matched with the target content provider. The technical solution of the present application can realize that the data sources of different content providers are managed and maintained by a unified management platform.
Description
技术领域technical field
本申请实施例涉及计算机技术,尤其涉及一种数据处理方法、装置、电子设备和存储介质。The embodiments of the present application relate to computer technology, and in particular, to a data processing method, apparatus, electronic device, and storage medium.
背景技术Background technique
随着计算机技术的发展,社区类互联网产品得到了越来越广泛的应用。在社区类互联网产品中,存在大量优质的时效性内容,需要对社区类互联网产品各内容提供方的优质、时效性内容进行统一管理。With the development of computer technology, community Internet products have been widely used. In community-based Internet products, there are a large number of high-quality time-sensitive content, and it is necessary to uniformly manage the high-quality and time-sensitive content of each content provider of community-based Internet products.
现有技术中,社区类互联网产品各内容提供方的数据源相互之间是相对独立的,无法对各内容提供方的优质、时效性内容进行统一管理,也无法实现各内容提供方之间优质、时效性内容的灵活共享,对优质、时效性内容进行维护和共享的成本较高,用户体验较差。In the prior art, the data sources of each content provider of community-based Internet products are relatively independent from each other, and it is impossible to uniformly manage the high-quality and time-sensitive content of each content provider, and it is impossible to achieve high-quality content among various content providers. , Flexible sharing of time-sensitive content, the maintenance and sharing of high-quality and time-sensitive content is costly, and the user experience is poor.
发明内容SUMMARY OF THE INVENTION
本申请实施例公开一种数据处理方法、装置、电子设备和存储介质,可以实现不同内容提供方的数据源由一个统一管理平台进行管理和维护。The embodiments of the present application disclose a data processing method, apparatus, electronic device, and storage medium, which can implement the management and maintenance of data sources of different content providers by a unified management platform.
第一方面,本申请实施例公开了一种数据处理方法,包括:In a first aspect, an embodiment of the present application discloses a data processing method, including:
统一管理平台响应于目标内容提供方的数据源接入请求,获取与所述数据源接入请求匹配的接入类型和接入参数,所述统一管理平台预先连接多个内容提供方;The unified management platform acquires the access type and access parameter matching the data source access request in response to the data source access request of the target content provider, and the unified management platform connects multiple content providers in advance;
所述统一管理平台在多个类型的数据源接入模块中,获取与所述接入类型匹配的目标数据源接入模块;The unified management platform obtains, among multiple types of data source access modules, a target data source access module matching the access type;
所述统一管理平台根据所述接入参数触发所述目标数据源接入模块,接入与所述数据源接入请求匹配的目标数据源;The unified management platform triggers the target data source access module according to the access parameter, and accesses the target data source matching the data source access request;
上述申请中的一个实施例具有如下有优点或有益效果:An embodiment in the above application has the following advantages or beneficial effects:
将不同内容提供方的数据源接入统一管理平台中,可以实现不同内容提供方的数据源由一个统一管理平台进行管理和维护。By connecting the data sources of different content providers to the unified management platform, the data sources of different content providers can be managed and maintained by a unified management platform.
另外,根据本申请上述实施例的数据处理方法,还可以具有如下附加的技术特征:In addition, the data processing method according to the above-mentioned embodiment of the present application may also have the following additional technical features:
进一步的,在所述统一管理平台根据所述接入参数触发所述目标数据源接入模块,接入与所述数据源接入请求匹配的目标数据源之后,还包括:Further, after the unified management platform triggers the target data source access module according to the access parameter to access the target data source matching the data source access request, the method further includes:
所述统一管理平台从所述目标数据源中获取目标数据,并将所述目标数据存储于与所述目标内容提供方匹配的存储空间中。The unified management platform acquires target data from the target data source, and stores the target data in a storage space matched with the target content provider.
上述申请中的一个实施例具有如下优点或有益效果:An embodiment in the above application has the following advantages or beneficial effects:
将不同内容提供方所需的目标数据源接入统一管理平台中进行存储,可以实现对目标数据源的统一管理和灵活共享。The target data sources required by different content providers are connected to the unified management platform for storage, which can realize unified management and flexible sharing of target data sources.
进一步的,在所述统一管理平台接入与所述数据源接入请求匹配的目标数据源之后,还包括:Further, after the unified management platform accesses the target data source matching the data source access request, the method further includes:
所述统一管理平台响应于所述目标内容提供方的权限设置指令,设置所述目标数据源的查看权限为私有权限或公有权限;The unified management platform, in response to the permission setting instruction of the target content provider, sets the viewing permission of the target data source as a private permission or a public permission;
其中,设置为私有权限的数据源仅允许接入所述数据源的内容提供方访问,设置为公有权限的数据源还允许其他具有查看权限的内容提供方访问。Wherein, a data source set as private permission is only allowed to be accessed by content providers who have access to the data source, and a data source set as public permission is also allowed to be accessed by other content providers with viewing permission.
上述申请中的一个实施例具有如下优点或有益效果:An embodiment in the above application has the following advantages or beneficial effects:
通过设置数据源的权限,实现不同数据源之间根据设置的权限对数据源进行灵活访问。By setting the permissions of the data source, different data sources can access the data source flexibly according to the set permissions.
进一步的,在所述统一管理平台响应于所述目标内容提供方的权限设置指令,设置所述目标数据源的查看权限为公有权限之后,还包括:Further, after the unified management platform sets the viewing authority of the target data source as a public authority in response to the authority setting instruction of the target content provider, the method further includes:
所述统一管理平台响应于其他内容提供方的数据访问请求;The unified management platform responds to data access requests from other content providers;
所述统一管理平台如果确定所述其他内容提供方为其他具有查看权限的内容提供方,则将存储的所述目标数据提供给所述其他内容提供方进行访问。If the unified management platform determines that the other content provider is another content provider with viewing rights, it provides the stored target data to the other content provider for access.
上述申请中的一个实施例具有如下优点或有益效果:An embodiment in the above application has the following advantages or beneficial effects:
当目标数据源的查看权限设置为公有权限时,可以实现目标数据源对其他开放权限的内容提供方的数据共享。When the viewing permission of the target data source is set to public permission, the data sharing of the target data source to other content providers with open permissions can be realized.
进一步的,所述方法,还包括:Further, the method also includes:
所述统一管理平台统计所接入的各个数据源的读写状态;The unified management platform counts the read and write status of each connected data source;
所述统一管理平台根据所述读写状态,对各所述数据源进行下线,和/或上线处理;The unified management platform performs offline and/or online processing on each of the data sources according to the read and write status;
其中,处于下线状态的数据源不能被内容提供方所访问,处于上线状态的数据源能够被内容提供方所访问。The data source in the offline state cannot be accessed by the content provider, and the data source in the online state can be accessed by the content provider.
上述申请中的一个实施例具有如下优点或有益效果:An embodiment in the above application has the following advantages or beneficial effects:
实现了对数据源上下线的管理,实现了数据源状态的智能化切换,减少了对数据源进行维护的人工成本。It realizes the management of the data source online and offline, realizes the intelligent switching of the data source status, and reduces the labor cost of maintaining the data source.
进一步的,所述统一管理平台根据所述读写状态,对各所述数据源进行下线,和/或上线处理,包括:Further, the unified management platform performs offline and/or online processing on each of the data sources according to the read and write status, including:
所述统一管理平台如果确定当前处于上线状态的第一数据源在第一时间区间内的读写次数小于第一阈值,则将与第一数据源对应的第一数据的存储状态由暴露存储修改为隐藏存储,以对所述第一数据源进行下线处理;If the unified management platform determines that the number of reads and writes of the first data source currently in the online state within the first time interval is less than the first threshold, the storage state of the first data corresponding to the first data source is modified by the exposed storage. For hidden storage, to perform offline processing on the first data source;
所述统一管理平台如果确定当前处于下线状态的第二数据源在第二时间区间内的读写次数大于等于第二阈值,则将与第二数据源对应的第二数据的存储状态由隐藏存储修改为暴露存储,以对所述第一数据源进行上线处理。If the unified management platform determines that the number of reads and writes of the second data source currently in the offline state in the second time interval is greater than or equal to the second threshold, then the storage state of the second data corresponding to the second data source will be hidden. The storage is modified to expose storage for online processing of the first data source.
上述申请中的一个实施例具有如下优点或有益效果:An embodiment in the above application has the following advantages or beneficial effects:
实现了数据源上下线状态的智能切换,提高了数据源的管理效率,减少了对数据源进行人工维护的成本。The intelligent switching of the online and offline status of the data source is realized, the management efficiency of the data source is improved, and the cost of manual maintenance of the data source is reduced.
进一步的,在所述统一管理平台统计所接入的各个数据源的读写状态之后,还包括:Further, after the unified management platform counts the read and write status of each connected data source, it also includes:
所述统一管理平台如果确定当前处于下线状态的第三数据源在第三时间区间内的读写次数小于第三阈值,则在断开对所述第三数据源的接入;If the unified management platform determines that the number of times of reading and writing in the third time interval of the third data source currently in the offline state is less than the third threshold, then disconnecting the access to the third data source;
所述统一管理平台在存储空间中同步删除与所述第三数据源对应的全部数据。The unified management platform synchronously deletes all data corresponding to the third data source in the storage space.
上述申请中的一个实施例具有如下优点或有益效果:An embodiment in the above application has the following advantages or beneficial effects:
实现了对无效数据源的及时回收,减少了无效数据源长期占用存储空间造成的资源浪费。The timely recovery of invalid data sources is realized, and the waste of resources caused by the long-term occupation of storage space by invalid data sources is reduced.
进一步的,所述接入类型,包括下述至少一项:Further, the access type includes at least one of the following:
应用程序接口推拉接入方式、一键镜像接入方式、文件导入接入方式、简易信息聚合接入方式以及第五代超文本标记语言页面接入方式。Application program interface push-pull access, one-key mirroring access, file import access, simple information aggregation access and fifth-generation hypertext markup language page access.
上述申请中的一个实施例具有如下优点或有益效果:An embodiment in the above application has the following advantages or beneficial effects:
降低了数据源的接入时间,实现了数据源的快速接入。The access time of the data source is reduced, and the fast access of the data source is realized.
进一步的,所述内容提供方为网络站点中,设定垂类服务的提供方。Further, the content provider is a provider of vertical services in the network site.
上述可选方式所具有的其他效果将在下文中结合具体实施例加以说明。Other effects of the above-mentioned optional manners will be described below with reference to specific embodiments.
第二方面,本申请实施例公开了一种数据处理装置,包括:In a second aspect, an embodiment of the present application discloses a data processing device, including:
接入类型和接入参数获取模块,用于使统一管理平台响应于目标内容提供方的数据源接入请求,获取与所述数据源接入请求匹配的接入类型和接入参数,所述统一管理平台预先连接多个内容提供方;an access type and access parameter acquisition module, configured to make the unified management platform respond to a data source access request from a target content provider to acquire an access type and access parameters matching the data source access request, the The unified management platform connects multiple content providers in advance;
目标数据源接入模块获取模块,用于使所述统一管理平台在多个类型的数据源接入模块中,获取与所述接入类型匹配的目标数据源接入模块;a target data source access module acquiring module, configured to enable the unified management platform to acquire a target data source access module matching the access type from among multiple types of data source access modules;
目标数据源接入模块,用于使所述统一管理平台根据所述接入参数触发所述目标数据源接入模块,接入与所述数据源接入请求匹配的目标数据源;a target data source access module, configured to enable the unified management platform to trigger the target data source access module according to the access parameter to access a target data source matching the data source access request;
第三方面,本申请实施例公开了一种电子设备,包括:In a third aspect, an embodiment of the present application discloses an electronic device, including:
至少一个处理器;以及at least one processor; and
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行本申请实施例中任一项所述的方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute any one of the embodiments of the present application. method.
第四方面,本申请实施例公开了一种存储有计算机指令的非瞬时计算机可读存储介质,其特征在于,所述计算机指令用于使所述计算机执行本申请实施例中任一项所述的方法。In a fourth aspect, an embodiment of the present application discloses a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the description in any one of the embodiments of the present application. Methods.
本申请实施例的技术方案,通过将多个内容提供方的数据源通过接入模块接入到统一管理平台中。解决了现有技术中各内容提供方之间的数据源相互独立,从而造成的管理维护成本较高的问题。实现了统一管理平台对不同数据源进行统一的维护和管理。In the technical solutions of the embodiments of the present application, the data sources of multiple content providers are connected to the unified management platform through the access module. It solves the problem of high management and maintenance cost caused by independent data sources among various content providers in the prior art. It realizes the unified maintenance and management of different data sources by a unified management platform.
附图说明Description of drawings
附图用于更好地理解本方案,不构成对本申请的限定。其中:The accompanying drawings are used to better understand the present solution, and do not constitute a limitation to the present application. in:
图1是本申请实施例一提供的一种数据处理方法的流程图;1 is a flowchart of a data processing method provided in Embodiment 1 of the present application;
图2是本申请实施例二提供的一种数据处理方法的流程图;2 is a flowchart of a data processing method provided in Embodiment 2 of the present application;
图3是本申请实施例三提供的一种数据处理方法的流程图;3 is a flowchart of a data processing method provided in Embodiment 3 of the present application;
图4是本申请实施例四提供的一种数据处理装置的结构示意图;4 is a schematic structural diagram of a data processing apparatus provided in Embodiment 4 of the present application;
图5是本申请实施例五提供的一种电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device provided in Embodiment 5 of the present application.
具体实施方式Detailed ways
以下结合附图对本申请的示范性实施例做出说明,其中包括本申请实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本申请的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present application are described below with reference to the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.
实施例一Example 1
图1是本申请实施例一提供的一种数据处理方法的流程图,本实施例可适用于需要对不同内容提供方的数据源进行统一管理和维护的情况,该方法可以由数据处理装置来执行,该装置可以由软件和/或硬件来实现,并一般集成在服务器中。FIG. 1 is a flowchart of a data processing method provided in Embodiment 1 of the present application. This embodiment is applicable to the situation where unified management and maintenance of data sources of different content providers is required, and the method can be performed by a data processing device. To implement, the apparatus can be implemented by software and/or hardware, and is generally integrated in a server.
如图1所示,本申请实施例的技术方案,具体包括如下步骤:As shown in Figure 1, the technical solution of the embodiment of the present application specifically includes the following steps:
S110、统一管理平台响应于目标内容提供方的数据源接入请求,获取与所述数据源接入请求匹配的接入类型和接入参数,所述统一管理平台预先连接多个内容提供方。S110. The unified management platform acquires the access type and access parameters matching the data source access request in response to the data source access request of the target content provider, and the unified management platform connects multiple content providers in advance.
其中,统一管理平台的作用在于使数据源进行统一接入,并对数据源中的数据进行统一管理。内容提供方可以为提供一定服务的主体,内容提供方可以为预先与统一管理平台建立连接,统一管理平台可以包含多个内容提供方,本申请实施例对内容提供方的具体数量不进行限制。数据源可以是提供某种所需要数据的器件或原始媒体,在数据源中可以存储所有建立数据库连接的信息。接入类型可以用于指示数据源以何种方式接入统一管理平台中,接入参数可以是将数据源接入统一管理模块时所需配置的参数。Among them, the role of the unified management platform is to enable unified access to the data sources and to manage the data in the data sources in a unified manner. The content provider may be a subject that provides certain services, and the content provider may establish a connection with the unified management platform in advance. The unified management platform may include multiple content providers, and the embodiment of the present application does not limit the specific number of content providers. The data source can be a device or original media that provides some required data, and all the information for establishing a database connection can be stored in the data source. The access type can be used to indicate how the data source is connected to the unified management platform, and the access parameter can be a parameter that needs to be configured when the data source is connected to the unified management module.
在本申请实施例中,统一管理平台预先连接多个内容提供方,其中,目标内容提供方是指当前需要接入新的数据源的内容提供方,目标内容提供方要将数据源接入统一管理平台时,向统一管理平台发送数据源接入请求,根据该数据源接入请求可以获取接入类型和接入参数。In the embodiment of the present application, the unified management platform connects multiple content providers in advance, where the target content provider refers to a content provider that currently needs to access a new data source, and the target content provider needs to access the data source in a unified manner When managing the platform, a data source access request is sent to the unified management platform, and the access type and access parameters can be obtained according to the data source access request.
在本申请一个可选的实施例中,所述接入类型,可以包括下述至少一项:应用程序接口推拉接入方式、一键镜像接入方式、文件导入接入方式、简易信息聚合接入方式以及第五代超文本标记语言页面接入方式。In an optional embodiment of the present application, the access type may include at least one of the following: application program interface push-pull access, one-key mirroring access, file import access, and simple information aggregation access access method and the fifth generation hypertext markup language page access method.
其中,应用程序接口(Application Programming Interface,API)推拉接入方式可以为,直接通过应用程序接口访问数据库。应用程序接口推拉接入方式可以包括推、拉两种方式,推方式可以为与数据库建立连接后,数据库主动推送数据;拉方式可以为与数据库建立连接后,向数据库发送数据获取请求。内容提供方可以根据自身业务特性和风险把控灵活选择应用程序接口的接入方式。一键镜像接入方式需要用户预先配置,可以实现数据的快速同步。文件导入接入方式可以根据数据生成文件,通过选择相应的文件并对文件进行解析,从而导入数据。简易信息聚合(Really Simple Syndication,RSS)接入方式可以指站点和其他站点之间共享内容的一种简易方式。第五代超文本标记语言页面(Hyper TextMarkup Language 5,H5)接入方式可以为通过H5界面与数据库建立连接,并通过对界面进行解析获取数据。The push-pull access method of the application programming interface (Application Programming Interface, API) may be to directly access the database through the application programming interface. The push-pull access method of the application program interface can include two methods: push and pull. The push method can be that after establishing a connection with the database, the database actively pushes data; the pull method can send a data acquisition request to the database after establishing a connection with the database. The content provider can flexibly choose the access method of the application program interface according to its own business characteristics and risk control. The one-key mirroring access method requires pre-configuration by the user, which can realize fast synchronization of data. The file import access method can generate files according to the data, and import the data by selecting the corresponding file and analyzing the file. A Simple Syndication (Really Simple Syndication, RSS) access method may refer to a simple method for sharing content between a site and other sites. The fifth-generation hypertext markup language (Hyper Text Markup Language 5, H5) access method may be to establish a connection with the database through the H5 interface, and obtain data by parsing the interface.
在本申请实施例中,设置了多种数据源的接入类型,这样设置的好处在于,可以根据数据源的实际需要灵活配置接入方式,降低了数据源的接入时间,实现了数据源的快速接入。In the embodiment of the present application, multiple access types of data sources are set. The advantage of this setting is that the access modes can be flexibly configured according to the actual needs of the data sources, the access time of the data sources is reduced, and the data source is realized. quick access.
在本申请一个可选的实施例中,所述内容提供方可以为网络站点中,设定垂类服务的提供方。In an optional embodiment of the present application, the content provider may be a provider of vertical services in a network site.
其中,统一管理平台可以包含多个垂类,不同的垂类对应不同的内容提供方。垂类可以是统一管理平台包含的版块,在一个具体的示例中,一个社区类互联网产品可以包含一个统一管理平台,统一管理平台又可以包括萌宠游戏版块、娱乐版块以及聊天版块等,萌宠游戏、娱乐以及聊天就属于不同的垂类,对应不同的内容提供方。相应的,不同的内容提供方为对不同的垂类设定服务的提供方。The unified management platform may include multiple vertical categories, and different vertical categories correspond to different content providers. The vertical category can be a section included in the unified management platform. In a specific example, a community-based Internet product can include a unified management platform, and the unified management platform can include cute pet game sections, entertainment sections, and chat sections, etc. Games, entertainment, and chat belong to different vertical categories, corresponding to different content providers. Correspondingly, different content providers are providers of setting services for different vertical categories.
S120、所述统一管理平台在多个类型的数据源接入模块中,获取与所述接入类型匹配的目标数据源接入模块。S120: The unified management platform obtains, from among multiple types of data source access modules, a target data source access module matching the access type.
其中,数据源接入模块的作用在于接入数据源,数据源接入模块可以与数据源的接入类型对应,不同的数据源接入类型可以对应不同的数据源接入模块。在一个具体的示例中,应用程序接口推拉数据源接入模块,将数据源接入到统一管理平台中可以使用应用程序接口推拉的方式。统一管理平台中,可以设置多种数据源的接入类型,相应的,可以设置多种类型的数据源接入模块。可选的,数据源接入模块可以为在统一管理平台中预先进行配置。The function of the data source access module is to access the data source, the data source access module may correspond to the access type of the data source, and different data source access types may correspond to different data source access modules. In a specific example, the application program interface pushes and pulls the data source access module, and the application program interface push and pull method can be used to connect the data source to the unified management platform. In the unified management platform, access types of multiple data sources can be set, and correspondingly, multiple types of data source access modules can be set. Optionally, the data source access module may be pre-configured in the unified management platform.
在本申请实施例中,在统一管理平台设置的多种类型的数据源接入模块中,获取与接入类型对应数据源接入模块,作为目标数据源接入模块,对目标数据源进行接入。In the embodiment of the present application, among the various types of data source access modules set on the unified management platform, a data source access module corresponding to the access type is obtained, and used as a target data source access module to connect to the target data source enter.
S130、所述统一管理平台根据所述接入参数触发所述目标数据源接入模块,接入与所述数据源接入请求匹配的目标数据源。S130. The unified management platform triggers the target data source access module according to the access parameter, and accesses the target data source matching the data source access request.
在本申请实施例中,目标数据源接入请求中的接入参数可以触发目标数据源接入模块,目标数据源接入模块被触发后,将目标数据源接入统一管理平台。In the embodiment of the present application, the access parameter in the target data source access request may trigger the target data source access module, and after the target data source access module is triggered, the target data source is connected to the unified management platform.
本申请实施例的技术方案,通过将多个内容提供方的数据源通过接入模块接入到统一管理平台中。解决了现有技术中各内容提供方之间的数据源相互独立,从而造成的管理维护成本较高的问题。实现了统一管理平台对不同数据源进行统一的维护和管理。In the technical solutions of the embodiments of the present application, the data sources of multiple content providers are connected to the unified management platform through the access module. It solves the problem of high management and maintenance cost caused by independent data sources among various content providers in the prior art. It realizes the unified maintenance and management of different data sources by a unified management platform.
实施例二Embodiment 2
图2是本申请实施例二提供的一种数据处理方法的流程图,本申请实施例在上述实施例的基础上,在接入目标数据源的步骤之后,加入设置目标数据源查看权限,以及将目标数据源中的目标数据存储于存储空间的步骤,并对根据目标数据源的查看权限进行目标数据调用的步骤进行了进一步的具体化。FIG. 2 is a flowchart of a data processing method provided in Embodiment 2 of the present application. On the basis of the above-mentioned embodiment, in this embodiment of the present application, after the step of accessing the target data source, setting the viewing authority of the target data source is added, and The step of storing the target data in the target data source in the storage space, and the step of calling the target data according to the viewing authority of the target data source is further specified.
相应的,如图2所示,本申请实施例的技术方案,具体包括如下步骤:Correspondingly, as shown in FIG. 2 , the technical solution of the embodiment of the present application specifically includes the following steps:
S210、统一管理平台响应于目标内容提供方的数据源接入请求,获取与所述数据源接入请求匹配的接入类型和接入参数,所述统一管理平台预先连接多个内容提供方。S210. The unified management platform acquires the access type and access parameters matching the data source access request in response to the data source access request of the target content provider, and the unified management platform connects multiple content providers in advance.
S220、所述统一管理平台在多个类型的数据源接入模块中,获取与所述接入类型匹配的目标数据源接入模块。S220: The unified management platform obtains, from among multiple types of data source access modules, a target data source access module matching the access type.
S230、所述统一管理平台根据所述接入参数触发所述目标数据源接入模块,接入与所述数据源接入请求匹配的目标数据源。S230. The unified management platform triggers the target data source access module according to the access parameter, and accesses the target data source matching the data source access request.
S240、所述统一管理平台响应于所述目标内容提供方的权限设置指令,设置所述目标数据源的查看权限为私有权限或公有权限。S240. The unified management platform, in response to the permission setting instruction of the target content provider, sets the viewing permission of the target data source as a private permission or a public permission.
其中,权限设置指令可以为内容提供方发出,用以设置数据源查看权限的指令。查看权限可以用以指示数据源中的数据是否可以被其他数据源访问。The permission setting instruction may be an instruction issued by the content provider to set the viewing permission of the data source. View permissions can be used to indicate whether data in a data source can be accessed by other data sources.
在本申请实施例中,设置为私有权限的数据源可以仅允许接入所述数据源的内容提供方访问,设置为公有权限的数据源还可以允许接入所述数据源的内容提供方所发放权限的内容提供方访问。In this embodiment of the present application, a data source set to private authority may only allow access to content providers accessing the data source, and a data source set to public authority may also allow access to all content providers accessing the data source. Content provider access to which permissions are issued.
其中,一个服务器提供方可以向统一管理平台中包括的全部服务器提供方发放权限,也可以仅对统一管理平台中包括的一个或者指定几个内容提供方发放权限,本实施例对此并不进行限制。One server provider may issue authority to all server providers included in the unified management platform, or may issue authority to only one or specified several content providers included in the unified management platform, which is not performed in this embodiment. limit.
S250、所述统一管理平台从所述目标数据源中获取目标数据,并将所述目标数据存储于与所述目标内容提供方匹配的存储空间中。S250. The unified management platform acquires target data from the target data source, and stores the target data in a storage space matching the target content provider.
其中,目标数据可以是需要进行共享的数据。在一个具体的示例中,目标数据可以是目标数据源中的优质数据,当出现新的内容提供方时,新的内容提供方需要借鉴其它内容提供方数据源中的优质内容,此时,其它内容提供方数据源中的优质内容需要与新的内容提供方进行共享,其它内容提供方数据源中的优质内容就可以成为目标数据。The target data may be data that needs to be shared. In a specific example, the target data may be high-quality data in the target data source. When a new content provider appears, the new content provider needs to learn from the high-quality content in the data source of other content providers. The high-quality content in the data source of the content provider needs to be shared with the new content provider, and the high-quality content in the data source of other content providers can become the target data.
在本申请实施例中,目标数据源接入到统一管理平台后,统一管理平台将目标数据源中的目标数据存储到与目标内容提供方对应的存储空间中,各个内容提供方对应的存储空间中的数据是相对独立的。In the embodiment of the present application, after the target data source is connected to the unified management platform, the unified management platform stores the target data in the target data source in the storage space corresponding to the target content provider, and the storage space corresponding to each content provider The data in are relatively independent.
S260、判断所述目标数据源的查看权限是否为公有权限,如果是,执行S270,否则,执行S2100。S260. Determine whether the viewing authority of the target data source is a public authority, and if so, execute S270, otherwise, execute S2100.
S270、所述统一管理平台响应于其他内容提供方的数据访问请求。S270. The unified management platform responds to data access requests from other content providers.
其中,数据访问请求可以为目标内容提供方之外的其他内容提供方发出,用以请求访问目标内容提供方的目标数据源中的目标数据。The data access request may be sent by other content providers than the target content provider to request access to the target data in the target data source of the target content provider.
在一个具体的示例中,娱乐垂类的内容提供方可以向萌宠游戏垂类的内容提供方对应的数据源发送数据访问请求。In a specific example, the content provider of the entertainment category may send a data access request to the data source corresponding to the content provider of the cute pet game category.
S280、判断所述其他内容提供方是否为其他具有查看权限的内容提供方,如果是,执行S290,否则,执行S2100。S280: Determine whether the other content providers are other content providers with viewing rights, and if so, go to S290, otherwise, go to S2100.
在本申请实施例中,如果其他内容提供方是其他具有查看权限的内容提供方,则其他内容提供方可以访问目标数据源,调用目标数据。In this embodiment of the present application, if other content providers are other content providers with viewing rights, the other content providers can access the target data source and call the target data.
S290、将存储的所述目标数据提供给所述其他内容提供方进行访问。S290. Provide the stored target data to the other content providers for access.
S2100、结束。S2100. End.
在一个具体的例子中,内容提供方A在登录统一管理平台进行数据管理时,通过向统一管理平台发送数据访问请求,统一管理平台可以首先根据该内容提供方A的标识信息,从存储空间中,获取与所述标识信息对应存储的数据提供给内容提供方A,也即,将从该内容提供方A选择接入的数据源处获取的全部数据提供给内容提供方A;此外,该统一管理平台还会在与其他内容提供方的标识信息对应存储的数据中,筛选出查看权限为公有权限,且内容提供方A具有查看权限的共享数据,并将该共享数据提供给统一管理平台。进而,内容提供方A可以基于统一管理平台提供的上述两类数据进行数据加工、处理或者发布等工作。In a specific example, when content provider A logs in to the unified management platform for data management, by sending a data access request to the unified management platform, the unified management platform can first, according to the identification information of the content provider A, retrieve the data from the storage space. , obtain the data stored corresponding to the identification information and provide it to the content provider A, that is, provide all the data obtained from the data source that the content provider A selects to access to the content provider A; in addition, the unified The management platform will also filter out the data stored corresponding to the identification information of other content providers, and filter out the shared data whose viewing rights are public rights and content provider A has the viewing rights, and provide the shared data to the unified management platform. Furthermore, the content provider A may perform data processing, processing or publishing based on the above two types of data provided by the unified management platform.
本实施例的技术方案,通过将多个内容提供方的数据源通过接入模块接入到统一管理平台中,将数据源中的数据存储到与内容提供方对应的存储空间,并对数据源设置不同的查看权限,根据查看权限确定数据源对应的数据是否可以被其他内容提供方进行访问。解决了现有技术中,各内容提供方之间的数据源相互独立,从而造成的跨内容提供方的数据源之间无法进行数据共享的问题。实现了跨内容提供方的数据源之间的数据共享,降低了内容提供方获取其他内容提供方对应数据源中的数据的成本,提高了内容提供方的工作效率。In the technical solution of this embodiment, by connecting the data sources of multiple content providers to the unified management platform through the access module, the data in the data sources are stored in the storage space corresponding to the content providers, and the data sources are stored in the storage space corresponding to the content providers. Set different viewing permissions, and determine whether the data corresponding to the data source can be accessed by other content providers according to the viewing permissions. It solves the problem that in the prior art, the data sources among the content providers are independent of each other, so that data cannot be shared among the data sources across the content providers. Data sharing between data sources across content providers is realized, the cost for content providers to acquire data in data sources corresponding to other content providers is reduced, and the work efficiency of content providers is improved.
实施例三Embodiment 3
图3是本申请实施例三提供的一种数据处理方法的流程图,本申请实施例在上述实施例的基础上,加入了统计所接入的各个数据源的读写状态,并根据读写状态,对各个数据源进行上线、下线处理,或者对数据源断开接入的步骤。FIG. 3 is a flowchart of a data processing method provided in Embodiment 3 of the present application. On the basis of the above-mentioned embodiment, this embodiment of the present application adds statistics on the read/write status of each data source accessed, and calculates the read/write state according to the read/write status. Status, go online and offline for each data source, or disconnect the data source.
相应的,如图3所示,本申请实施例的技术方案,具体包括如下步骤:Correspondingly, as shown in FIG. 3 , the technical solution of the embodiment of the present application specifically includes the following steps:
S310、统一管理平台响应于目标内容提供方的数据源接入请求,获取与所述数据源接入请求匹配的接入类型和接入参数,所述统一管理平台预先连接多个内容提供方。S310. The unified management platform acquires the access type and access parameters matching the data source access request in response to the data source access request of the target content provider, and the unified management platform connects multiple content providers in advance.
S320、所述统一管理平台在多个类型的数据源接入模块中,获取与所述接入类型匹配的目标数据源接入模块。S320: The unified management platform obtains, from among multiple types of data source access modules, a target data source access module matching the access type.
S330、所述统一管理平台根据所述接入参数触发所述目标数据源接入模块,接入与所述数据源接入请求匹配的目标数据源。S330: The unified management platform triggers the target data source access module according to the access parameter, and accesses the target data source matching the data source access request.
S340、所述统一管理平台从所述目标数据源中获取目标数据,并将所述目标数据存储于与所述目标内容提供方匹配的存储空间中。S340. The unified management platform acquires target data from the target data source, and stores the target data in a storage space matching the target content provider.
S350、所述统一管理平台统计所接入的各个数据源的读写状态。S350. The unified management platform counts the read/write status of each data source accessed.
其中,读写状态可以为数据源在一定时间内,被读取数据或被写入数据的次数。读写状态可以反映数据源的使用状态,在一段时间内,数据源的读写次数越高,表明数据源的活跃度或使用率越高,反之,则表明数据源的活跃度或使用率较低。The read/write status may be the number of times the data source has read data or written data within a certain period of time. The read and write status can reflect the usage status of the data source. In a period of time, the higher the number of reads and writes of the data source, the higher the activity or usage rate of the data source, and vice versa. Low.
S360、所述统一管理平台判断当前数据源是否处于上线状态,如果是,执行S370,否则,执行S390。S360. The unified management platform determines whether the current data source is in an online state, and if so, executes S370, otherwise, executes S390.
其中,上线状态可以为数据源中数据的存储状态为暴露存储,暴露存储可以指数据源中的数据在统一管理平台中被展示给用户。下线状态可以为数据源中的数据存储状态为隐藏存储,隐藏存储可以指数据源中的数据在统一管理平台中被隐藏,用户无法获取。The online status may be that the storage status of the data in the data source is exposed storage, and the exposed storage may refer to the data in the data source being displayed to the user in the unified management platform. The offline status can be that the data storage status in the data source is hidden storage. Hidden storage can mean that the data in the data source is hidden in the unified management platform and cannot be obtained by users.
在本申请实施例中,处于下线状态的数据源不能被内容提供方所访问,处于上线状态的数据源能够被内容提供方所访问。In this embodiment of the present application, the data source in the offline state cannot be accessed by the content provider, and the data source in the online state can be accessed by the content provider.
S370、所述统一管理平台判断当前处于上线状态的第一数据源在第一时间区间内的读写次数是否小于第一阈值,如果是,则执行S380,否则,执行S3140。S370. The unified management platform judges whether the number of reads and writes of the first data source currently in the online state within the first time interval is less than the first threshold, and if so, execute S380, otherwise, execute S3140.
在本申请实施例中,如果第一数据源当前属于上线状态,但是第一时间区间内的读写次数小于第一阈值,则可以说明第一数据源的活跃度或者使用率较低,可以将第一数据源的状态修改为下线状态,以提高资源利用率。In the embodiment of the present application, if the first data source is currently in the online state, but the number of reads and writes in the first time interval is less than the first threshold, it can indicate that the activity or usage rate of the first data source is low, and the The state of the first data source is modified to an offline state to improve resource utilization.
其中,所述读写次数,可以为读次数以及写次数的总和,获取两者的均值或者最大值等,本实施例对此并不进行限制。其中,所述数据源的写次数,反映了数据源中所出现的新的数据的数量,所述数据源的读次数,反映该数据源中的数据被其他下游模块所使用的次数,当该读写次数比较低时,说明一个数据源的活跃度以及使用率较低。The number of times of reading and writing may be the sum of the number of times of reading and writing, and the average or the maximum value of the two may be obtained, which is not limited in this embodiment. The number of writes of the data source reflects the number of new data appearing in the data source, and the number of reads of the data source reflects the number of times the data in the data source is used by other downstream modules. When the number of reads and writes is relatively low, it indicates that the activity and usage rate of a data source is low.
典型的,所述统一管理平台可以通过预设的离线任务,以设定时间单位(例如,月、周、天或者小时等)监控平台中各个数据源的读写状态。Typically, the unified management platform can monitor the read/write status of each data source in the platform in a set time unit (eg, month, week, day, or hour, etc.) through a preset offline task.
S380、将与第一数据源对应的第一数据的存储状态由暴露存储修改为隐藏存储,以对所述第一数据源进行下线处理。S380. Modify the storage state of the first data corresponding to the first data source from exposed storage to hidden storage, so as to perform offline processing on the first data source.
在本申请实施例中,如果第一数据源的活跃度或者使用率较低,可以通过将第一数据源中的第一数据存储状态由暴露存储修改为隐藏存储,从而将第一数据源的状态修改为下线状态。In this embodiment of the present application, if the activity or usage rate of the first data source is low, the first data storage state in the first data source may be modified from exposed storage to hidden storage, thereby changing the storage status of the first data source. The status is changed to offline status.
这样设置的好处在于,实现了智能化切换使用率较低的数据源的状态,减少了资源浪费,降低了数据源的维护成本。The advantage of this setting is that it realizes intelligent switching of the states of data sources with low usage rates, reduces waste of resources, and reduces maintenance costs of data sources.
S390、所述统一管理平台判断当前处于下线状态的第二数据源在第二时间区间内的读写次数是否大于等于第二阈值,如果是,则执行S3100,否则,执行S3110。S390. The unified management platform judges whether the number of times of reading and writing in the second time interval of the second data source that is currently offline is greater than or equal to the second threshold, and if so, execute S3100, otherwise, execute S3110.
在本申请实施例中,如果第二数据源当前属于下线状态,但是第二时间区间内的读写次数大于等于第二阈值,则可以说明第二数据源的活跃度或者使用率较高,可以将其状态修改为上线状态,以提高数据源的利用率。In this embodiment of the present application, if the second data source is currently in the offline state, but the number of reads and writes in the second time interval is greater than or equal to the second threshold, it can indicate that the second data source has a high activity or usage rate, Its status can be modified to go online to improve the utilization of the data source.
S3100、所述统一管理平台将与第二数据源对应的第二数据的存储状态由隐藏存储修改为暴露存储,以对所述第一数据源进行上线处理。S3100. The unified management platform modifies the storage state of the second data corresponding to the second data source from hidden storage to exposed storage, so as to perform online processing on the first data source.
在本申请实施例中,如果第二数据源处于下线状态,但是活跃度或者使用率较高,可以通过将第二数据源中的第二数据存储状态由隐藏存储修改为暴露存储,从而将第二数据源的状态修改为上线状态。In this embodiment of the present application, if the second data source is offline, but the activity or usage rate is high, the storage state of the second data in the second data source can be changed from hidden storage to exposed storage, so that The state of the second data source is modified to the online state.
这样设置的好处在于,实现了智能化切换使用率较低的数据源的状态,提高了数据源的利用效率。The advantage of this setting is that it realizes intelligent switching of the status of the data source with low usage rate, and improves the utilization efficiency of the data source.
S3110、判断当前处于下线状态的第三数据源在第三时间区间内的读写次数是否小于第三阈值,如果是,执行S3120,否则,执行S3140。S3110: Determine whether the number of times of reading and writing in the third time interval of the third data source currently in the offline state is less than the third threshold, and if so, execute S3120, otherwise, execute S3140.
在本申请实施例中,如果第三数据源当前属于下线状态,但是第三时间区间内的读写次数小于第三阈值,则可以说明第三数据源在第三时间区间内接入的数据较少,或被访问的次数较少,使用率较低,长时间占用存储空间,会造成资源浪费。In this embodiment of the present application, if the third data source is currently in the offline state, but the number of reads and writes in the third time interval is less than the third threshold, it can indicate that the data accessed by the third data source in the third time interval Less, or accessed less frequently, the usage rate is low, and the storage space is occupied for a long time, which will cause waste of resources.
在本实施例中,第一阈值、第二阈值以及第三阈值的取值可以相同,也可以不同,本实施例对此并不进行限制,可选的,可以设置第二阈值大于第一阈值,第一阈值大于第三阈值。In this embodiment, the values of the first threshold, the second threshold and the third threshold may be the same or different, which is not limited in this embodiment. Optionally, the second threshold may be set to be greater than the first threshold , the first threshold is greater than the third threshold.
值得进行说明的是,第一时间区间、第二时间区间以及第三时间区间可以设置为相同或不同,本申请实施例对第一时间区间、第二时间区间以及第三时间区间的具体大小不进行限制。It should be noted that the first time interval, the second time interval, and the third time interval may be set to be the same or different, and the specific sizes of the first time interval, the second time interval, and the third time interval are different in this embodiment of the present application. limit.
S3120、断开对所述第三数据源的接入。S3120. Disconnect the access to the third data source.
在本申请实施例中,如果第三数据源为下线状态,并且活跃度或使用率较低,则可以将第三数据源从统一管理平台中断开接入,并将第三数据源对应的全部数据从统一管理平台中删除。In this embodiment of the present application, if the third data source is offline and the activity or usage rate is low, the third data source may be disconnected from the unified management platform, and the third data source may be corresponding to All data is deleted from the unified management platform.
这样设置的好处在于,及时将活跃度不高,长时间未使用或使用率较低的数据源停用,可以避免资源浪费,提高统一管理平台的存储空间的利用效率。The advantage of this setting is that the data sources that are not active, have not been used for a long time, or have low usage rates can be deactivated in time, which can avoid wasting resources and improve the utilization efficiency of the storage space of the unified management platform.
S3130、所述统一管理平台在存储空间中同步删除与所述第三数据源对应的全部数据。S3130: The unified management platform synchronously deletes all data corresponding to the third data source in the storage space.
S3140、结束。S3140. End.
本实施例的技术方案,通过将多个内容提供方的数据源通过接入模块接入到统一管理平台中,将数据源中的数据存储到与内容提供方对应的存储空间,对接入的各个数据源的读写状态进行统计,并根据读写状态,修改数据源的状态,或断开数据源的接入。解决了现有技术中,长时间未被引用的数据源甚至空数据源长期占用存储空间,造成的资源浪费问题,以及人工管理数据源成本高昂、效率低下的问题。实现了数据源上线、下线状态的自动管理,以及对无效数据源的及时回收,提高了对数据源的管理效率,节省了对数据源的管理成本。In the technical solution of this embodiment, by connecting the data sources of multiple content providers to the unified management platform through the access module, the data in the data sources is stored in the storage space corresponding to the content provider, and the access The read and write status of each data source is counted, and according to the read and write status, the status of the data source is modified, or the access to the data source is disconnected. It solves the problem of resource waste caused by data sources that have not been referenced for a long time or even empty data sources occupying storage space for a long time, and the problems of high cost and low efficiency of manual management of data sources in the prior art. It realizes the automatic management of the online and offline status of data sources, as well as the timely recovery of invalid data sources, which improves the management efficiency of data sources and saves the management cost of data sources.
需要说明的是,除了可以由统一管理平台统一确定对平台中所接入的全部数据源进行读写状态的检测,并进行数据源的上线或者下线处理之外,内容提供方可以自主选择对所接入的一个或者多个指定数据源进行上线或者下线处理,并相应设置上线或者下线处理的处理策略,例如,上述第一时间区间、第二时间区间、第一阈值以及第二阈值的取值等。统一管理平台根据内容提供方选择监控的数据源,以及相应的处理策略,对满足要求的数据源进行上线或者下线处理。It should be noted that, in addition to the unified management platform that can determine the read and write status of all data sources connected to the platform, and perform online or offline processing of data sources, content providers can independently choose to One or more specified data sources accessed are processed online or offline, and the processing strategy for online or offline processing is set accordingly, for example, the above-mentioned first time interval, second time interval, first threshold, and second threshold value, etc. The unified management platform conducts on-line or off-line processing of data sources that meet the requirements according to the data sources selected by the content provider to monitor and the corresponding processing strategies.
实施例四Embodiment 4
图4是本申请实施例四提供的一种数据处理装置的结构示意图,该装置包括:接入类型和接入参数获取模块410、目标数据源接入模块获取模块420以及目标数据源接入模块430。其中:FIG. 4 is a schematic structural diagram of a data processing apparatus provided in Embodiment 4 of the present application. The apparatus includes: an access type and access
接入类型和接入参数获取模块410,用于使统一管理平台响应于目标内容提供方的数据源接入请求,获取与所述数据源接入请求匹配的接入类型和接入参数,所述统一管理平台预先连接多个内容提供方;The access type and access
目标数据源接入模块获取模块420,用于使所述统一管理平台在多个类型的数据源接入模块中,获取与所述接入类型匹配的目标数据源接入模块;a target data source access
目标数据源接入模块430,用于使所述统一管理平台根据所述接入参数触发所述目标数据源接入模块,接入与所述数据源接入请求匹配的目标数据源;a target data
本申请实施例的技术方案,通过将多个内容提供方的数据源通过接入模块接入到统一管理平台中。解决了现有技术中各内容提供方之间的数据源相互独立,从而造成的管理维护成本较高的问题。实现了统一管理平台对不同数据源进行统一的维护和管理。In the technical solutions of the embodiments of the present application, the data sources of multiple content providers are connected to the unified management platform through the access module. It solves the problem of high management and maintenance cost caused by independent data sources among various content providers in the prior art. It realizes the unified maintenance and management of different data sources by a unified management platform.
在上述实施例的基础上,所述装置,还包括:On the basis of the foregoing embodiment, the device further includes:
目标数据存储模块,用于使所述统一管理平台从所述目标数据源中获取目标数据,并将所述目标数据存储于与所述目标内容提供方匹配的存储空间中。A target data storage module, configured to enable the unified management platform to acquire target data from the target data source, and store the target data in a storage space matched with the target content provider.
在上述实施例的基础上,所述装置,还包括:On the basis of the foregoing embodiment, the device further includes:
查看权限设置模块,用于使所述统一管理平台响应于所述目标内容提供方的权限设置指令,设置所述目标数据源的查看权限为私有权限或公有权限;The viewing authority setting module is configured to enable the unified management platform to set the viewing authority of the target data source as a private authority or a public authority in response to the authority setting instruction of the target content provider;
其中,设置为私有权限的数据源仅允许接入所述数据源的内容提供方访问,设置为公有权限的数据源还允许其他具有查看权限的内容提供方访问。Wherein, a data source set as private permission is only allowed to be accessed by content providers who have access to the data source, and a data source set as public permission is also allowed to be accessed by other content providers with viewing permission.
在上述实施例的基础上,所述装置,还包括:On the basis of the foregoing embodiment, the device further includes:
数据访问请求响应模块,用于使所述统一管理平台响应于其他内容提供方的数据访问请求;a data access request response module, configured to make the unified management platform respond to data access requests from other content providers;
目标数据提供访问模块,用于使所述统一管理平台如果确定所述其他内容提供方为其他具有查看权限的内容提供方,则将存储的所述目标数据提供给所述其他内容提供方进行访问。A target data providing access module, configured to enable the unified management platform to provide the stored target data to the other content providers for access if it is determined that the other content providers are other content providers with viewing rights .
在上述实施例的基础上,所述装置,还包括:On the basis of the foregoing embodiment, the device further includes:
读写状态统计模块,用于使所述统一管理平台统计所接入的各个数据源的读写状态;A read-write state statistics module, used to make the unified management platform count the read-write states of each connected data source;
数据源处理模块,用于使所述统一管理平台根据所述读写状态,对各所述数据源进行下线,和/或上线处理;a data source processing module, configured to enable the unified management platform to perform offline and/or online processing on each of the data sources according to the read and write status;
其中,处于下线状态的数据源不能被内容提供方所访问,处于上线状态的数据源能够被内容提供方所访问。The data source in the offline state cannot be accessed by the content provider, and the data source in the online state can be accessed by the content provider.
在上述实施例的基础上,数据源处理模块,包括:On the basis of the above embodiment, the data source processing module includes:
下线处理单元,用于所述统一管理平台如果确定当前处于上线状态的第一数据源在第一时间区间内的读写次数小于第一阈值,则将与第一数据源对应的第一数据的存储状态由暴露存储修改为隐藏存储,以对所述第一数据源进行下线处理;The offline processing unit is used for the unified management platform, if it is determined that the number of reads and writes of the first data source currently in the online state in the first time interval is less than the first threshold, the first data source corresponding to the first data source will be processed. The storage state of the first data source is modified from exposed storage to hidden storage, so as to perform offline processing on the first data source;
上线处理单元,用于所述统一管理平台如果确定当前处于下线状态的第二数据源在第二时间区间内的读写次数大于等于第二阈值,则将与第二数据源对应的第二数据的存储状态由隐藏存储修改为暴露存储,以对所述第一数据源进行上线处理。The online processing unit is used for the unified management platform, if it is determined that the number of reads and writes of the second data source currently in the offline state in the second time interval is greater than or equal to the second threshold, the second data source corresponding to the second data source will be processed. The storage state of the data is changed from hidden storage to exposed storage, so as to perform online processing on the first data source.
在上述实施例的基础上,所述装置,还包括:On the basis of the foregoing embodiment, the device further includes:
数据源接入断开模块,用于所述统一管理平台如果确定当前处于下线状态的第三数据源在第三时间区间内的读写次数小于第三阈值,则断开对所述第三数据源的接入;The data source access disconnection module is used for the unified management platform to disconnect the third data source if it is determined that the number of times of reading and writing in the third time interval of the third data source that is currently offline is less than a third threshold. access to data sources;
数据删除模块,用于所述统一管理平台在存储空间中同步删除与所述第三数据源对应的全部数据。A data deletion module is used for the unified management platform to synchronously delete all data corresponding to the third data source in the storage space.
在上述实施例的基础上,所述接入类型,包括下述至少一项:On the basis of the foregoing embodiment, the access type includes at least one of the following:
应用程序接口推拉接入方式、一键镜像接入方式、文件导入接入方式、简易信息聚合接入方式以及第五代超文本标记语言页面接入方式。Application program interface push-pull access, one-key mirroring access, file import access, simple information aggregation access and fifth-generation hypertext markup language page access.
在上述实施例的基础上,所述内容提供方为网络站点中,设定垂类服务的提供方。On the basis of the above embodiment, the content provider is a provider of vertical services in the network site.
本申请实施例所提供的数据处理装置可执行本申请任意实施例所提供的数据处理方法,具备执行方法相应的功能模块和有益效果。The data processing apparatus provided by the embodiment of the present application can execute the data processing method provided by any embodiment of the present application, and has functional modules and beneficial effects corresponding to the execution method.
实施例五Embodiment 5
图5是本申请实施例五提供的一种电子设备的结构示意图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本申请的实现。FIG. 5 is a schematic structural diagram of an electronic device provided in Embodiment 5 of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are by way of example only, and are not intended to limit implementations of the application described and/or claimed herein.
如图5所示,该电子设备包括:一个或多个处理器501、存储器502,以及用于连接各部件的接口,包括高速接口和低速接口。各个部件利用不同的总线互相连接,并且可以被安装在公共主板上或者根据需要以其它方式安装。处理器可以对在电子设备内执行的指令进行处理,包括存储在存储器中或者存储器上以在外部输入/输出装置(诸如,耦合至接口的显示设备)上显示GUI的图形信息的指令。在其它实施方式中,若需要,可以将多个处理器和/或多条总线与多个存储器和多个存储器一起使用。同样,可以连接多个电子设备,各个设备提供部分必要的操作(例如,作为服务器阵列、一组刀片式服务器、或者多处理器系统)。图5中以一个处理器501为例。As shown in FIG. 5, the electronic device includes: one or
存储器502即为本申请所提供的非瞬时计算机可读存储介质。其中,所述存储器存储有可由至少一个处理器执行的指令,以使所述至少一个处理器执行本申请所提供的数据处理的方法。本申请的非瞬时计算机可读存储介质存储计算机指令,该计算机指令用于使计算机执行本申请所提供的数据处理的方法。The
存储器502作为一种非瞬时计算机可读存储介质,可用于存储非瞬时软件程序、非瞬时计算机可执行程序以及模块,如本申请实施例中的数据处理方法对应的模块(例如,附图4所示的接入类型和接入参数获取模块410、目标数据源接入模块获取模块420以及目标数据源接入模块430)。处理器501通过运行存储在存储器502中的非瞬时软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例中的数据处理方法。As a non-transitory computer-readable storage medium, the
存储器502可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据数据处理的电子设备的使用所创建的数据等。此外,存储器502可以包括高速随机存取存储器,还可以包括非瞬时存储器,例如至少一个磁盘存储器件、闪存器件、或其他非瞬时固态存储器件。在一些实施例中,存储器502可选包括相对于处理器501远程设置的存储器,这些远程存储器可以通过网络连接至数据处理电子设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The
数据处理方法的电子设备还可以包括:输入装置503和输出装置504。处理器501、存储器502、输入装置503和输出装置504可以通过总线或者其他方式连接,图5中以通过总线连接为例。The electronic device of the data processing method may further include: an
输入装置503可接收输入的数字或字符信息,以及产生与数据处理电子设备的用户设置以及功能控制有关的键信号输入,例如触摸屏、小键盘、鼠标、轨迹板、触摸板、指示杆、一个或者多个鼠标按钮、轨迹球、操纵杆等输入装置。输出装置504可以包括显示设备、辅助照明装置(例如,LED)和触觉反馈装置(例如,振动电机)等。该显示设备可以包括但不限于,液晶显示器(LCD)、发光二极管(LED)显示器和等离子体显示器。在一些实施方式中,显示设备可以是触摸屏。
此处描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、专用ASIC(专用集成电路)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein can be implemented in digital electronic circuitry, integrated circuit systems, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.
这些计算程序(也称作程序、软件、软件应用、或者代码)包括可编程处理器的机器指令,并且可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。如本文使用的,术语“机器可读介质”和“计算机可读介质”指的是用于将机器指令和/或数据提供给可编程处理器的任何计算机程序产品、设备、和/或装置(例如,磁盘、光盘、存储器、可编程逻辑装置(PLD)),包括,接收作为机器可读信号的机器指令的机器可读介质。术语“机器可读信号”指的是用于将机器指令和/或数据提供给可编程处理器的任何信号。These computational programs (also referred to as programs, software, software applications, or codes) include machine instructions for programmable processors, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages calculation program. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or apparatus for providing machine instructions and/or data to a programmable processor ( For example, magnetic disks, optical disks, memories, programmable logic devices (PLDs), including machine-readable media that receive machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user's computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。A computer system can include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发申请中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本申请公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, the steps described in the present application can be performed in parallel, sequentially or in different orders, and as long as the desired results of the technical solutions disclosed in the present application can be achieved, no limitation is imposed herein.
上述具体实施方式,并不构成对本申请保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本申请的精神和原则之内所作的修改、等同替换和改进等,均应包含在本申请保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of this application shall be included within the protection scope of this application.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911319414.XA CN111090691B (en) | 2019-12-19 | 2019-12-19 | A data processing method, device, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911319414.XA CN111090691B (en) | 2019-12-19 | 2019-12-19 | A data processing method, device, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111090691A CN111090691A (en) | 2020-05-01 |
CN111090691B true CN111090691B (en) | 2021-02-09 |
Family
ID=70396478
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911319414.XA Active CN111090691B (en) | 2019-12-19 | 2019-12-19 | A data processing method, device, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111090691B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113923256B (en) * | 2020-06-22 | 2024-05-03 | 北京金山云网络技术有限公司 | Data source management method, device, server and system |
CN118069687A (en) * | 2020-09-11 | 2024-05-24 | 支付宝(杭州)信息技术有限公司 | Data acquisition method, device, equipment and medium |
CN112738567B (en) * | 2020-12-22 | 2023-03-10 | 北京百度网讯科技有限公司 | Platform content processing method and device, electronic equipment and storage medium |
CN112966179B (en) * | 2021-03-05 | 2024-03-12 | 北京百度网讯科技有限公司 | Unified management methods, devices, equipment and storage media for information |
CN115145958B (en) * | 2022-06-28 | 2025-09-12 | 阿里云计算有限公司 | Data processing method and device |
CN116560579B (en) * | 2023-05-18 | 2024-06-04 | 上海威固信息技术股份有限公司 | Simulation data acquisition system based on multisource data fusion |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101080037A (en) * | 2006-05-26 | 2007-11-28 | 泰利双星科技有限公司 | Method and device for preparing mobile content |
CN101102315A (en) * | 2007-07-31 | 2008-01-09 | 中兴通讯股份有限公司 | Content provision method based on content verification |
CN101110079A (en) * | 2007-06-27 | 2008-01-23 | 中国科学院遥感应用研究所 | A Digital Earth Prototype System |
CN101115225A (en) * | 2006-07-28 | 2008-01-30 | 中兴通讯股份有限公司 | System and method for implementing RSS subscription using multimedia message of mobile terminal |
CN101247344A (en) * | 2008-03-28 | 2008-08-20 | 中国电信股份有限公司 | Access method supporting multiple IPTV services platform and IPTV terminal unit |
CN101493825A (en) * | 2008-12-17 | 2009-07-29 | 武汉中地数码科技有限公司 | GIS middleware collocation and management method |
CN101539931A (en) * | 2009-04-21 | 2009-09-23 | 中国民航大学 | Flight dynamic information data integrator and processing method |
CN103095710A (en) * | 2013-01-17 | 2013-05-08 | 北京交通大学 | Broadcast encryption transmission method in network based on identification and centering on contents |
CN104572794A (en) * | 2013-10-12 | 2015-04-29 | 李一石 | Method and system for showing network information in a user-friendly manner |
CN109582718A (en) * | 2018-10-17 | 2019-04-05 | 百度在线网络技术(北京)有限公司 | Data processing method, device and storage medium |
CN110474917A (en) * | 2019-08-16 | 2019-11-19 | 深圳前海微众银行股份有限公司 | The upper and lower line method of message-oriented middleware, device, equipment and readable storage medium storing program for executing |
CN110502563A (en) * | 2019-08-26 | 2019-11-26 | 腾讯科技(深圳)有限公司 | A kind of processing method and processing device of the data of multi-data source, storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7783635B2 (en) * | 2005-05-25 | 2010-08-24 | Oracle International Corporation | Personalization and recommendations of aggregated data not owned by the aggregator |
US8615719B2 (en) * | 2005-09-14 | 2013-12-24 | Jumptap, Inc. | Managing sponsored content for delivery to mobile communication facilities |
US9471925B2 (en) * | 2005-09-14 | 2016-10-18 | Millennial Media Llc | Increasing mobile interactivity |
CN101242299A (en) * | 2007-11-09 | 2008-08-13 | 中国移动通信集团江苏有限公司 | Data Hub—Networking Method for Business Support System |
EP3591978A4 (en) * | 2017-03-24 | 2020-04-08 | Sony Corporation | Content providing system, content providing method, and program |
-
2019
- 2019-12-19 CN CN201911319414.XA patent/CN111090691B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101080037A (en) * | 2006-05-26 | 2007-11-28 | 泰利双星科技有限公司 | Method and device for preparing mobile content |
CN101115225A (en) * | 2006-07-28 | 2008-01-30 | 中兴通讯股份有限公司 | System and method for implementing RSS subscription using multimedia message of mobile terminal |
CN101110079A (en) * | 2007-06-27 | 2008-01-23 | 中国科学院遥感应用研究所 | A Digital Earth Prototype System |
CN101102315A (en) * | 2007-07-31 | 2008-01-09 | 中兴通讯股份有限公司 | Content provision method based on content verification |
CN101247344A (en) * | 2008-03-28 | 2008-08-20 | 中国电信股份有限公司 | Access method supporting multiple IPTV services platform and IPTV terminal unit |
CN101493825A (en) * | 2008-12-17 | 2009-07-29 | 武汉中地数码科技有限公司 | GIS middleware collocation and management method |
CN101539931A (en) * | 2009-04-21 | 2009-09-23 | 中国民航大学 | Flight dynamic information data integrator and processing method |
CN103095710A (en) * | 2013-01-17 | 2013-05-08 | 北京交通大学 | Broadcast encryption transmission method in network based on identification and centering on contents |
CN104572794A (en) * | 2013-10-12 | 2015-04-29 | 李一石 | Method and system for showing network information in a user-friendly manner |
CN109582718A (en) * | 2018-10-17 | 2019-04-05 | 百度在线网络技术(北京)有限公司 | Data processing method, device and storage medium |
CN110474917A (en) * | 2019-08-16 | 2019-11-19 | 深圳前海微众银行股份有限公司 | The upper and lower line method of message-oriented middleware, device, equipment and readable storage medium storing program for executing |
CN110502563A (en) * | 2019-08-26 | 2019-11-26 | 腾讯科技(深圳)有限公司 | A kind of processing method and processing device of the data of multi-data source, storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111090691A (en) | 2020-05-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111090691B (en) | A data processing method, device, electronic device and storage medium | |
AU2017201395B9 (en) | Content item-centric conversation aggregation in shared folder backed integrated workspaces | |
JP6325001B2 (en) | Method and system using recursive event listeners in nodes of hierarchical data structures | |
US10097659B1 (en) | High performance geographically distributed data storage, retrieval and update | |
US11514090B2 (en) | Comments-ordering method, apparatus, device and computer storage medium | |
CN111770161B (en) | https sniffing jump method and device | |
CN111966502B (en) | Method, apparatus, electronic device and readable storage medium for adjusting instance number | |
CN112565356A (en) | Data storage method and device and electronic equipment | |
CN114402577A (en) | Caching capabilities for single-page applications | |
CN112069137A (en) | Method and device for generating information, electronic equipment and computer readable storage medium | |
CN111352944A (en) | Data processing method, device, electronic device and storage medium | |
KR20160070254A (en) | Providing system, method for real time canvas, program and recording medium thereof | |
CN110750419A (en) | Offline task processing method and device, electronic equipment and storage medium | |
US10530724B2 (en) | Large data management in communication applications through multiple mailboxes | |
WO2023098012A1 (en) | Bullet comment display method and apparatus | |
CN112770415B (en) | Information processing method and device for wireless hotspot | |
WO2025045002A9 (en) | Method and apparatus for processing data table, and device and storage medium | |
CN113792180A (en) | Duplicate removal method and device in recommendation scene, electronic equipment and storage medium | |
CN113553074B (en) | Small program distribution control method, device, electronic device and storage medium | |
CN116126445A (en) | Information display method, device, equipment and storage medium | |
CN115373930A (en) | View management method, device, electronic device and storage medium | |
CN111638982A (en) | Diversion method, diversion device and electronic equipment | |
CN114741444A (en) | Tissue architecture adjusting method and device, electronic equipment and storage medium | |
CN111597226A (en) | Data mining system, method, device, electronic device and storage medium | |
KR20160070255A (en) | Providing system, method for real time canvas, program and recording medium thereof |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |