CN109753227A - Storage method, device, mobile terminal, server and readable storage medium storing program for executing - Google Patents

Storage method, device, mobile terminal, server and readable storage medium storing program for executing Download PDF

Info

Publication number
CN109753227A
CN109753227A CN201711092700.8A CN201711092700A CN109753227A CN 109753227 A CN109753227 A CN 109753227A CN 201711092700 A CN201711092700 A CN 201711092700A CN 109753227 A CN109753227 A CN 109753227A
Authority
CN
China
Prior art keywords
numerical string
data type
value
preset
stored
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.)
Granted
Application number
CN201711092700.8A
Other languages
Chinese (zh)
Other versions
CN109753227B (en
Inventor
宋艳飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Didi Infinity Technology and Development Co Ltd
Original Assignee
Beijing Didi Infinity Technology and Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Didi Infinity Technology and Development Co Ltd filed Critical Beijing Didi Infinity Technology and Development Co Ltd
Priority to CN201711092700.8A priority Critical patent/CN109753227B/en
Publication of CN109753227A publication Critical patent/CN109753227A/en
Application granted granted Critical
Publication of CN109753227B publication Critical patent/CN109753227B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides storage method, device, mobile terminal, server and the readable storage medium storing program for executing of a kind of user's evaluation result, wherein the storage method of user's evaluation result, comprising: obtains the score value for being directed to multiple assessment items;Multiple score values are converted at least one numerical string to be stored;The corresponding preset threshold section of each numerical string is determined, to determine corresponding data type according to preset threshold section;According to data type, numerical string to be stored is converted into storing data;Storing data is sent to server, so that server stores multiple scorings according to the storage byte number of storing data.According to the technical solution of the present invention, facilitate to reduce memory space, to mitigate the storage pressure of server end.

Description

Storage method, device, mobile terminal, server and readable storage medium storing program for executing
Technical field
The present invention relates to scheduling transport power technical field, in particular to a kind of user's evaluation result storage method, one Storage device, a kind of mobile terminal, a kind of server and a kind of computer readable storage medium of kind user's evaluation result.
Background technique
In the related technology, the storage of user's evaluation result is remembered both for the disparity items of evaluation using a byte The evaluation score of a project is recorded, for example, using an a byte (i.e. char type, including 8 bit, the range of expression are 10 The 0~255 of system or -128~127) Lai Jilu, its advantage is that evaluation score can be segmented, for example, it is divided into 0~100 point, It has the following deficiencies:
Comparing occupancy memory space, is much needed in the application of user's evaluation at present, the project of evaluation is usually relatively more, but The score of each evaluation only has 1~5 point, i.e., will not especially refine, for example, needing 4 bytes to carry out when having 4 assessment items Storage, and needs assessment project it is more when, it is necessary to more bytes are stored, and largely accounting for memory headroom is caused With.
Summary of the invention
The present invention is directed to solve at least one of the technical problems existing in the prior art or related technologies.
For this purpose, the purpose of the present invention is to provide a kind of storage methods of user's evaluation result, a kind of user's evaluation result Storage device, a kind of mobile terminal, a kind of server and a kind of computer readable storage medium.
To achieve the goals above, the technical solution of the first aspect of the present invention provides a kind of depositing for user's evaluation result Method for storing is suitable for net about vehicle client, comprising: obtains the score value for being directed to multiple assessment items;Multiple score values are converted For at least one numerical string to be stored;The corresponding preset threshold section of each numerical string is determined, according to preset threshold section Determine corresponding data type;According to data type, numerical string to be stored is converted into storing data;Storing data is sent To server, so that server stores multiple scorings according to the storage byte number of storing data.
In the technical scheme, by after getting user for the score value of multiple assessment items, by multiple scorings Value is converted to one or more long numeric datas, i.e. numerical string, and detects between the digit of numerical string and default number of packet threshold value Relationship, it is corresponding default to directly determine numerical string when the digit for detecting numerical string is less than default number of packet threshold value Threshold interval, so that corresponding data type is determined according to preset threshold section, to carry out storage mark according to data type, and It is sent to server to be stored, compared with the mode of one score value of a byte records in the prior art, helps to reduce Memory space, to mitigate the storage pressure of server end.
Wherein, when score value is units, the digit of numerical string and the quantity of assessment item are identical.
In addition, score value can be 1 to 100 point of score value of subdivision, it can also be compared with the score value of 1 to 15 point of rough segmentation, also It can be 1 to 10 point of the score value compared with rough segmentation, can also be 1 to 5 point of score value of more rough segmentation.
Specifically, the minimum unit of computer storage at present is byte, and each byte includes that (each bit can be with by 8 bit Value 0 or 1).
For char type, characterization occupies a byte in memory, i.e. 8 bit, can indicate 0~255 (or -128 ~127) score value of 2 projects can, be stored.
Short type characterization occupies two bytes in memory, i.e. 16 bit, can indicate 0~65535 (or -32768 ~32767) score value of 4 projects, can at most be stored.
Int type characterizes and occupies 4 bytes in memory, i.e. 32bit, 0~4294967295 (or -2147483648~ 2147483647) score value of 9 projects, can at most be stored.
Double type, characterization occupy 8 bytes, 64bit in memory.
For example, there is 4 assessment items, score value is respectively 5,5,5,5, if using storage mode in the prior art, Since each number is required to a byte, then 4 bytes are needed, each byte stores a score value, by generating number Value string, this 4 score values can be switched to ten's digit (or octal digit), i.e., 5555, wherein the ten's digit Every number represents a score value, since 5555 less than 65535, then two bytes (short type) expression can be used The score of this four assessment items, than the memory space that conventional method saves half.As above, the maximum table of four bytes (int type) Show 10 digits, then at most can store the score (score of each assessment item is respectively less than 10) of 9 assessment items, than tradition Method saves 5 bytes.
The technical solution of the second aspect of the present invention provides a kind of storage method of user's evaluation result, is suitable for service Device, comprising: receive the score value for multiple assessment items that net about vehicle client is sent;Multiple score values are converted at least One numerical string to be stored;The corresponding preset threshold section of each numerical string is determined, according to the determination pair of preset threshold section The data type answered;According to data type, numerical string to be stored is stored.
It in the technical scheme, will be multiple after the score value for multiple assessment items by receiving terminal transmission Score value is converted to one or more long numeric datas, i.e. numerical string, and detects the digit and default number of packet threshold value of numerical string Between relationship, it is corresponding to directly determine numerical string when the digit for detecting numerical string is less than default number of packet threshold value Preset threshold section, so that corresponding data type is determined according to preset threshold section, to carry out storage mark according to data type Know, and be sent to server and stored, compared with the mode of one score value of a byte records in the prior art, facilitates Memory space is reduced, to mitigate the storage pressure of server end, compared with the technical solution of the first aspect of the present invention, data The process of processing and conversion is completed in server end, can reduce the processing pressure of mobile terminal.
Wherein, when score value is units, the digit of numerical string and the quantity of assessment item are identical.
In addition, score value can be 1 to 100 point of score value of subdivision, it can also be compared with the score value of 1 to 15 point of rough segmentation, also It can be 1 to 10 point of the score value compared with rough segmentation, can also be 1 to 5 point of score value of more rough segmentation.
Specifically, the minimum unit of computer storage at present is byte, and each byte includes that (each bit can be with by 8 bit Value 0 or 1).
For char type, characterization occupies a byte in memory, i.e. 8 bit, can indicate 0~255 (or -128 ~127) score value of 2 projects can, be stored.
Short type characterization occupies two bytes in memory, i.e. 16 bit, can indicate 0~65535 (or -32768 ~32767) score value of 4 projects, can at most be stored.
Int type characterizes and occupies 4 bytes in memory, i.e. 32bit, 0~4294967295 (or -2147483648~ 2147483647) score value of 9 projects, can at most be stored.Double type, characterization occupy 8 bytes, 64bit in memory.
In the above-mentioned technical solutions, it is preferable that multiple score values are converted at least one numerical string to be stored, specifically The following steps are included: whether the digit for detecting multiple score values is less than or equal to default number of packet threshold value;It is multiple detecting When the digit of score value is less than or equal to default number of packet threshold value, multiple score values are converted into a numerical string;It is examining When measuring the digits of multiple score values and being greater than default number of packet threshold value, assessment item is grouped, with after grouping, according to Corresponding data type generates multiple data to be stored, wherein the highest order in each data to be stored characterizes grouping serial number.
In the technical scheme, by when the digit for detecting numerical string is greater than default number of packet threshold value, to evaluation Project is grouped, and to store after being grouped to multiple score values, when assessment item is more, the numerical string generated is not fallen Enter the value range (such as numberical range of double type defined) of preset data type defined, therefore can not be using pre- If data type store the data, by be grouped processing, on the one hand, realize the smooth storage of multiple score values, separately On the one hand, it by the way that the highest order in each data to be stored is characterized grouping serial number, to represent different groupings, also facilitates pair Data subsequent inquiry and processing.
Wherein, the numerical string after grouping can be stored according to same data type, can also be according to different data class Type storage.
In addition, characterizing grouping serial number using the front two of highest order when number of packet is more than 10.
In any of the above-described technical solution, it is preferable that be greater than default number of packet in the digit for detecting multiple score values When threshold value, assessment item is grouped, after grouping, according to corresponding data type, to generate multiple data to be stored, tool Body is the following steps are included: be the first preset quantity threshold value in default number of packet threshold value, in the quantity for detecting assessment item When greater than the first preset quantity threshold value, according to the first preset data type, the quantity of grouping is determined, wherein the first preset quantity Threshold value is 9, and the first preset data type is int data type or short data type.
In the technical scheme, by the way that the first preset quantity threshold value is limited to 9, and data type is preset as int type Or short type, when the digit of numerical string is greater than 9, according to the quotient between digit storage bit number corresponding with int type data, It determines number of packet, and generates corresponding block code (sequence identification since 0), realize the digit of numerical string less than 36 When, the grouping and storage of numerical string, and by rationally determining data type, the optimization storage of numerical string is realized, thus effectively Reduce memory space.
Short data type is 16 storage cells, and int data type is 32 storage cells.
For example, when evaluation of estimate is units, if assessment item is more than 9, such as at 15, by assessment item point After group, 24 bytes (int type) marks perhaps an int type and 2 short types or 4 two bytes can be used (short type) is grouped wherein representing different assessment items with the highest order (such as 0,1,2,3) of each number.
If it is the evaluation for being no more than 9 points to each evaluation score, then 4 int types (each int type number can be used The highest order of word can be 0,1,2,3 respectively to represent different groupings) scores of most 36 assessment items of storage.
Alternatively, it is also possible to not execute grouping, directly indicated using double type (8 bytes).
In any of the above-described technical solution, it is preferable that be greater than default number of packet in the digit for detecting multiple score values When threshold value, assessment item is grouped, after grouping, according to corresponding data type, to generate multiple data to be stored, tool Body is the following steps are included: be the second preset quantity threshold value in default number of packet threshold value, in the quantity for detecting assessment item When greater than the second preset quantity threshold value, according to the second preset data type, the quantity of grouping is determined, wherein the second preset quantity Threshold value is 36, and the second preset data type is double data type or int data type.
In the technical scheme, by the way that the first preset quantity threshold value is limited to 36, and data type is preset as int type Or short type, when the digit of numerical string is greater than 36, according to the quotient between digit storage bit number corresponding with int type data, Determine number of packet, and generate corresponding block code (sequence identification since 0), realize numerical string digit it is larger when When (being greater than 36), the grouping and storage of numerical string, and by rationally determining data type, further realize the optimal of numerical string Change storage, to effectively reduce memory space.
In addition, if it exceeds 36 projects to be evaluated, the then front two that int type can be used indicate grouping, to store more The score of more assessment items.
Int data type is 32 storage cells, 64 storage cells of double data qualifier bit, i.e., using 64 storages One data.
In any of the above-described technical solution, it is preferable that according to commenting for the quantity of multiple assessment items and each assessment item Score value generates numerical string to be stored, specifically includes the following steps: according to the quantity of multiple assessment items and each assessment item Score value generate metric numerical string.
In the technical scheme, by directly raw according to the quantity of multiple assessment items and the score value of each assessment item At metric numerical string, since score value is usually indicated with ten's digit, directly score value is given birth to according to preset sequence At a numerical string, then according to default number of packet threshold value, it is determined whether a numerical string is split as multiple numerical strings, into And corresponding data type is determined according to preset threshold section, finally realize storage, treatment process is simple.
In any of the above-described technical solution, it is preferable that according to commenting for the quantity of multiple assessment items and each assessment item Score value generates numerical string to be stored, specifically includes the following steps: according to the maximum value in the score value of each assessment item, really The system mode of accepted opinion score value, generates numerical string in a manner of according to system, wherein when maximum value is less than 8, system mode is eight System or the decimal system are greater than or equal to 8 in maximum value, and when less than 10, system mode is the decimal system or hexadecimal, in maximum When being worth and be greater than or equal to 10, and being less than or equal to 15, system mode is hexadecimal.
In the technical scheme, by the maximum value in the score value according to each assessment item, determine score value into Mode processed, with the suitable representation of determination, compared with only using metric mode, on the one hand, use scope is wider, separately On the one hand, by the conversion of numerical string between different systems, memory space can further be saved.
Wherein, a byte is exactly an English alphabet or the occupied space of Arabic numerals, and data are in a computer Expression, finally exist in the form of binary, i.e., inside computer storing data be as unit of byte, i.e., 8 two into Code processed, rather than with binary code storage, thus either, octal system, the decimal system or hexadecimal, can regard To be shown to processing side's (such as treatment people) in data handling procedure.
Specifically, when multiple score values are respectively 10,12,15,8,6, it is according to the numerical string that the decimal system generates 10121586, it is that ACF86 (turns according to the numerical string that hexadecimal generates that corresponding hexadecimal values, which are A, C, F, 8 and 6, Turning to ten's digit is 6+8*16+15*16*16+12*16*16*16+10*16*16*16*16=655360+49152+ 3840 + 128+6=708486), memory space can be further saved in storage, but increases a conversion process.
The technical solution of the third aspect of the present invention provides a kind of storage device of user's evaluation result, is suitable for net about Vehicle client, comprising: acquiring unit, for obtaining the score value for being directed to multiple assessment items;Converting unit, for being commented multiple Score value is converted at least one numerical string to be stored;Determination unit, for determining the corresponding preset threshold area of each numerical string Between, to determine corresponding data type according to preset threshold section;Converting unit is also used to:, will be wait store according to data type Numerical string be converted to storing data;Transmission unit, for storing data to be sent to server, so that server is according to storage The storage byte number of data, stores multiple scorings.
In the technical scheme, by after getting user for the score value of multiple assessment items, by multiple scorings Value is converted to a long numeric data, i.e. numerical string, and detects the relationship between the digit of numerical string and default number of packet threshold value, To directly determine the corresponding preset threshold area of numerical string when the digit for detecting numerical string is less than default number of packet threshold value Between, to determine corresponding data type according to preset threshold section, to carry out storage mark according to data type, and it is sent to Server is stored, and compared with the mode of one score value of a byte records in the prior art, helps to reduce storage sky Between, to mitigate the storage pressure of server end.
Wherein, when score value is units, the digit of numerical string and the quantity of assessment item are identical.
In addition, score value can be 1 to 100 point of score value of subdivision, it can also be compared with the score value of 1 to 15 point of rough segmentation, also It can be 1 to 10 point of the score value compared with rough segmentation, can also be 1 to 5 point of score value of more rough segmentation.
Specifically, the minimum unit of computer storage at present is byte, and each byte includes that (each bit can be with by 8 bit Value 0 or 1).
For char type, characterization occupies a byte in memory, i.e. 8 bit, can indicate 0~255 (or -128 ~127) score value of 2 projects can, be stored.
Short type characterization occupies two bytes in memory, i.e. 16 bit, can indicate 0~65535 (or -32768 ~32767) score value of 4 projects, can at most be stored.
Int type characterizes and occupies 4 bytes in memory, i.e. 32bit, 0~4294967295 (or -2147483648~ 2147483647) score value of 9 projects, can at most be stored.
Double type, characterization occupy 8 bytes, 64bit in memory.
For example, there is 4 assessment items, score value is respectively 5,5,5,5, if using storage mode in the prior art, Since each number is required to a byte, then 4 bytes are needed, each byte stores a score value, by generating number Value string, this 4 score values can be switched to ten's digit (or octal digit), i.e., 5555, wherein the ten's digit Every number represents a score value, since 5555 less than 65535, then two bytes (short type) expression can be used The score of this four assessment items, than the memory space that conventional method saves half.As above, the maximum table of four bytes (int type) Show 10 digits, then at most can store the score (score of each assessment item is respectively less than 10) of 9 assessment items, than tradition Method saves 5 bytes.
The technical solution of the fourth aspect of the present invention provides a kind of storage device of user's evaluation result, is suitable for service Device, comprising: receiving unit, the score value for multiple assessment items sent for receiving net about vehicle client;Converting unit, For multiple score values to be converted at least one numerical string to be stored;Determination unit, for determining each numerical string Corresponding preset threshold section, to determine corresponding data type according to preset threshold section;Storage unit, for according to data Type stores numerical string to be stored.
It in the technical scheme, will be multiple after the score value for multiple assessment items by receiving terminal transmission Score value is converted to a long numeric data, i.e. numerical string, and detects between the digit of numerical string and default number of packet threshold value Relationship, to directly determine the corresponding default threshold of numerical string when the digit for detecting numerical string is less than default number of packet threshold value It is worth section, to determine corresponding data type according to preset threshold section, to carry out storage mark according to data type, concurrently It send to server and is stored, compared with the mode of one score value of a byte records in the prior art, help to reduce and deposit Store up space, to mitigate the storage pressure of server end, compared with the technical solution of the first aspect of the present invention, data processing with The process of conversion is completed in server end, can reduce the processing pressure of mobile terminal.
Wherein, when score value is units, the digit of numerical string and the quantity of assessment item are identical.
In addition, score value can be 1 to 100 point of score value of subdivision, it can also be compared with the score value of 1 to 15 point of rough segmentation, also It can be 1 to 10 point of the score value compared with rough segmentation, can also be 1 to 5 point of score value of more rough segmentation.
Specifically, the minimum unit of computer storage at present is byte, and each byte includes that (each bit can be with by 8 bit Value 0 or 1).
For char type, characterization occupies a byte in memory, i.e. 8 bit, can indicate 0~255 (or -128 ~127) score value of 2 projects can, be stored.
Short type characterization occupies two bytes in memory, i.e. 16 bit, can indicate 0~65535 (or -32768 ~32767) score value of 4 projects, can at most be stored.
Int type characterizes and occupies 4 bytes in memory, i.e. 32bit, 0~4294967295 (or -2147483648~ 2147483647) score value of 9 projects, can at most be stored.
Double type, characterization occupy 8 bytes, 64bit in memory.
In the above-mentioned technical solutions, it is preferable that further include: detection unit, for detect multiple score values digit whether Less than or equal to default number of packet threshold value;Converting unit is also used to: detecting that the digit of multiple score values is less than or waits When default number of packet threshold value, multiple score values are converted into a numerical string;Storage device further include: grouped element is used In when the digit for detecting multiple score values is greater than default number of packet threshold value, assessment item is grouped, to be grouped Afterwards, according to corresponding data type, multiple data to be stored are generated, wherein the highest order characterization point in each data to be stored Group serial number.
In the technical scheme, by when the digit for detecting numerical string is greater than default number of packet threshold value, to evaluation Project is grouped, and to store after being grouped to multiple score values, when assessment item is more, the numerical string generated is not fallen Enter the value range (such as numberical range of double type defined) of preset data type defined, therefore can not be using pre- If data type store the data, by be grouped processing, on the one hand, realize the smooth storage of multiple score values, separately On the one hand, it by the way that the highest order in each data to be stored is characterized grouping serial number, to represent different groupings, also facilitates pair Data subsequent inquiry and processing.
Wherein, the numerical string after grouping can be stored according to same data type, can also be according to different data class Type storage.
In addition, characterizing grouping serial number using the front two of highest order when number of packet is more than 10.
In any of the above-described technical solution, it is preferable that determination unit is also used to: being first pre- in default number of packet threshold value If amount threshold, with the quantity for detecting assessment item be greater than the first preset quantity threshold value when, according to the first preset data class Type, determine grouping quantity, wherein the first preset quantity threshold value be 9, the first preset data type be int data type or Short data type.
In the technical scheme, by the way that the first preset quantity threshold value is limited to 9, and data type is preset as int type Or short type, when the digit of numerical string is greater than 9, according to the quotient between digit storage bit number corresponding with int type data, It determines number of packet, and generates corresponding block code (sequence identification since 0), realize the digit of numerical string less than 36 When, the grouping and storage of numerical string, and by rationally determining data type, the optimization storage of numerical string is realized, thus effectively Reduce memory space.
Short data type is 16 storage cells, and int data type is 32 storage cells.
For example, when evaluation of estimate is units, if assessment item is more than 9, such as at 15, by assessment item point After group, 24 bytes (int type) marks perhaps an int type and 2 short types or 4 two bytes can be used (short type) is grouped wherein representing different assessment items with the highest order (such as 0,1,2,3) of each number.
If it is the evaluation for being no more than 9 points to each evaluation score, then 4 int types (each int type number can be used The highest order of word can be 0,1,2,3 respectively to represent different groupings) scores of most 36 assessment items of storage.
Alternatively, it is also possible to not execute grouping, directly indicated using double type (8 bytes).
In any of the above-described technical solution, it is preferable that determination unit is also used to: being second pre- in default number of packet threshold value If amount threshold, with the quantity for detecting assessment item be greater than the second preset quantity threshold value when, according to the second preset data class Type determines the quantity of grouping, wherein the second preset quantity threshold value is 36, and the second preset data type is double data type Or int data type.
In the technical scheme, by the way that the first preset quantity threshold value is limited to 36, and data type is preset as int type Or short type, when the digit of numerical string is greater than 36, according to the quotient between digit storage bit number corresponding with int type data, Determine number of packet, and generate corresponding block code (sequence identification since 0), realize numerical string digit it is larger when When (being greater than 36), the grouping and storage of numerical string, and by rationally determining data type, further realize the optimal of numerical string Change storage, to effectively reduce memory space.
In addition, if it exceeds 36 projects to be evaluated, the then front two that int type can be used indicate grouping, to store more The score of more assessment items.
Int data type is 32 storage cells, 64 storage cells of double data qualifier bit, i.e., using 64 storages One data.
In any of the above-described technical solution, it is preferable that generation unit is also used to: according to the quantity of multiple assessment items and often The score value of a assessment item generates metric numerical string.
In the technical scheme, by directly raw according to the quantity of multiple assessment items and the score value of each assessment item At metric numerical string, since score value is usually indicated with ten's digit, directly score value is given birth to according to preset sequence At a numerical string, then according to default number of packet threshold value, it is determined whether a numerical string is split as multiple numerical strings, into And corresponding data type is determined according to preset threshold section, finally realize storage, treatment process is simple.
In any of the above-described technical solution, it is preferable that determination unit is also used to: according in the score value of each assessment item Maximum value, determine the system mode of score value, generate numerical string in a manner of according to system, wherein when maximum value is less than 8, System mode is octal system or the decimal system, is greater than or equal to 8 in maximum value, and when less than 10, system mode is the decimal system or ten Senary, maximum value be greater than or equal to 10, and be less than or equal to 15 when, system mode be hexadecimal.
In the technical scheme, by the maximum value in the score value according to each assessment item, determine score value into Mode processed, with the suitable representation of determination, compared with only using metric mode, on the one hand, use scope is wider, separately On the one hand, by the conversion of numerical string between different systems, memory space can further be saved.
Wherein, a byte is exactly an English alphabet or the occupied space of Arabic numerals, and data are in a computer Expression, finally exist in the form of binary, i.e., inside computer storing data be as unit of byte, i.e., 8 two into Code processed, rather than with binary code storage, thus either, octal system, the decimal system or hexadecimal, can regard To be shown to processing side's (such as treatment people) in data handling procedure.
Specifically, when multiple score values are respectively 10,12,15,8,6, it is according to the numerical string that the decimal system generates 10121586, it is that ACF86 (turns according to the numerical string that hexadecimal generates that corresponding hexadecimal values, which are A, C, F, 8 and 6, Turning to ten's digit is 6+8*16+15*16*16+12*16*16*16+10*16*16*16*16=655360+49152+ 3840 + 128+6=708486), memory space can be further saved in storage, but increases a conversion process.
The technical solution of the fifth aspect of the present invention provides a kind of mobile terminal, including memory, processor and storage On a memory and the computer program that can run on a processor, processor realize the present invention first when executing computer program The step of storage method of the user's evaluation result for any one that the technical solution of aspect proposes, or including third aspect present invention Technical solution propose any one user's evaluation result storage device.
In the technical scheme, the skill of first aspect present invention is realized when the processor of mobile terminal executes computer program The step of storage method of the user's evaluation result for any one that art scheme proposes or the technical side including third aspect present invention The storage device of the user's evaluation result for any one that case proposes, therefore the technical solution with aforementioned present invention first aspect mentions Whole beneficial effects of the storage method of the user's evaluation result of any one out or the technical side of the aforementioned present invention third aspect Whole beneficial effects of the storage device of the user's evaluation result for any one that case proposes, details are not described herein.
The technical solution of the sixth aspect of the present invention provides a kind of server, including memory, processor and is stored in On memory and the computer program that can run on a processor, processor realize second party of the present invention when executing computer program The step of storage method of the user's evaluation result for any one that the technical solution in face proposes, or including fourth aspect present invention The storage device of the user's evaluation result for any one that technical solution proposes.
In the technical scheme, the technology of second aspect of the present invention is realized when the processor of server executes computer program The step of storage method of the user's evaluation result for any one that scheme proposes or the technical solution including fourth aspect present invention The storage device of the user's evaluation result of any one of proposition, therefore the technical solution with aforementioned present invention second aspect proposes Any one user's evaluation result storage method whole beneficial effects or aforementioned present invention fourth aspect technical solution Whole beneficial effects of the storage device of the user's evaluation result of any one of proposition, details are not described herein.
The technical solution of the seventh aspect of the present invention provides a kind of computer readable storage medium, is stored thereon with calculating Machine program realizes what first aspect present invention and/or second aspect technical solution proposed when computer program is executed by processor The storage method of the user's evaluation result of any one.
In the technical scheme, the realization when computer program stored on computer readable storage medium is executed by processor The storage method of the user's evaluation result for any one that the first aspect of the present invention and/or second aspect technical solution propose, because The user's evaluation result for any one that this first aspect and/or second aspect technical solution with aforementioned present invention propose is deposited Whole beneficial effects of method for storing, details are not described herein.
Additional aspect and advantage of the invention will provide in following description section, will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect of the invention and advantage will become from the description of the embodiment in conjunction with the following figures Obviously and it is readily appreciated that, in which:
Fig. 1 shows the schematic flow diagram of the storage method of user's evaluation result according to an embodiment of the invention;
Fig. 2 shows the exemplary flows of the storage method of user's evaluation result according to another embodiment of the invention Figure;
Fig. 3 shows the schematic block diagram of the storage device of user's evaluation result according to an embodiment of the invention;
Fig. 4 shows the schematic block diagram of the storage device of user's evaluation result according to another embodiment of the invention;
Fig. 5 shows the schematic block diagram of server according to an embodiment of the invention;
Fig. 6 shows the schematic block diagram of mobile terminal according to an embodiment of the invention;
Fig. 7 shows the exemplary flow of the storage method of the user's evaluation result of still another embodiment in accordance with the present invention Figure.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real Applying mode, the present invention is further described in detail.It should be noted that in the absence of conflict, the implementation of the application Feature in example and embodiment can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, still, the present invention may be used also To be implemented using other than the one described here other modes, therefore, protection scope of the present invention is not by described below Specific embodiment limitation.
Embodiment 1
Fig. 1 shows the schematic flow diagram of the storage method of user's evaluation result according to an embodiment of the invention.
As shown in Figure 1, the storage method of user's evaluation result according to an embodiment of the invention, comprising: step 102, obtain the score value for being directed to multiple assessment items;Step 104, multiple score values are converted at least one number to be stored Value string;Step 106, the corresponding preset threshold section of each numerical string is determined, to determine corresponding number according to preset threshold section According to type;Step 108, according to data type, numerical string to be stored is converted into storing data;Step 110, by storing data It is sent to server, so that server stores multiple scorings according to the storage byte number of storing data.
In the technical scheme, by after getting user for the score value of multiple assessment items, by multiple scorings Value is converted to one or more long numeric datas, i.e. numerical string, and detects between the digit of numerical string and default number of packet threshold value Relationship, it is corresponding default to directly determine numerical string when the digit for detecting numerical string is less than default number of packet threshold value Threshold interval, so that corresponding data type is determined according to preset threshold section, to carry out storage mark according to data type, and It is sent to server to be stored, compared with the mode of one score value of a byte records in the prior art, helps to reduce Memory space, to mitigate the storage pressure of server end.
Wherein, when score value is units, the digit of numerical string and the quantity of assessment item are identical.
In addition, score value can be 1 to 100 point of score value of subdivision, it can also be compared with the score value of 1 to 15 point of rough segmentation, also It can be 1 to 10 point of the score value compared with rough segmentation, can also be 1 to 5 point of score value of more rough segmentation.
Specifically, the minimum unit of computer storage at present is byte, and each byte includes that (each bit can be with by 8 bit Value 0 or 1).
For char type, characterization occupies a byte in memory, i.e. 8 bit, can indicate 0~255 (or -128 ~127) score value of 2 projects can, be stored.
Short type characterization occupies two bytes in memory, i.e. 16 bit, can indicate 0~65535 (or -32768 ~32767) score value of 4 projects, can at most be stored.
Int type characterizes and occupies 4 bytes in memory, i.e. 32bit, 0~4294967295 (or -2147483648~ 2147483647) score value of 9 projects, can at most be stored.
Double type, characterization occupy 8 bytes, 64bit in memory.
For example, there is 4 assessment items, score value is respectively 5,5,5,5, if using storage mode in the prior art, Since each number is required to a byte, then 4 bytes are needed, each byte stores a score value, by generating number Value string, this 4 score values can be switched to ten's digit (or octal digit), i.e., 5555, wherein the ten's digit Every number represents a score value, since 5555 less than 65535, then two bytes (short type) expression can be used The score of this four assessment items, than the memory space that conventional method saves half.As above, the maximum table of four bytes (int type) Show 10 digits, then at most can store the score (score of each assessment item is respectively less than 10) of 9 assessment items, than tradition Method saves 5 bytes.
In the above embodiment, it is preferable that further include: multiple score values are converted at least one numerical value to be stored String, specifically includes the following steps: whether the digit for detecting multiple score values is less than or equal to default number of packet threshold value;It is detecting When being less than or equal to default number of packet threshold value to the digits of multiple score values, multiple score values are converted into a numerical value String;When the digit for detecting multiple score values is greater than default number of packet threshold value, assessment item is grouped, to be grouped Afterwards, according to corresponding data type, multiple data to be stored are generated, wherein the highest order characterization point in each data to be stored Group serial number.
In this embodiment, by when the digit for detecting numerical string is greater than default number of packet threshold value, to scoring item Mesh is grouped, and to store after being grouped to multiple score values, when assessment item is more, the numerical string generated is not fallen within The value range (such as numberical range of double type defined) of preset data type defined, therefore can not be using default Data type store the data, by be grouped processing, on the one hand, realize the smooth storage of multiple score values, it is another Aspect also facilitates logarithm by the way that the highest order in each data to be stored is characterized grouping serial number to represent different groupings According to subsequent inquiry and processing.
Wherein, the numerical string after grouping can be stored according to same data type, can also be according to different data class Type storage.
In addition, characterizing grouping serial number using the front two of highest order when number of packet is more than 10.
In any of the above-described embodiment, it is preferable that be greater than default number of packet threshold in the digit for detecting multiple score values When value, assessment item is grouped, after grouping, according to corresponding data type, to generate multiple data to be stored, specifically The following steps are included: being the first preset quantity threshold value in default number of packet threshold value, with big in the quantity for detecting assessment item When the first preset quantity threshold value, according to the first preset data type, the quantity of grouping is determined, wherein the first preset quantity threshold Value is 9, and the first preset data type is int data type or short data type.
In this embodiment, by the way that the first preset quantity threshold value is limited to 9, and by data type be preset as int type or Short type, when the digit of numerical string is greater than 9, according to the quotient between digit storage bit number corresponding with int type data, really Determine number of packet, and generate corresponding block code (sequence identification since 0), realizes the digit of numerical string less than 36 When, the grouping and storage of numerical string, and by rationally determining data type, the optimization storage of numerical string is realized, thus effectively Reduce memory space.
Short data type is 16 storage cells, and int data type is 32 storage cells.
For example, when evaluation of estimate is units, if assessment item is more than 9, such as at 15, by assessment item point After group, 24 bytes (int type) marks perhaps an int type and 2 short types or 4 two bytes can be used (short type) is grouped wherein representing different assessment items with the highest order (such as 0,1,2,3) of each number.
If it is the evaluation for being no more than 9 points to each evaluation score, then 4 int types (each int type number can be used The highest order of word can be 0,1,2,3 respectively to represent different groupings) scores of most 36 assessment items of storage.
Alternatively, it is also possible to not execute grouping, directly indicated using double type (8 bytes).
In any of the above-described embodiment, it is preferable that be greater than default number of packet threshold in the digit for detecting multiple score values When value, assessment item is grouped, after grouping, according to corresponding data type, to generate multiple data to be stored, specifically The following steps are included: being the second preset quantity threshold value in default number of packet threshold value, with big in the quantity for detecting assessment item When the second preset quantity threshold value, according to the second preset data type, the quantity of grouping is determined, wherein the second preset quantity threshold Value is 36, and the second preset data type is double data type or int data type.
In this embodiment, by the way that the first preset quantity threshold value is limited to 36, and by data type be preset as int type or Short type, when the digit of numerical string is greater than 36, according to the quotient between digit storage bit number corresponding with int type data, really Determine number of packet, and generate corresponding block code (sequence identification since 0), realize numerical string digit it is larger when it is (big In 36) when, the grouping and storage of numerical string, and by rationally determining data type, further realize the optimization of numerical string Storage, to effectively reduce memory space.
In addition, if it exceeds 36 projects to be evaluated, the then front two that int type can be used indicate grouping, to store more The score of more assessment items.
Int data type is 32 storage cells, 64 storage cells of double data qualifier bit, i.e., using 64 storages One data.
In any of the above-described embodiment, it is preferable that according to the scoring of the quantity of multiple assessment items and each assessment item Value generates numerical string to be stored, specifically includes the following steps: according to the quantity of multiple assessment items and each assessment item Score value generates metric numerical string.
In this embodiment, by being directly generated according to the quantity of multiple assessment items and the score value of each assessment item Metric numerical string directly generates score value according to preset sequence since score value is usually indicated with ten's digit One numerical string, then according to default number of packet threshold value, it is determined whether a numerical string is split as multiple numerical strings, in turn Corresponding data type is determined according to preset threshold section, finally realizes storage, and treatment process is simple.
In any of the above-described embodiment, it is preferable that according to the scoring of the quantity of multiple assessment items and each assessment item Value generates numerical string to be stored, specifically includes the following steps: being determined according to the maximum value in the score value of each assessment item The system mode of score value, generates numerical string in a manner of according to system, wherein when maximum value is less than 8, system mode be eight into System or the decimal system are greater than or equal to 8 in maximum value, and when less than 10, system mode is the decimal system or hexadecimal, in maximum value More than or equal to 10, and be less than or equal to 15 when, system mode be hexadecimal.
In this embodiment, by the maximum value in the score value according to each assessment item, the system of score value is determined Mode, with the suitable representation of determination, compared with only using metric mode, on the one hand, use scope is wider, another Aspect can further save memory space by the conversion of numerical string between different systems.
Wherein, a byte is exactly an English alphabet or the occupied space of Arabic numerals, and data are in a computer Expression, finally exist in the form of binary, i.e., inside computer storing data be as unit of byte, i.e., 8 two into Code processed, rather than with binary code storage, thus either, octal system, the decimal system or hexadecimal, can regard To be shown to processing side's (such as treatment people) in data handling procedure.
Specifically, when multiple score values are respectively 10,12,15,8,6, it is according to the numerical string that the decimal system generates 10121586, it is that ACF86 (turns according to the numerical string that hexadecimal generates that corresponding hexadecimal values, which are A, C, F, 8 and 6, Turning to ten's digit is 6+8*16+15*16*16+12*16*16*16+10*16*16*16*16=655360+49152+ 3840 + 128+6=708486), memory space can be further saved in storage, but increases a conversion process.
Embodiment 2
Fig. 2 shows the exemplary flows of the storage method of user's evaluation result according to another embodiment of the invention Figure.
As shown in Fig. 2, the storage method of user's evaluation result according to another embodiment of the invention, comprising: step 202, receive the score value for multiple assessment items that net about vehicle client is sent;Step 204, multiple score values are converted to At least one numerical string to be stored;Step 206, the corresponding preset threshold section of each numerical string is determined, according to default threshold Value section determines corresponding data type;Step 208, according to data type, numerical string to be stored is stored.
In this embodiment, it after the score value for multiple assessment items by receiving terminal transmission, is commented multiple Score value is converted to one or more long numeric datas, i.e. numerical string, and detect numerical string digit and default number of packet threshold value it Between relationship, it is corresponding pre- to directly determine numerical string when the digit for detecting numerical string is less than default number of packet threshold value If threshold interval, so that corresponding data type is determined according to preset threshold section, to carry out storage mark according to data type, And be sent to server and stored, compared with the mode of one score value of a byte records in the prior art, help to subtract Few memory space, to mitigate the storage pressure of server end, compared with the embodiment of the first aspect of the present invention, data processing It is completed with the process of conversion in server end, can reduce the processing pressure of mobile terminal.
Wherein, when score value is units, the digit of numerical string and the quantity of assessment item are identical.
In addition, score value can be 1 to 100 point of score value of subdivision, it can also be compared with the score value of 1 to 15 point of rough segmentation, also It can be 1 to 10 point of the score value compared with rough segmentation, can also be 1 to 5 point of score value of more rough segmentation.
Specifically, the minimum unit of computer storage at present is byte, and each byte includes that (each bit can be with by 8 bit Value 0 or 1).
For char type, characterization occupies a byte in memory, i.e. 8 bit, can indicate 0~255 (or -128 ~127) score value of 2 projects can, be stored.
Short type characterization occupies two bytes in memory, i.e. 16 bit, can indicate 0~65535 (or -32768 ~32767) score value of 4 projects, can at most be stored.
Int type characterizes and occupies 4 bytes in memory, i.e. 32bit, 0~4294967295 (or -2147483648~ 2147483647) score value of 9 projects, can at most be stored.
Double type, characterization occupy 8 bytes, 64bit in memory.
In the above embodiment, it is preferable that multiple score values are converted at least one numerical string to be stored, it is specific to wrap Include following steps: whether the digit for detecting multiple score values is less than or equal to default number of packet threshold value;Detecting multiple comment When the digit of score value is less than or equal to default number of packet threshold value, multiple score values are converted into a numerical string;It is detecting When being greater than default number of packet threshold value to the digits of multiple score values, assessment item is grouped, with after grouping, according to right The data type answered generates multiple data to be stored, wherein the highest order in each data to be stored characterizes grouping serial number.
In this embodiment, by when the digit for detecting numerical string is greater than default number of packet threshold value, to scoring item Mesh is grouped, and to store after being grouped to multiple score values, when assessment item is more, the numerical string generated is not fallen within The value range (such as numberical range of double type defined) of preset data type defined, therefore can not be using default Data type store the data, by be grouped processing, on the one hand, realize the smooth storage of multiple score values, it is another Aspect also facilitates logarithm by the way that the highest order in each data to be stored is characterized grouping serial number to represent different groupings According to subsequent inquiry and processing.
Wherein, the numerical string after grouping can be stored according to same data type, can also be according to different data class Type storage.
In addition, characterizing grouping serial number using the front two of highest order when number of packet is more than 10.
In any of the above-described embodiment, it is preferable that be greater than default number of packet threshold in the digit for detecting multiple score values When value, assessment item is grouped, after grouping, according to corresponding data type, to generate multiple data to be stored, specifically The following steps are included: being the first preset quantity threshold value in default number of packet threshold value, with big in the quantity for detecting assessment item When the first preset quantity threshold value, according to the first preset data type, the quantity of grouping is determined, wherein the first preset quantity threshold Value is 9, and the first preset data type is int data type or short data type.
In this embodiment, by the way that the first preset quantity threshold value is limited to 9, and by data type be preset as int type or Short type, when the digit of numerical string is greater than 9, according to the quotient between digit storage bit number corresponding with int type data, really Determine number of packet, and generate corresponding block code (sequence identification since 0), realizes the digit of numerical string less than 36 When, the grouping and storage of numerical string, and by rationally determining data type, the optimization storage of numerical string is realized, thus effectively Reduce memory space.
Short data type is 16 storage cells, and int data type is 32 storage cells.
For example, when evaluation of estimate is units, if assessment item is more than 9, such as at 15, by assessment item point After group, 24 bytes (int type) marks perhaps an int type and 2 short types or 4 two bytes can be used (short type) is grouped wherein representing different assessment items with the highest order (such as 0,1,2,3) of each number.
If it is the evaluation for being no more than 9 points to each evaluation score, then 4 int types (each int type number can be used The highest order of word can be 0,1,2,3 respectively to represent different groupings) scores of most 36 assessment items of storage.
Alternatively, it is also possible to not execute grouping, directly indicated using double type (8 bytes).
In any of the above-described embodiment, it is preferable that be greater than default number of packet threshold in the digit for detecting multiple score values When value, assessment item is grouped, after grouping, according to corresponding data type, to generate multiple data to be stored, specifically The following steps are included: being the second preset quantity threshold value in default number of packet threshold value, with big in the quantity for detecting assessment item When the second preset quantity threshold value, according to the second preset data type, the quantity of grouping is determined, wherein the second preset quantity threshold Value is 36, and the second preset data type is double data type or int data type.
In this embodiment, by the way that the first preset quantity threshold value is limited to 36, and by data type be preset as int type or Short type, when the digit of numerical string is greater than 36, according to the quotient between digit storage bit number corresponding with int type data, really Determine number of packet, and generate corresponding block code (sequence identification since 0), realize numerical string digit it is larger when it is (big In 36) when, the grouping and storage of numerical string, and by rationally determining data type, further realize the optimization of numerical string Storage, to effectively reduce memory space.
In addition, if it exceeds 36 projects to be evaluated, the then front two that int type can be used indicate grouping, to store more The score of more assessment items.
Int data type is 32 storage cells, 64 storage cells of double data qualifier bit, i.e., using 64 storages One data.
In any of the above-described embodiment, it is preferable that according to the scoring of the quantity of multiple assessment items and each assessment item Value generates numerical string to be stored, specifically includes the following steps: according to the quantity of multiple assessment items and each assessment item Score value generates metric numerical string.
In this embodiment, by being directly generated according to the quantity of multiple assessment items and the score value of each assessment item Metric numerical string directly generates score value according to preset sequence since score value is usually indicated with ten's digit One numerical string, then according to default number of packet threshold value, it is determined whether a numerical string is split as multiple numerical strings, in turn Corresponding data type is determined according to preset threshold section, finally realizes storage, and treatment process is simple.
In any of the above-described embodiment, it is preferable that according to the scoring of the quantity of multiple assessment items and each assessment item Value generates numerical string to be stored, specifically includes the following steps: being determined according to the maximum value in the score value of each assessment item The system mode of score value, generates numerical string in a manner of according to system, wherein when maximum value is less than 8, system mode be eight into System or the decimal system are greater than or equal to 8 in maximum value, and when less than 10, system mode is the decimal system or hexadecimal, in maximum value More than or equal to 10, and be less than or equal to 15 when, system mode be hexadecimal.
In this embodiment, by the maximum value in the score value according to each assessment item, the system of score value is determined Mode, with the suitable representation of determination, compared with only using metric mode, on the one hand, use scope is wider, another Aspect can further save memory space by the conversion of numerical string between different systems.
Wherein, a byte is exactly an English alphabet or the occupied space of Arabic numerals, and data are in a computer Expression, finally exist in the form of binary, i.e., inside computer storing data be as unit of byte, i.e., 8 two into Code processed, rather than with binary code storage, thus either, octal system, the decimal system or hexadecimal, can regard To be shown to processing side's (such as treatment people) in data handling procedure.
Specifically, when multiple score values are respectively 10,12,15,8,6, it is according to the numerical string that the decimal system generates 10121586, it is that ACF86 (turns according to the numerical string that hexadecimal generates that corresponding hexadecimal values, which are A, C, F, 8 and 6, Turning to ten's digit is 6+8*16+15*16*16+12*16*16*16+10*16*16*16*16=655360+49152+ 3840 + 128+6=708486), memory space can be further saved in storage, but increases a conversion process.
Embodiment 3
Fig. 3 shows the schematic block diagram of the storage device 30 of user's evaluation result according to an embodiment of the invention.
As shown in figure 3, the storage device 30 of user's evaluation result according to an embodiment of the invention, comprising: obtain Unit 302, for obtaining the score value for being directed to multiple assessment items;Converting unit 304, for by multiple score values be converted to A few numerical string to be stored;Determination unit 306, for determining the corresponding preset threshold section of each numerical string, with basis Preset threshold section determines corresponding data type;Converting unit 304 is also used to: according to data type, by numerical value to be stored String is converted to storing data;Transmission unit 308, for storing data to be sent to server, so that server is according to storage number According to storage byte number, store multiple scorings.
In this embodiment, by after getting user for the score value of multiple assessment items, by multiple score values A long numeric data, i.e. numerical string are converted to, and detects the relationship between the digit of numerical string and default number of packet threshold value, with When the digit for detecting numerical string is less than default number of packet threshold value, the corresponding preset threshold section of numerical string is directly determined, To determine corresponding data type according to preset threshold section, to carry out storage mark according to data type, and it is sent to clothes Business device is stored, and compared with the mode of one score value of a byte records in the prior art, helps to reduce memory space, To mitigate the storage pressure of server end.
Wherein, when score value is units, the digit of numerical string and the quantity of assessment item are identical.
In addition, score value can be 1 to 100 point of score value of subdivision, it can also be compared with the score value of 1 to 15 point of rough segmentation, also It can be 1 to 10 point of the score value compared with rough segmentation, can also be 1 to 5 point of score value of more rough segmentation.
Specifically, the minimum unit of computer storage at present is byte, and each byte includes that (each bit can be with by 8 bit Value 0 or 1).
For char type, characterization occupies a byte in memory, i.e. 8 bit, can indicate 0~255 (or -128 ~127) score value of 2 projects can, be stored.
Short type characterization occupies two bytes in memory, i.e. 16 bit, can indicate 0~65535 (or -32768 ~32767) score value of 4 projects, can at most be stored.
Int type characterizes and occupies 4 bytes in memory, i.e. 32bit, 0~4294967295 (or -2147483648~ 2147483647) score value of 9 projects, can at most be stored.
Double type, characterization occupy 8 bytes, 64bit in memory.
For example, there is 4 assessment items, score value is respectively 5,5,5,5, if using storage mode in the prior art, Since each number is required to a byte, then 4 bytes are needed, each byte stores a score value, by generating number Value string, this 4 score values can be switched to ten's digit (or octal digit), i.e., 5555, wherein the ten's digit Every number represents a score value, since 5555 less than 65535, then two bytes (short type) expression can be used The score of this four assessment items, than the memory space that conventional method saves half.As above, the maximum table of four bytes (int type) Show 10 digits, then at most can store the score (score of each assessment item is respectively less than 10) of 9 assessment items, than tradition Method saves 5 bytes.
In the above embodiment, it is preferable that further include: detection unit 310, for detect multiple score values digit whether Less than or equal to default number of packet threshold value;Converting unit 304 is also used to: detect the digit of multiple score values be less than or When equal to default number of packet threshold value, multiple score values are converted into a numerical string;Storage device 30 further include: grouped element 312, for being grouped to assessment item when the digit for detecting multiple score values is greater than default number of packet threshold value, with After grouping, according to corresponding data type, multiple data to be stored are generated, wherein the highest order in each data to be stored Characterize grouping serial number.
In this embodiment, by when the digit for detecting numerical string is greater than default number of packet threshold value, to scoring item Mesh is grouped, and to store after being grouped to multiple score values, when assessment item is more, the numerical string generated is not fallen within The value range (such as numberical range of double type defined) of preset data type defined, therefore can not be using default Data type store the data, by be grouped processing, on the one hand, realize the smooth storage of multiple score values, it is another Aspect also facilitates logarithm by the way that the highest order in each data to be stored is characterized grouping serial number to represent different groupings According to subsequent inquiry and processing.
Wherein, the numerical string after grouping can be stored according to same data type, can also be according to different data class Type storage.
In addition, characterizing grouping serial number using the front two of highest order when number of packet is more than 10.
In any of the above-described embodiment, it is preferable that determination unit 306 is also used to: being first in default number of packet threshold value Preset quantity threshold value, with the quantity for detecting assessment item be greater than the first preset quantity threshold value when, according to the first preset data Type, determine grouping quantity, wherein the first preset quantity threshold value be 9, the first preset data type be int data type or Short data type.
In this embodiment, by the way that the first preset quantity threshold value is limited to 9, and by data type be preset as int type or Short type, when the digit of numerical string is greater than 9, according to the quotient between digit storage bit number corresponding with int type data, really Determine number of packet, and generate corresponding block code (sequence identification since 0), realizes the digit of numerical string less than 36 When, the grouping and storage of numerical string, and by rationally determining data type, the optimization storage of numerical string is realized, thus effectively Reduce memory space.
Short data type is 16 storage cells, and int data type is 32 storage cells.
For example, when evaluation of estimate is units, if assessment item is more than 9, such as at 15, by assessment item point After group, 24 bytes (int type) marks perhaps an int type and 2 short types or 4 two bytes can be used (short type) is grouped wherein representing different assessment items with the highest order (such as 0,1,2,3) of each number.
If it is the evaluation for being no more than 9 points to each evaluation score, then 4 int types (each int type number can be used The highest order of word can be 0,1,2,3 respectively to represent different groupings) scores of most 36 assessment items of storage.
Alternatively, it is also possible to not execute grouping, directly indicated using double type (8 bytes).
In any of the above-described embodiment, it is preferable that determination unit 306 is also used to: being second in default number of packet threshold value Preset quantity threshold value, with the quantity for detecting assessment item be greater than the second preset quantity threshold value when, according to the second preset data Type determines the quantity of grouping, wherein the second preset quantity threshold value is 36, and the second preset data type is double data class Type or int data type.
In this embodiment, by the way that the first preset quantity threshold value is limited to 36, and by data type be preset as int type or Short type, when the digit of numerical string is greater than 36, according to the quotient between digit storage bit number corresponding with int type data, really Determine number of packet, and generate corresponding block code (sequence identification since 0), realize numerical string digit it is larger when it is (big In 36) when, the grouping and storage of numerical string, and by rationally determining data type, further realize the optimization of numerical string Storage, to effectively reduce memory space.
In addition, if it exceeds 36 projects to be evaluated, the then front two that int type can be used indicate grouping, to store more The score of more assessment items.
Int data type is 32 storage cells, 64 storage cells of double data qualifier bit, i.e., using 64 storages One data.
In any of the above-described embodiment, it is preferable that further include: generation unit 314, for the number according to multiple assessment items Amount and the score value of each assessment item generate metric numerical string.
In this embodiment, by being directly generated according to the quantity of multiple assessment items and the score value of each assessment item Metric numerical string directly generates score value according to preset sequence since score value is usually indicated with ten's digit One numerical string, then according to default number of packet threshold value, it is determined whether a numerical string is split as multiple numerical strings, in turn Corresponding data type is determined according to preset threshold section, finally realizes storage, and treatment process is simple.
In any of the above-described embodiment, it is preferable that determination unit 306 is also used to: according to the score value of each assessment item In maximum value, determine the system mode of score value, generate numerical string in a manner of according to system, wherein in maximum value less than 8 When, system mode is octal system or the decimal system, be greater than or equal to 8 in maximum value, and when less than 10, system mode be the decimal system or Hexadecimal, maximum value be greater than or equal to 10, and be less than or equal to 15 when, system mode be hexadecimal.
In this embodiment, by the maximum value in the score value according to each assessment item, the system of score value is determined Mode, with the suitable representation of determination, compared with only using metric mode, on the one hand, use scope is wider, another Aspect can further save memory space by the conversion of numerical string between different systems.
Wherein, a byte is exactly an English alphabet or the occupied space of Arabic numerals, and data are in a computer Expression, finally exist in the form of binary, i.e., inside computer storing data be as unit of byte, i.e., 8 two into Code processed, rather than with binary code storage, thus either, octal system, the decimal system or hexadecimal, can regard To be shown to processing side's (such as treatment people) in data handling procedure.
Specifically, when multiple score values are respectively 10,12,15,8,6, it is according to the numerical string that the decimal system generates 10121586, it is that ACF86 (turns according to the numerical string that hexadecimal generates that corresponding hexadecimal values, which are A, C, F, 8 and 6, Turning to ten's digit is 6+8*16+15*16*16+12*16*16*16+10*16*16*16*16=655360+49152+ 3840 + 128+6=708486), memory space can be further saved in storage, but increases a conversion process.
Embodiment 4
Fig. 4 shows the schematic block of the storage device 40 of user's evaluation result according to another embodiment of the invention Figure.
As shown in figure 4, the storage device 40 of user's evaluation result according to another embodiment of the invention, comprising: connect Unit 402 is received, the score value for multiple assessment items sent for receiving net about vehicle client;Converting unit 404, is used for Multiple score values are converted at least one numerical string to be stored;Determination unit 406, for determining each numerical string pair The preset threshold section answered, to determine corresponding data type according to preset threshold section;Storage unit 408, for according to number According to type, numerical string to be stored is stored.
In this embodiment, it after the score value for multiple assessment items by receiving terminal transmission, is commented multiple Score value is converted to one or more long numeric datas, i.e. numerical string, and detect numerical string digit and default number of packet threshold value it Between relationship, it is corresponding pre- to directly determine numerical string when the digit for detecting numerical string is less than default number of packet threshold value If threshold interval, so that corresponding data type is determined according to preset threshold section, to carry out storage mark according to data type, And be sent to server and stored, compared with the mode of one score value of a byte records in the prior art, help to subtract Few memory space, to mitigate the storage pressure of server end, compared with the embodiment of the first aspect of the present invention, data processing It is completed with the process of conversion in server end, can reduce the processing pressure of mobile terminal.
Wherein, when score value is units, the digit of numerical string and the quantity of assessment item are identical.
In addition, score value can be 1 to 100 point of score value of subdivision, it can also be compared with the score value of 1 to 15 point of rough segmentation, also It can be 1 to 10 point of the score value compared with rough segmentation, can also be 1 to 5 point of score value of more rough segmentation.
Specifically, the minimum unit of computer storage at present is byte, and each byte includes that (each bit can be with by 8 bit Value 0 or 1).
For char type, characterization occupies a byte in memory, i.e. 8 bit, can indicate 0~255 (or -128 ~127) score value of 2 projects can, be stored.
Short type characterization occupies two bytes in memory, i.e. 16 bit, can indicate 0~65535 (or -32768 ~32767) score value of 4 projects, can at most be stored.
Int type characterizes and occupies 4 bytes in memory, i.e. 32bit, 0~4294967295 (or -2147483648~ 2147483647) score value of 9 projects, can at most be stored.
Double type, characterization occupy 8 bytes, 64bit in memory.
In the above embodiment, it is preferable that further include: detection unit 410, for detect multiple score values digit whether Less than or equal to default number of packet threshold value;Converting unit 404 is also used to: detect the digit of multiple score values be less than or When equal to default number of packet threshold value, multiple score values are converted into a numerical string;Storage device 40 further include: grouped element 412, for being grouped to assessment item when the digit for detecting multiple score values is greater than default number of packet threshold value, with After grouping, according to corresponding data type, multiple data to be stored are generated, wherein the highest order in each data to be stored Characterize grouping serial number.
In this embodiment, by when the digit for detecting numerical string is greater than default number of packet threshold value, to scoring item Mesh is grouped, and to store after being grouped to multiple score values, when assessment item is more, the numerical string generated is not fallen within The value range (such as numberical range of double type defined) of preset data type defined, therefore can not be using default Data type store the data, by be grouped processing, on the one hand, realize the smooth storage of multiple score values, it is another Aspect also facilitates logarithm by the way that the highest order in each data to be stored is characterized grouping serial number to represent different groupings According to subsequent inquiry and processing.
Wherein, the numerical string after grouping can be stored according to same data type, can also be according to different data class Type storage.
In addition, characterizing grouping serial number using the front two of highest order when number of packet is more than 10.
In any of the above-described embodiment, it is preferable that determination unit 406 is also used to: being first in default number of packet threshold value Preset quantity threshold value, with the quantity for detecting assessment item be greater than the first preset quantity threshold value when, according to the first preset data Type, determine grouping quantity, wherein the first preset quantity threshold value be 9, the first preset data type be int data type or Short data type.
In this embodiment, by the way that the first preset quantity threshold value is limited to 9, and by data type be preset as int type or Short type, when the digit of numerical string is greater than 9, according to the quotient between digit storage bit number corresponding with int type data, really Determine number of packet, and generate corresponding block code (sequence identification since 0), realizes the digit of numerical string less than 36 When, the grouping and storage of numerical string, and by rationally determining data type, the optimization storage of numerical string is realized, thus effectively Reduce memory space.
Short data type is 16 storage cells, and int data type is 32 storage cells.
For example, when evaluation of estimate is units, if assessment item is more than 9, such as at 15, by assessment item point After group, 24 bytes (int type) marks perhaps an int type and 2 short types or 4 two bytes can be used (short type) is grouped wherein representing different assessment items with the highest order (such as 0,1,2,3) of each number.
If it is the evaluation for being no more than 9 points to each evaluation score, then 4 int types (each int type number can be used The highest order of word can be 0,1,2,3 respectively to represent different groupings) scores of most 36 assessment items of storage.
Alternatively, it is also possible to not execute grouping, directly indicated using double type (8 bytes).
In any of the above-described embodiment, it is preferable that determination unit 406 is also used to: being second in default number of packet threshold value Preset quantity threshold value, with the quantity for detecting assessment item be greater than the second preset quantity threshold value when, according to the second preset data Type determines the quantity of grouping, wherein the second preset quantity threshold value is 36, and the second preset data type is double data class Type or int data type.
In this embodiment, by the way that the first preset quantity threshold value is limited to 36, and by data type be preset as int type or Short type, when the digit of numerical string is greater than 36, according to the quotient between digit storage bit number corresponding with int type data, really Determine number of packet, and generate corresponding block code (sequence identification since 0), realize numerical string digit it is larger when it is (big In 36) when, the grouping and storage of numerical string, and by rationally determining data type, further realize the optimization of numerical string Storage, to effectively reduce memory space.
In addition, if it exceeds 36 projects to be evaluated, the then front two that int type can be used indicate grouping, to store more The score of more assessment items.
Int data type is 32 storage cells, 64 storage cells of double data qualifier bit, i.e., using 64 storages One data.
In any of the above-described embodiment, it is preferable that further include: generation unit 414, for the number according to multiple assessment items Amount and the score value of each assessment item generate metric numerical string.
In this embodiment, by being directly generated according to the quantity of multiple assessment items and the score value of each assessment item Metric numerical string directly generates score value according to preset sequence since score value is usually indicated with ten's digit One numerical string, then according to default number of packet threshold value, it is determined whether a numerical string is split as multiple numerical strings, in turn Corresponding data type is determined according to preset threshold section, finally realizes storage, and treatment process is simple.
In any of the above-described embodiment, it is preferable that determination unit 408 is also used to: according to the score value of each assessment item In maximum value, determine the system mode of score value, generate numerical string in a manner of according to system, wherein in maximum value less than 8 When, system mode is octal system or the decimal system, be greater than or equal to 8 in maximum value, and when less than 10, system mode be the decimal system or Hexadecimal, maximum value be greater than or equal to 10, and be less than or equal to 15 when, system mode be hexadecimal.
In this embodiment, by the maximum value in the score value according to each assessment item, the system of score value is determined Mode, with the suitable representation of determination, compared with only using metric mode, on the one hand, use scope is wider, another Aspect can further save memory space by the conversion of numerical string between different systems.
Wherein, a byte is exactly an English alphabet or the occupied space of Arabic numerals, and data are in a computer Expression, finally exist in the form of binary, i.e., inside computer storing data be as unit of byte, i.e., 8 two into Code processed, rather than with binary code storage, thus either, octal system, the decimal system or hexadecimal, can regard To be shown to processing side's (such as treatment people) in data handling procedure.
Specifically, when multiple score values are respectively 10,12,15,8,6, it is according to the numerical string that the decimal system generates 10121586, it is that ACF86 (turns according to the numerical string that hexadecimal generates that corresponding hexadecimal values, which are A, C, F, 8 and 6, Turning to ten's digit is 6+8*16+15*16*16+12*16*16*16+10*16*16*16*16=655360+49152+ 3840 + 128+6=708486), memory space can be further saved in storage, but increases a conversion process.
Embodiment 5
Fig. 5 shows the schematic block diagram of server 50 according to an embodiment of the invention.
As shown in figure 5, server 50 according to an embodiment of the invention, including memory, processor and it is stored in On memory and the computer program that can run on a processor, processor realize implementation of the invention when executing computer program The step of storage method of the user's evaluation result for any one that example 1 proposes, or any one proposed including the embodiment of the present invention 3 User's evaluation result storage device 30.
In this embodiment, realize that the embodiment of the present invention 1 proposes when the processor of server 50 executes computer program Any one user's evaluation result storage method the step of or including the embodiment of the present invention 3 propose any one user The storage device 30 of evaluation result, therefore the user's evaluation result of any one proposed with the embodiments of the present invention 1 is deposited The storage device 30 of the user's evaluation result for any one that the whole beneficial effects or the embodiments of the present invention 3 of method for storing propose Whole beneficial effects, details are not described herein.
Embodiment 6
As shown in fig. 6, mobile terminal 60 according to an embodiment of the invention, including memory, processor and storage On a memory and the computer program that can run on a processor, processor realize reality of the invention when executing computer program The step of applying the storage method of the user's evaluation result of any one of the proposition of example 2, or appoint including what the embodiment of the present invention 4 proposed The storage device 40 of one user's evaluation result.
In this embodiment, realize that the embodiment of the present invention 2 mentions when the processor of mobile terminal 60 executes computer program The use of the step of storage method of the user's evaluation result of any one out or any one proposed including the embodiment of the present invention 4 The storage device 40 of family evaluation result, therefore the user's evaluation result of any one proposed with embodiments of the invention described above 2 Storage method whole beneficial effects or embodiments of the invention described above 4 propose any one user's evaluation result storage Whole beneficial effects of device 40, details are not described herein.
Embodiment 7
Computer readable storage medium according to an embodiment of the invention is stored thereon with computer program, calculates Machine program performs the steps of the score value of quantity and each assessment item according to multiple assessment items when being executed by processor Generate numerical string to be stored;Whether the digit of detection numerical string is less than or equal to default number of packet threshold value;Detecting number When the digit of value string is less than or equal to default number of packet threshold value, the corresponding preset threshold section of numerical string is determined, according to pre- If threshold interval determines corresponding data type;According to data type, numerical string to be stored is converted into storing data;It will deposit Storage data are sent to server, so that server stores multiple scorings according to the storage byte number of storing data.
In this embodiment, by after getting user for the score value of multiple assessment items, by multiple score values A long numeric data, i.e. numerical string are converted to, and detects the relationship between the digit of numerical string and default number of packet threshold value, with When the digit for detecting numerical string is less than default number of packet threshold value, the corresponding preset threshold section of numerical string is directly determined, To determine corresponding data type according to preset threshold section, to carry out storage mark according to data type, and it is sent to clothes Business device is stored, and compared with the mode of one score value of a byte records in the prior art, helps to reduce memory space, To mitigate the storage pressure of server end.
Wherein, when score value is units, the digit of numerical string and the quantity of assessment item are identical.
In addition, score value can be 1 to 100 point of score value of subdivision, it can also be compared with the score value of 1 to 15 point of rough segmentation, also It can be 1 to 10 point of the score value compared with rough segmentation, can also be 1 to 5 point of score value of more rough segmentation.
Specifically, the minimum unit of computer storage at present is byte, and each byte includes that (each bit can be with by 8 bit Value 0 or 1).
For char type, characterization occupies a byte in memory, i.e. 8 bit, can indicate 0~255 (or -128 ~127) score value of 2 projects can, be stored.
Short type characterization occupies two bytes in memory, i.e. 16 bit, can indicate 0~65535 (or -32768 ~32767) score value of 4 projects, can at most be stored.
Int type characterizes and occupies 4 bytes in memory, i.e. 32bit, 0~4294967295 (or -2147483648~ 2147483647) score value of 9 projects, can at most be stored.
Double type, characterization occupy 8 bytes, 64bit in memory.
For example, there is 4 assessment items, score value is respectively 5,5,5,5, if using storage mode in the prior art, Since each number is required to a byte, then 4 bytes are needed, each byte stores a score value, by generating number Value string, this 4 score values can be switched to ten's digit (or octal digit), i.e., 5555, wherein the ten's digit Every number represents a score value, since 5555 less than 65535, then two bytes (short type) expression can be used The score of this four assessment items, than the memory space that conventional method saves half.As above, the maximum table of four bytes (int type) Show 10 digits, then at most can store the score (score of each assessment item is respectively less than 10) of 9 assessment items, than tradition Method saves 5 bytes.
And/or: receive the score value for multiple assessment items that net about vehicle client is sent;According to multiple assessment items Quantity and the score value of each assessment item generate numerical string to be stored;Whether the digit of detection numerical string is less than or equal to Default number of packet threshold value;When the digit for detecting numerical string is less than or equal to default number of packet threshold value, numerical string is determined Corresponding preset threshold section, to determine corresponding data type according to preset threshold section;According to data type, store wait deposit The numerical string of storage.
In this embodiment, it after the score value for multiple assessment items by receiving terminal transmission, is commented multiple Score value is converted to a long numeric data, i.e. numerical string, and detects the pass between the digit of numerical string and default number of packet threshold value System, to directly determine the corresponding preset threshold of numerical string when the digit for detecting numerical string is less than default number of packet threshold value Section to carry out storage mark according to data type, and is sent to determine corresponding data type according to preset threshold section It is stored to server, compared with the mode of one score value of a byte records in the prior art, helps to reduce storage Space, thus mitigate the storage pressure of server end, compared with the embodiment of the first aspect of the present invention, data processing and conversion Process server end complete, can reduce the processing pressure of mobile terminal.
Wherein, when score value is units, the digit of numerical string and the quantity of assessment item are identical.
In addition, score value can be 1 to 100 point of score value of subdivision, it can also be compared with the score value of 1 to 15 point of rough segmentation, also It can be 1 to 10 point of the score value compared with rough segmentation, can also be 1 to 5 point of score value of more rough segmentation.
Specifically, the minimum unit of computer storage at present is byte, and each byte includes that (each bit can be with by 8 bit Value 0 or 1).
For char type, characterization occupies a byte in memory, i.e. 8 bit, can indicate 0~255 (or -128 ~127) score value of 2 projects can, be stored.
Short type characterization occupies two bytes in memory, i.e. 16 bit, can indicate 0~65535 (or -32768 ~32767) score value of 4 projects, can at most be stored.
Int type characterizes and occupies 4 bytes in memory, i.e. 32bit, 0~4294967295 (or -2147483648~ 2147483647) score value of 9 projects, can at most be stored.Double type, characterization occupy 8 bytes, 64bit in memory.
In the above embodiment, it is preferable that further include: it is greater than default number of packet threshold value in the digit for detecting numerical string When, assessment item is grouped, after grouping, according to corresponding data type, to generate multiple data to be stored, wherein Highest order in each data to be stored characterizes grouping serial number.
In this embodiment, by when the digit for detecting numerical string is greater than default number of packet threshold value, to scoring item Mesh is grouped, and to store after being grouped to multiple score values, when assessment item is more, the numerical string generated is not fallen within The value range (such as numberical range of double type defined) of preset data type defined, therefore can not be using default Data type store the data, by be grouped processing, on the one hand, realize the smooth storage of multiple score values, it is another Aspect also facilitates logarithm by the way that the highest order in each data to be stored is characterized grouping serial number to represent different groupings According to subsequent inquiry and processing.
Wherein, the numerical string after grouping can be stored according to same data type, can also be according to different data class Type storage.
In addition, characterizing grouping serial number using the front two of highest order when number of packet is more than 10.
In any of the above-described embodiment, it is preferable that right in the digit and default number of packet threshold value for detecting numerical string Assessment item is grouped, after grouping, according to corresponding data type, to generate multiple data to be stored, specifically include with Lower step: being the first preset quantity threshold value in default number of packet threshold value, to be greater than first in the quantity for detecting assessment item When preset quantity threshold value, according to the first preset data type, the quantity of grouping is determined, wherein the first preset quantity threshold value is 9, First preset data type is int data type or short data type.
In this embodiment, by the way that the first preset quantity threshold value is limited to 9, and by data type be preset as int type or Short type, when the digit of numerical string is greater than 9, according to the quotient between digit storage bit number corresponding with int type data, really Determine number of packet, and generate corresponding block code (sequence identification since 0), realizes the digit of numerical string less than 36 When, the grouping and storage of numerical string, and by rationally determining data type, the optimization storage of numerical string is realized, thus effectively Reduce memory space.
Short data type is 16 storage cells, and int data type is 32 storage cells.
For example, when evaluation of estimate is units, if assessment item is more than 9, such as at 15, by assessment item point After group, 24 bytes (int type) marks perhaps an int type and 2 short types or 4 two bytes can be used (short type) is grouped wherein representing different assessment items with the highest order (such as 0,1,2,3) of each number.
If it is the evaluation for being no more than 9 points to each evaluation score, then 4 int types (each int type number can be used The highest order of word can be 0,1,2,3 respectively to represent different groupings) scores of most 36 assessment items of storage.
Alternatively, it is also possible to not execute grouping, directly indicated using double type (8 bytes).
In any of the above-described embodiment, it is preferable that when the digit for detecting numerical string is greater than default number of packet threshold value, Assessment item is grouped, after grouping, according to corresponding data type, to generate multiple data to be stored, specifically include Following steps: being the second preset quantity threshold value in default number of packet threshold value, to be greater than the in the quantity for detecting assessment item When two preset quantity threshold values, according to the second preset data type, the quantity of grouping is determined, wherein the second preset quantity threshold value is 36, the second preset data type is double data type or int data type.
In this embodiment, by the way that the first preset quantity threshold value is limited to 36, and by data type be preset as int type or Short type, when the digit of numerical string is greater than 36, according to the quotient between digit storage bit number corresponding with int type data, really Determine number of packet, and generate corresponding block code (sequence identification since 0), realize numerical string digit it is larger when it is (big In 36) when, the grouping and storage of numerical string, and by rationally determining data type, further realize the optimization of numerical string Storage, to effectively reduce memory space.
In addition, if it exceeds 36 projects to be evaluated, the then front two that int type can be used indicate grouping, to store more The score of more assessment items.
Int data type is 32 storage cells, 64 storage cells of double data qualifier bit, i.e., using 64 storages One data.
In any of the above-described embodiment, it is preferable that according to the scoring of the quantity of multiple assessment items and each assessment item Value generates numerical string to be stored, specifically includes the following steps: according to the quantity of multiple assessment items and each assessment item Score value generates metric numerical string.
In this embodiment, by being directly generated according to the quantity of multiple assessment items and the score value of each assessment item Metric numerical string directly generates score value according to preset sequence since score value is usually indicated with ten's digit One numerical string, then according to default number of packet threshold value, it is determined whether a numerical string is split as multiple numerical strings, in turn Corresponding data type is determined according to preset threshold section, finally realizes storage, and treatment process is simple.
In any of the above-described embodiment, it is preferable that according to the scoring of the quantity of multiple assessment items and each assessment item Value generates numerical string to be stored, specifically includes the following steps: being determined according to the maximum value in the score value of each assessment item The system mode of score value, generates numerical string in a manner of according to system, wherein when maximum value is less than 8, system mode be eight into System or the decimal system are greater than or equal to 8 in maximum value, and when less than 10, system mode is the decimal system or hexadecimal, in maximum value More than or equal to 10, and be less than or equal to 15 when, system mode be hexadecimal.
In this embodiment, by the maximum value in the score value according to each assessment item, the system of score value is determined Mode, with the suitable representation of determination, compared with only using metric mode, on the one hand, use scope is wider, another Aspect can further save memory space by the conversion of numerical string between different systems.
Wherein, a byte is exactly an English alphabet or the occupied space of Arabic numerals, and data are in a computer Expression, finally exist in the form of binary, i.e., inside computer storing data be as unit of byte, i.e., 8 two into Code processed, rather than with binary code storage, thus either, octal system, the decimal system or hexadecimal, can regard To be shown to processing side's (such as treatment people) in data handling procedure.
Specifically, when multiple score values are respectively 10,12,15,8,6, it is according to the numerical string that the decimal system generates 10121586, it is that ACF86 (turns according to the numerical string that hexadecimal generates that corresponding hexadecimal values, which are A, C, F, 8 and 6, Turning to ten's digit is 6+8*16+15*16*16+12*16*16*16+10*16*16*16*16=655360+49152+ 3840 + 128+6=708486), memory space can be further saved in storage, but increases a conversion process.
Embodiment 8
Fig. 7 shows the exemplary flow of the storage method of the user's evaluation result of still another embodiment in accordance with the present invention Figure.
As shown in fig. 7, the storage method of the user's evaluation result of still another embodiment in accordance with the present invention, comprising: step 702, the score value that user is directed to assessment item is obtained in client;Step 704, score value is sent to service by mobile terminal Device;Step 706, the score value that server is received according to preset processing rule process;Step 708, score value is stored.
In this embodiment, the treatment process of data is realized in server end, and preset processing rule includes;By multiple lists Only score value generates one or more numerical strings, will be each
The technical scheme of the present invention has been explained in detail above with reference to the attached drawings, and the invention proposes a kind of user's evaluation results Storage method, the storage device of user's evaluation result, mobile terminal, server and computer readable storage medium, by obtaining After user is got for the score value of multiple assessment items, multiple score values are converted into a long numeric data, i.e. numerical string, and The relationship between the digit and default number of packet threshold value of numerical string is detected, to be less than default point in the digit for detecting numerical string When group amount threshold, the corresponding preset threshold section of numerical string is directly determined, to determine according to preset threshold section corresponding Data type to carry out storage mark according to data type, and is sent to server and is stored, with a word in the prior art The mode of section one score value of record is compared, and helps to reduce memory space, to mitigate the storage pressure of server end.
Step in the method for the present invention can be sequentially adjusted, combined, and deleted according to actual needs.
Unit in apparatus of the present invention can be combined, divided, and deleted according to actual needs.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium include read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), programmable read only memory (Programmable Read-only Memory, PROM), erasable programmable is read-only deposits Reservoir (Erasable Programmable Read Only Memory, EPROM), disposable programmable read-only memory (One- Time Programmable Read-Only Memory, OTPROM), the electronics formula of erasing can make carbon copies read-only memory (Electrically-Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM) or other disc memories, magnetic disk storage, magnetic tape storage or can For carrying or any other computer-readable medium of storing data.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (17)

1. a kind of storage method of user's evaluation result is suitable for net about vehicle client characterized by comprising
Obtain the score value for being directed to multiple assessment items;
Multiple score values are converted at least one numerical string to be stored;
The corresponding preset threshold section of each numerical string is determined, to determine corresponding data according to the preset threshold section Type;
According to the data type, the numerical string to be stored is converted into storing data;
The storing data is sent to server, so that the server is deposited according to the storage byte number of the storing data Store up the multiple scoring.
2. a kind of storage method of user's evaluation result is suitable for server characterized by comprising
Receive the score value for multiple assessment items that net about vehicle client is sent;
Multiple score values are converted at least one numerical string to be stored;
The corresponding preset threshold section of each numerical string is determined, to determine corresponding data according to the preset threshold section Type;
According to the data type, the storage numerical string to be stored.
3. the storage method of user's evaluation result according to claim 1 or 2, which is characterized in that it is described will be multiple described Score value is converted at least one numerical string to be stored, specifically includes the following steps:
Whether the digit for detecting multiple score values is less than or equal to default number of packet threshold value;
It, will be multiple described when the digit for detecting multiple score values is less than or equal to the default number of packet threshold value Score value is converted to the numerical string;
When the digit for detecting multiple score values is greater than the default number of packet threshold value, the assessment item is carried out Grouping, after grouping, according to the corresponding data type, to generate multiple data to be stored,
Wherein, the highest order in each data to be stored characterizes grouping serial number.
4. the storage method of user's evaluation result according to claim 3, which is characterized in that described to detect multiple institutes When the digit of commentary score value is greater than the default number of packet threshold value, the assessment item is grouped, with after grouping, root According to the corresponding data type, multiple data to be stored are generated, specifically includes the following steps:
It is the first preset quantity threshold value in the default number of packet threshold value, to detect that the quantity of the assessment item is greater than When the first preset quantity threshold value, according to the first preset data type, the quantity of the grouping is determined,
Wherein, the first preset quantity threshold value is 9, and the first preset data type is int data type or short data Type.
5. the storage method of user's evaluation result according to claim 3, which is characterized in that described to detect multiple institutes When the digit of commentary score value is greater than the default number of packet threshold value, the assessment item is grouped, with after grouping, root According to the corresponding data type, multiple data to be stored are generated, specifically includes the following steps:
It is the second preset quantity threshold value in the default number of packet threshold value, to detect that the quantity of the assessment item is greater than When the second preset quantity threshold value, according to the second preset data type, the quantity of the grouping is determined,
Wherein, the second preset quantity threshold value is 36, and the second preset data type is double data type or int number According to type.
6. the storage method of user's evaluation result according to claim 1 or 2, which is characterized in that described according to described more The score value of the quantity of a assessment item and each assessment item generates numerical string to be stored, and specifically includes following step It is rapid:
The metric numerical value is generated according to the score value of the quantity of the multiple assessment item and each assessment item String.
7. the storage method of user's evaluation result according to claim 1 or 2, which is characterized in that described according to institute The score value of the quantity and each assessment item of stating multiple assessment items generates numerical string to be stored, and specifically includes following Step:
According to the maximum value in the score value of each assessment item, the system mode of the score value is determined, with root The numerical string is generated according to the system mode,
Wherein, when the maximum value is less than 8, the system mode is octal system or the decimal system, be greater than in the maximum value or Equal to 8, and when less than 10, the system mode is the decimal system or hexadecimal, is greater than or equal to 10 in the maximum value, and small When 15, the system mode is hexadecimal.
8. a kind of storage device of user's evaluation result is suitable for net about vehicle client characterized by comprising
Acquiring unit, for obtaining the score value for being directed to multiple assessment items;
Converting unit, for multiple score values to be converted at least one numerical string to be stored;
Determination unit, for determining the corresponding preset threshold section of each numerical string, according to the preset threshold section Determine corresponding data type;
The converting unit is also used to: according to the data type, the numerical string to be stored being converted to storing data;
Transmission unit, for the storing data to be sent to server, so that the server is according to the storing data Byte number is stored, the multiple scoring is stored.
9. a kind of storage device of user's evaluation result is suitable for server characterized by comprising
Receiving unit, the score value for multiple assessment items sent for receiving net about vehicle client;
Converting unit, for multiple score values to be converted at least one numerical string to be stored;
Determination unit, for determining the corresponding preset threshold section of each numerical string, according to the preset threshold section Determine corresponding data type;
Storage unit, for according to the data type, the storage numerical string to be stored.
10. the storage device of user's evaluation result according to claim 8 or claim 9, which is characterized in that further include:
Whether detection unit, the digit for detecting multiple score values are less than or equal to default number of packet threshold value;
The converting unit is also used to: being less than or equal to the default packet count in the digit for detecting multiple score values When measuring threshold value, multiple score values are converted into the numerical string;
The storage device further include:
Grouped element, for the digit for detecting multiple score values be greater than the default number of packet threshold value when, to institute Assessment item is stated to be grouped, after grouping, according to the corresponding data type, to generate multiple data to be stored,
Wherein, the highest order in each data to be stored characterizes grouping serial number.
11. the storage device of user's evaluation result according to claim 10, which is characterized in that
The determination unit is also used to: being the first preset quantity threshold value in the default number of packet threshold value, detecting When stating the quantity of assessment item greater than the first preset quantity threshold value, according to the first preset data type, the grouping is determined Quantity,
Wherein, the first preset quantity threshold value is 9, and the first preset data type is int data type or short data Type.
12. the storage device of user's evaluation result according to claim 10, which is characterized in that
The determination unit is also used to: being the second preset quantity threshold value in the default number of packet threshold value, detecting When stating the quantity of assessment item greater than the second preset quantity threshold value, according to the second preset data type, the grouping is determined Quantity,
Wherein, the second preset quantity threshold value is 36, and the second preset data type is double data type or int number According to type.
13. the storage device of user's evaluation result according to claim 8 or claim 9, which is characterized in that further include:
Generation unit, for the score value according to the quantity of the multiple assessment item and each assessment item generate ten into The numerical string of system.
14. the storage device of user's evaluation result according to claim 8 or claim 9, which is characterized in that
The determination unit is also used to: according to the maximum value in the score value of each assessment item, determining institute's commentary The system mode of score value generates the numerical string in a manner of according to the system,
Wherein, when the maximum value is less than 8, the system mode is octal system or the decimal system, be greater than in the maximum value or Equal to 8, and when less than 10, the system mode is the decimal system or hexadecimal, is greater than or equal to 10 in the maximum value, and small When 15, the system mode is hexadecimal.
15. a kind of mobile terminal, which is characterized in that the mobile terminal includes processor, and the processor is for executing storage The user's evaluation result as described in any one of claim 1, claim 3 to 7 is realized when the computer program stored in device Storage method the step of.
16. a kind of server, which is characterized in that the server includes processor, and the processor is for executing in memory Depositing for the user's evaluation result as described in any one of claim 2, claim 3 to 7 is realized when the computer program of storage The step of method for storing.
17. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of storage method of the user's evaluation result as described in any one of claims 1 to 7 is realized when being executed by processor.
CN201711092700.8A 2017-11-08 2017-11-08 Storage method, device, mobile terminal, server and readable storage medium Active CN109753227B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711092700.8A CN109753227B (en) 2017-11-08 2017-11-08 Storage method, device, mobile terminal, server and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711092700.8A CN109753227B (en) 2017-11-08 2017-11-08 Storage method, device, mobile terminal, server and readable storage medium

Publications (2)

Publication Number Publication Date
CN109753227A true CN109753227A (en) 2019-05-14
CN109753227B CN109753227B (en) 2021-11-23

Family

ID=66402127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711092700.8A Active CN109753227B (en) 2017-11-08 2017-11-08 Storage method, device, mobile terminal, server and readable storage medium

Country Status (1)

Country Link
CN (1) CN109753227B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124291A (en) * 2019-12-09 2020-05-08 北京金山云网络技术有限公司 Data storage processing method and device of distributed storage system and electronic equipment
CN112416947A (en) * 2020-12-09 2021-02-26 吉林师范大学 Storage processing method and device for remote sensing image database
CN114115740A (en) * 2021-11-26 2022-03-01 百度在线网络技术(北京)有限公司 Data storage method and device, data acquisition method and device, and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101790257A (en) * 2009-01-22 2010-07-28 大唐移动通信设备有限公司 Method for memorizing data and network management system
CN102804168A (en) * 2009-06-19 2012-11-28 赛贝斯股份有限公司 Data Compression For Reducing Storage Requirements In A Database System
CN102981811A (en) * 2011-09-05 2013-03-20 北大方正集团有限公司 Processing method and device of user option data
CN103885721A (en) * 2012-12-24 2014-06-25 中国移动通信集团公司 Data storing or reading method and device for key-value system
US20160070481A1 (en) * 2011-03-08 2016-03-10 Rackspace Us, Inc. Massively Scalable Object Storage for Storing Object Replicas

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101790257A (en) * 2009-01-22 2010-07-28 大唐移动通信设备有限公司 Method for memorizing data and network management system
CN102804168A (en) * 2009-06-19 2012-11-28 赛贝斯股份有限公司 Data Compression For Reducing Storage Requirements In A Database System
US20160070481A1 (en) * 2011-03-08 2016-03-10 Rackspace Us, Inc. Massively Scalable Object Storage for Storing Object Replicas
CN102981811A (en) * 2011-09-05 2013-03-20 北大方正集团有限公司 Processing method and device of user option data
CN103885721A (en) * 2012-12-24 2014-06-25 中国移动通信集团公司 Data storing or reading method and device for key-value system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124291A (en) * 2019-12-09 2020-05-08 北京金山云网络技术有限公司 Data storage processing method and device of distributed storage system and electronic equipment
CN111124291B (en) * 2019-12-09 2023-05-30 北京金山云网络技术有限公司 Data storage processing method and device of distributed storage system and electronic equipment
CN112416947A (en) * 2020-12-09 2021-02-26 吉林师范大学 Storage processing method and device for remote sensing image database
CN112416947B (en) * 2020-12-09 2023-09-22 吉林师范大学 Remote sensing image database preservation processing method and device
CN114115740A (en) * 2021-11-26 2022-03-01 百度在线网络技术(北京)有限公司 Data storage method and device, data acquisition method and device, and electronic equipment
CN114115740B (en) * 2021-11-26 2024-06-07 百度在线网络技术(北京)有限公司 Data storage method and device, data acquisition method and device and electronic equipment

Also Published As

Publication number Publication date
CN109753227B (en) 2021-11-23

Similar Documents

Publication Publication Date Title
US11977541B2 (en) Systems and methods for rapid data analysis
CN109753227A (en) Storage method, device, mobile terminal, server and readable storage medium storing program for executing
CN105426375B (en) A kind of calculation method and device of relational network
CN104978320B (en) A kind of knowledge recommendation method and apparatus based on similarity
WO2018218788A1 (en) Third-generation sequencing sequence alignment method based on global seed scoring optimization
CN110995273B (en) Data compression method, device, equipment and medium for power database
CN109062936B (en) Data query method, computer readable storage medium and terminal equipment
JP5849520B2 (en) Annotating environmental data represented by characteristic functions
CN104699796A (en) Data cleaning method based on data warehouse
CN112162977A (en) MES-oriented massive data redundancy removing method and system
CN107634765A (en) A kind of Internet of Things coding method and system
CN109145003A (en) A kind of method and device constructing knowledge mapping
CN116226103A (en) Method for detecting government data quality based on FPGrow algorithm
CN111581390A (en) Knowledge graph construction method and device and electronic equipment
CN104077272B (en) A kind of method and apparatus of dictionary compression
JP5691934B2 (en) Annotating binary decision diagrams representing sensor data
JP5691935B2 (en) Retrieving sensor data stored as a binary decision diagram
CN117332420A (en) Intelligent contract vulnerability detection method
CN107704472B (en) Method and device for searching data block
CN105573984A (en) Socio-economic indicator identification method and device
CN105282554B (en) Coding/decoding method and decoding apparatus
CN110505321B (en) Method and system for accessing IP address
CN106293712B (en) A kind of implementation method of report processing cube model
CN108154282B (en) Method and device for acquiring workload of judge staff
CN111765964A (en) Numerical value correction method based on cloud storage

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant