CN105205153A - File storage method and device - Google Patents

File storage method and device Download PDF

Info

Publication number
CN105205153A
CN105205153A CN201510618109.6A CN201510618109A CN105205153A CN 105205153 A CN105205153 A CN 105205153A CN 201510618109 A CN201510618109 A CN 201510618109A CN 105205153 A CN105205153 A CN 105205153A
Authority
CN
China
Prior art keywords
file destination
file
size
interval
destination
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
CN201510618109.6A
Other languages
Chinese (zh)
Other versions
CN105205153B (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 Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510618109.6A priority Critical patent/CN105205153B/en
Publication of CN105205153A publication Critical patent/CN105205153A/en
Application granted granted Critical
Publication of CN105205153B publication Critical patent/CN105205153B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices

Landscapes

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

Abstract

The invention provides a virtual-reality file storage method. The method comprises the steps that the file size of a target file is obtained; whether the file size of the target file is located within a preset interval or not is judged, wherein a corresponding size offset is preset in the preset interval; when the size of the target file is located within the preset interval, a difference value of the size of the target file and the size offset serves as index data of the target file to be stored. By means of the file storage method and device, the size of the index data of the target file can be effectively reduced, and the disk storage space occupied by the index data is saved.

Description

File memory method and device
Technical field
The disclosure relates to the communications field, particularly relates to file memory method and device.
Background technology
Memory device is when storage file, while storage file, usually also the index area that the information such as the size of this file are specified in disk as index data can be stored, when reading this file, first read the information such as the size of this file from index area, then from disk, read corresponding file according to the size information of this file.But because the information such as the size at index area storage file need to take certain storage space, therefore when memory device is when carrying out the storage of file in enormous quantities, the storage space that index area takies will increase severely.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of file memory method and device.
According to the first aspect of disclosure embodiment, provide a kind of file memory method, described method comprises:
Obtain the file size of file destination;
Judge whether the file size of described file destination falls into pre-set interval; Wherein said pre-set interval has been pre-arranged corresponding size side-play amount;
When the size of described file destination falls into described pre-set interval, the index data of the difference of the size of described file destination and described size side-play amount as described file destination is stored.
Optionally, described method also comprises:
Traversal file destination collection is to obtain the size that described file destination concentrates each file destination;
The size of each file destination is concentrated to carry out statistical study to obtain characterizing the size distribution characteristic that described file destination concentrates the size distribution rule of each file destination according to preset algorithm to described file destination;
Size distribution characteristic based on described each file destination creates described pre-set interval, and is that described pre-set interval arranges corresponding size side-play amount.
Optionally, the size distribution characteristic of described each file destination comprises some file size distribution intervals of statistical precipitation, and falls into the quantity of described some file size distribution intervals file destination;
The described size distribution characteristic based on described each file destination creates described size distribution interval and comprises:
The quantity calculating file destination in described some file size distribution intervals respectively accounts for the ratio that described file destination concentrates file destination total quantity;
The described ratio calculated and predetermined threshold value are compared;
When the quantity of file destination in arbitrary file size distribution interval in described some file size distribution intervals account for described file destination concentrate the ratio of file destination total quantity to reach described predetermined threshold value time, this file size distribution interval is set to described pre-set interval.
Optionally, describedly to comprise for described pre-set interval arranges corresponding size side-play amount:
The initial value of described pre-set interval is set to the size side-play amount of this pre-set interval.
Optionally, described method also comprises:
When receiving the read requests of described file destination, read the index data of described file destination;
Based on the file size of the described file destination stored in described index data and described size side-play amount and actual file size as described file destination carry out digital independent.
According to the second aspect of disclosure embodiment, provide a kind of file storage device, described device comprises:
Acquisition module, is configured to the file size obtaining file destination;
Judge module, is configured to judge whether the file size of described file destination falls into pre-set interval; Wherein said pre-set interval has been pre-arranged corresponding size side-play amount;
Memory module, is configured to when the size of described file destination falls into described pre-set interval, is stored by the index data of the difference of the size of described file destination and described size side-play amount as described file destination.
Optionally, described device also comprises:
Spider module, is configured to traversal file destination collection to obtain the size that described file destination concentrates each file destination;
Analysis module, is configured to concentrate the size of each file destination to carry out statistical study to obtain characterizing the size distribution characteristic that described file destination concentrates the size distribution rule of each file destination according to preset algorithm to described file destination;
Creation module, the size distribution characteristic be configured to based on described each file destination creates described pre-set interval, and is that described pre-set interval arranges corresponding size side-play amount.
Optionally, the size distribution characteristic of described each file destination comprises some file size distribution intervals of statistical precipitation, and falls into the quantity of described some file size distribution intervals file destination;
Described creation module comprises:
Calculating sub module, the quantity being configured to calculate respectively file destination in described some file size distribution intervals accounts for the ratio that described file destination concentrates file destination total quantity;
Comparison sub-module, is configured to the described ratio calculated and predetermined threshold value to compare;
First arranges submodule, the quantity being configured to file destination in arbitrary file size distribution interval in described some file size distribution intervals accounts for described file destination when concentrating the ratio of file destination total quantity to reach described predetermined threshold value, and this file size distribution interval is set to described pre-set interval.
Optionally, described creation module also comprises:
Second arranges submodule, is configured to the size side-play amount initial value of described pre-set interval being set to this pre-set interval.
Optionally, described device also comprises:
First read module, is configured to, when receiving the read requests of described file destination, read the index data of described file destination;
Second read module, be configured to based on the file size of the described file destination stored in described index data and described size side-play amount and actual file size as described file destination carry out digital independent.
According to the third aspect of disclosure embodiment, a kind of file storage device is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the file size of file destination;
Judge whether the file size of described file destination falls into pre-set interval; Wherein said pre-set interval has been pre-arranged corresponding size side-play amount;
When the size of described file destination falls into described pre-set interval, the index data of the difference of the size of described file destination and described size side-play amount as described file destination is stored.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
In above embodiment of the present disclosure, by obtaining the file size of file destination, and judge whether the file size of described file destination falls into pre-set interval, wherein said pre-set interval has been pre-arranged corresponding size side-play amount; When the size of described file destination falls into described pre-set interval, then the index data of the difference of the size of described file destination and described size side-play amount as described file destination is stored, thus effectively can reduce the size of the index data of file destination, save the storage space that index data takies disk.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is the schematic flow sheet of a kind of file memory method according to an exemplary embodiment;
Fig. 2 is the schematic flow sheet of the another kind of file memory method according to an exemplary embodiment;
Fig. 3 is the schematic block diagram of a kind of file storage device according to an exemplary embodiment;
Fig. 4 is the schematic block diagram of the another kind of file storage device according to an exemplary embodiment;
Fig. 5 is the schematic block diagram of the another kind of file storage device according to an exemplary embodiment;
Fig. 6 is the schematic block diagram of the another kind of file storage device according to an exemplary embodiment;
Fig. 7 is the schematic block diagram of the another kind of file storage device according to an exemplary embodiment;
Fig. 8 is a kind of structural representation for described file storage device according to an exemplary embodiment;
Fig. 9 is the structural representation of the another kind according to an exemplary embodiment for described file storage device.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
The term used in the disclosure is only for the object describing specific embodiment, and the not intended to be limiting disclosure." one ", " described " and " being somebody's turn to do " of the singulative used in disclosure and the accompanying claims book is also intended to comprise most form, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more project of listing be associated any or all may combine.
Term first, second, third, etc. may be adopted although should be appreciated that to describe various information in the disclosure, these information should not be limited to these terms.These terms are only used for the information of same type to be distinguished from each other out.Such as, when not departing from disclosure scope, the first information also can be called as the second information, and similarly, the second information also can be called as the first information.Depend on linguistic context, word as used in this " if " can be construed as into " ... time " or " when ... time " or " in response to determining ".
The disclosure proposes a kind of file memory method, and by obtaining the file size of file destination, and judge whether the file size of described file destination falls into pre-set interval, wherein said pre-set interval has been pre-arranged corresponding size side-play amount; When the size of described file destination falls into described pre-set interval, then the index data of the difference of the size of described file destination and described size side-play amount as described file destination is stored, thus effectively can reduce the size of the index data of file destination, save the storage space that index data takies disk.
As shown in Figure 1, Fig. 1 is a kind of file memory method according to an exemplary embodiment, is applied to memory device, comprises the following steps:
In a step 101, the file size of file destination is obtained;
In a step 102, judge whether the file size of described file destination falls into pre-set interval; Wherein said pre-set interval has been pre-arranged corresponding size side-play amount;
In step 103, when the size of described file destination falls into described pre-set interval, the index data of the difference of the size of described file destination and described size side-play amount as described file destination is stored.
Above-mentioned memory device can comprise storage server, mobile terminal, PC terminal or other there is the equipment of file memory function.
The file system of memory device is when carrying out file and storing, and meeting layout data district and index area in the storage space of equipment usually, data field is for storing file destination, and index area is for storing the index data of file destination.Index data is normally used for improving the secondary file of file destination search efficiency, memory device is when storing file destination, while file destination is stored into data field, usually also the index area that the information such as the size of this file, start address in disk are specified in disk as index data can be stored.
When reading file destination from memory device, first read the index data such as the size of this file destination, the start address disk from index area, and then read this file destination according to the start address in this index data and file size from the correspondence position disk.If memory device is when storing file destination, the size of this file destination is not recorded in index data, so when reading this file destination, when memory device reads this file destination based on the start address in index data from disk, cannot learn and read the data of how much length, thus cause and read unsuccessfully.Visible, the size of file destination is requisite content in the index data of file destination.
In actual applications, the size of file destination usually only takies very little storage space in index area, and such as, when file destination is small documents, file size only takies the space of the several byte in index area usually.But when memory device carries out the storage of file in enormous quantities, because quantity of documents is very large, the storage space that index area takies will sharply increase, and this will affect the search efficiency of file.
In the present embodiment, for solving the problem, memory device, when carrying out the storage of file in enormous quantities, first can travel through file destination collection to be stored, obtains the size that this file destination concentrates each file destination.Wherein, this file destination collection can be the set of file destination to be stored; Such as, this file destination collection can be the picture, character library etc. of batch.
When memory device get this file destination concentrate the size of each file destination time, statistical study can be carried out according to the size of statistical analysis algorithms to each file destination got preset, obtain the size distribution characteristic of each file destination, this size distribution characteristic may be used for characterizing the size distribution rule that above-mentioned file destination concentrates each file destination.
Wherein, above-mentioned default statistical analysis algorithms is not particularly limited in the present embodiment, can select according to the demand of reality; Such as, when realizing, the algorithm for data of description distribution characteristics that above-mentioned default statistical analysis algorithms can adopt data statistic analysis field to commonly use.
When carrying out statistical study based on the size of above-mentioned default statistical analysis algorithms to each file destination got, some file size distribution intervals that statistical is separated out can be comprised in the size distribution characteristic obtained, and fall into the quantity of above-mentioned some file size distribution intervals file destination.
Such as, suppose that described file destination integrates as character library collection, memory device can travel through this character library collection and obtain the size that this character library concentrates each character, carry out sequence to the character boundary got to arrange, then using sequence arrange after character boundary as input data, carry out statistical study to obtain the size distribution rule that this character library concentrates each character based on above-mentioned default statistical analysis algorithms.Suppose that this character library collection comprises altogether 100 standard characters, the character of size between 0 to 255 bytes has 15 altogether, the character of size between 256 to 500 bytes has 80 altogether, the character of size between 501 to 600 bytes has 5 altogether, so based on after above-mentioned default statistical analysis algorithms statistical study, 3 file size distribution intervals can be obtained and be respectively [0, 255], [256, 500] and [501, 600], and can statistical study go out to fall into [0, 255] number of characters in interval is 15, fall into [256, 500] number of characters in interval is 80, fall into [501, 600] number of characters in interval is 5.
When carrying out after statistical study completes based on the size of above-mentioned default statistical analysis algorithms to each file destination got, the quantity that memory device can calculate file destination in above-mentioned some file size distribution intervals respectively accounts for the ratio that described file destination concentrates file destination total quantity, then the above-mentioned ratio calculated and predetermined threshold value is compared.When the quantity of file destination in arbitrary file size distribution interval in above-mentioned some file size distribution intervals account for described file destination concentrate the ratio of file destination total quantity to reach above-mentioned predetermined threshold value time, memory device can by index compression interval (pre-set interval) selected for this file size distribution interval, file size is fallen into the file destination in index compression interval, memory device is when storing these file destinations, index area is stored into, to save the storage space of index area after can compressing the size of these file destinations.
Wherein, above-mentioned predetermined threshold value may be used for weighing the file destination that above-mentioned file destination concentrates, and whether certain in above-mentioned each file size distribution interval of integrated distribution is interval, such as, when realizing, predetermined threshold value can be set to a larger value, when the quantity of the file destination in arbitrary interval in above-mentioned each file size distribution interval reaches this predetermined threshold value, can think above-mentioned file destination concentrate file size integrated distribution in this interval, therefore this interval can be chosen to be index compression interval by memory device, memory device is when the file destination concentrated for above-mentioned file destination stores, index area is stored into after can compressing the size of the file destination in this interval.
Such as, still suppose that described file destination integrates as character library collection, this character library collection comprises altogether 100 standard characters, and the character of size between 0 to 255 bytes has 15 altogether, the character of size between 256 to 500 bytes has 80 altogether, and the character of size between 501 to 600 bytes has 5 altogether.After above-mentioned default statistical analysis algorithms statistical study, obtain 3 file size distribution intervals and be respectively [0,255], [256,500] and [501,600], and statistical study goes out to fall into [0,255] number of characters in interval is 15, and the number of characters fallen in [256,500] interval is 80, the number of characters fallen in [501,600] interval is 5.Suppose that above-mentioned predetermined threshold value is 80%, [256,500] number of characters in interval reaches 80%, therefore memory device can by [256,500] interval is chosen to be index compression interval, for the file destination in index compression interval, memory device is stored into index area after can compressing the size of the file destination in this interval.
Certainly, when realizing, when above-mentioned predetermined threshold value arrange less time, the quantity that now may there is the file destination in multiple interval in above-mentioned each file size distribution interval all reaches the situation of this predetermined threshold value, in this case, it is interval that memory device can select multiple index compression, and for the plurality of so index compression interval arranges different ID respectively distinguishes.
In the present embodiment, the size of memory device to the file destination in index compression interval is compressed, can by arranging size side-play amount to realize for above-mentioned index compression interval.When realizing, memory device is after have selected index compression interval, corresponding size side-play amount can also be set for selected index compression interval, after being provided with size side-play amount, memory device, when storing the file destination in index compression interval, can compress based on the size of this size side-play amount to the file destination in this interval.
Wherein, the initial value in index compression interval, when arranging size side-play amount for selected index compression interval, can be set to the size side-play amount in this interval by memory device.Such as, suppose that the index compression interval that memory device is selected is [256,500], so size side-play amount can be set to 256.
In the present embodiment, when memory device carries out statistical study by the size of each file destination concentrated above-mentioned file destination, select out index compression interval, and be after selected index compression interval is provided with size side-play amount, each file destination that now memory device can start to concentrate for above-mentioned file destination stores.
Memory device is when storing for each file destination in above-mentioned file destination, the order of file destination can be concentrated to read file destination successively according to above-mentioned file destination, when after reading file destination, memory device can obtain the size of this file destination, and it is interval to judge whether the size of this file destination falls into selected above-mentioned index compression, if it is interval that the size of this file destination fall into this index compression, now memory device is after being stored into data field corresponding in disk by this file destination, can using the difference of the size of this file destination and the size side-play amount in this index compression interval as the index datastore of described file destination to disk in corresponding index area.In this way, can realize compressing the size of file destination in index compression interval, thus the storage space of index area can be saved, contribute to the search efficiency promoting file destination.Certainly, file size not being fallen into the file destination in above-mentioned index compression interval, due to negligible amounts, still can process according to the mode of acquiescence when storing.
Such as, still suppose that described file destination integrates as character library collection, this character library collection comprises altogether 100 standard characters, after above-mentioned default statistical analysis algorithms statistical study, obtain 3 file size distribution intervals and be respectively [0,255], [256,500] and [501,, and can the statistical study number of characters that goes out to fall in [0,255] interval be 15 600], fall into [256,500] number of characters in interval is 80, and the number of characters fallen in [501,600] interval is 5.Suppose [256,500] interval is chosen to be index compression interval, so memory device is when the character concentrated above-mentioned character library stores, can by [256,500] after the character boundary in interval deducts size side-play amount 256, using difference as the index datastore of correspondence to index area.Such as suppose that certain character boundary in this interval is 500 bytes, according to default storage mode, the actual size storing this character in index area needs two byte (binary storage, a byte 8 bits, the maximal value of record is 256), and after being compressed by the size of above-mentioned size side-play amount to this character, the size of this character stored in index area is difference 244 byte of this character actual size 500 byte and side-play amount 256, only needs a byte when storing the size after this character compression in index area.Certainly, for the character in [0,255] and [501,600] interval, because negligible amounts still can process according to the storage mode of acquiescence.
Visible, such scheme, when memory device stores large batch of file, effectively can reduce the size of the index data of file destination, saves the storage space that index data takies disk.
In the present embodiment, when memory device receives the read requests for the file destination stored, memory device can read the index data corresponding with this read requests in index area, and judge that whether this file destination corresponding with this index data is the file destination in above-mentioned index compression interval, if, memory device can using the file size of this file destination that reads from index area and the size side-play amount in this index compression interval and as the actual file size of this file destination, read this file destination from the data field disk.Certainly, if this file destination is not the file destination in above-mentioned index compression interval, memory device directly according to the file size of this file destination read from index area, can read this file destination from the data field disk.
In the embodiment above, by obtaining the file size of file destination, and judge whether the file size of described file destination falls into pre-set interval, wherein said pre-set interval has been pre-arranged corresponding size side-play amount; When the size of described file destination falls into described pre-set interval, then the index data of the difference of the size of described file destination and described size side-play amount as described file destination is stored, thus effectively can reduce the size of the index data of file destination, save the storage space that index data takies disk.
As shown in Figure 2, Fig. 2 is a kind of file memory method according to an exemplary embodiment, is applied in memory device, comprises the following steps:
In step 201, file destination collection is traveled through to obtain the size that described file destination concentrates each file destination;
In step 202., the size of each file destination is concentrated to carry out statistical study to obtain characterizing the size distribution characteristic that described file destination concentrates the size distribution rule of each file destination according to preset algorithm to described file destination; The size distribution characteristic of described each file destination comprises some file size distribution intervals of statistical precipitation, and falls into the quantity of described some file size distribution intervals file destination;
In step 203, the quantity calculating file destination in described some file size distribution intervals respectively accounts for the ratio that described file destination concentrates file destination total quantity;
In step 204, the described ratio calculated and predetermined threshold value are compared;
In step 205, when the quantity of file destination in arbitrary file size distribution interval in described some file size distribution intervals account for described file destination concentrate the ratio of file destination total quantity to reach described predetermined threshold value time, this file size distribution interval is set to pre-set interval, and the initial value of described pre-set interval is set to the size side-play amount of this pre-set interval;
In step 206, the file size of file destination is obtained;
In step 207, judge whether the file size of described file destination falls into described pre-set interval;
In a step 208, when the size of described file destination falls into described pre-set interval, the index data of the difference of the size of described file destination and described size side-play amount as described file destination is stored.
Above-mentioned memory device can comprise storage server, mobile terminal, PC terminal or other there is the equipment of file memory function.
The file system of memory device is when carrying out file and storing, and meeting layout data district and index area in the storage space of equipment usually, data field is for storing file destination, and index area is for storing the index data of file destination.Index data is normally used for improving the secondary file of file destination search efficiency, memory device is when storing file destination, while file destination is stored into data field, usually also the index area that the information such as the size of this file, start address in disk are specified in disk as index data can be stored.
When reading file destination from memory device, first read the index data such as the size of this file destination, the start address disk from index area, and then read this file destination according to the start address in this index data and file size from the correspondence position disk.If memory device is when storing file destination, the size of this file destination is not recorded in index data, so when reading this file destination, when memory device reads this file destination based on the start address in index data from disk, cannot learn and read the data of how much length, thus cause and read unsuccessfully.Visible, the size of file destination is requisite content in the index data of file destination.
In actual applications, the size of file destination usually only takies very little storage space in index area, and such as, when file destination is small documents, file size only takies the space of the several byte in index area usually.But when memory device carries out the storage of file in enormous quantities, because quantity of documents is very large, the storage space that index area takies will sharply increase, and this will affect the search efficiency of file.
In the present embodiment, for solving the problem, memory device, when carrying out the storage of file in enormous quantities, first can travel through file destination collection to be stored, obtains the size that this file destination concentrates each file destination.Wherein, this file destination collection can be the set of file destination to be stored; Such as, this file destination collection can be the picture, character library etc. of batch.
When memory device get this file destination concentrate the size of each file destination time, statistical study can be carried out according to the size of statistical analysis algorithms to each file destination got preset, obtain the size distribution characteristic of each file destination, this size distribution characteristic may be used for characterizing the size distribution rule that above-mentioned file destination concentrates each file destination.
Wherein, above-mentioned default statistical analysis algorithms is not particularly limited in the present embodiment, can select according to the demand of reality; Such as, when realizing, the algorithm for data of description distribution characteristics that above-mentioned default statistical analysis algorithms can adopt data statistic analysis field to commonly use.
When carrying out statistical study based on the size of above-mentioned default statistical analysis algorithms to each file destination got, some file size distribution intervals that statistical is separated out can be comprised in the size distribution characteristic obtained, and fall into the quantity of above-mentioned some file size distribution intervals file destination.
Such as, suppose that described file destination integrates as character library collection, memory device can travel through this character library collection and obtain the size that this character library concentrates each character, carry out sequence to the character boundary got to arrange, then using sequence arrange after character boundary as input data, carry out statistical study to obtain the size distribution rule that this character library concentrates each character based on above-mentioned default statistical analysis algorithms.Suppose that this character library collection comprises altogether 100 standard characters, the character of size between 0 to 255 bytes has 15 altogether, the character of size between 256 to 500 bytes has 80 altogether, the character of size between 501 to 600 bytes has 5 altogether, so based on after above-mentioned default statistical analysis algorithms statistical study, 3 file size distribution intervals can be obtained and be respectively [0, 255], [256, 500] and [501, 600], and can statistical study go out to fall into [0, 255] number of characters in interval is 15, fall into [256, 500] number of characters in interval is 80, fall into [501, 600] number of characters in interval is 5.
When carrying out after statistical study completes based on the size of above-mentioned default statistical analysis algorithms to each file destination got, the quantity that memory device can calculate file destination in above-mentioned some file size distribution intervals respectively accounts for the ratio that described file destination concentrates file destination total quantity, then the above-mentioned ratio calculated and predetermined threshold value is compared.When the quantity of file destination in arbitrary file size distribution interval in above-mentioned some file size distribution intervals account for described file destination concentrate the ratio of file destination total quantity to reach above-mentioned predetermined threshold value time, memory device can by index compression interval (pre-set interval) selected for this file size distribution interval, file size is fallen into the file destination in index compression interval, memory device is when storing these file destinations, index area is stored into, to save the storage space of index area after can compressing the size of these file destinations.
Wherein, above-mentioned predetermined threshold value may be used for weighing the file destination that above-mentioned file destination concentrates, and whether certain in above-mentioned each file size distribution interval of integrated distribution is interval, such as, when realizing, predetermined threshold value can be set to a larger value, when the quantity of the file destination in arbitrary interval in above-mentioned each file size distribution interval reaches this predetermined threshold value, can think above-mentioned file destination concentrate file size integrated distribution in this interval, therefore this interval can be chosen to be index compression interval by memory device, memory device is when the file destination concentrated for above-mentioned file destination stores, index area is stored into after can compressing the size of the file destination in this interval.
Such as, still suppose that described file destination integrates as character library collection, this character library collection comprises altogether 100 standard characters, and the character of size between 0 to 255 bytes has 15 altogether, the character of size between 256 to 500 bytes has 80 altogether, and the character of size between 501 to 600 bytes has 5 altogether.After above-mentioned default statistical analysis algorithms statistical study, obtain 3 file size distribution intervals and be respectively [0,255], [256,500] and [501,600], and statistical study goes out to fall into [0,255] number of characters in interval is 15, and the number of characters fallen in [256,500] interval is 80, the number of characters fallen in [501,600] interval is 5.Suppose that above-mentioned predetermined threshold value is 80%, [256,500] number of characters in interval reaches 80%, therefore memory device can by [256,500] interval is chosen to be index compression interval, for the file destination in index compression interval, memory device is stored into index area after can compressing the size of the file destination in this interval.
Certainly, when realizing, when above-mentioned predetermined threshold value arrange less time, the quantity that now may there is the file destination in multiple interval in above-mentioned each file size distribution interval all reaches the situation of this predetermined threshold value, in this case, it is interval that memory device can select multiple index compression, and for the plurality of so index compression interval arranges different ID respectively distinguishes.
In the present embodiment, the size of memory device to the file destination in index compression interval is compressed, can by arranging size side-play amount to realize for above-mentioned index compression interval.When realizing, memory device is after have selected index compression interval, corresponding size side-play amount can also be set for selected index compression interval, after being provided with size side-play amount, memory device, when storing the file destination in index compression interval, can compress based on the size of this size side-play amount to the file destination in this interval.
Wherein, the initial value in index compression interval, when arranging size side-play amount for selected index compression interval, can be set to the size side-play amount in this interval by memory device.Such as, suppose that the index compression interval that memory device is selected is [256,500], so size side-play amount can be set to 256.
In the present embodiment, when memory device carries out statistical study by the size of each file destination concentrated above-mentioned file destination, select out index compression interval, and be after selected index compression interval is provided with size side-play amount, each file destination that now memory device can start to concentrate for above-mentioned file destination stores.
Memory device is when storing for each file destination in above-mentioned file destination, the order of file destination can be concentrated to read file destination successively according to above-mentioned file destination, when after reading file destination, memory device can obtain the size of this file destination, and it is interval to judge whether the size of this file destination falls into selected above-mentioned index compression, if it is interval that the size of this file destination fall into this index compression, now memory device is after being stored into data field corresponding in disk by this file destination, can using the difference of the size of this file destination and the size side-play amount in this index compression interval as the index datastore of described file destination to disk in corresponding index area.In this way, can realize compressing the size of file destination in index compression interval, thus the storage space of index area can be saved, contribute to the search efficiency promoting file destination.Certainly, file size not being fallen into the file destination in above-mentioned index compression interval, due to negligible amounts, still can process according to the mode of acquiescence when storing.
Such as, still suppose that described file destination integrates as character library collection, this character library collection comprises altogether 100 standard characters, after above-mentioned default statistical analysis algorithms statistical study, obtain 3 file size distribution intervals and be respectively [0,255], [256,500] and [501,, and can the statistical study number of characters that goes out to fall in [0,255] interval be 15 600], fall into [256,500] number of characters in interval is 80, and the number of characters fallen in [501,600] interval is 5.Suppose [256,500] interval is chosen to be index compression interval, so memory device is when the character concentrated above-mentioned character library stores, can by [256,500] after the character boundary in interval deducts size side-play amount 256, using difference as the index datastore of correspondence to index area.Such as suppose that certain character boundary in this interval is 500 bytes, according to default storage mode, the actual size storing this character in index area needs two byte (binary storage, a byte 8 bits, the maximal value of record is 256), and after being compressed by the size of above-mentioned size side-play amount to this character, the size of this character stored in index area is difference 244 byte of this character actual size 500 byte and side-play amount 256, only needs a byte when storing the size after this character compression in index area.Certainly, for the character in [0,255] and [501,600] interval, because negligible amounts still can process according to the storage mode of acquiescence.
Visible, such scheme, when memory device stores large batch of file, effectively can reduce the size of the index data of file destination, saves the storage space that index data takies disk.
In the present embodiment, when memory device receives the read requests for the file destination stored, memory device can read the index data corresponding with this read requests in index area, and judge that whether this file destination corresponding with this index data is the file destination in above-mentioned index compression interval, if, memory device can using the file size of this file destination that reads from index area and the size side-play amount in this index compression interval and as the actual file size of this file destination, read this file destination from the data field disk.Certainly, if this file destination is not the file destination in above-mentioned index compression interval, memory device directly according to the file size of this file destination read from index area, can read this file destination from the data field disk.
In the embodiment above, by obtaining the file size of file destination, and judge whether the file size of described file destination falls into pre-set interval, wherein said pre-set interval has been pre-arranged corresponding size side-play amount; When the size of described file destination falls into described pre-set interval, then the index data of the difference of the size of described file destination and described size side-play amount as described file destination is stored, thus effectively can reduce the size of the index data of file destination, save the storage space that index data takies disk.
Corresponding with aforementioned document storage means embodiment, the disclosure additionally provides a kind of embodiment of file storage device.
Fig. 3 is the schematic block diagram of a kind of file storage device according to an exemplary embodiment.
As shown in Figure 3, a kind of file storage device 300 according to an exemplary embodiment, comprising: acquisition module 301, judge module 302 and memory module 303; Wherein:
Described acquisition module 301 is configured to, and obtains the file size of file destination;
Described judge module 302 is configured to, and judges whether the file size of described file destination falls into pre-set interval; Wherein said pre-set interval has been pre-arranged corresponding size side-play amount;
Described memory module 303 is configured to, and when the size of described file destination falls into described pre-set interval, is stored by the index data of the difference of the size of described file destination and described size side-play amount as described file destination.
In the embodiment above, by obtaining the file size of file destination, and judge whether the file size of described file destination falls into pre-set interval, wherein said pre-set interval has been pre-arranged corresponding size side-play amount; When the size of described file destination falls into described pre-set interval, then the index data of the difference of the size of described file destination and described size side-play amount as described file destination is stored, thus effectively can reduce the size of the index data of file destination, save the storage space that index data takies disk.
Refer to Fig. 4, Fig. 4 is the block diagram of the another kind of device of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 3, and described device 300 can also comprise spider module 304, analysis module 305 and creation module 306; Wherein:
Described spider module 304 is configured to, and traversal file destination collection is to obtain the size that described file destination concentrates each file destination;
Described analysis module 305 is configured to, and concentrates the size of each file destination to carry out statistical study to obtain characterizing the size distribution characteristic that described file destination concentrates the size distribution rule of each file destination according to preset algorithm to described file destination;
Described creation module 306 is configured to, and the size distribution characteristic based on described each file destination creates described pre-set interval, and is that described pre-set interval arranges corresponding size side-play amount.
Refer to Fig. 5, Fig. 5 is the block diagram of the another kind of device of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 4, the size distribution characteristic of described each file destination comprises some file size distribution intervals of statistical precipitation, and falls into the quantity of described some file size distribution intervals file destination; Described creation module 306 can comprise calculating sub module 306A, comparison sub-module 306B and first and arrange submodule 306C; Wherein:
Described calculating sub module 306A is configured to, and the quantity calculating file destination in described some file size distribution intervals respectively accounts for the ratio that described file destination concentrates file destination total quantity;
Described comparison sub-module 306B is configured to, and the described ratio calculated and predetermined threshold value is compared;
Described first arranges submodule 306C is configured to, in described some file size distribution intervals, in arbitrary file size distribution interval, the quantity of file destination accounts for described file destination when concentrating the ratio of file destination total quantity to reach described predetermined threshold value, and this file size distribution interval is set to described pre-set interval.
It should be noted that, the structure that the calculating sub module 306A shown in device embodiment, the comparison sub-module 306B shown in above-mentioned Fig. 5 and first arranges submodule 306C also can be included in the device embodiment of earlier figures 3, does not limit this disclosure.
Refer to Fig. 6, Fig. 6 is the block diagram of the another kind of device of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 5, and described creation module 306 can also comprise second and arrange submodule 306D; Wherein:
Described second arranges submodule 306D is configured to, and the initial value of described pre-set interval is set to the size side-play amount of this pre-set interval.
It should be noted that, the structure that second shown in the device embodiment shown in above-mentioned Fig. 5 arranges submodule 306D also can be included in the device embodiment of earlier figures 3-4, does not limit this disclosure.
Refer to Fig. 7, Fig. 7 is the block diagram of the another kind of device of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 3, and described device 300 can also comprise the first read module 307 and the second read module 308; Wherein:
Described first read module 307 is configured to, and when receiving the read requests of described file destination, reads the index data of described file destination;
Described second read module 308 is configured to, based on the file size of the described file destination stored in described index data and described size side-play amount and actual file size as described file destination carry out digital independent.
It should be noted that, the structure of the first read module 307 shown in device embodiment shown in above-mentioned Fig. 7 and the second read module 308 also can be included in the device embodiment of earlier figures 4-6, does not limit this disclosure.
In said apparatus, the implementation procedure of the function and efficacy of modules specifically refers to the implementation procedure of corresponding step in said method, does not repeat them here.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said module illustrated as separating component can or may not be physically separates, parts as module display can be or may not be physical module, namely can be positioned at a place, or also can be distributed on multiple mixed-media network modules mixed-media.Some or all of module wherein can be selected according to the actual needs to realize the object of disclosure scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Accordingly, the disclosure also provides a kind of file storage device, and described device comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the file size of file destination;
Judge whether the file size of described file destination falls into pre-set interval; Wherein said pre-set interval has been pre-arranged corresponding size side-play amount;
When the size of described file destination falls into described pre-set interval, the index data of the difference of the size of described file destination and described size side-play amount as described file destination is stored.
Accordingly, the disclosure also provides a kind of memory device, described memory device includes storer, and one or more than one program, one of them or more than one program are stored in storer, and are configured to perform described more than one or one routine package containing the instruction for carrying out following operation by more than one or one processor:
Obtain the file size of file destination;
Judge whether the file size of described file destination falls into pre-set interval; Wherein said pre-set interval has been pre-arranged corresponding size side-play amount;
When the size of described file destination falls into described pre-set interval, the index data of the difference of the size of described file destination and described size side-play amount as described file destination is stored.
Fig. 8 is the structural representation of a kind of file storage device according to an exemplary embodiment.
As shown in Figure 8, a kind of file storage device 800 according to an exemplary embodiment, this device 800 can be mobile phone, smart machine, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 8, device 800 can comprise following one or more assembly: processing components 801, storer 802, power supply module 803, multimedia groupware 804, audio-frequency assembly 805, the interface 806 of I/O (I/O), sensor module 807, and communications component 808.
The integrated operation of the usual control device 800 of processing components 801, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 801 can comprise one or more processor 809 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 801 can comprise one or more module, and what be convenient between processing components 801 and other assemblies is mutual.Such as, processing element 801 can comprise multi-media module, mutual with what facilitate between multimedia groupware 804 and processing components 801.
Storer 802 is configured to store various types of data to be supported in the operation of device 800.The example of these data comprises for any application program of operation on device 800 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 802 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 803 is device 800 provide electric power.Power supply module 803 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 800 and be associated.
Multimedia groupware 804 is included in the screen providing an output interface between described device 800 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 804 comprises a front-facing camera and/or post-positioned pick-up head.When device 800 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 805 is configured to export and/or input audio signal.Such as, audio-frequency assembly 805 comprises a microphone (MIC), and when device 800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 802 further or be sent via communications component 808.In certain embodiments, audio-frequency assembly 805 also comprises a loudspeaker, for output audio signal.
I/O interface 802 is for providing interface between processing components 801 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 807 comprises one or more sensor, for providing the state estimation of various aspects for device 800.Such as, sensor module 807 can detect the opening/closing state of device 800, the relative positioning of assembly, such as described assembly is display and the keypad of device 800, the position of all right pick-up unit 800 of sensor module 807 or device 800 1 assemblies changes, the presence or absence that user contacts with device 800, the temperature variation of device 800 orientation or acceleration/deceleration and device 800.Sensor module 807 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 807 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 807 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 808 is configured to the communication being convenient to wired or wireless mode between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 808 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 808 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 800 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 802 of instruction, above-mentioned instruction can perform said method by the processor 809 of device 800.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and light file-storage device etc.
Wherein, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of file memory method, comprising:
Obtain the file size of file destination;
Judge whether the file size of described file destination falls into pre-set interval; Wherein said pre-set interval has been pre-arranged corresponding size side-play amount;
When the size of described file destination falls into described pre-set interval, the index data of the difference of the size of described file destination and described size side-play amount as described file destination is stored.
Accordingly, the disclosure also provides a kind of file storage device, and described device comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the file size of file destination;
Judge whether the file size of described file destination falls into pre-set interval; Wherein said pre-set interval has been pre-arranged corresponding size side-play amount;
When the size of described file destination falls into described pre-set interval, the index data of the difference of the size of described file destination and described size side-play amount as described file destination is stored.
Fig. 9 is a kind of block diagram for file storage device 900 according to an exemplary embodiment.Such as, device 900 may be provided in a storage server.
With reference to Fig. 9, device 900 comprises processing components 922, and it comprises one or more processor further, and the memory resource representated by storer 932, can such as, by the instruction of the execution of processing element 922, application program for storing.The application program stored in storer 932 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 922 is configured to perform instruction, to perform the control method of above-mentioned smart machine.
Device 900 can also comprise the power management that a power supply module 926 is configured to actuating unit 900, and a wired or wireless network interface 950 is configured to device 900 to be connected to network, and input and output (I/O) interface 958.Device 900 can operate the operating system based on being stored in storer 932, such as WindowsServerTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (11)

1. a file memory method, is characterized in that, described method comprises:
Obtain the file size of file destination;
Judge whether the file size of described file destination falls into pre-set interval; Wherein said pre-set interval has been pre-arranged corresponding size side-play amount;
When the size of described file destination falls into described pre-set interval, the index data of the difference of the size of described file destination and described size side-play amount as described file destination is stored.
2. the method for claim 1, is characterized in that, described method also comprises:
Traversal file destination collection is to obtain the size that described file destination concentrates each file destination;
The size of each file destination is concentrated to carry out statistical study to obtain characterizing the size distribution characteristic that described file destination concentrates the size distribution rule of each file destination according to preset algorithm to described file destination;
Size distribution characteristic based on described each file destination creates described pre-set interval, and is that described pre-set interval arranges corresponding size side-play amount.
3. method as claimed in claim 2, is characterized in that, the size distribution characteristic of described each file destination comprises some file size distribution intervals of statistical precipitation, and falls into the quantity of described some file size distribution intervals file destination;
The described size distribution characteristic based on described each file destination creates described size distribution interval and comprises:
The quantity calculating file destination in described some file size distribution intervals respectively accounts for the ratio that described file destination concentrates file destination total quantity;
The described ratio calculated and predetermined threshold value are compared;
When the quantity of file destination in arbitrary file size distribution interval in described some file size distribution intervals account for described file destination concentrate the ratio of file destination total quantity to reach described predetermined threshold value time, this file size distribution interval is set to described pre-set interval.
4. method as claimed in claim 3, is characterized in that, describedly comprises for described pre-set interval arranges corresponding size side-play amount:
The initial value of described pre-set interval is set to the size side-play amount of this pre-set interval.
5. the method for claim 1, is characterized in that, described method also comprises:
When receiving the read requests of described file destination, read the index data of described file destination;
Based on the file size of the described file destination stored in described index data and described size side-play amount and actual file size as described file destination carry out digital independent.
6. a file storage device, is characterized in that, described device comprises:
Acquisition module, is configured to the file size obtaining file destination;
Judge module, is configured to judge whether the file size of described file destination falls into pre-set interval; Wherein said pre-set interval has been pre-arranged corresponding size side-play amount;
Memory module, is configured to when the size of described file destination falls into described pre-set interval, is stored by the index data of the difference of the size of described file destination and described size side-play amount as described file destination.
7. device as claimed in claim 6, it is characterized in that, described device also comprises:
Spider module, is configured to traversal file destination collection to obtain the size that described file destination concentrates each file destination;
Analysis module, is configured to concentrate the size of each file destination to carry out statistical study to obtain characterizing the size distribution characteristic that described file destination concentrates the size distribution rule of each file destination according to preset algorithm to described file destination;
Creation module, the size distribution characteristic be configured to based on described each file destination creates described pre-set interval, and is that described pre-set interval arranges corresponding size side-play amount.
8. device as claimed in claim 7, is characterized in that, the size distribution characteristic of described each file destination comprises some file size distribution intervals of statistical precipitation, and falls into the quantity of described some file size distribution intervals file destination;
Described creation module comprises:
Calculating sub module, the quantity being configured to calculate respectively file destination in described some file size distribution intervals accounts for the ratio that described file destination concentrates file destination total quantity;
Comparison sub-module, is configured to the described ratio calculated and predetermined threshold value to compare;
First arranges submodule, the quantity being configured to file destination in arbitrary file size distribution interval in described some file size distribution intervals accounts for described file destination when concentrating the ratio of file destination total quantity to reach described predetermined threshold value, and this file size distribution interval is set to described pre-set interval.
9. device as claimed in claim 8, it is characterized in that, described creation module also comprises:
Second arranges submodule, is configured to the size side-play amount initial value of described pre-set interval being set to this pre-set interval.
10. device as claimed in claim 6, it is characterized in that, described device also comprises:
First read module, is configured to, when receiving the read requests of described file destination, read the index data of described file destination;
Second read module, be configured to based on the file size of the described file destination stored in described index data and described size side-play amount and actual file size as described file destination carry out digital independent.
11. 1 kinds of file storage devices, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the file size of file destination;
Judge whether the file size of described file destination falls into pre-set interval; Wherein said pre-set interval has been pre-arranged corresponding size side-play amount;
When the size of described file destination falls into described pre-set interval, the index data of the difference of the size of described file destination and described size side-play amount as described file destination is stored.
CN201510618109.6A 2015-09-24 2015-09-24 File memory method and device Active CN105205153B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510618109.6A CN105205153B (en) 2015-09-24 2015-09-24 File memory method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510618109.6A CN105205153B (en) 2015-09-24 2015-09-24 File memory method and device

Publications (2)

Publication Number Publication Date
CN105205153A true CN105205153A (en) 2015-12-30
CN105205153B CN105205153B (en) 2018-10-19

Family

ID=54952836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510618109.6A Active CN105205153B (en) 2015-09-24 2015-09-24 File memory method and device

Country Status (1)

Country Link
CN (1) CN105205153B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107544969A (en) * 2016-06-23 2018-01-05 北京搜狗科技发展有限公司 A kind of method and electronic equipment for optimizing static dictionary size
CN109710547A (en) * 2018-12-29 2019-05-03 浙江理工大学 It is a kind of industry Internet of Things in buffer memory management design and implementation method
CN110968549A (en) * 2019-11-18 2020-04-07 Oppo(重庆)智能科技有限公司 File storage method and device, electronic equipment and medium
CN113068064A (en) * 2021-03-18 2021-07-02 深圳市迅雷网络技术有限公司 Method and device for processing transmission stream media file, computer equipment and storage medium
CN116756093A (en) * 2023-08-17 2023-09-15 天津神舟通用数据技术有限公司 Large object storage and query method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW279942B (en) * 1995-11-15 1996-07-01 Myson Technology Inc Compression method for data stored in ROM and device thereof
CN1786939A (en) * 2005-11-10 2006-06-14 浙江中控技术有限公司 Real-time data compression method
CN101551820A (en) * 2009-05-13 2009-10-07 北京四维图新科技股份有限公司 Generation method and apparatus for index database of points of interest attribute
US20120296881A1 (en) * 2011-05-19 2012-11-22 International Business Machines Corporation Index Compression in a Database System
CN103235794A (en) * 2013-04-02 2013-08-07 中国科学院计算技术研究所 Method and system for expressing inverted index based on document sequence number processing
CN104091129A (en) * 2014-06-26 2014-10-08 腾讯科技(深圳)有限公司 Data processing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW279942B (en) * 1995-11-15 1996-07-01 Myson Technology Inc Compression method for data stored in ROM and device thereof
CN1786939A (en) * 2005-11-10 2006-06-14 浙江中控技术有限公司 Real-time data compression method
CN101551820A (en) * 2009-05-13 2009-10-07 北京四维图新科技股份有限公司 Generation method and apparatus for index database of points of interest attribute
US20120296881A1 (en) * 2011-05-19 2012-11-22 International Business Machines Corporation Index Compression in a Database System
CN103235794A (en) * 2013-04-02 2013-08-07 中国科学院计算技术研究所 Method and system for expressing inverted index based on document sequence number processing
CN104091129A (en) * 2014-06-26 2014-10-08 腾讯科技(深圳)有限公司 Data processing method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107544969A (en) * 2016-06-23 2018-01-05 北京搜狗科技发展有限公司 A kind of method and electronic equipment for optimizing static dictionary size
CN107544969B (en) * 2016-06-23 2021-08-03 北京搜狗科技发展有限公司 Method for optimizing size of static lexicon and electronic equipment
CN109710547A (en) * 2018-12-29 2019-05-03 浙江理工大学 It is a kind of industry Internet of Things in buffer memory management design and implementation method
CN110968549A (en) * 2019-11-18 2020-04-07 Oppo(重庆)智能科技有限公司 File storage method and device, electronic equipment and medium
CN113068064A (en) * 2021-03-18 2021-07-02 深圳市迅雷网络技术有限公司 Method and device for processing transmission stream media file, computer equipment and storage medium
CN116756093A (en) * 2023-08-17 2023-09-15 天津神舟通用数据技术有限公司 Large object storage and query method, device, equipment and medium
CN116756093B (en) * 2023-08-17 2023-11-03 天津神舟通用数据技术有限公司 Large object storage and query method, device, equipment and medium

Also Published As

Publication number Publication date
CN105205153B (en) 2018-10-19

Similar Documents

Publication Publication Date Title
CN104156149B (en) Acquisition parameters control method and device
CN105138259A (en) Operation execution method and operation execution device
CN104793846A (en) Displaying method and device for interface of application program
CN104933170A (en) Information exhibition method and device
CN105183513A (en) Application recommendation method and apparatus
CN104834559A (en) Notification message display method and device
CN104375828A (en) Method and device for optimizing memory
CN104615655A (en) Information recommendation method and device
CN105654302A (en) Payment method and device
CN105205153A (en) File storage method and device
CN104731868A (en) Method and device for intercepting advertisements
CN104899610A (en) Picture classification method and device
CN105205494A (en) Similar picture identification method and device
CN104616241A (en) Video screen-shot method and device
CN105162193A (en) Charging method and charging apparatus for terminal, and terminal
CN104615663A (en) File sorting method and device and terminal
CN104636164A (en) Generating method and device for starting page
CN105354017A (en) Information processing method and apparatus
CN105511777A (en) Session display method and device of touch display screen
CN105357386A (en) Short message sequencing method and device
CN105631450A (en) Character identifying method and device
CN105242837A (en) Application page acquisition method and terminal
CN105335061A (en) Information display method and apparatus and terminal
CN104636064A (en) Gesture generating method and device
CN103634461A (en) Mobile terminal and control method thereof

Legal Events

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