CN104169914A - Data storage method, data processing method, device and mobile terminal - Google Patents
Data storage method, data processing method, device and mobile terminal Download PDFInfo
- Publication number
- CN104169914A CN104169914A CN201380008940.9A CN201380008940A CN104169914A CN 104169914 A CN104169914 A CN 104169914A CN 201380008940 A CN201380008940 A CN 201380008940A CN 104169914 A CN104169914 A CN 104169914A
- Authority
- CN
- China
- Prior art keywords
- data
- condition
- database
- business
- interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
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/90—Details of database functions independent of the retrieved data types
- G06F16/907—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/80—Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
- G06F16/83—Querying
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/13—File access structures, e.g. distributed indices
-
- 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
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)
- Library & Information Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域technical field
本发明涉及存储技术,特别涉及一种移动终端上的数据存储方法、装置及移动终端。The invention relates to storage technology, in particular to a data storage method and device on a mobile terminal and the mobile terminal.
背景技术Background technique
随着移动终端(比如智能手机)的功能越来越强大,用户不仅仅是用移动终端来打电话和发短信,更多是用来上网、拍照、社交(SNS)等应用的使用。而随着这些应用使用,用户在手机上产生的数据种类越来越多,信息量越来越大:比如,位置信息、传感器信息、多媒体信息/Media+(比如图片、笔记、日程、视频、浏览记录库)等等。As the functions of mobile terminals (such as smart phones) become more and more powerful, users not only use mobile terminals to make calls and send text messages, but also to use applications such as surfing the Internet, taking pictures, and social networking (SNS). With the use of these applications, users generate more and more types of data on mobile phones, and the amount of information is increasing: for example, location information, sensor information, multimedia information/Media+ (such as pictures, notes, schedules, videos, browsing record library) and so on.
现有技术中,移动终端的操作系统(比如安卓Android系统)中,所有的结构化数据均采用结构化查询语言嵌入(SQLite,Structured Query Language Lite)方式存储,数据存储位于/data/data/项目包(databases)中,也就是说,每个应用程序都有自己的数据存储目录;以多媒体消息服务(MMS,Multimedia Message Service)短信(或彩信)为例,在此应用的数据(data)目录中有专用的基础数据(Database)文件夹。每个程序有响应的应用数据目录,在目录下面有自己独立的“database”数据库目录,数据文件以SQLite数据库(DB,Database)方式存储在.db文件中。In the prior art, in the operating system of the mobile terminal (such as the Android system), all structured data are stored in the form of structured query language embedding (SQLite, Structured Query Language Lite), and the data storage is located in /data/data/project package (databases), that is to say, each application program has its own data storage directory; taking multimedia message service (MMS, Multimedia Message Service) SMS (or MMS) as an example, the data (data) directory of this application There is a dedicated basic data (Database) folder in . Each program has a corresponding application data directory, and has its own independent "database" database directory under the directory, and the data files are stored in the .db file in the form of SQLite database (DB, Database).
但是,发明人在对现有技术的研究和实践过程中发现,现有的实现方式中,每个程序需要独立构建自己的DB目录,需要独立的考虑自己的数据存放和数据库结构设计,开发繁琐;数据联合查询困难,不利于数据的维护和管理。However, the inventor found during the research and practice of the existing technology that in the existing implementation, each program needs to independently build its own DB directory, and needs to independently consider its own data storage and database structure design, and the development is cumbersome. ; Data joint query is difficult, which is not conducive to data maintenance and management.
发明内容Contents of the invention
本发明实施例中提供了一种移动终端上的数据存储方法、数据处理方法、装置及移动终端,以简化应用开发,方便管理与维护。Embodiments of the present invention provide a data storage method, a data processing method, a device, and a mobile terminal on a mobile terminal, so as to simplify application development and facilitate management and maintenance.
为了解决上述技术问题,本发明实施例公开了如下技术方案:In order to solve the above technical problems, the embodiment of the present invention discloses the following technical solutions:
第一方面提供了一种移动终端上的数据存储方法,所述方法包括:The first aspect provides a method for storing data on a mobile terminal, the method comprising:
记录移动终端上产生的业务操作数据;Record the business operation data generated on the mobile terminal;
确定所述业务操作数据的内容属性;determining the content attributes of the business operation data;
按照所述内容属性通过统一操作接口将所述业务操作数据进行半结构化存储。The business operation data is semi-structured stored through a unified operation interface according to the content attribute.
在第一方面的第一种可能的实现方式中,所述内容属性包括:通用属性、私有属性和关联属性信息,其中,所述通用属性是为各业务的共用字段;所述私有属性为各业务的差异化的字段,所述关联属性信息为关联所述通用属性和私有属性的信息。In a first possible implementation manner of the first aspect, the content attributes include: general attributes, private attributes, and associated attribute information, wherein the general attributes are common fields for each business; the private attributes are Differentiated fields of the business, the associated attribute information is the information associated with the general attributes and private attributes.
结合第一方面或第一方面第一种可能的实现方式,在第二种可能的实现方式中,所述确定所述业务操作数据的内容属性,包括:With reference to the first aspect or the first possible implementation manner of the first aspect, in the second possible implementation manner, the determining the content attribute of the business operation data includes:
将所述业务操作数据中各业务的共用字段上的数据确定为通用数据;以及Determining the data on the common field of each business in the business operation data as common data; and
将所述业务操作数据中各业务的差异化的字段上的数据确定为私有数据。Determining the data on the differentiated fields of each business in the business operation data as private data.
结合第一方面或第一方面第一种或第二种可能的实现方式,在第三种可能的实现方式中,所述按照所述内容属性通过统一接口将所述业务操作数据进行半结构化存储,包括:In combination with the first aspect or the first or second possible implementation of the first aspect, in a third possible implementation, the business operation data is semi-structured through a unified interface according to the content attribute storage, including:
将所述业务操作数据中的所述通用数据进行结构化存储,以及将所述业务操作数据中的所述私有数据进行非结构化存储;以及storing the general data in the business operation data in a structured manner, and storing the private data in the business operation data in an unstructured manner; and
存储所述通用数据和私有数据之间的关联属性信息。Store the associated attribute information between the general data and the private data.
结合第一方面或第一方面第一种或第二种或第三种可能的实现方式,在第四种可能的实现方式中,In combination with the first aspect or the first or second or third possible implementation of the first aspect, in a fourth possible implementation,
所述结构化存储为:将所述通用数据存储到数据库中预定义的数据表中;The structured storage is: storing the general data in a predefined data table in the database;
所述非结构化存储为:将所述私有数据以可扩展标记语言方式或键值对方式存储到大字段Blob中。The unstructured storage is: storing the private data in a large field Blob in the form of extensible markup language or key-value pairs.
结合第一方面或第一方面第一种或第二种或第三种或第四种可能的实现方式,在第五种可能的实现方式中,所述关联属性信息包括:分类和目录,标签,文件存储统一资源定位符,以及文件属性。In combination with the first aspect or the first or second or third or fourth possible implementation of the first aspect, in a fifth possible implementation, the associated attribute information includes: classification and category, label , the file storage uniform resource locator, and file attributes.
结合第一方面或第一方面第一种或第二种或第三种或第四种或第五种可能的实现方式,在第六种可能的实现方式中,所述统一操作接口为应用程序接口,所述应用程序接口包括至少对下述一项接口进行统一封装:存储接口、查找接口、修改接口或删除接口。In combination with the first aspect or the first or second or third or fourth or fifth possible implementation of the first aspect, in a sixth possible implementation, the unified operation interface is an application program An interface, the application program interface includes at least one of the following interfaces for unified encapsulation: a storage interface, a search interface, a modification interface or a deletion interface.
结合第一方面或第一方面第一种或第二种或第三种或第四种或第五种或第六种可能的实现方式,在第七种可能的实现方式中,所述应用程序接口还包括至少对下述一项接口进行封装:同步接口、备份接口或数据共享接口。In combination with the first aspect or the first or second or third or fourth or fifth or sixth possible implementation of the first aspect, in a seventh possible implementation, the application The interface also includes encapsulating at least one of the following interfaces: a synchronization interface, a backup interface or a data sharing interface.
第二方面提供了一种移动终端上的数据处理方法,所述方法包括:The second aspect provides a data processing method on a mobile terminal, the method comprising:
接收用户发送的处理请求;Receive processing requests sent by users;
确定所述处理请求的处理条件及所述用户的用户标识;determining the processing conditions of the processing request and the user ID of the user;
通过统一操作接口根据所述处理条件及所述用户标识对数据库的业务操作数据进行处理,获得处理结果;其中,所述数据库中的业务操作数据采用半结构化存储;Process the business operation data of the database according to the processing conditions and the user identification through the unified operation interface, and obtain a processing result; wherein, the business operation data in the database adopts semi-structured storage;
根据所述处理结果构造展示界面,并将所述处理结果通过所述展示界面展示给所述用户。A display interface is constructed according to the processing result, and the processing result is displayed to the user through the display interface.
在第二方面的第一种可能的实现方式中,所述统一操作接口为应用程序接口,所述应用程序接口包括至少对下述一项接口进行统一封装:存储接口、查找接口、修改接口或删除接口。In the first possible implementation of the second aspect, the unified operation interface is an application program interface, and the application program interface includes at least one of the following interfaces that are uniformly encapsulated: a storage interface, a lookup interface, a modification interface, or Delete the interface.
结合第二方面或第二方面第一种可能的实现方式,在第二种可能的实现方式中,所述应用程序接口还包括至少对下述一项接口进行统一封装:同步接口、备份接口或数据共享接口。With reference to the second aspect or the first possible implementation of the second aspect, in the second possible implementation, the application program interface further includes uniformly encapsulating at least one of the following interfaces: a synchronization interface, a backup interface, or Data sharing interface.
结合第二方面或第二方面第一种或第二种可能的实现方式,在第三种可能的实现方式中,所述处理请求包括:查找请求、修改请求、删除请求、同步请求、备份请求或数据共享请求;对应的处理条件为:查找条件、修改条件、删除条件、同步条件、备份条件或共享条件。With reference to the second aspect or the first or second possible implementation of the second aspect, in a third possible implementation, the processing request includes: a search request, a modification request, a deletion request, a synchronization request, and a backup request or a data sharing request; the corresponding processing conditions are: search conditions, modification conditions, deletion conditions, synchronization conditions, backup conditions or sharing conditions.
结合第二方面或第二方面第一种或第二种或第三种可能的实现方式,在第四种可能的实现方式中,In combination with the second aspect or the first or second or third possible implementation of the second aspect, in a fourth possible implementation,
如果所述处理条件为查询条件,则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述查询条件及所述用户标识对数据库进行查询,得到对应的通用数据和私有数据,组合所述通用数据和私有数据,得到包括所述通用数据和私有数据的列表;或If the processing condition is a query condition, then process the data in the database according to the processing condition and the user identifier, specifically: query the database according to the query condition and the user identifier to obtain the corresponding general data and private data, combining said general data and private data to obtain a list comprising said general data and private data; or
如果所述处理条件为修改条件,则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述修改条件及所述用户标识对数据库进行查询,得到对应的数据;修改所述数据;或If the processing condition is a modification condition, then process the data in the database according to the processing condition and the user identifier, specifically: query the database according to the modification condition and the user identifier to obtain corresponding data ; modify said data; or
如果所述处理条件为删除条件,则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述删除条件及所述用户标识对数据库进行查询,得到对应的数据;删除所述数据;或者If the processing condition is a deletion condition, then process the data in the database according to the processing condition and the user identifier, specifically: query the database according to the deletion condition and the user identifier to obtain corresponding data ; delete said data; or
如果所述处理条件为同步条件,则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述同步条件及所述用户标识对数据库进行查询,得到对应的数据;同步所述数据;或者If the processing condition is a synchronization condition, then process the data in the database according to the processing condition and the user identifier, specifically: query the database according to the synchronization condition and the user identifier to obtain corresponding data ; synchronize said data; or
如果所述处理条件为备份条件,则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述备份条件及所述用户标识对数据库进行查询,得到对应的数据;备份所述数据;或If the processing condition is a backup condition, then process the data in the database according to the processing condition and the user ID, specifically: query the database according to the backup condition and the user ID to obtain corresponding data ; back up said data; or
如果所述处理条件为共享条件,则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述共享条件及所述用户标识对数据库进行查询,得到对应的数据;共享所述数据。If the processing condition is a sharing condition, then process the data in the database according to the processing condition and the user identifier, specifically: query the database according to the sharing condition and the user identifier to obtain corresponding data ; share said data.
第三方面提供了一种数据存储装置,所述装置应用于移动终端,所述装置包括:A third aspect provides a data storage device, the device is applied to a mobile terminal, and the device includes:
记录单元,用于记录移动终端上产生的业务操作数据;A recording unit, configured to record business operation data generated on the mobile terminal;
确定单元,用于确定所述业务操作数据的内容属性;a determining unit, configured to determine the content attribute of the business operation data;
存储单元,用于按照所述内容属性通过统一操作接口将所述业务操作数据进行半结构化存储。The storage unit is configured to store the business operation data in a semi-structured manner through a unified operation interface according to the content attribute.
在第三方面的第一种可能的实现方式中,所述确定单元确定的所述内容属性包括:通用属性、私有属性以及关联属性信息,其中,所述通用属性是为各业务的共用字段;所述私有属性为各业务的差异化的字段,所述关联属性信息为关联所述通用属性和私有属性的信息。In a first possible implementation manner of the third aspect, the content attributes determined by the determining unit include: general attributes, private attributes, and associated attribute information, where the general attributes are common fields for all services; The private attribute is a differentiated field of each service, and the associated attribute information is information associating the general attribute and the private attribute.
结合第三方面或第三方面第一种可能的实现方式,在第二种可能的实现方式中,所述确定单元包括:With reference to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner, the determining unit includes:
第一确定单元,用于将所述业务操作数据中各业务的共用字段上的数据确定为通用数据;以及A first determining unit, configured to determine the data in the common field of each business in the business operation data as common data; and
第二确定单元,用于将所述业务操作数据中各业务的差异化的字段上的数据确定为私有数据。The second determining unit is configured to determine the data in the differentiated fields of each business in the business operation data as private data.
结合第三方面或第三方面第一种或第二种可能的实现方式,在第三种可能的实现方式中,所述存储单元包括:With reference to the third aspect or the first or second possible implementation manner of the third aspect, in a third possible implementation manner, the storage unit includes:
结构化存储单元,用于将所述业务操作数据中的所述通用数据进行结构化存储;a structured storage unit, configured to store the general data in the business operation data in a structured manner;
非结构化存储单元,用于将所述业务操作数据中的所述私有业务数进行非结构化存储;An unstructured storage unit, configured to unstructured store the private business data in the business operation data;
关联存储单元,用于存储所述通用数据和私有数据之间的关联属性信息。The associative storage unit is used to store the associative attribute information between the general data and the private data.
结合第三方面或第三方面第一种或第二种或第三种可能的实现方式,在第四种可能的实现方式中,In combination with the third aspect or the first or second or third possible implementation of the third aspect, in a fourth possible implementation,
所述结构化存储单元,具体用于将所述通用数据存储到数据库中预定义的数据表中;The structured storage unit is specifically used to store the general data in a predefined data table in the database;
所述非结构化存储单元,具体用于将所述私有数据以可扩展标记语言XML方式或键值对方式存储到大字段Blob中。The unstructured storage unit is specifically configured to store the private data in a large field Blob in the form of Extensible Markup Language XML or key-value pairs.
结合第三方面或第三方面第一种或第二种或第三种或第四种可能的实现方式,在第五种可能的实现方式中,所述关联存储单元存储的所述关联属性信息包括:分类和目录,标签,文件存储统一资源定位符,以及文件属性。In combination with the third aspect or the first or second or third or fourth possible implementation of the third aspect, in a fifth possible implementation, the associated attribute information stored by the associated storage unit Includes: categories and directories, tags, file storage URLs, and file attributes.
第四方面提供了一种数据处理装置,所述装置应用于移动终端中,所述装置包括:A fourth aspect provides a data processing device, the device is applied to a mobile terminal, and the device includes:
接收单元,用于接收用户发送的处理请求;a receiving unit, configured to receive a processing request sent by a user;
确定单元,用于确定所述处理请求的处理条件及所述用户的用户标识;a determining unit, configured to determine the processing condition of the processing request and the user ID of the user;
处理单元,用于通过统一操作接口根据所述处理条件及所述用户标识对数据库中的业务操作数据进行处理,并得到处理结果,根据所述处理结果构造展示界面,其中,所述数据库中的业务操作数据采用半结构化存储;The processing unit is configured to process the business operation data in the database according to the processing conditions and the user identification through a unified operation interface, and obtain a processing result, and construct a display interface according to the processing result, wherein the data in the database Business operation data adopts semi-structured storage;
展示单元,用于将所述处理结果通过所述展示界面展示给所述用户。A display unit, configured to display the processing result to the user through the display interface.
在第四方面的第一种可能的实现方式中,所述接收单元接收到的所述处理请求包括:查找请求、修改请求、删除请求、同步请求、备份请求或数据共享请求;In a first possible implementation manner of the fourth aspect, the processing request received by the receiving unit includes: a search request, a modification request, a deletion request, a synchronization request, a backup request, or a data sharing request;
所述确定单元确定的处理条件对应为:查找条件、修改条件、删除条件、同步条件、备份请求或数据共享条件。The processing conditions determined by the determination unit correspond to: search conditions, modification conditions, deletion conditions, synchronization conditions, backup requests or data sharing conditions.
结合第四方面或第四方面第一种可能的实现方式,在第二种可能的实现方式中,所述处理单元至少包括下述一个单元:With reference to the fourth aspect or the first possible implementation manner of the fourth aspect, in a second possible implementation manner, the processing unit includes at least one of the following units:
第一处理单元,用于在所述确定单元确定的处理条件为查询条件时,具体用于根据所述查询条件及所述用户标识对数据库进行查询,得到对应的通用数据和私有数据,组合所述通用数据和私有数据,得到包括所述通用数据和私有数据的列表;或The first processing unit is configured to query the database according to the query condition and the user ID when the processing condition determined by the determination unit is a query condition, to obtain corresponding general data and private data, and to combine the the general data and the private data to obtain a list including the general data and the private data; or
第二处理单元,用于在所述处理条件为修改条件时,根据所述修改条件及所述用户标识对数据库进行查询,得到对应的数据;修改所述数据;或The second processing unit is configured to, when the processing condition is a modification condition, query the database according to the modification condition and the user ID to obtain corresponding data; modify the data; or
第三处理单元,用于在所述处理条件为删除条件时,根据所述删除条件及所述用户标识对数据库进行查询,得到对应的数据;删除所述数据;或者A third processing unit, configured to, when the processing condition is a deletion condition, query the database according to the deletion condition and the user identifier to obtain corresponding data; delete the data; or
第四处理单元,用于在所述处理条件为同步条件时,根据所述同步条件及所述用户标识对数据库进行查询,得到对应的数据;同步所述数据;或者The fourth processing unit is configured to, when the processing condition is a synchronization condition, query the database according to the synchronization condition and the user identifier to obtain corresponding data; and synchronize the data; or
第五处理单元,用于在所述处理条件为备份条件时,根据所述备份条件及所述用户标识对数据库进行查询,得到对应的数据;备份所述数据;或The fifth processing unit is configured to, when the processing condition is a backup condition, query the database according to the backup condition and the user identifier to obtain corresponding data; back up the data; or
第六处理单元,用于在所述处理条件为共享条件时,根据所述共享条件及所述用户标识对数据库进行查询,得到对应的数据;共享所述数据。The sixth processing unit is configured to, when the processing condition is a sharing condition, query a database according to the sharing condition and the user identifier to obtain corresponding data; and share the data.
第五方面提供了一种移动终端,所述移动终端包括:A fifth aspect provides a mobile terminal, where the mobile terminal includes:
处理器,用于记录移动终端上产生的业务操作数据;并确定所述业务操作数据的内容属性;A processor, configured to record the business operation data generated on the mobile terminal; and determine the content attribute of the business operation data;
收发器,用于按照所述内容属性将通过统一操作接口将所述业务操作数据发送给存储器;A transceiver, configured to send the business operation data to the memory through a unified operation interface according to the content attribute;
存储器,用于将接收到的所述业务操作数据进行半结构化存储。The memory is used for semi-structured storage of the received business operation data.
在第五方面的第一种可能的实现方式中,所述处理器确定的所述内容属性包括:通用属性、私有属性和关联属性信息,其中,所述通用属性是为各业务的共用字段;所述私有属性为各业务的差异化的字段,所述关联属性信息为关联所述通用属性和私有属性的信息。In a first possible implementation manner of the fifth aspect, the content attributes determined by the processor include: general attributes, private attributes, and associated attribute information, where the general attributes are common fields for all services; The private attribute is a differentiated field of each service, and the associated attribute information is information associating the general attribute and the private attribute.
结合第五方面或第五方面第一种可能的实现方式,在第二种可能的实现方式中,所述处理器,还用于将所述业务操作数据中各业务的共用字段上的数据确定为通用数据;以及将所述业务操作数据中各业务的差异化的字段上的数据确定为私有数据。With reference to the fifth aspect or the first possible implementation manner of the fifth aspect, in a second possible implementation manner, the processor is further configured to determine the data in the common field of each business in the business operation data It is general data; and the data on the differentiated field of each business in the business operation data is determined as private data.
结合第五方面或第五方面第一种或第二种可能的实现方式,在第三种可能的实现方式中,所述存储器,具体用于将所述业务操作数据中的所述通用数据按照结构化存储,以及将所述业务操作数据中的所述私有数据按照非结构化存储;以及存储所述通用数据和私有数据之间的关联属性信息。With reference to the fifth aspect or the first or second possible implementation manner of the fifth aspect, in a third possible implementation manner, the memory is specifically configured to store the general data in the business operation data according to Structured storage, and unstructured storage of the private data in the business operation data; and storage of associated attribute information between the general data and private data.
结合第五方面或第五方面第一种或第二种或第三种可能的实现方式,在第四种可能的实现方式中,所述存储器对通用数据进行结构化存储具体为:将所述通用数据存储到数据库中预定义的数据表中;With reference to the fifth aspect or the first, second, or third possible implementation of the fifth aspect, in a fourth possible implementation, the structured storage of general data by the memory is specifically: General data is stored in a predefined data table in the database;
所述存储器对通用数据进行非结构化存储具体为:将所述私有数据以可扩展标记语言XML方式或键值对方式存储到大字段Blob中。The non-structured storage of the general data by the memory is specifically: storing the private data in a large field Blob in the form of Extensible Markup Language XML or key-value pairs.
第六方面提供了一种移动终端,所述移动终端包括:A sixth aspect provides a mobile terminal, where the mobile terminal includes:
收发器,用于接收用户发送的处理请求;A transceiver for receiving processing requests sent by users;
处理器,用于确定所述处理请求的处理条件及所述用户的用户标识;,并通过统一操作接口根据所述处理条件及所述用户标识对数据库的数据进行处理,获得处理结果,根据所述处理结果构造展示界面;其中,所述数据库的业务操作数据采用半结构化存储;The processor is configured to determine the processing conditions of the processing request and the user ID of the user; and process the data in the database according to the processing conditions and the user ID through a unified operation interface to obtain a processing result, and according to the The processing result constructs a display interface; wherein, the business operation data of the database adopts semi-structured storage;
所述屏幕,用于将所述处理结果通过所述展示界面展示给所述用户。The screen is configured to display the processing result to the user through the display interface.
在第六方面的第一种可能的实现方式中,所述收发器接收到的所述处理请求包括:查找请求、修改请求、删除请求、同步请求、备份请求或数据共享请求;In a first possible implementation manner of the sixth aspect, the processing request received by the transceiver includes: a search request, a modification request, a deletion request, a synchronization request, a backup request, or a data sharing request;
所述处理器确定对应的处理条件为:查找条件、修改条件、删除条件、同步条件、备份条件或共享条件。The processor determines that the corresponding processing condition is: a search condition, a modification condition, a deletion condition, a synchronization condition, a backup condition or a sharing condition.
结合第六方面或第六方面第一种可能的实现方式,在第二种可能的实现方式中,所述处理器具体用于:如果所述处理条件为查询条件,则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述查询条件及所述用户标识对数据库进行查询,得到对应的通用数据和私有数据,组合所述通用数据和私有数据,得到包括所述通用数据和私有数据的列表;或With reference to the sixth aspect or the first possible implementation manner of the sixth aspect, in a second possible implementation manner, the processor is specifically configured to: if the processing condition is a query condition, according to the processing condition and The user ID processes the data in the database, specifically: querying the database according to the query conditions and the user ID to obtain corresponding general data and private data, and combining the general data and private data to obtain a list of said general data and private data; or
如果所述处理条件为修改条件,则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述修改条件及所述用户标识对数据库进行查询,得到对应的数据;修改所述数据;或If the processing condition is a modification condition, then process the data in the database according to the processing condition and the user identifier, specifically: query the database according to the modification condition and the user identifier to obtain corresponding data ; modify said data; or
如果所述处理条件为删除条件,则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述删除条件及所述用户标识对数据库进行查询,得到对应的数据;删除所述数据;或者If the processing condition is a deletion condition, then process the data in the database according to the processing condition and the user identifier, specifically: query the database according to the deletion condition and the user identifier to obtain corresponding data ; delete said data; or
如果所述处理条件为同步条件,则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述同步条件及所述用户标识对数据库进行查询,得到对应的数据;同步所述数据;或者If the processing condition is a synchronization condition, then process the data in the database according to the processing condition and the user identifier, specifically: query the database according to the synchronization condition and the user identifier to obtain corresponding data ; synchronize said data; or
如果所述处理条件为备份条件,则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述备份条件及所述用户标识对数据库进行查询,得到对应的数据;备份所述数据;或If the processing condition is a backup condition, then process the data in the database according to the processing condition and the user ID, specifically: query the database according to the backup condition and the user ID to obtain corresponding data ; back up said data; or
如果所述处理条件为共享条件,则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述共享条件及所述用户标识对数据库进行查询,得到对应的数据;共享所述数据。If the processing condition is a sharing condition, then process the data in the database according to the processing condition and the user identifier, specifically: query the database according to the sharing condition and the user identifier to obtain corresponding data ; share said data.
第七方面提供了一种移动终端,包括:数据操作装置和数据存储装置,其中,The seventh aspect provides a mobile terminal, including: a data operation device and a data storage device, wherein,
所述数据操作装置,用于记录移动终端上产生的业务操作数据;确定所述业务操作数据的内容属性;并按照所述内容属性通过统一操作接口将所述业务操作数据发送到数据存储装置的对应接口上;The data operation device is used to record the business operation data generated on the mobile terminal; determine the content attribute of the business operation data; and send the business operation data to the data storage device through the unified operation interface according to the content attribute on the corresponding interface;
所述数据存储装置,用于通过所述对应接口接收所述数据操作装置发送的业务操作数据,并将所述业务操作数据进行半结构化存储。The data storage device is configured to receive the service operation data sent by the data operation device through the corresponding interface, and store the service operation data in a semi-structured manner.
在第七方面的第一种可能的实现方式中,所述数据操作装置确定的内容属性包括:通用属性、私有属性以及关联属性信息;其中,所述通用属性是为各业务的共用字段;所述私有属性为各业务的差异化的字段,所述关联属性信息为关联所述通用属性和私有属性的信息。In the first possible implementation manner of the seventh aspect, the content attributes determined by the data operation device include: general attributes, private attributes, and associated attribute information; wherein, the general attributes are common fields for all services; The private attribute is a differentiated field of each service, and the associated attribute information is information associating the general attribute and the private attribute.
结合第七方面或第七方面第一种可能的实现方式,在第二种可能的实现方式中,所述数据操作装置包括:With reference to the seventh aspect or the first possible implementation manner of the seventh aspect, in a second possible implementation manner, the data operation device includes:
记录单元,用于记录移动终端上产生的业务操作数据;A recording unit, configured to record business operation data generated on the mobile terminal;
确定单元,用于确定所述业务操作数据的内容属性;a determining unit, configured to determine the content attribute of the business operation data;
发送单元,用于按照所述内容属性通过统一操作接口将所述业务操作数据发送到数据存储装置的对应接口上。The sending unit is configured to send the business operation data to a corresponding interface of the data storage device through a unified operation interface according to the content attribute.
结合第七方面或第七方面第一种或第二种可能的实现方式,在第三种可能的实现方式中,所述确定单元包括:With reference to the seventh aspect or the first or second possible implementation manner of the seventh aspect, in a third possible implementation manner, the determining unit includes:
第一确定单元,用于将所述业务操作数据中各业务的共用字段上的数据确定为通用数据;以及A first determining unit, configured to determine the data in the common field of each business in the business operation data as common data; and
第二确定单元,用于将所述业务操作数据中各业务的差异化的字段上的数据确定为私有数据。The second determining unit is configured to determine the data in the differentiated fields of each business in the business operation data as private data.
结合第七方面或第七方面第一种或第二种或第三种可能的实现方式,在第四种可能的实现方式中,所述数据存储装置,具体用于将所述业务操作数据中的所述通用数据进行结构化存储,以及将所述业务操作数据中的所述私有数据进行非结构化存储;以及存储所述通用数据和私有数据之间的关联属性信息。With reference to the seventh aspect or the first, second, or third possible implementation manner of the seventh aspect, in a fourth possible implementation manner, the data storage device is specifically configured to store the business operation data in the Structured storage of the general data, unstructured storage of the private data in the business operation data; and storage of associated attribute information between the general data and private data.
由上述内容可知,本发明实施例中,通过记录移动终端产生的业务操作数据,以及通过统一操作接口将所述业务操作数据进行半结构化存储,简化了应用开发,也就是说,在应用程序开发时,无需关注数据库,只需要配置好自己的业务数据结构,然后调用统一操作接口进行操作,简单易用。It can be seen from the above that in the embodiment of the present invention, by recording the business operation data generated by the mobile terminal and storing the business operation data in a semi-structured manner through a unified operation interface, application development is simplified, that is, in the application program When developing, you don't need to pay attention to the database, you only need to configure your own business data structure, and then call the unified operation interface to operate, which is easy to use.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为本发明实施例提供的一种移动终端上的数据存储方法的流程图;FIG. 1 is a flow chart of a data storage method on a mobile terminal provided by an embodiment of the present invention;
图2为本发明实施例提供的一种统一内容模型的示意图;FIG. 2 is a schematic diagram of a unified content model provided by an embodiment of the present invention;
图3为本发明实施例提供的一种移动终端上的数据处理方法的流程图;FIG. 3 is a flowchart of a data processing method on a mobile terminal provided by an embodiment of the present invention;
图4为本发明实施例提供的一种数据存储装置的结构示意图;FIG. 4 is a schematic structural diagram of a data storage device provided by an embodiment of the present invention;
图5为本发明实施例提供的一种数据处理装置的结构示意图;FIG. 5 is a schematic structural diagram of a data processing device provided by an embodiment of the present invention;
图6为本发明实施例提供的一种移动终端的结构示意图;FIG. 6 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention;
图7为本发明实施例提供的一种移动终端的另一结构示意图;FIG. 7 is another schematic structural diagram of a mobile terminal provided by an embodiment of the present invention;
图8为本发明实施例提供的一种移动终端的另一结构示意图;FIG. 8 is another schematic structural diagram of a mobile terminal provided by an embodiment of the present invention;
图9为本发明实施例提供的一种移动终端的另一结构示意图;FIG. 9 is another schematic structural diagram of a mobile terminal provided by an embodiment of the present invention;
图10为本发明实施例提供的一种数据模块定义的示意图;FIG. 10 is a schematic diagram of a data module definition provided by an embodiment of the present invention;
图11为本发明实施例提供的第一种应用实例的流程图;Fig. 11 is a flow chart of the first application example provided by the embodiment of the present invention;
图12为本发明实施例提供的第二种应用实例的流程图;Fig. 12 is a flow chart of the second application example provided by the embodiment of the present invention;
图13为本发明实施例提供的第三种应用实例的流程图;FIG. 13 is a flowchart of a third application example provided by an embodiment of the present invention;
图14为图13提供的一种查询结果的展示图;Fig. 14 is a display diagram of a query result provided in Fig. 13;
图15为本发明实施例提供的第四种应用实例的流程图。Fig. 15 is a flowchart of a fourth application example provided by the embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整的描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。Terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. As used in the embodiments of the present invention and the appended claims, the singular forms "a", "said" and "the" are also intended to include the plural forms unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
请参阅图1,图1为本发明实施例提供的一种移动终端上的数据存储方法的流程图,所述方法包括:Please refer to FIG. 1. FIG. 1 is a flow chart of a data storage method on a mobile terminal provided by an embodiment of the present invention, the method comprising:
步骤101:记录移动终端上产生的业务操作数据;Step 101: recording the business operation data generated on the mobile terminal;
该步骤中,所述业务操作数据可以是在移动终端上产生的任何数据,比如,用户在使用智能手机发送短消息、彩信、通话记录、拍照或录音等等所产生的数据,可以称为业务操作数据,也就是说,只要是用户使用移动终端产生的任何数据,都可以称为业务操作数据。In this step, the service operation data can be any data generated on the mobile terminal, for example, the data generated by the user when using a smartphone to send short messages, multimedia messages, call records, photos or recordings, etc., can be called business Operation data, that is to say, any data generated by a user using a mobile terminal can be called service operation data.
步骤102:确定所述业务操作数据的内容属性;Step 102: Determine the content attribute of the business operation data;
该步骤中,确定所述业务操作数据的内容属性,就是确定该业务操作数据中哪些数据是私有数据,哪些数据是通用数据,以便于后续存储。In this step, determining the content attribute of the business operation data is to determine which data in the business operation data is private data and which data is general data, so as to facilitate subsequent storage.
其中,所述内容属性包括:通用属性、私有属性,以及二者之间的关联属性信息。但并不限于此,还可以包括其他属性,本实施例不作限制。所述通用属性为各业务的共用字段,该共用字段中的数据需要采用结构化存储;私有属性为各业务的差异化的字段,该差异化字段中的数据需要采用非结构化存储;所述关联属性信息为关联所述共用字段和差异化的字段的信息。Wherein, the content attributes include: common attributes, private attributes, and associated attribute information between the two. But it is not limited thereto, and may also include other attributes, which are not limited in this embodiment. The general attribute is a common field of each business, and the data in the common field needs to be stored in a structured manner; the private attribute is a differentiated field of each business, and the data in the differentiated field needs to be stored in an unstructured manner; The associated attribute information is information associated with the common field and the differentiated field.
该步骤中,将所述业务操作数据按照内容属性划分为对应通用属性的通用数据,以及对应私有属性的私有数据。即将所述业务操作数据中各业务的共用字段上的数据确定为通用数据;以及将所述业务操作数据中各业务的差异化的字段上的数据确定为私有数据。In this step, the business operation data is divided into general data corresponding to general attributes and private data corresponding to private attributes according to content attributes. That is to determine the data on the common fields of each business in the business operation data as common data; and determine the data on the differentiated fields of each business in the business operation data as private data.
其中,所述通用属性可以包括:时间、地点、人物、优先级,以及光圈和传感器等等共用字段,该通用属性主要是用来统一内容的基础属性,以便于后续根据这些字段进行检测、排序和分类查询等操作。这些共用字段上存储的数据称为通用数据。Wherein, the general attributes may include: time, place, person, priority, and common fields such as aperture and sensor, etc., the general attributes are mainly used to unify the basic attributes of the content, so as to facilitate subsequent detection and sorting according to these fields and classification queries. The data stored on these common fields is called common data.
所述私有属性,可以包括:电话、录音、拍照、记事等等差异化的字段,还可以包括扩展字段等,这些操作产生的业务操作数据都是私有数据,比如记录通话的通话时间、呼叫号码等;记录拍照的文件存储位置、文件大小等,记录录音的录音文件、录音名称等,以及,记录消息的消息内容、消息的发送状态等。这些数据均称为私有业务属性。需要说明的是,这些私有数据不需要服务器进行操作处理,客户端同步到本地后进行解析,并由客户端进行自行定义。The private attributes may include: differentiated fields such as phone calls, recordings, photos, notes, etc., and may also include extended fields, etc. The business operation data generated by these operations are all private data, such as recording the call time and call number etc.; record the storage location and file size of the photographed file, record the recording file, recording name, etc. of the recording, and record the message content and sending status of the message. These data are called private business attributes. It should be noted that these private data do not need to be processed by the server, and the client will perform analysis after synchronization to the local, and the client will define it by itself.
步骤103:按照所述内容属性通过统一操作接口将所述业务操作数据进行半结构化存储。Step 103: semi-structured storage of the business operation data through a unified operation interface according to the content attributes.
其中,所述统一操作接口为应用程序接口,所述应用程序接口包括对存储接口、查找接口、修改接口或删除接口的至少一项进行统一封装后的应用程序(API,ApplicationProgramming Interface)接口,进一步,所述统一操作接口还包括对同步接口、备份接口或数据共享接口的至少一项进行统一封装后的API接口。Wherein, the unified operation interface is an application program interface, and the application program interface includes an application program (API, Application Programming Interface) interface after uniformly encapsulating at least one of the storage interface, the search interface, the modification interface or the deletion interface, further The unified operation interface further includes an API interface that uniformly encapsulates at least one of a synchronization interface, a backup interface, or a data sharing interface.
其中,按照所述内容属性通过统一操作接口将所述业务操作数据进行半结构化存储,包括:Wherein, according to the content attribute, the business operation data is semi-structured stored through the unified operation interface, including:
将所述业务操作数据中的所述通用数据进行结构化存储,以及将所述业务操作数据中的所述私有数据进行非结构化存储;以及存储所述通用数据和私有数据之间的关联属性信息。其中,所述关联属性信息主要用来关联通用属性和私有属性的基础信息,主要用来存储内容的分类和目录,标签,文件存储统一资源定位符(URL,Uniform Resource Locator),以及文件属性等,但并不限于此,还可以适应性包括其他参数。storing the general data in the business operation data in a structured manner, and storing the private data in the business operation data in an unstructured manner; and storing the associated attributes between the general data and private data information. Wherein, the associated attribute information is mainly used to associate basic information of common attributes and private attributes, and is mainly used to store classifications and directories of content, labels, file storage Uniform Resource Locator (URL, Uniform Resource Locator), and file attributes, etc. , but is not limited to this, and can also be adapted to include other parameters.
也就是说,如果业务操作数据为通用数据,则将该业务通用数据存储到预定义的数据库的数据表的具体字段中,即结构化存储;如果业务操作数据为私有数据,则将该业务私有数据以可扩展标记语言方式或键值对方式存储到预定义的数据库中的大字段(Blob)中,即非机构化存储。That is to say, if the business operation data is general data, store the business general data in the specific field of the data table of the predefined database, that is, structured storage; if the business operation data is private data, then the business private data Data is stored in a large field (Blob) in a predefined database in the form of extensible markup language or key-value pairs, that is, non-institutionalized storage.
在该步骤中,对各业务共用字段上的业务数据通常采用结构化存储,也就是通常所说的以白盒方式来存储,这部分内容是透明的。而对于个业务差异化字段上的业务数据通常采用非结构化存储,所述非结构化存储是通过可扩展标记语言(XML,Extensible MarkupLanguage)方式或键值对方式进行存储,也就是通常所说的以黑盒方式来存储。In this step, the business data on the common fields of each business is usually stored in a structured manner, which is commonly referred to as white box storage, and this part of the content is transparent. For business data on a business differentiation field, unstructured storage is usually used, and the unstructured storage is stored in an Extensible Markup Language (XML, Extensible MarkupLanguage) mode or a key-value pair mode, which is commonly referred to as stored in a black box.
其中,数据库中的统一内容模型如图2所示,图2为本发明实施例提供的一种统一内容模型的示意图。该模型中对个字段进行了定义及说明。Wherein, the unified content model in the database is shown in FIG. 2 , and FIG. 2 is a schematic diagram of a unified content model provided by an embodiment of the present invention. Each field is defined and described in the model.
如图2中,将移动终端产生的业务操作数据采用统一的半结构化数据存储方式:对于时间、地点、人物、便签等各业务均需要保存的数据(通用数据)属性预先定义、统一存储和维护,以便于将来按照这些属性对内容进行展示和维护;对于各业务差异化的字段(即私有数据)采用非结构化存储。As shown in Figure 2, the business operation data generated by the mobile terminal adopts a unified semi-structured data storage method: the data (general data) attributes that need to be saved for each business such as time, place, person, and memo are pre-defined, unified storage and Maintenance, so that the content can be displayed and maintained according to these attributes in the future; unstructured storage is used for the differentiated fields (that is, private data) of each business.
也就是说,本实施例统一定义了移动终端上产生的业务操作数据,对于业务操作数据中“各业务共用的字段”的数据采用结构化方式存储,对于业务操作数据中“各业务差异化的字段”的数据采用非结构化存储,这样可以在保证扩展性和灵活性的同时能够统一维护管理数据。That is to say, this embodiment uniformly defines the business operation data generated on the mobile terminal, and adopts a structured way to store the data of "fields common to each business" in the business operation data, and stores the data of "differentiated fields of each business" in the business operation data "Field" data adopts unstructured storage, which can maintain and manage data in a unified manner while ensuring scalability and flexibility.
需要说明的是,本实施例中的通用数据,在系统中采用结构化存储,业务平台可以理解,并可以在业务逻辑处理中可以直接调用这些数据。以“时间”为例,不管是拍照还是短信,都有时间的概念,在业务平台中可以封装如下接口“查询XX时间段类拍照、发短信等记录”,这个时候只需要选择(Select)语句中加上时间条件即可完成;It should be noted that the general data in this embodiment is stored in a structured manner in the system, and the business platform can understand it, and can directly call these data in business logic processing. Taking "time" as an example, whether it is taking pictures or text messages, there is a concept of time. In the business platform, the following interface can be encapsulated to "query records such as taking pictures and sending text messages in XX time period". At this time, only the Select statement is needed. Add the time condition to complete;
而本实施例中的私有数据,这部分数据相对私有,具体的业务才会关注每个字段的含义,在系统中采用非结构化存储,业务平台不需要对该私有数据进行处理和操作,也不需要关注具体的字段,这就是通常所说的黑盒方式。即使业务平台需要理解这些数据,根据可扩展标记语言结构(XML Scheam)比对即可完成每个字段的解析;其中,XML Scheam,是用一套预先规定的XML元素和属性创建的,这些元素和属性定义了XML文档的结构和内容模式,同时,XML Scheam也规定了XML文档实例的结构和每个元素或属性的数据类型。所述XML Schema的作用是定义一份XML文档的合法组件群,就像文档类型定义(外语缩写:DTD)的作用一样,一份XML Schema定义了:可以出现在文档里的元素;可以出现在文档里的属性;哪些元素是子元素;子元素的顺序;子元素的数量;一个元素应是否能包含文本,或应该是空的;元素和属性的数据类型;元素和属性的默认值和固定值。As for the private data in this embodiment, this part of the data is relatively private, and the specific business will pay attention to the meaning of each field. Unstructured storage is used in the system, and the business platform does not need to process and operate the private data, nor There is no need to pay attention to specific fields. This is what is commonly referred to as a black box approach. Even if the business platform needs to understand these data, the parsing of each field can be completed according to the Extensible Markup Language structure (XML Scheam) comparison; among them, XML Scheam is created with a set of pre-specified XML elements and attributes, and these elements And attributes define the structure and content mode of XML documents. At the same time, XML Scheam also specifies the structure of XML document instances and the data type of each element or attribute. The role of the XML Schema is to define a legal component group of an XML document, just like the role of the document type definition (foreign language abbreviation: DTD), an XML Schema defines: the elements that can appear in the document; Attributes in a document; which elements are child elements; order of child elements; number of child elements; whether an element should contain text, or should be empty; data types of elements and attributes; default and fixed values for elements and attributes value.
以“照片URL”为例,业务平台仅仅需要将照片相关的业务数据保存在一个黑盒中,支持业务系统存储和取出,不需要关心这个具体的字段,业务系统拿到整个黑盒数据之后,再根据XML Scheam来确定黑盒中的某个位置(对应XML中某一行)存储的是当前业务所需要的照片URL。Taking "photo URL" as an example, the business platform only needs to store photo-related business data in a black box, and supports the business system to store and retrieve it. It does not need to care about this specific field. After the business system gets the entire black box data, Then, according to XML Scheam, it is determined that a certain location in the black box (corresponding to a certain line in XML) stores the photo URL required by the current business.
本发明实施例中,通过记录移动终端产生的业务操作数据,以及通过统一操作接口将所述业务操作数据进行半结构化存储,简化了应用开发,也就是说,在应用程序开发时,无需关注数据库,只需要配置好自己的业务数据结构,然后调用统一操作接口进行操作,简单易用。In the embodiment of the present invention, the application development is simplified by recording the business operation data generated by the mobile terminal and semi-structured storage of the business operation data through the unified operation interface, that is to say, no need to pay attention to For the database, you only need to configure your own business data structure, and then call the unified operation interface for operation, which is easy to use.
还请参阅图3,图3为本发明实施例提供的一种移动终端上的数据处理方法的流程图,所述方法包括:Please also refer to FIG. 3. FIG. 3 is a flowchart of a data processing method on a mobile terminal provided by an embodiment of the present invention. The method includes:
步骤301:接收用户发送的处理请求;Step 301: receiving a processing request sent by a user;
其中,所述处理请求可以包括:查找请求、修改请求、删除请求、同步请求、备份请求或数据共享请求,当然,还可以包括其他请求,本实施例不作限制。Wherein, the processing request may include: a search request, a modification request, a deletion request, a synchronization request, a backup request, or a data sharing request, and of course, other requests may also be included, which are not limited in this embodiment.
步骤302:确定所述处理请求的处理条件及所述用户的用户标识;Step 302: Determine the processing conditions of the processing request and the user ID of the user;
该步骤中,先确定当前处理请求是对数据库中的哪些表有操作权限,比如,查询,删除或修改等等操作权限。然后,确定处理请求的处理条件及所述用户标识。In this step, it is first determined which tables in the database the current processing request has operation authority for, for example, query, delete or modify and other operation authority. Then, the processing condition and the user ID of the processing request are determined.
比如,如果处理请求为请求查找消息的发送记录,则处理条件为:时间以及用户标识ID;For example, if the processing request is a request to find the sending record of the message, the processing conditions are: time and user ID;
比如,如果处理请求为请求查找终端在某地产生的数据,则处理条件为:用户ID和某地的地点坐标等。For example, if the processing request is a request to search for data generated by the terminal in a certain place, the processing conditions are: user ID and location coordinates of a certain place.
步骤303:通过统一操作接口根据所述处理条件及所述用户标识对数据库的业务操作数据进行处理,获得处理结果,其中,所述数据库的业务操作数据采用半结构化存储;Step 303: Process the business operation data of the database according to the processing conditions and the user identification through the unified operation interface, and obtain a processing result, wherein the business operation data of the database is stored in a semi-structured manner;
在该实施例中,如果所述处理请求为查询请求,则对应的处理条件为查询条件,则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述查询条件及所述用户标识对数据库进行查询,得到对应的通用数据和私有数据,组合所述通用数据和私有数据,得到包括所述通用数据和私有数据的列表;或者In this embodiment, if the processing request is a query request, the corresponding processing condition is a query condition, and the data in the database is processed according to the processing condition and the user identifier, specifically: according to the query The conditions and the user ID query the database to obtain the corresponding general data and private data, and combine the general data and private data to obtain a list including the general data and private data; or
相应的,如果处理请求为修改请求,则对应的处理条件为修改条件;则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述修改条件及所述用户标识对数据库进行查询,得到对应的数据;修改所述数据;或者Correspondingly, if the processing request is a modification request, the corresponding processing condition is a modification condition; then the data in the database is processed according to the processing condition and the user identifier, specifically: according to the modification condition and the user ID Identify and query the database to obtain the corresponding data; modify the data; or
如果处理请求为删除请求,则对应的处理条件为删除条件;则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述删除条件及所述用户标识对数据库进行查询,得到对应的数据;删除所述数据;或者If the processing request is a deletion request, the corresponding processing condition is a deletion condition; then the data in the database is processed according to the processing condition and the user identification, specifically: the database is processed according to the deletion condition and the user identification Make a query to obtain the corresponding data; delete the data; or
如果处理请求为同步请求,则对应的处理条件为同步条件;则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述同步条件及所述用户标识对数据库进行查询,得到对应的数据;同步所述数据;或者If the processing request is a synchronization request, then the corresponding processing condition is a synchronization condition; then the data in the database is processed according to the processing condition and the user identification, specifically: the database is processed according to the synchronization condition and the user identification Perform a query to obtain the corresponding data; synchronize the data; or
如果处理请求为备份请求,则对应的处理条件为备份条件;则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述备份条件及所述用户标识对数据库进行查询,得到对应的数据;备份所述数据;或者If the processing request is a backup request, the corresponding processing condition is a backup condition; then the data in the database is processed according to the processing condition and the user identifier, specifically: the database is processed according to the backup condition and the user identifier Perform queries to obtain corresponding data; back up said data; or
如果处理请求为共享请求,则对应的处理条件为共享条件。;则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述共享条件及所述用户标识对数据库进行查询,得到对应的数据;共享所述数据。If the processing request is a sharing request, the corresponding processing condition is a sharing condition. ; then process the data in the database according to the processing condition and the user ID, specifically: query the database according to the sharing condition and the user ID to obtain corresponding data; and share the data.
其中,该步骤中的统一操作接口具体如上所述,在此不再赘述。Wherein, the unified operation interface in this step is specifically as described above, and will not be repeated here.
步骤304:根据所述处理结果构造展示界面,并将所述处理通过所述展示界面展示给所述用户。Step 304: Construct a display interface according to the processing result, and display the processing to the user through the display interface.
在该步骤中,如果得到的处理结果为:包括所述通用数据和私有数据的列表,则通过构造展示界面将所述列表显示为用户;In this step, if the obtained processing result is: a list including the general data and private data, display the list as a user by constructing a display interface;
同理,如果得到的处理结果为修改所述数据,则通过构造展示界面显示修改的数据;Similarly, if the obtained processing result is to modify the data, the modified data will be displayed by constructing a display interface;
如果得到的处理结果为删除所述数据,则通过构造展示界面显示删除的数据;If the obtained processing result is to delete the data, displaying the deleted data by constructing a display interface;
如果得到的处理结果为同步所述数据,则通过构造展示界面显示同步的数据;If the obtained processing result is to synchronize the data, displaying the synchronized data by constructing a display interface;
如果得到的处理结果为备份所述数据,则通过构造展示界面显示备份的数据;If the obtained processing result is to back up the data, displaying the backed up data by constructing a display interface;
如果得到的处理结果为共享所述数据,则通过构造展示界面显示共享的数据。If the obtained processing result is to share the data, the shared data is displayed by constructing a display interface.
本发明实施例中,由于移动终端产生的业务数据操作是半结构化存储的,当接收到处理请求后,可以通过统一操作接口对数据库的数据进行处理,方便维护和管理,并能展示组合的通用和私有数据,提高了用户体验。In the embodiment of the present invention, since the business data operations generated by the mobile terminal are stored semi-structured, after receiving the processing request, the data in the database can be processed through the unified operation interface, which is convenient for maintenance and management, and can display combined Common and private data, improving user experience.
基于上述方法的实现过程,本发明实施例还提供一种数据存储装置,其结构示意图如图4所示,所述装置应用于移动终端,所述装置包括:接收单元41,确定单元42和存储单元43,其中,Based on the implementation process of the above method, the embodiment of the present invention also provides a data storage device, its structural diagram is shown in Figure 4, the device is applied to a mobile terminal, and the device includes: a receiving unit 41, a determining unit 42 and a storage unit Unit 43, where,
所述记录单元41,用于记录移动终端上产生的业务操作数据;The recording unit 41 is used to record the business operation data generated on the mobile terminal;
所述确定单元42,用于确定所述业务操作数据的内容属性;其中,所述内容属性包括:通用属性、私有属性以及关联属性信息,其中,所述通用属性是为各业务的共用字段;所述私有属性为各业务的差异化的字段,所述关联属性信息为关联所述通用属性和私有属性的信息。The determining unit 42 is configured to determine the content attribute of the business operation data; wherein the content attribute includes: general attribute, private attribute and associated attribute information, wherein the general attribute is a common field for each business; The private attribute is a differentiated field of each service, and the associated attribute information is information associating the general attribute and the private attribute.
所述存储单元43,用于按照所述内容属性通过统一操作接口将所述业务操作数据进行半结构化存储。The storage unit 43 is configured to store the business operation data semi-structured through a unified operation interface according to the content attributes.
在另一实施例中,所述确定单元包括:第一确定单元和/或第二确定单元,其中,所述第一确定单元,用于将所述业务操作数据中各业务的共用字段上的数据确定为通用数据;所述第二确定单元,用于将所述业务操作数据中各业务的差异化的字段上的数据确定为私有数据。In another embodiment, the determining unit includes: a first determining unit and/or a second determining unit, wherein the first determining unit is configured to use the The data is determined as common data; the second determination unit is configured to determine the data in the differentiated fields of each business in the business operation data as private data.
在另一实施例中,所述存储单元包括:结构化存储单元、非结构化存储单元和关联存储单元,其中,所述结构化存储单元,用于将所述业务操作数据中的所述通用数据按照结构化存储;所述非结构化存储单元,用于将所述业务操作数据中的所述私有数据按照非结构化存储;所述关联存储单元,用于存储所述通用数据和私有数据之间的关联属性信息。其中,关联属性信息包括:分类和目录,标签、文件存储统一资源定位符URL,以及文件属性。In another embodiment, the storage unit includes: a structured storage unit, an unstructured storage unit, and an associated storage unit, wherein the structured storage unit is used to store the general Data is stored in a structured manner; the unstructured storage unit is used to store the private data in the business operation data in an unstructured manner; the associated storage unit is used to store the general data and private data The associated attribute information between. Wherein, the associated attribute information includes: category and directory, label, file storage uniform resource locator URL, and file attribute.
其中,所述结构化存储单元,具体用于将所述通用数据存储到数据库中预定义的数据表中;所述非结构化存储单元,具体用于将所述私有数据以可扩展标记语言XML方式或键值对方式存储到大字段Blob中。Wherein, the structured storage unit is specifically used for storing the general data in a predefined data table in the database; the unstructured storage unit is specifically used for storing the private data in the Extensible Markup Language XML method or key-value pairs are stored in the large field Blob.
所述装置中各个单元的功能和作用的实现过程详见上述方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and effects of each unit in the device, please refer to the implementation process of the corresponding steps in the above method for details, and will not be repeated here.
还请参阅图5,图5为本发明实施例提供的一种数据处理装置的结构示意图,所述装置应用于移动终端中,所述装置包括:接收单元51,确定单元52,处理单元53和展示单元54,其中,Please also refer to FIG. 5. FIG. 5 is a schematic structural diagram of a data processing device provided by an embodiment of the present invention. The device is applied to a mobile terminal, and the device includes: a receiving unit 51, a determining unit 52, a processing unit 53 and display unit 54, wherein,
所述接收单元51,用于接收用户发送的处理请求;The receiving unit 51 is configured to receive a processing request sent by a user;
所述确定单元52,用于确定所述处理请求的处理条件及所述用户的用户标识ID;The determination unit 52 is configured to determine the processing conditions of the processing request and the user ID of the user;
所述处理单元53,用于通过统一操作接口根据所述处理条件及所述用户标识ID对数据库中的数据进行处理,并得到处理结果,根据所述处理结果构造展示界面;其中,所述数据库中的业务操作数据采用半结构化存储;The processing unit 53 is configured to process the data in the database according to the processing conditions and the user identification ID through a unified operation interface, and obtain a processing result, and construct a display interface according to the processing result; wherein, the database The business operation data in the system adopts semi-structured storage;
所述展示单元54,用于将所述处理结果通过所述展示界面展示给所述用户。The display unit 54 is configured to display the processing result to the user through the display interface.
在另一实施例中,所述接收单元接收到的所述处理请求包括:查找请求、修改请求、删除请求、同步请求、备份请求或数据共享请求,对应的,所述确定单元确定的处理条件对应为:查找条件、修改条件、删除条件、同步条件、备份请求或数据共享条件。In another embodiment, the processing request received by the receiving unit includes: a search request, a modification request, a deletion request, a synchronization request, a backup request, or a data sharing request, and correspondingly, the processing condition determined by the determination unit Corresponding to: search condition, modification condition, deletion condition, synchronization condition, backup request or data sharing condition.
在另一实施例中,所述处理单元至少包括第一处理单元至第六处理单元中的一个单元:In another embodiment, the processing unit includes at least one of the first processing unit to the sixth processing unit:
第一处理单元,用于在所述确定单元确定的处理条件为查询条件时,具体用于根据所述查询条件及所述用户标识对数据库进行查询,得到对应的通用数据和私有数据,组合所述通用数据和私有数据,得到包括所述通用数据和私有数据的列表;The first processing unit is configured to query the database according to the query condition and the user ID when the processing condition determined by the determination unit is a query condition, to obtain corresponding general data and private data, and to combine the The general data and the private data are obtained to obtain a list including the general data and the private data;
第二处理单元,用于在所述处理条件为修改条件时,根据所述修改条件及所述用户标识对数据库进行查询,得到对应的数据;修改所述数据;The second processing unit is configured to, when the processing condition is a modification condition, query the database according to the modification condition and the user identifier to obtain corresponding data; modify the data;
第三处理单元,用于在所述处理条件为删除条件时,根据所述删除条件及所述用户标识对数据库进行查询,得到对应的数据;删除所述数据;A third processing unit, configured to query the database according to the deletion condition and the user ID when the processing condition is a deletion condition, and obtain corresponding data; delete the data;
第四处理单元,用于在所述处理条件为同步条件时,根据所述同步条件及所述用户标识对数据库进行查询,得到对应的数据;同步所述数据;The fourth processing unit is configured to, when the processing condition is a synchronization condition, query the database according to the synchronization condition and the user ID to obtain corresponding data; and synchronize the data;
第五处理单元,用于在所述处理条件为备份条件时,根据所述备份条件及所述用户标识对数据库进行查询,得到对应的数据;备份所述数据;The fifth processing unit is configured to, when the processing condition is a backup condition, query the database according to the backup condition and the user ID to obtain corresponding data; back up the data;
第六处理单元,用于在所述处理条件为共享条件时,根据所述共享条件及所述用户标识对数据库进行查询,得到对应的数据;共享所述数据。The sixth processing unit is configured to, when the processing condition is a sharing condition, query a database according to the sharing condition and the user identifier to obtain corresponding data; and share the data.
所述装置中各个单元的功能和作用的实现过程详见上述方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and effects of each unit in the device, please refer to the implementation process of the corresponding steps in the above method for details, and will not be repeated here.
还请参阅图6,图6为本发明实施例提供的一种移动终端的结构示意图,所述移动终端6包括:处理器61,收发器62和存储器63,其中,Please also refer to FIG. 6. FIG. 6 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention. The mobile terminal 6 includes: a processor 61, a transceiver 62 and a memory 63, wherein,
所述处理器61,用于记录移动终端上产生的业务操作数据;并确定所述业务操作数据的内容属性;The processor 61 is configured to record the service operation data generated on the mobile terminal; and determine the content attribute of the service operation data;
所述收发器62,用于按照所述内容属性将通过统一操作接口将所述业务操作数据发送给存储器;The transceiver 62 is configured to send the business operation data to the memory through a unified operation interface according to the content attribute;
所述存储器63,用于将接收到的所述业务操作数据进行半结构化存储。The memory 63 is used for semi-structured storage of the received business operation data.
在另一实施例中,所述处理器确定的所述内容属性包括:通用属性、私有属性和关联属性信息,其中,所述通用属性是为各业务的共用字段;所述私有属性为各业务的差异化的字段,所述关联属性信息为关联所述通用属性和私有属性的信息。In another embodiment, the content attributes determined by the processor include: general attributes, private attributes, and associated attribute information, wherein the general attributes are common fields for each business; the private attributes are common fields for each business The differentiated fields, the associated attribute information is the information associated with the general attributes and private attributes.
在另一实施例中,所述处理器,还用于将所述业务操作数据中各业务的共用字段上的数据确定为通用数据;以及将所述业务操作数据中各业务的差异化的字段上的数据确定为私有数据。In another embodiment, the processor is further configured to determine the data on the common fields of each business in the business operation data as common data; and determine the differentiated fields of each business in the business operation data The data on is determined to be private data.
在另一实施例中,所述存储器,具体用于将所述业务操作数据中的所述通用数据按照结构化存储,以及将所述业务操作数据中的所述私有数据按照非结构化存储;以及存储所述通用和私有属性之间的关联属性信息。In another embodiment, the memory is specifically configured to store the general data in the business operation data in a structured manner, and store the private data in the business operation data in an unstructured manner; And storing the associated attribute information between the common and private attributes.
在另一实施例中,所述存储器对通用数据进行结构化存储具体为:将所述通用数据存储到数据库中预定义的数据表中;所述存储器对通用数据进行非结构化存储具体为:将所述私有数据以XML方式或键值对方式存储到大字段Blob中。In another embodiment, the structured storage of the general data by the memory is specifically: storing the general data in a predefined data table in the database; the unstructured storage of the general data by the memory is specifically: The private data is stored in the large field Blob in the form of XML or key-value pairs.
所述装置中各个单元的功能和作用的实现过程详见上述方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and effects of each unit in the device, please refer to the implementation process of the corresponding steps in the above method for details, and will not be repeated here.
还请参阅图7,图7为本发明实施例提供的一种移动终端的另一结构示意图,所述移动终端7包括:收发器71、处理器72和屏幕73,其中,Please also refer to FIG. 7. FIG. 7 is another structural schematic diagram of a mobile terminal provided by an embodiment of the present invention. The mobile terminal 7 includes: a transceiver 71, a processor 72 and a screen 73, wherein,
所述收发器71,用于接收用户发送的处理请求;The transceiver 71 is configured to receive a processing request sent by a user;
所述处理器72,用于确定所述处理请求的处理条件及所述用户的用户标识;,并通过统一操作接口根据所述处理条件及所述用户标识对数据库的数据进行处理,获得处理结果,根据所述处理结果构造展示界面,其中,所述数据库的业务操作数据采用半结构化存储;The processor 72 is configured to determine the processing conditions of the processing request and the user ID of the user; and process the data in the database according to the processing conditions and the user ID through a unified operation interface to obtain a processing result Constructing a display interface according to the processing results, wherein the business operation data of the database is stored in a semi-structured manner;
所述屏幕73,用于将所述处理结果通过所述展示界面展示给所述用户。The screen 73 is configured to display the processing result to the user through the display interface.
在另一实施例中,所述收发器接收到的所述处理请求包括:查找请求、修改请求、删除请求、同步请求、备份请求或数据共享请求;相应的,所述处理器确定对应的处理条件为:查找条件、修改条件、删除条件、同步条件、备份条件和共享条件。In another embodiment, the processing request received by the transceiver includes: a search request, a modification request, a deletion request, a synchronization request, a backup request, or a data sharing request; correspondingly, the processor determines the corresponding processing request The conditions are: find condition, modify condition, delete condition, sync condition, backup condition and share condition.
在另一实施例中,所述处理器具体用于:如果所述处理条件为查询条件,则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述查询条件及所述用户标识对数据库进行查询,得到对应的通用数据和私有数据,组合所述通用数据和私有数据,得到包括所述通用数据和私有数据的列表;或In another embodiment, the processor is specifically configured to: if the processing condition is a query condition, process the data in the database according to the processing condition and the user identifier, specifically: according to the query The conditions and the user ID query the database to obtain the corresponding general data and private data, and combine the general data and private data to obtain a list including the general data and private data; or
如果所述处理条件为修改条件,则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述修改条件及所述用户标识对数据库进行查询,得到对应的数据;修改所述数据;或If the processing condition is a modification condition, then process the data in the database according to the processing condition and the user identifier, specifically: query the database according to the modification condition and the user identifier to obtain corresponding data ; modify said data; or
如果所述处理条件为删除条件,则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述删除条件及所述用户标识对数据库进行查询,得到对应的数据;删除所述数据;或者If the processing condition is a deletion condition, then process the data in the database according to the processing condition and the user identifier, specifically: query the database according to the deletion condition and the user identifier to obtain corresponding data ; delete said data; or
如果所述处理条件为同步条件,则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述同步条件及所述用户标识对数据库进行查询,得到对应的数据;同步所述数据;或者If the processing condition is a synchronization condition, then process the data in the database according to the processing condition and the user identifier, specifically: query the database according to the synchronization condition and the user identifier to obtain corresponding data ; synchronize said data; or
如果所述处理条件为备份条件,则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述备份条件及所述用户标识对数据库进行查询,得到对应的数据;备份所述数据;或If the processing condition is a backup condition, then process the data in the database according to the processing condition and the user ID, specifically: query the database according to the backup condition and the user ID to obtain corresponding data ; back up said data; or
如果所述处理条件为共享条件,则根据所述处理条件及所述用户标识对数据库中的数据进行处理,具体为:根据所述共享条件及所述用户标识对数据库进行查询,得到对应的数据;共享所述数据。If the processing condition is a sharing condition, then process the data in the database according to the processing condition and the user identifier, specifically: query the database according to the sharing condition and the user identifier to obtain corresponding data ; share said data.
所述装置中各个单元的功能和作用的实现过程详见上述方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and effects of each unit in the device, please refer to the implementation process of the corresponding steps in the above method for details, and will not be repeated here.
还请参阅图8,图8为本发明实施例提供的一种移动终端的另一结构示意图,所述移动终端8包括:数据操作装置81和数据存储装置82,其中,Please also refer to FIG. 8. FIG. 8 is another structural schematic diagram of a mobile terminal provided by an embodiment of the present invention. The mobile terminal 8 includes: a data operation device 81 and a data storage device 82, wherein,
所述数据操作装置81,用于记录移动终端上产生的业务操作数据;确定所述业务操作数据的内容属性;并按照所述内容属性通过统一操作接口将所述业务操作数据发送到数据存储装置的对应接口上;The data operation device 81 is configured to record the business operation data generated on the mobile terminal; determine the content attribute of the business operation data; and send the business operation data to the data storage device through a unified operation interface according to the content attribute on the corresponding interface;
所述数据存储装置82,用于通过所述对应接口接收所述数据操作装置发送的业务操作数据,并将所述业务操作数据进行半结构化存储。The data storage device 82 is configured to receive the service operation data sent by the data operation device through the corresponding interface, and store the service operation data in a semi-structured manner.
在另一实施例中,所述数据操作装置确定的内容属性包括:通用属性、私有属性以及关联属性信息;其中,所述通用属性是为各业务的共用字段;所述私有属性为各业务的差异化的字段,所述关联属性信息为关联所述通用属性和私有属性的信息。In another embodiment, the content attributes determined by the data operation device include: general attributes, private attributes, and associated attribute information; wherein, the general attributes are common fields for each business; the private attributes are In a differentiated field, the associated attribute information is information associated with the general attribute and private attribute.
在另一实施例中,所述数据操作装置包括:记录单元,确定单元和发送单元,其中,所述记录单元,用于记录移动终端上产生的业务操作数据;所述确定单元,用于确定所述业务操作数据的内容属性;所述发送单元,用于按照所述内容属性通过统一操作接口将所述业务操作数据发送到数据存储装置的对应接口上。In another embodiment, the data operation device includes: a recording unit, a determination unit and a sending unit, wherein the recording unit is used to record the service operation data generated on the mobile terminal; the determination unit is used to determine The content attribute of the business operation data; the sending unit is configured to send the business operation data to a corresponding interface of the data storage device through a unified operation interface according to the content attribute.
其中,所述确定单元包括:第一确定单元和第二确定单元,其中,所述第一确定单元,用于将所述业务操作数据中各业务的共用字段上的数据确定为通用数据;以及所述第二确定单元,用于将所述业务操作数据中各业务的差异化的字段上的数据确定为私有数据。Wherein, the determining unit includes: a first determining unit and a second determining unit, wherein the first determining unit is configured to determine the data in the common field of each business in the business operation data as common data; and The second determining unit is configured to determine the data in the differentiated fields of each business in the business operation data as private data.
可选的,在另一实施例中,所述数据存储装置,具体用于将所述业务操作数据中的所述通用数据进行结构化存储,以及将所述业务操作数据中的所述私有数据进行非结构化存储;以及存储所述通用数据和私有数据之间的关联属性信息。Optionally, in another embodiment, the data storage device is specifically configured to store the general data in the business operation data in a structured manner, and store the private data in the business operation data performing unstructured storage; and storing the associated attribute information between the general data and the private data.
所述装置中各个单元的功能和作用的实现过程详见上述方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and effects of each unit in the device, please refer to the implementation process of the corresponding steps in the above method for details, and will not be repeated here.
为了便于本领域技术人员的理解,下面以具体的实例说明,In order to facilitate the understanding of those skilled in the art, the following specific examples are used to illustrate,
还请参阅图9,图9为本发明实施例提供的一种移动终端的另一结构示意图。所述移动终端包括:业务装置、数据操作装置和数据存储装置,其中,所述业务装置包括消息模块、拍照模块以及录音模块等等。Please also refer to FIG. 9 , which is another schematic structural diagram of a mobile terminal provided by an embodiment of the present invention. The mobile terminal includes: a service device, a data operation device and a data storage device, wherein the service device includes a message module, a camera module, a recording module and the like.
数据操作装置包括:鉴权控制模块、CRUD接口、同步备份接口或数据共享接口。其中,CRUD接口是将存储或增加(create)、查询(Retrieve)、修改(Update)、删除(delete)等操作中的至少一个操作封装成API接口。当然,所述API接口还可以将同步、备份和共享中的至少一个操作封装成API接口。The data operation device includes: an authentication control module, a CRUD interface, a synchronous backup interface or a data sharing interface. Wherein, the CRUD interface encapsulates at least one operation among operations such as storage or creation (create), query (Retrieve), modification (Update), and deletion (delete) into an API interface. Certainly, the API interface may also encapsulate at least one operation of synchronization, backup and sharing into an API interface.
数据存储装置包括:通用数据存储模块、业务私有数据存储模块、模型定义模块、数据存储模块、SQLite DB模块以及全文索引模块。The data storage device includes: general data storage module, business private data storage module, model definition module, data storage module, SQLite DB module and full-text index module.
图9中各个模块之间的关系如下所述:The relationship between the various modules in Figure 9 is as follows:
所述鉴权控制模块:对业务模块中的应用程序的数据访问接口进行鉴权控制,控制当前应用程序对数据库哪些表有操作权限;The authentication control module: performs authentication control on the data access interface of the application program in the business module, and controls which tables of the database the current application program has operation authority;
CRUD接口:用于对数据的增加(create)、查询(Retrieve)、修改(Update)、删除(delete)等操作封装成为API接口供外部调用;CRUD interface: used to encapsulate operations such as data addition (create), query (Retrieve), modification (Update), and deletion (delete) into an API interface for external calls;
同步备份接口:用于提供同步、备份的相关逻辑处理,支持对存储在系统中的数据提供统一的同步和备份接口;Synchronization backup interface: used to provide synchronization and backup-related logical processing, and support a unified synchronization and backup interface for data stored in the system;
数据共享接口:用于提供数据共享的相关逻辑处理,支持授权用户访问存储在系统的数据;Data sharing interface: used to provide relevant logic processing for data sharing, and support authorized users to access data stored in the system;
SQLite DB模块:用于采用目前Andriod系统标准的DB系统SQLite实现结构化数据的存储,包括时间、地点、人物等;SQLite DB module: used to adopt the current Andriod system standard DB system SQLite to realize the storage of structured data, including time, place, person, etc.;
通用数据存储模块:时间、地点、标签、任务等数据属于各业务通用的数据,可以在此平台中采用“横表”(明确的数据字段设计,一条数据只对应一条记录即可完成数据保存)的方式,并可以基于此部分存储数据实现标准的查询接口;例如:“Select*form XXDB wherepalceID=“bantian huawei base”(此SQL语句仅作示意使用)”General data storage module: data such as time, location, label, and task are common data for each business, and "horizontal tables" can be used in this platform (clear data field design, one data only corresponds to one record to complete data storage) and implement standard query interfaces based on this part of the stored data; for example: "Select*form XXDB wherepalceID="bantian huawei base" (this SQL statement is only used for illustration)"
业务私有数据存储模块:由于业务的多样性,平台并不可以将所有的业务数据模型预定义清楚,只能是在业务开发阶段业务系统自定义其数据存储模型,然后基于此模型保存响应的业务数据;查询阶段可以基于已经定义的模型(schema)来标示已经查询的数据;Business private data storage module: Due to the diversity of businesses, the platform cannot predefine all business data models clearly. The business system can only customize its data storage model in the business development stage, and then save the corresponding business based on this model Data; the query stage can mark the queried data based on the defined model (schema);
模型定义模块:根据业务的需要定义和扩展数据,各种媒体在不同的部分采用非结构化的数据存储,此部分数据可以采用“XML”或者是“键值对(para name-para value)”存储到DB中,具体schema可以由业务自己定义;Model definition module: define and expand data according to business needs. Various media use unstructured data storage in different parts. This part of data can use "XML" or "key-value pairs (para name-para value)" Stored in the DB, the specific schema can be defined by the business itself;
数据存储模块:统一存储各业务的应用数据,例如通话记录的所有信息(通话时间、地点、人物、来/去电归属地、电话号码、通话时候的传感器状态等)、照片(时间、地点、人物、照片的存储位置等)Data storage module: uniformly store the application data of each business, such as all information of call records (call time, location, person, incoming/outgoing call attribution, phone number, sensor status during the call, etc.), photos (time, location, person, photo storage location, etc.)
全文索引模块:根据常见的查询方式建立索引,例如按照时间、地点组合查询手机上生成的内容;Full-text indexing module: build indexes according to common query methods, such as querying the content generated on mobile phones according to the combination of time and location;
其中,数据模型定义图10所示,图10为本发明实施例提供的一种数据模块定义的示意图,如图10所示,数据模型中存在两类数据:一类是通用数据存储,另一类是私有数据存储。Among them, the data model definition is shown in Figure 10, which is a schematic diagram of a data module definition provided by the embodiment of the present invention. As shown in Figure 10, there are two types of data in the data model: one is general data storage, and the other Classes are private data stores.
其中,所述通用数据,这部分数据在系统中以白盒方式存储,业务平台可以理解,并可以在业务逻辑处理中直接调用这些数据。Wherein, the general data, this part of data is stored in the system in a white box manner, the business platform can understand, and can directly call these data in business logic processing.
以“时间”为例,不管是拍照还是短信,都有时间的概念,在业务平台中可以封装如下接口“查询XX时间段类拍照、发短信等记录”,这个时候只需要Select语句中加上时间条件即可完成;Taking "time" as an example, whether it is taking pictures or text messages, there is a concept of time. In the business platform, the following interface can be encapsulated to "query records such as taking pictures and sending text messages in XX time period". At this time, you only need to add in the Select statement The time condition can be completed;
所述业务私有数据,这部分数据相对私有,具体的业务才会关注每个字段的含义,业务平台仅仅是黑盒存储,不需要关注具体的字段,即使需要理解这些数据,根据Scheam比对即可完成每个字段的解析;The business private data, this part of the data is relatively private, specific business will pay attention to the meaning of each field, the business platform is only a black box storage, do not need to pay attention to specific fields, even if you need to understand these data, according to the comparison of Scheam The analysis of each field can be completed;
以“照片URL”为例,业务平台仅仅需要将照片相关的业务数据保存在一个黑盒中,支持业务系统存储和取出,不需要关心这个具体的字段,业务系统拿到整个黑盒数据之后,再根据Scheam来确定黑盒中的某个位置(对应XML中某一行)存储的是当前业务所需要的照片URL。Taking "photo URL" as an example, the business platform only needs to store photo-related business data in a black box, and supports the business system to store and retrieve it. It does not need to care about this specific field. After the business system gets the entire black box data, Then according to Scheam, it is determined that a certain position in the black box (corresponding to a certain line in XML) stores the photo URL required by the current business.
其中,数据模型定义的程序段为:Among them, the program segment defined by the data model is:
1-融合消息1- Fusion message
2-照片2-Photo
3-视频3-Video
......
由此可知,数据模型定义可以预置已知的数据类型,后续可以根据业务需要扩展定义业务系统需要的数据。It can be seen that the data model definition can preset known data types, and then expand and define the data required by the business system according to business needs.
还请参阅图11,图11为本发明实施例提供的第一种应用实例的流程图,该应用实例中业务装置中的消息模块采用半结构化数据存储数据的具体过程,包括:Please also refer to Figure 11. Figure 11 is a flow chart of the first application example provided by the embodiment of the present invention. In this application example, the message module in the service device uses semi-structured data to store data. The specific process includes:
步骤110:用户发送短消息;比如,用户使用智能手机发送短消息。Step 110: the user sends a short message; for example, the user uses a smart phone to send a short message.
步骤111:消息APP模块接收到用户发送的短消息,调用Andriod的消息发送模块发送所述短消息,并记录发送状态,以及所述短消息的发送操作结果;Step 111: the message APP module receives the short message sent by the user, calls the message sending module of Andriod to send the short message, and records the sending status and the sending operation result of the short message;
步骤112:消息APP模块将所述短消息的发送操作结果发送给所述数据操作装置,所述发送操作结果包括所述短消息的相关字段,所述相关字段包括:消息内容、状态、发送人和接收人等;Step 112: The message APP module sends the sending operation result of the short message to the data operation device, the sending operation result includes related fields of the short message, and the related fields include: message content, status, sender and recipients, etc.;
步骤113:数据操作装置通过调用的相关接口请求所述数据存储装置记录保存所述短消息的发送操作结果;Step 113: the data operation device requests the data storage device to record and save the operation result of sending the short message through the relevant interface called;
步骤114:消息存储装置获取时间、地点等业务参数;这些业务参数无需数据操作装置告知,直接从本地获取。Step 114: The message storage device obtains business parameters such as time and location; these business parameters are directly obtained locally without notification from the data operation device.
步骤115:消息存储装置通过对应接口(接收到该发送操作结果的接口)解析所述发送操作结果,得到对应的通用数据,然后将通用数据保存在数据表中,并将业务相关(只需要业务理解,和其他系统无关联,例如不需要根据此类数据组合查询)的数据以XML方式保存在Blob大字段中;Step 115: The message storage device parses the sending operation result through the corresponding interface (the interface that receives the sending operation result), obtains the corresponding general data, then saves the general data in the data table, and correlates the business (only business It is understood that data that is not related to other systems (for example, does not need to be queried based on this type of data combination) is stored in the Blob large field in XML;
步骤116:消息存储装置向消息APP模块返回操作结果。Step 116: The message storage device returns the operation result to the message APP module.
本发明实施例中短信模块采用此发明提供的装置进行数据存储有如下好处:提高效率:无需了解SQLlite的相关操作,直接使用API接口进行增删改查;保存更多信息:用户使用消息时候的地点、传感器状态也可以由系统自动保存,便于以后按照这些信息检索消息数据;便于维护:由于数据是集中存储,所以将来消息和其他Media数据的组合查询、统一备份可以便利的实现。In the embodiment of the present invention, the short message module adopts the device provided by this invention for data storage, which has the following advantages: improve efficiency: no need to understand the relevant operations of SQLlite, directly use the API interface to add, delete, modify and check; save more information: the location when the user uses the message 1. The state of the sensor can also be automatically saved by the system, which is convenient for retrieving message data according to these information in the future; easy to maintain: because the data is stored in a centralized manner, combined query and unified backup of messages and other media data in the future can be realized conveniently.
还请参阅图12,图12为本发明实施例提供的第二种应用实例的流程图,该应用实例为查询过程,具体包括:Please also refer to FIG. 12. FIG. 12 is a flow chart of the second application example provided by the embodiment of the present invention. The application example is a query process, which specifically includes:
步骤120:用户请求查询消息发送记录;Step 120: the user requests to query the message sending record;
步骤121:客户端的消息App模块接收到该请求后,请求数据操作装置按照时间方式查询消息发送记录;Step 121: After receiving the request, the message App module of the client requests the data operation device to query the message sending record according to the time;
步骤122:数据操作装置调用对应的接口(比如查询接口),通过调用的接口向所述数据存储装置发送查询消息发送记录的相关参数,该相关参数为时间和当前用户ID等;Step 122: the data operation device calls a corresponding interface (such as a query interface), and sends a query message to the data storage device through the called interface to send a related parameter of the record, and the related parameter is time and current user ID, etc.;
步骤123:数据存储装置根据时间和用户ID查询出符合条件的数据IDs;Step 123: the data storage device queries the data IDs that meet the conditions according to the time and the user ID;
步骤124:数据存储装置根据IDs将对应的白盒数据以字段的方式,黑盒数据以XML/Map等结构化数据方式组合在一起,构成一个列表list。Step 124: The data storage device combines the corresponding white box data in the form of fields and the black box data in the form of structured data such as XML/Map according to the IDs to form a list list.
该步骤中,对于每个用户ID,需要将存储的通用信息(比如地点、人物、传感器状态等)和业务当前的私有信息(比如消息内容、发送状态、收件人等)组合在一起;构成一个列表list。In this step, for each user ID, it is necessary to combine the stored general information (such as location, person, sensor status, etc.) and the current private information of the business (such as message content, sending status, recipient, etc.); A list list.
步骤125:数据存储装置将组合的列表list统一反馈给消息App模块;Step 125: the data storage device feeds back the combined list list to the message App module;
步骤126:客户端的消息APP模块接收到所述列表list之后,按照约定的Scheam解析所述列表list;Step 126: After receiving the list list, the message APP module of the client parses the list list according to the agreed Scheam;
步骤127:消息APP模块构造展示所述列表list的界面;Step 127: The message APP module constructs an interface for displaying the list list;
步骤128:消息APP模块将所述列表展示给用户。Step 128: The message APP module presents the list to the user.
还请参阅图13,图13为本发明实施例提供的第三种应用实例的流程图,该应用实例为组合查询用户在手机上存储的数据信息,该实施例的具体流程包括:Please also refer to FIG. 13. FIG. 13 is a flow chart of the third application example provided by the embodiment of the present invention. This application example is a combined query of the data information stored by the user on the mobile phone. The specific process of this embodiment includes:
步骤130:用户查询手机上在“威新软件园”生成的数据;Step 130: The user queries the data generated in the "Weixin Software Park" on the mobile phone;
步骤131:手机上的消息APP模块在接收到该查询后,将查询的用户ID和地点坐标发送给数据操作装置;Step 131: After receiving the inquiry, the message APP module on the mobile phone sends the inquired user ID and location coordinates to the data operation device;
步骤132:数据操作装置调用对应的接口,向所述数据存储装置发送查询操作,该查询操作包括用户ID和地点坐标;Step 132: the data operation device invokes the corresponding interface, and sends a query operation to the data storage device, the query operation includes the user ID and location coordinates;
步骤133:数据存储装置按照所述用户ID和地点坐标进行查询,查找到对应的查询结果,所述查询结果包括总媒体条数,各子类条数等;Step 133: The data storage device searches according to the user ID and location coordinates, and finds the corresponding query results, the query results include the total number of media items, the number of each subcategory, etc.;
步骤134:数据存储装置向数据操作装置反馈查询结果,该查询结构中包括总媒体条数,各子类条数等;Step 134: The data storage device feeds back the query result to the data operation device, the query structure includes the total number of media items, the number of each subcategory, etc.;
步骤135:数据操作装置将所述查询结果反馈给消息APP模块;Step 135: the data operation device feeds back the query result to the message APP module;
步骤136:消息APP模块在接收到所述查询结果后,构建展示查询结果的页面;Step 136: After receiving the query result, the message APP module constructs a page displaying the query result;
步骤137:消息APP模块通过所述展示页面将所述查询结果显示给用户。Step 137: The message APP module displays the query result to the user through the display page.
由于上述应用实例为组合查询用户在手机上存储的数据信息,由于该数据信息是集中存储和维护的,所以数据信息的管理界就非常方便了,而且可以实现很多特别的展示页面,具体如图14所示,如果按照本发明实施例所述方案进行存储,用户可以在图14所示的地图中查看当前地点在手机上产生的媒体信息:比如,1)用户在当前地点(威新软件园)通过手机产生了99条内容,包括通话记录xx条,消息xx条,照片xx张,听音乐xx首…等;2)用户点击其中某个子分类可以定向到特定的过滤列表页面:如点击消息图标可以:消息发送列表的过滤页面,查看当前地点发送消息的列表等。Since the above application example is a combined query of the data information stored by the user on the mobile phone, since the data information is stored and maintained centrally, the management of the data information is very convenient, and many special display pages can be realized, as shown in the figure As shown in 14, if the storage is carried out according to the scheme described in the embodiment of the present invention, the user can check the media information generated on the mobile phone at the current location in the map shown in FIG. ) generated 99 pieces of content through the mobile phone, including xx call records, xx messages, xx photos, xx listening music, etc.; 2) The user clicks on one of the sub-categories to be directed to a specific filter list page: such as clicking on the message The icon can: filter the message sending list page, view the list of sending messages at the current location, etc.
需要说明的是,本发明实施例中,可以根据需求,将其查询的结果以页面的方式显示,其具体的实现过程如图13所示;当然,也可以将查询的结果以列表的方式显示,其具体的实现过程如图15所示。It should be noted that, in the embodiment of the present invention, the query results can be displayed in the form of pages according to the requirements, and the specific implementation process is shown in Figure 13; of course, the query results can also be displayed in the form of a list , and its specific implementation process is shown in Figure 15.
图15为发明实施例提供的第四种应用实例的流程图,该应用实例为在图13的基础上,进行具体的子类信息的查询,其具体流程包括:Fig. 15 is a flow chart of the fourth application example provided by the embodiment of the invention. The application example is based on Fig. 13 for querying specific subcategory information. The specific process includes:
步骤150:用户在展示的页面上点击具体的子类查询信息;Step 150: the user clicks on a specific subcategory to query information on the displayed page;
步骤151:消息APP模块在接收到该查询信息后,将查询的用户ID、地点坐标和数据类型发送给数据操作装置;Step 151: After receiving the query information, the message APP module sends the query user ID, location coordinates and data type to the data operation device;
步骤152:数据操作装置调用对应的接口,向所述数据存储装置发送查询操作,该查询操作包括用户ID、地点坐标和数据类型;Step 152: the data operation device invokes the corresponding interface, and sends a query operation to the data storage device, the query operation includes user ID, location coordinates and data type;
步骤153:数据存储装置按照所述用户ID、地点坐标和数据类型进行查询,查找到对应的数据,对于查找到每个ID的数据,将存储的通用信息(比如地点、人物、传感器状态等)和业务当前的私有信息(比如消息内容、发送状态、收件人等)组合在一起,构成一个列表list;Step 153: The data storage device searches according to the user ID, location coordinates and data types, and finds the corresponding data. For the data found for each ID, the stored general information (such as location, person, sensor status, etc.) Combined with the current private information of the business (such as message content, sending status, recipients, etc.) to form a list list;
步骤154:数据存储装置向数据操作装置反馈所述列表list;Step 154: the data storage device feeds back the list list to the data operation device;
步骤155:数据操作装置将所述列表list反馈给消息APP模块;Step 155: the data operation device feeds back the list list to the message APP module;
步骤156:消息APP模块在接收到所述列表list后,构建展示列表list的页面;Step 156: After receiving the list list, the message APP module constructs a page displaying the list list;
步骤157:消息APP模块通过所述展示页面将所述列表list显示给用户。Step 157: The message APP module displays the list list to the user through the display page.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is a better implementation Way. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in storage media, such as ROM/RAM, disk , CD, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments of the present invention.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications should also be It is regarded as the protection scope of the present invention.
Claims (35)
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2013/089057 WO2015085507A1 (en) | 2013-12-11 | 2013-12-11 | Data storage method, data processing method and device, and mobile terminal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN104169914A true CN104169914A (en) | 2014-11-26 |
Family
ID=51912348
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201380008940.9A Pending CN104169914A (en) | 2013-12-11 | 2013-12-11 | Data storage method, data processing method, device and mobile terminal |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN104169914A (en) |
| WO (1) | WO2015085507A1 (en) |
Cited By (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104615708A (en) * | 2015-02-04 | 2015-05-13 | 张宇 | Multi-source information application system and method |
| CN104850661A (en) * | 2015-06-08 | 2015-08-19 | 上海斐讯数据通信技术有限公司 | Embedded equipment database packaging framework and implementation method |
| CN105786819A (en) * | 2014-12-18 | 2016-07-20 | 广州华多网络科技有限公司 | Data operation method and device |
| CN106326352A (en) * | 2016-08-08 | 2017-01-11 | 歌尔股份有限公司 | Universal interface design method and system in butt joint with plurality of service systems |
| CN106484892A (en) * | 2016-10-19 | 2017-03-08 | 凌云天博光电科技股份有限公司 | Data manipulation method and device |
| CN106933932A (en) * | 2015-12-31 | 2017-07-07 | 华为软件技术有限公司 | Data processing method, device and application server |
| CN107644298A (en) * | 2017-09-29 | 2018-01-30 | 深圳市瑞福登信息技术服务有限公司 | A kind of method, apparatus of data processing, storage device and terminal device |
| CN108121820A (en) * | 2017-12-29 | 2018-06-05 | 北京奇虎科技有限公司 | A kind of searching method and device based on mobile terminal |
| CN108345677A (en) * | 2018-02-13 | 2018-07-31 | 销冠网络科技有限公司 | Data processing method and device for business development |
| CN108509448A (en) * | 2017-02-27 | 2018-09-07 | 北京京东尚科信息技术有限公司 | Data processing method and device |
| CN109101595A (en) * | 2018-07-27 | 2018-12-28 | 郑州云海信息技术有限公司 | A kind of information query method, device, equipment and computer readable storage medium |
| CN107317865B (en) * | 2017-06-30 | 2019-11-05 | 中国科学院信息工程研究所 | A kind of general off-line data cut-in method and system |
| CN110474788A (en) * | 2018-05-11 | 2019-11-19 | 中兴通讯股份有限公司 | A data processing method, terminal and computer-readable storage medium |
| CN111061759A (en) * | 2018-10-17 | 2020-04-24 | 联易软件有限公司 | Data query method and device |
| CN111611418A (en) * | 2019-02-25 | 2020-09-01 | 阿里巴巴集团控股有限公司 | Data storage method and data query method |
| CN111711940A (en) * | 2020-04-29 | 2020-09-25 | 杭州涂鸦信息技术有限公司 | Intelligent device data interaction method, intelligent device and storage device |
| CN111753141A (en) * | 2019-03-26 | 2020-10-09 | 华为技术有限公司 | A data management method and related equipment |
| CN119669284A (en) * | 2024-11-18 | 2025-03-21 | 北京深势科技有限公司 | A database access system for compound database |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10601747B2 (en) * | 2015-10-05 | 2020-03-24 | Oath Inc. | Method and system for dynamically generating a card |
| CN115905377A (en) * | 2021-09-24 | 2023-04-04 | 青岛海尔科技有限公司 | Data processing method and device for household appliances |
Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050049994A1 (en) * | 2003-08-21 | 2005-03-03 | Microsoft Corporation | Systems and methods for the implementation of a base schema for organizing units of information manageable by a hardware/software interface system |
| CN101187938A (en) * | 2007-11-09 | 2008-05-28 | 中国传媒大学 | A Unified Description and Retrieval Method for Multimedia Metadata |
| US7668849B1 (en) * | 2005-12-09 | 2010-02-23 | BMMSoft, Inc. | Method and system for processing structured data and unstructured data |
| CN101853297A (en) * | 2010-05-28 | 2010-10-06 | 英华达(南昌)科技有限公司 | A method for quickly obtaining desired images in electronic equipment |
| US20120047186A1 (en) * | 2001-02-26 | 2012-02-23 | Ori Software Development Ltd. | Encoding Semi-Structured Data for Efficient Search and Browsing |
| CN102541889A (en) * | 2010-12-21 | 2012-07-04 | 新奥特(北京)视频技术有限公司 | Method for non-structured media data storage mode |
| US20120239708A1 (en) * | 2007-09-28 | 2012-09-20 | Microsoft Corporation | Distributed storage for collaboration servers |
| CN102741844A (en) * | 2010-01-19 | 2012-10-17 | 微软公司 | Automatic context discovery |
| CN102831217A (en) * | 2012-08-17 | 2012-12-19 | 安科智慧城市技术(中国)有限公司 | Data processing method and device |
| CN102955815A (en) * | 2011-08-30 | 2013-03-06 | 上海无戒空间信息技术有限公司 | Method and device for writing and reading data |
| CN103034738A (en) * | 2012-12-29 | 2013-04-10 | 天津南大通用数据技术有限公司 | Relevant database for managing heterogeneous unstructured data and method for creating and inquiring description information of unstructured data thereof |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102238223B (en) * | 2010-05-06 | 2012-10-10 | 清华大学 | Networked personal data management method for mobile device |
-
2013
- 2013-12-11 CN CN201380008940.9A patent/CN104169914A/en active Pending
- 2013-12-11 WO PCT/CN2013/089057 patent/WO2015085507A1/en not_active Ceased
Patent Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120047186A1 (en) * | 2001-02-26 | 2012-02-23 | Ori Software Development Ltd. | Encoding Semi-Structured Data for Efficient Search and Browsing |
| US20050049994A1 (en) * | 2003-08-21 | 2005-03-03 | Microsoft Corporation | Systems and methods for the implementation of a base schema for organizing units of information manageable by a hardware/software interface system |
| US7668849B1 (en) * | 2005-12-09 | 2010-02-23 | BMMSoft, Inc. | Method and system for processing structured data and unstructured data |
| US20120239708A1 (en) * | 2007-09-28 | 2012-09-20 | Microsoft Corporation | Distributed storage for collaboration servers |
| CN101187938A (en) * | 2007-11-09 | 2008-05-28 | 中国传媒大学 | A Unified Description and Retrieval Method for Multimedia Metadata |
| CN102741844A (en) * | 2010-01-19 | 2012-10-17 | 微软公司 | Automatic context discovery |
| CN101853297A (en) * | 2010-05-28 | 2010-10-06 | 英华达(南昌)科技有限公司 | A method for quickly obtaining desired images in electronic equipment |
| CN102541889A (en) * | 2010-12-21 | 2012-07-04 | 新奥特(北京)视频技术有限公司 | Method for non-structured media data storage mode |
| CN102955815A (en) * | 2011-08-30 | 2013-03-06 | 上海无戒空间信息技术有限公司 | Method and device for writing and reading data |
| CN102831217A (en) * | 2012-08-17 | 2012-12-19 | 安科智慧城市技术(中国)有限公司 | Data processing method and device |
| CN103034738A (en) * | 2012-12-29 | 2013-04-10 | 天津南大通用数据技术有限公司 | Relevant database for managing heterogeneous unstructured data and method for creating and inquiring description information of unstructured data thereof |
Cited By (23)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105786819A (en) * | 2014-12-18 | 2016-07-20 | 广州华多网络科技有限公司 | Data operation method and device |
| CN104615708A (en) * | 2015-02-04 | 2015-05-13 | 张宇 | Multi-source information application system and method |
| CN104850661A (en) * | 2015-06-08 | 2015-08-19 | 上海斐讯数据通信技术有限公司 | Embedded equipment database packaging framework and implementation method |
| CN106933932A (en) * | 2015-12-31 | 2017-07-07 | 华为软件技术有限公司 | Data processing method, device and application server |
| CN106326352A (en) * | 2016-08-08 | 2017-01-11 | 歌尔股份有限公司 | Universal interface design method and system in butt joint with plurality of service systems |
| CN106484892A (en) * | 2016-10-19 | 2017-03-08 | 凌云天博光电科技股份有限公司 | Data manipulation method and device |
| CN108509448A (en) * | 2017-02-27 | 2018-09-07 | 北京京东尚科信息技术有限公司 | Data processing method and device |
| CN107317865B (en) * | 2017-06-30 | 2019-11-05 | 中国科学院信息工程研究所 | A kind of general off-line data cut-in method and system |
| CN107644298B (en) * | 2017-09-29 | 2021-06-25 | 深圳市瑞福登信息技术服务有限公司 | Data processing method and device, storage device and terminal equipment |
| CN107644298A (en) * | 2017-09-29 | 2018-01-30 | 深圳市瑞福登信息技术服务有限公司 | A kind of method, apparatus of data processing, storage device and terminal device |
| CN108121820A (en) * | 2017-12-29 | 2018-06-05 | 北京奇虎科技有限公司 | A kind of searching method and device based on mobile terminal |
| CN108345677A (en) * | 2018-02-13 | 2018-07-31 | 销冠网络科技有限公司 | Data processing method and device for business development |
| CN110474788A (en) * | 2018-05-11 | 2019-11-19 | 中兴通讯股份有限公司 | A data processing method, terminal and computer-readable storage medium |
| CN110474788B (en) * | 2018-05-11 | 2022-04-15 | 中兴通讯股份有限公司 | Data processing method, terminal and computer readable storage medium |
| CN109101595A (en) * | 2018-07-27 | 2018-12-28 | 郑州云海信息技术有限公司 | A kind of information query method, device, equipment and computer readable storage medium |
| CN111061759A (en) * | 2018-10-17 | 2020-04-24 | 联易软件有限公司 | Data query method and device |
| CN111611418A (en) * | 2019-02-25 | 2020-09-01 | 阿里巴巴集团控股有限公司 | Data storage method and data query method |
| CN111611418B (en) * | 2019-02-25 | 2025-04-11 | 阿里巴巴集团控股有限公司 | Data storage method and data query method |
| CN111753141A (en) * | 2019-03-26 | 2020-10-09 | 华为技术有限公司 | A data management method and related equipment |
| CN111753141B (en) * | 2019-03-26 | 2024-06-11 | 华为技术有限公司 | A data management method and related equipment |
| CN111711940A (en) * | 2020-04-29 | 2020-09-25 | 杭州涂鸦信息技术有限公司 | Intelligent device data interaction method, intelligent device and storage device |
| CN111711940B (en) * | 2020-04-29 | 2023-10-31 | 杭州涂鸦信息技术有限公司 | Intelligent device data interaction method, intelligent device and storage device |
| CN119669284A (en) * | 2024-11-18 | 2025-03-21 | 北京深势科技有限公司 | A database access system for compound database |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2015085507A1 (en) | 2015-06-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104169914A (en) | Data storage method, data processing method, device and mobile terminal | |
| US9031953B2 (en) | Method and system to curate media collections | |
| JP6694545B1 (en) | User interface extender | |
| CN102902733B (en) | A kind of information-pushing method based on content subscription, Apparatus and system | |
| US9910895B2 (en) | Push subscriptions | |
| JP4812747B2 (en) | Method and system for capturing and extracting information | |
| US9112936B1 (en) | Systems and methods for ephemeral eventing | |
| US20140304019A1 (en) | Media capture device-based organization of multimedia items including unobtrusive task encouragement functionality | |
| US20150127754A1 (en) | Systems and methods for collecting media content | |
| EP2854048B1 (en) | Method of operating a mobile telecommunications device | |
| WO2017107826A1 (en) | Service information pushing method and device | |
| CN102917061A (en) | Resource synchronization method and system | |
| CN107103011B (en) | Method and device for realizing terminal data search | |
| CN101454988A (en) | Method and system of user-interests driven launching pad of mobile applications | |
| US20110219083A1 (en) | Email auto-filing and management | |
| CN107729485A (en) | A kind of data managing method, device, terminal and computer-readable recording medium | |
| CN107729483A (en) | A kind of classifying indication method, device, terminal and computer-readable recording medium | |
| CN107765945A (en) | A kind of file management method, device, terminal and computer-readable recording medium | |
| CN107957869A (en) | The fixed office cloud desktop system of one kind | |
| WO2016023378A1 (en) | Method and device for storing information about contact person | |
| US20130226999A1 (en) | Method, system and program product for interaction between users | |
| US10200320B2 (en) | Import content items from email | |
| CN107766488A (en) | A kind of information query method, terminal, computer-readable recording medium | |
| CN104184824B (en) | Mobile phone newspaper customizes and the device and method of push | |
| US20170193051A1 (en) | Systems and methods for automatic archiving, sorting, and/or indexing of secondary message content |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20141126 |