CN102375814A - Device and method for storing remark information - Google Patents
Device and method for storing remark information Download PDFInfo
- Publication number
- CN102375814A CN102375814A CN201010248918XA CN201010248918A CN102375814A CN 102375814 A CN102375814 A CN 102375814A CN 201010248918X A CN201010248918X A CN 201010248918XA CN 201010248918 A CN201010248918 A CN 201010248918A CN 102375814 A CN102375814 A CN 102375814A
- Authority
- CN
- China
- Prior art keywords
- information
- field
- length
- subelement
- contact person
- 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
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a device and method for storing remark information, the device comprises an editing module for editing contact information and a memory device, the device for storing the remark information further comprises a judging module, and the memory further comprises a contact information storage module and a mapping module, wherein the judging module is used for judging whether the length of the edited information exceeds the preset length or not, if the length of the information is less than or equal to the preset length, the information is stored in the contact information storage module; and if the length of the information is more than the preset length, the information is stored in the mapping module. A user can input the information which needs to be remarked into non-used fields, the input remark information is saved in mapping files corresponding to the fields which are not commonly used, and addresses of the remark information in the mapping files are saved in files of the fields which are not commonly used, thereby avoiding the defect that the size of the fields which are not commonly used is limited.
Description
Technical field
The present invention relates to a kind of apparatus and method of storing remark information, particularly relate to a kind of apparatus and method based on the storage remark information that joins core Larena3.0 platform.
Background technology
LARENA3.0 is a kind of mobile phone application software platform, and development environment and kit easily are provided.LARENA SDK external member is around the application life cycles overall process, and the instrument for the developer provides foolproof, visual exploitation, debugging and deployment has shortened the launch cycle greatly.And developed a mobile phone based on LARENA3.0 and can release the commercial mobile phone of a series of differentiation simultaneously, like touch-screen, Different L CD etc.In the Larena3.0 platform that joins core, encapsulate contact person's function, hidden the realization details, and " remarks " field is not provided in its package interface, in the mobile phone of present main flow, obviously can not satisfy customized demand.Though can use other not use field to preserve " remarks " information in the realization; The field that is of little use like " street address " field etc.; But the storage space maximum that these fields provide has only 60 bytes; If 30 Chinese characters then can only be preserved in the input Chinese character, can't satisfy the demand of most of user to " remarks " field.If can find a kind of restriction of under the prerequisite of not changing couplet core platform, breaking 60 bytes of storage space, then more can facilitate for the user.
Summary of the invention
The technical matters that the present invention will solve is to have only the defective of 60 bytes for the storage space maximum that field in the Larena3.0 platform that overcomes prior art couplet core provides, and a kind of apparatus and method at the storage remark information of not changing the restriction of breaking 60 bytes of storage space under the prerequisite that joins the core platform are provided.
The present invention solves above-mentioned technical matters through following technical proposals:
A kind of device of storing remark information; It comprises that one is used for the editor module and a storer of edit contact information, and its characteristics are that the device of this storage remark information also comprises a judge module; And this storer comprises associated person information memory module and mapping block
Wherein judge module is used to judge whether the length of the information of being edited surpasses preset length, if message length smaller or equal to preset length, then with this information stores in the associated person information memory module; If message length is greater than preset length, then with this information stores in this mapping block, and the address information of information in mapping block be stored in this associated person information memory module;
Said editor module links to each other with judge module, and said judge module links to each other with said mapping block with the associated person information memory module respectively, and said associated person information memory module links to each other with said mapping block.
Wherein, The associated person information memory module is used for storing contact ID; Be divided into a plurality of contact person ID unit according to contact person ID, each contact person ID unit is divided into a plurality of field subelements, and mapping block is divided into a plurality of ID map unit according to contact person ID; Each ID map unit is divided into a plurality of field mappings subelements; And contact person ID unit is corresponding one by one with the ID map unit according to contact person ID, and the field subelement is corresponding one by one with the field mappings subelement, and wherein the address information of field mappings subelement is stored in the field subelement corresponding with it.
Preferably, said preset length is at least 60 bytes.
Another technical scheme of the present invention is: the method that a kind of device that adopts described storage remark information is stored remark information, and its characteristics are that it may further comprise the steps:
S
1, editor module obtains the information that the user edited;
S
2, judge module judge the information edited length whether smaller or equal to preset length, if get into step S
3If not, get into step S
4
S
3, the information of being edited is deposited in the associated person information memory module;
S
4, the information of being edited is deposited in the mapping block;
S
5, the address information that will deposit the information in the mapping block in deposits in the associated person information memory module.
Preferably, step S
3Further comprising the steps of:
S
31, the length of being edited is addressed to corresponding contact person ID unit smaller or equal to the information of preset length by contact person ID;
S
32, the information of the length of being edited smaller or equal to preset length is deposited in the field subelement of the correspondence in the contact person ID unit by field.
Preferably, step S
4Further comprising the steps of:
S
41, the length of being edited is addressed to corresponding ID map unit greater than the information of preset length by contact person ID;
S
42, the information of the length of being edited greater than preset length is deposited in the corresponding field mappings subelement by field.
Preferably, step S
5Also comprise the address information that deposits the information in the field mappings subelement in is deposited in the corresponding with it field subelement.
Preferably, said preset length is at least 60 bytes.
Positive progressive effect of the present invention is: the method that on the Larena3.0 platform that joins core, has found a kind of providing " remarks " field; The user can input to untapped field with the information that needs remarks; For example in the non-common fields such as " street addresses "; Through with the input remark information be saved to the corresponding mapped file of these non-common fields in; The address of remark information in mapped file is saved in the file of non-common field, this has just been avoided the conditional defective of file size of non-common field again.If the user need read these remark informations, only need promptly to can read the remark information of preserving before according to the addressing in mapped file of address stored information in the file of non-common field.Through such mode, the problem that can not exist remark information can't preserve too greatly, thus convenient for users to use.
Description of drawings
Fig. 1 is the schematic representation of apparatus of storage remark information of the present invention.
Fig. 2 be in the device of storage remark information of the present invention associated person information memory module and mapping block be connected synoptic diagram.
Fig. 3 is the process flow diagram of the method for storage remark information of the present invention.
Embodiment
Provide preferred embodiment of the present invention below in conjunction with accompanying drawing, to specify technical scheme of the present invention.
With reference to figure 1; The device of storage remark information of the present invention, it comprises that one is used for the editor module 1 and a storer 3 of edit contact information, the device of this storage remark information also comprises: a judge module 2; This storer 3 comprises associated person information memory module 31 and mapping block 32; Said judge module 2 is used to judge whether the length of the information of being edited surpasses preset length, if message length smaller or equal to preset length, then with this information stores in associated person information memory module 31; If message length is greater than preset length, then with this information stores in this mapping block 32, and the address information of information in mapping block 32 be stored in this associated person information memory module 31; Wherein, Associated person information memory module 31 is used for storing contact ID and message length smaller or equal to the information of preset length and the address information that is stored in the information of mapping block 32; Mapping block 32 is used for the information of memory length greater than preset length; Said editor module 1 links to each other with judge module 2, and said judge module 2 links to each other with said mapping block 32 with associated person information memory module 31 respectively, and said associated person information memory module 31 links to each other with said mapping block 32.
With reference to figure 2; Specifically; Associated person information memory module 31 is divided into a plurality of contact person ID unit 311 according to contact person ID, and each contact person ID unit 311 is divided into a plurality of field subelements 3111, and mapping block 32 is divided into a plurality of ID map unit 321 according to contact person ID; Each ID map unit 321 is divided into a plurality of field mappings subelements 3211; And contact person ID unit 311 is corresponding one by one with ID map unit 321 according to contact person ID, and field subelement 3111 is corresponding one by one with field mappings subelement 3211, and wherein the address information of field mappings subelement 3211 is stored in the field subelement 3111 corresponding with it.For instance, with reference to figure 2, according to contact person ID; Associated person information memory module 31 is divided into N contact person ID unit; Be respectively contact person ID unit 1, contact person ID unit 2... contact person ID unit N, wherein each contact person ID unit is divided into N field subelement according to field again, and for example contact person ID unit 1 is divided into field subelement 11, field subelement 12... field subelement 1N; Contact person ID unit 2 is divided into field subelement 21, field subelement 22... field subelement 2N; By that analogy, can know with reference to figure 2, just not exhaustive in the present embodiment.Same; Mapping block 32 is divided into N ID map unit according to contact person ID; Be respectively ID map unit 1, ID map unit 2...ID map unit N, and the with good grounds field of each ID map unit is divided into N field mappings subelement, for example ID map unit 1 is divided into field mappings subelement 11, field mappings subelement 12... field mappings subelement 1N; ID map unit 2 is divided into field mappings subelement 21, field mappings subelement 22... field mappings subelement 2N, by that analogy.Wherein, contact person ID unit 1-N is corresponding one by one with ID map unit 1-N respectively, and field subelement 11-NN wherein is corresponding one by one with field mappings subelement 11-NN respectively.
The length of the information that the user edited that 2 pairs of editor modules of judge module obtain is judged; If message length is smaller or equal to preset length, preset length is that those skilled in the art are provided with according to prior art and combination common practise, for example 60 bytes; Then this information is deposited in the associated person information memory module; And, information is deposited in the corresponding contact person ID unit, after this according to contact person ID; This information is classified according to field, deposit in the field subelement of the corresponding field in the contact person ID unit, place.If judge module judges that the length of information is greater than preset length; Then this information is deposited in the mapping block, and, information is deposited in the corresponding ID map unit according to contact person ID; After this; This information is classified according to field, deposit in the field mappings subelement of the corresponding field in the ID map unit of place, and the address information of this information in this field mappings subelement is saved to and this field mappings subelement one to one in the field subelement.In conjunction with Fig. 2; Illustrate, input is about the information of contact person ID1, and wherein the length of information 1 and information N is smaller or equal to preset length; 60 bytes for example; Then this information 1 is deposited in the contact person ID unit 1 in the associated person information memory module with information N, information 1 deposits in respectively among field subelement 11 and the field subelement 1N according to field with information N, and in the information about contact person ID1 of input; The length of information 2 is greater than preset length; Then this information 2 is deposited in the ID map unit 1 of mapping block, information 2 deposits in the field mappings subelement 12 according to field, and the address information of this information 2 in field mappings subelement 12 deposited in and field mappings subelement 12 one to one in the field subelement 12.
The present invention also provides a kind of method of storing remark information, and it may further comprise the steps:
S
1, editor module obtains the information that the user edited;
S
2, judge module judge the information edited length whether smaller or equal to preset length, if get into step S
3If not, get into step S
4
S
3, the information of being edited is deposited in the associated person information memory module;
S
4, the information of being edited is deposited in the mapping block;
S
5, the address information that will deposit the information in the mapping block in deposits in the associated person information memory module.
Wherein, step S
3Further comprising the steps of: S
31, the length of being edited is addressed to corresponding contact person ID unit smaller or equal to the information of preset length by contact person ID; S
32, the information of the length of being edited smaller or equal to preset length is deposited in the field subelement of the correspondence in the contact person ID unit by field.And, step S
4Further comprising the steps of: S
41, the length of being edited is addressed to corresponding ID map unit greater than the information of preset length by contact person ID; S
42, the information of the length of being edited greater than preset length is deposited in the corresponding field mappings subelement by field.Afterwards, step S
5Also comprise the address information that deposits the information in the field mappings subelement in is deposited in the corresponding with it field subelement.
In conjunction with Fig. 3, introduce the method for storage remark information in detail.
The concrete realization of above-mentioned steps 200~201 in reality is the state of the art, is not inventive point of the present invention place.
Be reference with Fig. 2-3 below, lift an application example, further specify embodiment of the present invention.
1, newly-increased contact person's remark information
The user is through the newly-increased contact person of editor module; Editor module gets access to the associated person information that the user edits; Name of contact person, telephone number, address, e-mail address, street address or the like information for example wherein can be with contact name field as contact person ID, and each contact person has unique contact person ID; This is as contact person's sign, and all the other telephone numbers, address, e-mail address, street address etc. are waited until editor as other fields respectively and preserved.For example the user accomplishes after the editor's input to contact person ID1, and other each fields of this contact person ID1 are edited input one by one.If the user need deposit remark information in, then can use and edit like non-common fields such as street addresses.
Judge module judges whether the information of the various field of being obtained by editor module surpasses preset length; Preset length can be made as 60 bytes; Judge the for example message length of the phone number field of contact person ID1; Usually the message length of phone number field can not surpass 60 bytes; Just deposit the information of telephone number in the contact person ID unit 1 corresponding to contact person ID1 in the associated person information memory module in this moment; If getting access to the message length of the street address field of contact person ID1, editor module surpasses 60 bytes; Being the user carries out the editor of remark information through the street address field, this moment then with this remark information deposit in the mapping block with the corresponding ID map unit 1 of contact person ID1 in, in that (be the street address field this moment according to field; Suppose this street address field corresponding be field mappings subelement 12) this remark information is deposited in the field mappings subelement 12, again the address information of this remark information in field mappings subelement 12 deposited in the field subelement 12 corresponding with this field mappings subelement 12 simultaneously.Preserve at last and this time newly-built contact person is edited.
2, check remark information
At first obtain the information in the street address field; It is the address information in the field subelement 12; According to this address information addressing; Find the remark information that is stored in field mappings subelement 12, show perhaps that through edit control control or other known controls well known to those skilled in the art or module show that remark information is to the user again.
3, revise remark information
The user opens edit control or adopts other modes well known to those skilled in the art, device that remark information is made amendment; Editor module obtains this amended remark information; Obtain the path address information of former remark information through the street address field; Be field mappings subelement 12, the content in the field mappings subelement 12 is emptied and amended remark information is deposited in and preserves.
4, deletion associated person information
The user is through editor module input deletion contact person's order; Editor module receives and obtains the contact person ID that will delete and the information of each field after this order; Comprise the street address field that comprises remark information; According to (being in the field subelement 12) address stored information in the street address field; To be stored in the information deletion of this address (in the field mappings subelement 12) and delete this contact person ID (contact person ID unit 1) and the information of other fields (being stored among the field subelement 11-1N), end operation.
Though more than described embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is limited appended claims.Those skilled in the art can make numerous variations or modification to these embodiments under the prerequisite that does not deviate from principle of the present invention and essence, but these changes and modification all fall into protection scope of the present invention.
Claims (8)
1. device of storing remark information; It comprises that one is used for the editor module and a storer of edit contact information, it is characterized in that the device of this storage remark information also comprises a judge module; And this storer comprises associated person information memory module and mapping block
Wherein judge module is used to judge whether the length of the information of being edited surpasses preset length, if message length smaller or equal to preset length, then with this information stores in the associated person information memory module; If message length is greater than preset length, then with this information stores in this mapping block, and the address information of information in mapping block be stored in this associated person information memory module;
Said editor module links to each other with judge module, and said judge module links to each other with said mapping block with the associated person information memory module respectively, and said associated person information memory module links to each other with said mapping block.
2. the device of storage remark information as claimed in claim 1 is characterized in that, wherein; The associated person information memory module is used for storing contact ID; Be divided into a plurality of contact person ID unit according to contact person ID, each contact person ID unit is divided into a plurality of field subelements, and mapping block is divided into a plurality of ID map unit according to contact person ID; Each ID map unit is divided into a plurality of field mappings subelements; And contact person ID unit is corresponding one by one with the ID map unit according to contact person ID, and the field subelement is corresponding one by one with the field mappings subelement, and wherein the address information of field mappings subelement is stored in the field subelement corresponding with it.
3. the device of storage remark information as claimed in claim 1 is characterized in that, said preset length is at least 60 bytes.
4. method that the device that adopts the described storage remark information of claim 1 is stored remark information is characterized in that it may further comprise the steps:
S
1, editor module obtains the information that the user edited;
S
2, judge module judge the information edited length whether smaller or equal to preset length, if get into step S
3If not, get into step S
4
S
3, the information of being edited is deposited in the associated person information memory module;
S
4, the information of being edited is deposited in the mapping block;
S
5, the address information that will deposit the information in the mapping block in deposits in the associated person information memory module.
5. the method for storage remark information as claimed in claim 4 is characterized in that, step S
3Further comprising the steps of:
S
31, the length of being edited is addressed to corresponding contact person ID unit smaller or equal to the information of preset length by contact person ID;
S
32, the information of the length of being edited smaller or equal to preset length is deposited in the field subelement of the correspondence in the contact person ID unit by field.
6. the method for storage remark information as claimed in claim 4 is characterized in that, step S
4Further comprising the steps of:
S
41, the length of being edited is addressed to corresponding ID map unit greater than the information of preset length by contact person ID;
S
42, the information of the length of being edited greater than preset length is deposited in the corresponding field mappings subelement by field.
7. the method for storage remark information as claimed in claim 6 is characterized in that, step S
5Also comprise the address information that deposits the information in the field mappings subelement in is deposited in the corresponding with it field subelement.
8. the method for storage remark information as claimed in claim 4 is characterized in that, said preset length is at least 60 bytes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010248918XA CN102375814A (en) | 2010-08-10 | 2010-08-10 | Device and method for storing remark information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010248918XA CN102375814A (en) | 2010-08-10 | 2010-08-10 | Device and method for storing remark information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102375814A true CN102375814A (en) | 2012-03-14 |
Family
ID=45794440
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010248918XA Pending CN102375814A (en) | 2010-08-10 | 2010-08-10 | Device and method for storing remark information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102375814A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105049178A (en) * | 2015-07-23 | 2015-11-11 | 柳州易旺科技有限公司 | Multi-user information screening method |
CN106775224A (en) * | 2016-11-30 | 2017-05-31 | 北京小米移动软件有限公司 | Remark information method to set up and device |
CN109918373A (en) * | 2019-02-02 | 2019-06-21 | 上海达梦数据库有限公司 | Date storage method, device, server and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0876036A2 (en) * | 1997-04-01 | 1998-11-04 | Nokia Mobile Phones Ltd. | Apparatus and method for searching in a telephone directory |
CN1508718A (en) * | 2002-12-19 | 2004-06-30 | Interface for user of person to contact | |
CN101014059A (en) * | 2007-01-11 | 2007-08-08 | 上海柯斯软件有限公司 | Method for storing and extending data information of electric phone book |
CN101083631A (en) * | 2006-05-31 | 2007-12-05 | 阿里巴巴公司 | Method for establishing contact list and managing contact information in instant communication |
-
2010
- 2010-08-10 CN CN201010248918XA patent/CN102375814A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0876036A2 (en) * | 1997-04-01 | 1998-11-04 | Nokia Mobile Phones Ltd. | Apparatus and method for searching in a telephone directory |
CN1508718A (en) * | 2002-12-19 | 2004-06-30 | Interface for user of person to contact | |
CN101083631A (en) * | 2006-05-31 | 2007-12-05 | 阿里巴巴公司 | Method for establishing contact list and managing contact information in instant communication |
CN101014059A (en) * | 2007-01-11 | 2007-08-08 | 上海柯斯软件有限公司 | Method for storing and extending data information of electric phone book |
Non-Patent Citations (1)
Title |
---|
胡吕兵: "PDM电子资料室大文件数据快速存取技术研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 01, 15 January 2008 (2008-01-15) * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105049178A (en) * | 2015-07-23 | 2015-11-11 | 柳州易旺科技有限公司 | Multi-user information screening method |
CN106775224A (en) * | 2016-11-30 | 2017-05-31 | 北京小米移动软件有限公司 | Remark information method to set up and device |
CN106775224B (en) * | 2016-11-30 | 2019-11-29 | 北京小米移动软件有限公司 | Remark information setting method and device |
CN109918373A (en) * | 2019-02-02 | 2019-06-21 | 上海达梦数据库有限公司 | Date storage method, device, server and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103984641B (en) | A kind of memory space recovery method and its device based on simplify configuration technology | |
CN105302478B (en) | A kind of date storage method and electronic equipment | |
CN103902589B (en) | Management method and device for downloaded files | |
CN106775436B (en) | Data access method, memorizer control circuit unit and memory | |
CN104601683B (en) | A kind of file download management method and mobile terminal and communication system | |
CN102929980B (en) | Folder cleaning method and device | |
CN104461505B (en) | A kind of terminal | |
CN105446975B (en) | A kind of file packing method and device | |
CN103473343A (en) | File management method, device and terminal | |
CN108664577B (en) | File management method and system based on FLASH idle area | |
CN104216740A (en) | Application software management method and device and terminal | |
CN1687899A (en) | Method, system and module for dynamic downloading of applied programe to user identification | |
CN106170757A (en) | A kind of date storage method and device | |
CN105204981A (en) | Application performance test method and device | |
CN102375814A (en) | Device and method for storing remark information | |
CN106557308A (en) | A kind of software continuous integrated approach and device | |
KR100456736B1 (en) | Method for reducing booting time of a digital device having a flash memory | |
CN112596949A (en) | High-efficiency SSD (solid State disk) deleted data recovery method and system | |
CN108958755A (en) | A kind of generation method, device and the electronic equipment of application program installation kit | |
CN113573134A (en) | Bullet screen data processing method and device, storage medium and electronic equipment | |
CN101131649A (en) | Updating speed improving method for read-only memory of device with flash memory | |
CN101221581B (en) | Data file generation method and device | |
CN112866087B (en) | Information receiving method and computer readable storage medium | |
KR101111400B1 (en) | Apparatus and method for recovering the data of embeded system | |
CN101072250A (en) | Method for fast-automatically generating menu resource for mobile device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120314 |