CN105205153B - File memory method and device - Google Patents

File memory method and device Download PDF

Info

Publication number
CN105205153B
CN105205153B CN201510618109.6A CN201510618109A CN105205153B CN 105205153 B CN105205153 B CN 105205153B CN 201510618109 A CN201510618109 A CN 201510618109A CN 105205153 B CN105205153 B CN 105205153B
Authority
CN
China
Prior art keywords
file destination
file
size
size distribution
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.)
Active
Application number
CN201510618109.6A
Other languages
Chinese (zh)
Other versions
CN105205153A (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.)
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 disclosure proposes a kind of file memory method of virtual reality, the method includes:Obtain the file size of file destination;Judge whether the file size of the file destination falls into pre-set interval;The wherein described pre-set interval has been pre-arranged corresponding size offset;When the size of the file destination falls into the pre-set interval, the size of the file destination and the difference of the size offset are stored as the index data of the file destination.The disclosure can effectively reduce the size of the index data of file destination, save the memory space that index data occupies disk.

Description

File memory method and device
Technical field
This disclosure relates to the communications field more particularly to file memory method and device.
Background technology
Storage device is in storage file, while storage file, can generally also make the information such as the size of this document The index area specified in disk for index data is stored, and when reading this document, reads this document from index area first The information such as size, corresponding file is read from disk further according to the size information of this document.However, due to being deposited in index area It stores up the information such as the size of file to need to occupy certain memory space, therefore when storage device is in the storage for carrying out high-volume file When, the memory space that index area occupies will increase severely.
Invention content
To overcome the problems in correlation technique, a kind of file memory method of disclosure offer and device.
According to the first aspect of the embodiments of the present disclosure, a kind of file memory method is provided, the method includes:
Obtain the file size of file destination;
Judge whether the file size of the file destination falls into pre-set interval;The wherein described pre-set interval is pre-arranged Corresponding size offset;
When the size of the file destination falls into the pre-set interval, by the size of the file destination and the size The difference of offset is stored as the index data of the file destination.
Optionally, the method further includes:
File destination collection is traversed to obtain the size that the file destination concentrates each file destination;
Concentrate the size of each file destination for statistical analysis to be characterized the file destination according to preset algorithm The file destination concentrates the size distribution characteristic of the size distribution rule of each file destination;
Size distribution characteristic based on each file destination creates the pre-set interval, and is arranged for the pre-set interval Corresponding size offset.
Optionally, the size distribution characteristic of each file destination includes several file size distribution areas that statistical is precipitated Between, and fall into the quantity of file destination in several file size distribution sections;
The size distribution characteristic based on each file destination creates the size distribution section:
The quantity for calculating separately file destination in several file size distribution sections accounts for the file destination concentration mesh Mark the ratio of total number of files amount;
The calculated ratio is compared with predetermined threshold value;
When the quantity of file destination in any file size distribution section in several file size distribution sections accounts for institute Stating file destination concentrates the ratio of file destination total quantity when reaching the predetermined threshold value, and this document size distribution section is arranged For the pre-set interval.
Optionally, described to include for the corresponding size offset of pre-set interval setting:
Set the initial value of the pre-set interval to the size offset of the pre-set interval.
Optionally, the method further includes:
When receiving the read requests of the file destination, the index data of the file destination is read;
File size based on the file destination stored in the index data and the size offset and make Digital independent is carried out for the actual file size of the file destination.
According to the second aspect of the embodiment of the present disclosure, a kind of file storage device is provided, described device includes:
Acquisition module is configured as obtaining the file size of file destination;
Judgment module, is configured as judging whether the file size of the file destination falls into pre-set interval;It is wherein described Pre-set interval has been pre-arranged corresponding size offset;
Memory module is configured as when the size of the file destination falls into the pre-set interval, by target text The size of part and the difference of the size offset are stored as the index data of the file destination.
Optionally, described device further includes:
Spider module is configured as traversal file destination collection and concentrates the big of each file destination to obtain the file destination It is small;
Analysis module is configured as concentrating the size of each file destination to unite the file destination according to preset algorithm Meter analysis is to obtain characterizing the size distribution characteristic that the file destination concentrates the size distribution rule of each file destination;
Creation module is configured as the size distribution characteristic based on each file destination and creates the pre-set interval, and For the pre-set interval, corresponding size offset is set.
Optionally, the size distribution characteristic of each file destination includes several file size distribution areas that statistical is precipitated Between, and fall into the quantity of file destination in several file size distribution sections;
The creation module includes:
Computational submodule, the quantity for being configured to calculate file destination in several file size distribution sections account for The file destination concentrates the ratio of file destination total quantity;
Comparison sub-module is configured as the calculated ratio being compared with predetermined threshold value;
First setting submodule, is configured as any file size distribution area in several file size distribution sections Between the quantity of middle file destination when accounting for the file destination ratio of file destination total quantity being concentrated to reach the predetermined threshold value, will This document size distribution section is set as the pre-set interval.
Optionally, the creation module further includes:
Second setting submodule, the size for being configured as setting the initial value of the pre-set interval to the pre-set interval are inclined Shifting amount.
Optionally, described device further includes:
First read module is configured to, when receiving the read requests of the file destination, read the file destination Index data;
Second read module, be configured as file size based on the file destination stored in the index data with The size offset and as the file destination actual file size carries out digital independent.
According to the third aspect of the embodiment of the present disclosure, a kind of file storage device is provided, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Obtain the file size of file destination;
Judge whether the file size of the file destination falls into pre-set interval;The wherein described pre-set interval is pre-arranged Corresponding size offset;
When the size of the file destination falls into the pre-set interval, by the size of the file destination and the size The difference of offset is stored as the index data of the file destination.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In the above example of the disclosure, by obtaining the file size of file destination, and the file destination is judged Whether file size falls into pre-set interval, wherein the pre-set interval has been pre-arranged corresponding size offset;When described When the size of file destination falls into the pre-set interval, then by the difference of the size of the file destination and the size offset Index data as the file destination is stored, so as to effectively reduce file destination index data it is big It is small, save the memory space that index data occupies disk.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow diagram of file memory method shown according to an exemplary embodiment;
Fig. 2 is the flow diagram of another file memory method shown according to an exemplary embodiment;
Fig. 3 is a kind of schematic block diagram of file storage device shown according to an exemplary embodiment;
Fig. 4 is the schematic block diagram of another file storage device shown according to an exemplary embodiment;
Fig. 5 is the schematic block diagram of another file storage device shown according to an exemplary embodiment;
Fig. 6 is the schematic block diagram of another file storage device shown according to an exemplary embodiment;
Fig. 7 is the schematic block diagram of another file storage device shown according to an exemplary embodiment;
Fig. 8 is a kind of structural schematic diagram for the file storage device shown according to an exemplary embodiment;
Fig. 9 is the structural representation that the file storage device is used for according to the another kind shown in an exemplary embodiment Figure.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
It is the purpose only merely for description specific embodiment in the term that the disclosure uses, is not intended to be limiting the disclosure. The "an" of singulative used in disclosure and the accompanying claims book, " described " and "the" are also intended to including majority Form, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to and wraps Containing one or more associated list items purposes, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from In the case of disclosure range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
The disclosure proposes a kind of file memory method, by obtaining the file size of file destination, and judges the target Whether the file size of file falls into pre-set interval, wherein the pre-set interval has been pre-arranged corresponding size offset; When the size of the file destination falls into the pre-set interval, then by the size of the file destination and the size offset Difference stored as the index data of the file destination, so as to effectively reduce the index data of file destination Size, save index data occupy disk memory space.
As shown in Figure 1, Fig. 1 is a kind of file memory method shown according to an exemplary embodiment, set applied to storage It is standby, include 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 the file destination falls into pre-set interval;The wherein described preset areas Between be pre-arranged corresponding size offset;
In step 103, when the size of the file destination falls into the pre-set interval, by the big of the file destination The small difference with the size offset is stored as the index data of the file destination.
Above-mentioned storage device may include storage server, mobile terminal, PC terminals or other with file storage work( The equipment of energy.
The file system of storage device is when carrying out file storage, it will usually the layout data area in the memory space of equipment And index area, data field is for storing file destination, and index area is used to store the index data of file destination.Index data is logical It is often the secondary file for improving file destination search efficiency, storage device is when storing file destination, by mesh While file storage is marked to data field, generally also can using the information such as the size of this document, initial address in disk as The index area that index data is specified in disk is stored.
When reading file destination from storage device, the size of the file destination is read from index area, in disk first In the index datas such as initial address, then further according in the index data initial address and file size from disk Corresponding position reads the file destination.If storage device when storing file destination, does not record target text in index data The size of part, then when reading the file destination, storage device is read based on the initial address in index data from disk It when the file destination, will be unable to learn the data for reading how much length, fail to cause to read.As it can be seen that file destination Size be file destination index data in essential content.
In practical applications, the size of file destination usually only takes up the memory space of very little in index area, for example, working as When file destination is small documents, file size usually only takes up the space of the several bytes in index area.However when storage device carries out When the storage of high-volume file, since quantity of documents is very big, the memory space that index area occupies will sharply increase, this will shadow Ring the search efficiency of file.
It in the present embodiment, first can be with to solve the above problems, storage device is when carrying out the storage of high-volume file File destination collection to be stored is traversed, the size that the file destination concentrates each file destination is obtained.Wherein, which can To be the set of file destination to be stored;For example, the file destination collection can be the picture of batch, character library etc..
It, can be according to preset statistical when storage device, which gets the file destination, concentrates the size of each file destination It is for statistical analysis to the size of each file destination got to analyse algorithm, to obtain the size distribution characteristic of each file destination, The size distribution characteristic can be used for characterizing the size distribution rule that above-mentioned file destination concentrates each file destination.
Wherein, above-mentioned preset statistical analysis algorithms, can be according to actual in the present embodiment without being particularly limited to Demand is selected;For example, when realizing, it is common that data statistic analysis field may be used in above-mentioned preset statistical analysis algorithms For describing the algorithms of data distribution characteristics.
When for statistical analysis to the size of each file destination got based on above-mentioned preset statistical analysis algorithms, It may include several file size distribution sections that statistical is precipitated in obtained size distribution characteristic, and fall into above-mentioned several The quantity of file destination in file size distribution section.
For example, it is assumed that the file destination integrates as character library collection, storage device can traverse the character library collection and obtain the character library collection In each character size, arrangement is ranked up to the character boundary got, then will sequence arrange after character boundary as Input data, it is for statistical analysis to obtain the size point that the character library concentrates each character based on above-mentioned preset statistical analysis algorithms Cloth rule.Assuming that it includes 100 standard characters that the character library collection, which has altogether, character of the size between 0 to 255 bytes has 15 altogether, Character of the size between 256 to 500 bytes has 80 altogether, and character of the size between 501 to 600 bytes has 5 altogether, then After based on above-mentioned preset statistical analysis algorithms statistical analysis, can obtain 3 file size distribution sections be respectively [0, 255], [256,500] and [501,600], and the number of characters that can go out to fall into statistical analysis in [0,255] section is 15, the number of characters fallen into [256,500] section is 80, and the number of characters fallen into [501,600] section is 5.
When for statistical analysis to the size of each file destination got complete based on above-mentioned preset statistical analysis algorithms Cheng Hou, the quantity that storage device can calculate separately file destination in above-mentioned several file size distribution sections account for the target text Part concentrates the ratio of file destination total quantity, is then compared the above-mentioned ratio of calculating with predetermined threshold value.When above-mentioned several The quantity of file destination accounts for the file destination and concentrates target in any file size distribution section in file size distribution section When the ratio of total number of files amount reaches above-mentioned predetermined threshold value, storage device can be by the selected index in this document size distribution section It compresses section (pre-set interval), the file destination in index compression section is fallen into for file size, storage device is to these When file destination is stored, storage is to index area after being compressed to the size of these file destinations, to save index The memory space in area.
Wherein, above-mentioned predetermined threshold value can be used for weighing the file destination that above-mentioned file destination is concentrated whether integrated distribution exist Some section in above-mentioned each file size distribution section, for example, realize when, predetermined threshold value can be set to one it is larger Value can when the quantity of the file destination in any section in above-mentioned each file size distribution section reaches the predetermined threshold value To think file size integrated distribution that above-mentioned file destination is concentrated in the section, therefore storage device can select the section It is set to index compression section, storage device, can be to this when the file destination concentrated for above-mentioned file destination is stored The size of file destination in section stores after being compressed to index area.
Such as, it will again be assumed that the file destination integrates as character library collection, and it includes 100 standard characters, size which, which has altogether, Character between 0 to 255 bytes has 15 altogether, and character of the size between 256 to 500 bytes has 80 altogether, and size is 501 5 are had altogether to the character between 600 bytes.After based on above-mentioned preset statistical analysis algorithms statistical analysis, 3 texts are obtained Part size distribution section is respectively [0,255], [256,500] and [501,600], and statistical analysis goes out to fall into [0,255] Number of characters in section is 15, and the number of characters fallen into [256,500] section is 80, falls into the character in [501,600] section Number is 5.Assuming that above-mentioned predetermined threshold value is 80%, the number of characters in [256,500] section reaches 80%, therefore storage device can be with [256,500] section is chosen to be index compression section, for the file destination in index compression section, storage device can be right The size of file destination in the section stores after being compressed to index area.
Certainly, when realizing, when the setting of above-mentioned predetermined threshold value it is smaller when, in each file size distribution section above-mentioned at this time The case where quantity that may have the file destination in multiple sections reaches the predetermined threshold value, in this case, storage Equipment can select multiple index compression sections, and to be multiple so index compression section is respectively set different ID and carries out area Point.
In the present embodiment, storage device compresses the size of the file destination in index compression section, Ke Yitong It crosses and size offset is set for above-mentioned index compression section to realize.When realizing, storage device is having selected index compression area Between after, can also be that corresponding size offset is arranged in selected index compression section, after provided with size offset, storage Equipment, can be based on the size offset to the mesh in the section when being stored to the file destination in index compression section The size of mark file is compressed.
Wherein, storage device, can be by index compression area when size offset is arranged for selected index compression section Between initial value be set as the size offset in the section.For example, it is assumed that the selected index compression section of storage device be [256, 500], then can 256 be set as size offset.
In the present embodiment, when storage device is united by the size for each file destination concentrated to above-mentioned file destination Index compression section is selected out in meter analysis, and is after selected index compression section is provided with size offset, and storage at this time is set It is standby to start to be stored for each file destination that above-mentioned file destination is concentrated.
Storage device, can be according to above-mentioned target text when being stored for each file destination in above-mentioned file destination Part concentrates the sequence of file destination to be successively read file destination, and after reading a file destination, storage device can obtain this The size of file destination, and judge whether the size of the file destination falls into selected above-mentioned index compression section, if the mesh The size of mark file falls into the index compression section, and storage device is stored by the file destination to corresponding in disk at this time It, can be using the difference of the size of the file destination and the size offset in the index compression section as the target behind data field Corresponding index area in the index datastore to disk of file.In this way, it may be implemented in index compression section The size of file destination is compressed, and so as to save the memory space of index area, contributes to the inquiry for promoting file destination Efficiency.Certainly, the file destination that above-mentioned index compression section is not fallen within for file size is being deposited due to negligible amounts It still can be handled in the way of acquiescence when storage.
Such as, it will again be assumed that the file destination integrates as character library collection, and it includes 100 standard characters which, which has altogether, is based on After above-mentioned preset statistical analysis algorithms statistical analysis, obtain 3 file size distribution sections be respectively [0,255], [256,500] and [501,600], and it is 15 that can go out fall into the number of characters in [0,255] section with statistical analysis, is fallen into Number of characters in [256,500] section is 80, and the number of characters fallen into [501,600] section is 5.Assuming that [256,500] section Be chosen to be index compression section, then storage device is when the character concentrated to above-mentioned character library stores, can will [256, 500] after the character boundary in section subtracts size offset 256, using difference as corresponding index datastore to index area. For example assume that certain character boundary in the section is that 500 bytes store the character according to default storage mode in index area Actual size needs two bytes, and (binary storage, 8 bits of a byte, the maximum value of record are 256), and by above-mentioned After size offset compresses the size of the character, the size of the character stored in index area is the character actual size 244 byte of difference of 500 bytes and offset 256, only needs one when storing the size after the character compression in index area Byte.Certainly, for the character in [0,255] and [501,600] section, since negligible amounts still can be according to acquiescence Storage mode is handled.
As it can be seen that said program can effectively reduce the rope of file destination when storage device stores large batch of file The size of argument evidence saves the memory space that index data occupies disk.
In the present embodiment, it when storage device receives the read requests for the file destination for having stored completion, deposits Storage equipment can read index data corresponding with the read requests in index area, and judging should be corresponding with the index data Whether file destination is file destination in above-mentioned index compression section, if so, storage device can will be read from index area The file size of the file destination arrived and the size offset in the index compression section and as the file destination reality File size reads the file destination from the data field in disk.Certainly, if the file destination is not above-mentioned index compression area Between in file destination, storage device can directly according to the file size of the file destination read from index area, from Read the file destination in data field in disk.
In the embodiment above, by obtaining the file size of file destination, and judge that the file of the file destination is big It is small whether to fall into pre-set interval, wherein the pre-set interval has been pre-arranged corresponding size offset;When target text When the size of part falls into the pre-set interval, then using the difference of the size of the file destination and the size offset as institute The index data for stating file destination is stored, so as to effectively reduce file destination index data size, save Index data occupies the memory space of disk.
As shown in Fig. 2, Fig. 2 is a kind of file memory method shown according to an exemplary embodiment, set applied to storage In standby, include the following steps:
In step 201, traversal file destination collection is to obtain the size that the file destination concentrates each file destination;
In step 202, the size of each file destination is concentrated to carry out statistical the file destination according to preset algorithm Analysis is to obtain characterizing the size distribution characteristic that the file destination concentrates the size distribution rule of each file destination;Each target The size distribution characteristic of file includes several file size distribution sections that statistical is precipitated, and to fall into several files big The quantity of file destination in small distributed area;
In step 203, the quantity for calculating separately file destination in several file size distribution sections accounts for the mesh Mark the ratio of file destination total quantity in file set;
In step 204, the calculated ratio is compared with predetermined threshold value;
In step 205, when target text in any file size distribution section in several file size distribution sections When the ratio that the quantity of part accounts for the file destination concentration file destination total quantity reaches the predetermined threshold value, by this document size Distributed area is set as pre-set interval, and sets the initial value of the pre-set interval to the size offset of the pre-set interval;
In step 206, the file size of file destination is obtained;
In step 207, judge whether the file size of the file destination falls into the pre-set interval;
In a step 208, when the size of the file destination falls into the pre-set interval, by the big of the file destination The small difference with the size offset is stored as the index data of the file destination.
Above-mentioned storage device may include storage server, mobile terminal, PC terminals or other with file storage work( The equipment of energy.
The file system of storage device is when carrying out file storage, it will usually the layout data area in the memory space of equipment And index area, data field is for storing file destination, and index area is used to store the index data of file destination.Index data is logical It is often the secondary file for improving file destination search efficiency, storage device is when storing file destination, by mesh While file storage is marked to data field, generally also can using the information such as the size of this document, initial address in disk as The index area that index data is specified in disk is stored.
When reading file destination from storage device, the size of the file destination is read from index area, in disk first In the index datas such as initial address, then further according in the index data initial address and file size from disk Corresponding position reads the file destination.If storage device when storing file destination, does not record target text in index data The size of part, then when reading the file destination, storage device is read based on the initial address in index data from disk It when the file destination, will be unable to learn the data for reading how much length, fail to cause to read.As it can be seen that file destination Size be file destination index data in essential content.
In practical applications, the size of file destination usually only takes up the memory space of very little in index area, for example, working as When file destination is small documents, file size usually only takes up the space of the several bytes in index area.However when storage device carries out When the storage of high-volume file, since quantity of documents is very big, the memory space that index area occupies will sharply increase, this will shadow Ring the search efficiency of file.
It in the present embodiment, first can be with to solve the above problems, storage device is when carrying out the storage of high-volume file File destination collection to be stored is traversed, the size that the file destination concentrates each file destination is obtained.Wherein, which can To be the set of file destination to be stored;For example, the file destination collection can be the picture of batch, character library etc..
It, can be according to preset statistical when storage device, which gets the file destination, concentrates the size of each file destination It is for statistical analysis to the size of each file destination got to analyse algorithm, to obtain the size distribution characteristic of each file destination, The size distribution characteristic can be used for characterizing the size distribution rule that above-mentioned file destination concentrates each file destination.
Wherein, above-mentioned preset statistical analysis algorithms, can be according to actual in the present embodiment without being particularly limited to Demand is selected;For example, when realizing, it is common that data statistic analysis field may be used in above-mentioned preset statistical analysis algorithms For describing the algorithms of data distribution characteristics.
When for statistical analysis to the size of each file destination got based on above-mentioned preset statistical analysis algorithms, It may include several file size distribution sections that statistical is precipitated in obtained size distribution characteristic, and fall into above-mentioned several The quantity of file destination in file size distribution section.
For example, it is assumed that the file destination integrates as character library collection, storage device can traverse the character library collection and obtain the character library collection In each character size, arrangement is ranked up to the character boundary got, then will sequence arrange after character boundary as Input data, it is for statistical analysis to obtain the size point that the character library concentrates each character based on above-mentioned preset statistical analysis algorithms Cloth rule.Assuming that it includes 100 standard characters that the character library collection, which has altogether, character of the size between 0 to 255 bytes has 15 altogether, Character of the size between 256 to 500 bytes has 80 altogether, and character of the size between 501 to 600 bytes has 5 altogether, then After based on above-mentioned preset statistical analysis algorithms statistical analysis, can obtain 3 file size distribution sections be respectively [0, 255], [256,500] and [501,600], and the number of characters that can go out to fall into statistical analysis in [0,255] section is 15, the number of characters fallen into [256,500] section is 80, and the number of characters fallen into [501,600] section is 5.
When for statistical analysis to the size of each file destination got complete based on above-mentioned preset statistical analysis algorithms Cheng Hou, the quantity that storage device can calculate separately file destination in above-mentioned several file size distribution sections account for the target text Part concentrates the ratio of file destination total quantity, is then compared the above-mentioned ratio of calculating with predetermined threshold value.When above-mentioned several The quantity of file destination accounts for the file destination and concentrates target in any file size distribution section in file size distribution section When the ratio of total number of files amount reaches above-mentioned predetermined threshold value, storage device can be by the selected index in this document size distribution section It compresses section (pre-set interval), the file destination in index compression section is fallen into for file size, storage device is to these When file destination is stored, storage is to index area after being compressed to the size of these file destinations, to save index The memory space in area.
Wherein, above-mentioned predetermined threshold value can be used for weighing the file destination that above-mentioned file destination is concentrated whether integrated distribution exist Some section in above-mentioned each file size distribution section, for example, realize when, predetermined threshold value can be set to one it is larger Value can when the quantity of the file destination in any section in above-mentioned each file size distribution section reaches the predetermined threshold value To think file size integrated distribution that above-mentioned file destination is concentrated in the section, therefore storage device can select the section It is set to index compression section, storage device, can be to this when the file destination concentrated for above-mentioned file destination is stored The size of file destination in section stores after being compressed to index area.
Such as, it will again be assumed that the file destination integrates as character library collection, and it includes 100 standard characters, size which, which has altogether, Character between 0 to 255 bytes has 15 altogether, and character of the size between 256 to 500 bytes has 80 altogether, and size is 501 5 are had altogether to the character between 600 bytes.After based on above-mentioned preset statistical analysis algorithms statistical analysis, 3 texts are obtained Part size distribution section is respectively [0,255], [256,500] and [501,600], and statistical analysis goes out to fall into [0,255] Number of characters in section is 15, and the number of characters fallen into [256,500] section is 80, falls into the character in [501,600] section Number is 5.Assuming that above-mentioned predetermined threshold value is 80%, the number of characters in [256,500] section reaches 80%, therefore storage device can be with [256,500] section is chosen to be index compression section, for the file destination in index compression section, storage device can be right The size of file destination in the section stores after being compressed to index area.
Certainly, when realizing, when the setting of above-mentioned predetermined threshold value it is smaller when, in each file size distribution section above-mentioned at this time The case where quantity that may have the file destination in multiple sections reaches the predetermined threshold value, in this case, storage Equipment can select multiple index compression sections, and to be multiple so index compression section is respectively set different ID and carries out area Point.
In the present embodiment, storage device compresses the size of the file destination in index compression section, Ke Yitong It crosses and size offset is set for above-mentioned index compression section to realize.When realizing, storage device is having selected index compression area Between after, can also be that corresponding size offset is arranged in selected index compression section, after provided with size offset, storage Equipment, can be based on the size offset to the mesh in the section when being stored to the file destination in index compression section The size of mark file is compressed.
Wherein, storage device, can be by index compression area when size offset is arranged for selected index compression section Between initial value be set as the size offset in the section.For example, it is assumed that the selected index compression section of storage device be [256, 500], then can 256 be set as size offset.
In the present embodiment, when storage device is united by the size for each file destination concentrated to above-mentioned file destination Index compression section is selected out in meter analysis, and is after selected index compression section is provided with size offset, and storage at this time is set It is standby to start to be stored for each file destination that above-mentioned file destination is concentrated.
Storage device, can be according to above-mentioned target text when being stored for each file destination in above-mentioned file destination Part concentrates the sequence of file destination to be successively read file destination, and after reading a file destination, storage device can obtain this The size of file destination, and judge whether the size of the file destination falls into selected above-mentioned index compression section, if the mesh The size of mark file falls into the index compression section, and storage device is stored by the file destination to corresponding in disk at this time It, can be using the difference of the size of the file destination and the size offset in the index compression section as the target behind data field Corresponding index area in the index datastore to disk of file.In this way, it may be implemented in index compression section The size of file destination is compressed, and so as to save the memory space of index area, contributes to the inquiry for promoting file destination Efficiency.Certainly, the file destination that above-mentioned index compression section is not fallen within for file size is being deposited due to negligible amounts It still can be handled in the way of acquiescence when storage.
Such as, it will again be assumed that the file destination integrates as character library collection, and it includes 100 standard characters which, which has altogether, is based on After above-mentioned preset statistical analysis algorithms statistical analysis, obtain 3 file size distribution sections be respectively [0,255], [256,500] and [501,600], and it is 15 that can go out fall into the number of characters in [0,255] section with statistical analysis, is fallen into Number of characters in [256,500] section is 80, and the number of characters fallen into [501,600] section is 5.Assuming that [256,500] section Be chosen to be index compression section, then storage device is when the character concentrated to above-mentioned character library stores, can will [256, 500] after the character boundary in section subtracts size offset 256, using difference as corresponding index datastore to index area. For example assume that certain character boundary in the section is that 500 bytes store the character according to default storage mode in index area Actual size needs two bytes, and (binary storage, 8 bits of a byte, the maximum value of record are 256), and by above-mentioned After size offset compresses the size of the character, the size of the character stored in index area is the character actual size 244 byte of difference of 500 bytes and offset 256, only needs one when storing the size after the character compression in index area Byte.Certainly, for the character in [0,255] and [501,600] section, since negligible amounts still can be according to acquiescence Storage mode is handled.
As it can be seen that said program can effectively reduce the rope of file destination when storage device stores large batch of file The size of argument evidence saves the memory space that index data occupies disk.
In the present embodiment, it when storage device receives the read requests for the file destination for having stored completion, deposits Storage equipment can read index data corresponding with the read requests in index area, and judging should be corresponding with the index data Whether file destination is file destination in above-mentioned index compression section, if so, storage device can will be read from index area The file size of the file destination arrived and the size offset in the index compression section and as the file destination reality File size reads the file destination from the data field in disk.Certainly, if the file destination is not above-mentioned index compression area Between in file destination, storage device can directly according to the file size of the file destination read from index area, from Read the file destination in data field in disk.
In the embodiment above, by obtaining the file size of file destination, and judge that the file of the file destination is big It is small whether to fall into pre-set interval, wherein the pre-set interval has been pre-arranged corresponding size offset;When target text When the size of part falls into the pre-set interval, then using the difference of the size of the file destination and the size offset as institute The index data for stating file destination is stored, so as to effectively reduce file destination index data size, save Index data occupies the memory space of disk.
Corresponding with aforementioned document storage method embodiment, the disclosure additionally provides a kind of implementation of file storage device Example.
Fig. 3 is a kind of schematic block diagram of file storage device shown according to an exemplary embodiment.
As shown in figure 3, a kind of file storage device 300 shown according to an exemplary embodiment, including:Acquisition module 301, judgment module 302 and memory module 303;Wherein:
The acquisition module 301 is configured as, and obtains the file size of file destination;
The judgment module 302 is configured as, and judges whether the file size of the file destination falls into pre-set interval;Its Described in pre-set interval be pre-arranged corresponding size offset;
The memory module 303 is configured as, will be described when the size of the file destination falls into the pre-set interval The size of file destination and the difference of the size offset are stored as the index data of the file destination.
In the embodiment above, by obtaining the file size of file destination, and judge that the file of the file destination is big It is small whether to fall into pre-set interval, wherein the pre-set interval has been pre-arranged corresponding size offset;When target text When the size of part falls into the pre-set interval, then using the difference of the size of the file destination and the size offset as institute The index data for stating file destination is stored, so as to effectively reduce file destination index data size, save Index data occupies the memory space of disk.
Fig. 4 is referred to, Fig. 4 is the block diagram of another device of the disclosure shown according to an exemplary embodiment, the implementation For example on the basis of aforementioned embodiment illustrated in fig. 3, described device 300 can also include spider module 304,305 and of analysis module Creation module 306;Wherein:
The spider module 304 is configured as, and traversal file destination collection concentrates each target text to obtain the file destination The size of part;
The analysis module 305 is configured as, and the big of each file destination is concentrated to the file destination according to preset algorithm It is small for statistical analysis to obtain characterizing the size distribution spy for the size distribution rule that the file destination concentrates each file destination Sign;
The creation module 306 is configured as, and the size distribution characteristic based on each file destination creates described default Section, and corresponding size offset is set for the pre-set interval.
Fig. 5 is referred to, Fig. 5 is the block diagram of another device of the disclosure shown according to an exemplary embodiment, the implementation Example is on the basis of aforementioned embodiment illustrated in fig. 4, if the size distribution characteristic of each file destination includes what statistical was precipitated Dry file size distribution section, and fall into the quantity of file destination in several file size distribution sections;The establishment Module 306 may include computational submodule 306A, comparison sub-module 306B and the first setting submodule 306C;Wherein:
The computational submodule 306A is configured as, and calculates separately file destination in several file size distribution sections Quantity account for the ratio that the file destination concentrates file destination total quantity;
The comparison sub-module 306B is configured as, and the calculated ratio is compared with predetermined threshold value;
The first setting submodule 306C is configured as, and any file is big in several file size distribution sections The quantity of file destination accounts for the file destination ratio of file destination total quantity is concentrated to reach described default in small distributed area When threshold value, it sets this document size distribution section to the pre-set interval.
It should be noted that computational submodule 306A, comparison sub-module shown in above-mentioned device embodiment shown in fig. 5 The structure of the setting submodules of 306B and first 306C can also be included in the device embodiment of earlier figures 3, not to this disclosure It is limited.
Fig. 6 is referred to, Fig. 6 is the block diagram of another device of the disclosure shown according to an exemplary embodiment, the implementation For example on the basis of aforementioned embodiment illustrated in fig. 5, the creation module 306 can also include the second setting submodule 306D;Its In:
The second setting submodule 306D is configured as, and sets the initial value of the pre-set interval to the pre-set interval Size offset.
It should be noted that the structure of the second setting submodule 306D shown in above-mentioned device embodiment shown in fig. 5 This disclosure can also be not limited included in the device embodiment of earlier figures 3-4.
Fig. 7 is referred to, Fig. 7 is the block diagram of another device of the disclosure shown according to an exemplary embodiment, the implementation For example on the basis of aforementioned embodiment illustrated in fig. 3, described device 300 can also include that the first read module 307 and second is read Module 308;Wherein:
First read module 307 is configured as, when receiving the read requests of the file destination, described in reading The index data of file destination;
Second read module 308 is configured as, the text based on the file destination stored in the index data Part size carries out digital independent with the size offset and as the file destination actual file size.
It should be noted that the first read module 307 and second shown in above-mentioned device embodiment shown in Fig. 7 is read The structure of module 308 can also be not limited this disclosure included in the device embodiment of earlier figures 4-6.
The function of modules and the realization process of effect specifically refer to and correspond to step in the above method in above-mentioned apparatus Realization process, details are not described herein.
For device embodiments, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component The module of explanation may or may not be physically separated, and the component shown as module can be or can also It is not physical module, you can be located at a place, or may be distributed on multiple network modules.It can be according to actual It needs that some or all of module therein is selected to realize the purpose of disclosure scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and implement.
Correspondingly, the disclosure also provides a kind of file storage device, described device includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Obtain the file size of file destination;
Judge whether the file size of the file destination falls into pre-set interval;The wherein described pre-set interval is pre-arranged Corresponding size offset;
When the size of the file destination falls into the pre-set interval, by the size of the file destination and the size The difference of offset is stored as the index data of the file destination.
Correspondingly, the disclosure also provides a kind of storage device, the storage device include memory and one or More than one program, either more than one program is stored in memory and is configured to by one or one for one of them It includes the instruction for being operated below that a above processor, which executes the one or more programs,:
Obtain the file size of file destination;
Judge whether the file size of the file destination falls into pre-set interval;The wherein described pre-set interval is pre-arranged Corresponding size offset;
When the size of the file destination falls into the pre-set interval, by the size of the file destination and the size The difference of offset is stored as the index data of the file destination.
Fig. 8 is a kind of structural schematic diagram of file storage device shown according to an exemplary embodiment.
As shown in figure 8, a kind of file storage device 800 shown according to an exemplary embodiment, the device 800 can be Mobile phone, smart machine, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment are set It is standby, body-building equipment, personal digital assistant etc..
With reference to Fig. 8, device 800 may include following one or more components:Processing component 801, memory 802, power supply Component 803, multimedia component 804, audio component 805, the interface 806 of input/output (I/O), sensor module 807, and Communication component 808.
The integrated operation of 801 usual control device 800 of processing component, such as with display, call, data communication, phase Machine operates and record operates associated operation.Processing component 801 may include that one or more processors 809 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 801 may include one or more modules, just Interaction between processing component 801 and other assemblies.For example, processing component 801 may include multi-media module, it is more to facilitate Interaction between media component 804 and processing component 801.
Memory 802 is configured as storing various types of data to support the operation in device 800.These data are shown Example includes instruction for any application program or method that are operated on device 800, contact data, and telephone book data disappears Breath, picture, video etc..Memory 802 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 803 provides electric power for the various assemblies of device 800.Power supply module 803 may include power management system System, one or more power supplys and other generated with for device 800, management and the associated component of distribution electric power.
Multimedia component 804 is included in the screen of one output interface of offer between described device 800 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 804 includes a front camera and/or rear camera.When device 800 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 805 is configured as output and/or input audio signal.For example, audio component 805 includes a Mike Wind (MIC), when device 800 is in operation mode, when such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The received audio signal can be further stored in memory 802 or via communication set Part 808 is sent.In some embodiments, audio component 805 further includes a loud speaker, is used for exports audio signal.
I/O interfaces 802 provide interface between processing component 801 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor module 807 includes one or more sensors, and the state for providing various aspects for device 800 is commented Estimate.For example, sensor module 807 can detect the state that opens/closes of device 800, and the relative positioning of component, for example, it is described Component is the display and keypad of device 800, and sensor module 807 can be with 800 1 components of detection device 800 or device Position change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800 Temperature change.Sensor module 807 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 807 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 808 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation In example, communication component 808 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 808 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application application-specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of Such as include the memory 802 of instruction, above-metioned instruction can be executed by the processor 809 of device 800 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With light file-storage device etc..
Wherein, when the instruction in the storage medium is executed by the processor of mobile terminal so that mobile terminal can A kind of file memory method is executed, including:
Obtain the file size of file destination;
Judge whether the file size of the file destination falls into pre-set interval;The wherein described pre-set interval is pre-arranged Corresponding size offset;
When the size of the file destination falls into the pre-set interval, by the size of the file destination and the size The difference of offset is stored as the index data of the file destination.
Correspondingly, the disclosure also provides a kind of file storage device, described device includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Obtain the file size of file destination;
Judge whether the file size of the file destination falls into pre-set interval;The wherein described pre-set interval is pre-arranged Corresponding size offset;
When the size of the file destination falls into the pre-set interval, by the size of the file destination and the size The difference of offset is stored as the index data of the file destination.
Fig. 9 is a kind of block diagram for file storage device 900 shown according to an exemplary embodiment.For example, device 900 may be provided as a storage server.
With reference to Fig. 9, device 900 includes processing component 922, further comprises one or more processors, and by depositing Memory resource representated by reservoir 932, can be by the instruction of the execution of processing component 922, such as application program for storing.It deposits The application program stored in reservoir 932 may include it is one or more each correspond to one group of instruction module.This Outside, processing component 922 is configured as executing instruction, to execute the control method of above-mentioned smart machine.
Device 900 can also include the power management that a power supply module 926 is configured as executive device 900, and one has Line or radio network interface 950 are configured as device 900 being connected to network and input and output (I/O) interface 958.Dress Setting 900 can operate based on the operating system for being stored in memory 932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (11)

1. a kind of file memory method, which is characterized in that the method includes:
Obtain the file size of file destination;
Judge whether the file size of the file destination falls into pre-set interval;The wherein described pre-set interval has been pre-arranged pair The size offset answered;
When the size of the file destination falls into the pre-set interval, the size of the file destination and the size are deviated The difference of amount is stored as the index data of the file destination.
2. the method as described in claim 1, which is characterized in that the method further includes:
File destination collection is traversed to obtain the size that the file destination concentrates each file destination;
Concentrate the size of each file destination for statistical analysis to obtain described in characterization the file destination according to preset algorithm File destination concentrates the size distribution characteristic of the size distribution rule of each file destination;
Size distribution characteristic based on each file destination creates the pre-set interval, and is corresponded to for pre-set interval setting Size offset.
3. method as claimed in claim 2, which is characterized in that the size distribution characteristic of each file destination includes statistical Several file size distribution sections being precipitated, and fall into the quantity of file destination in several file size distribution sections;
The size distribution characteristic based on each file destination creates the size distribution section:
The quantity for calculating separately file destination in several file size distribution sections accounts for the file destination concentration target text The ratio of part total quantity;
The calculated ratio is compared with predetermined threshold value;
When the quantity of file destination in any file size distribution section in several file size distribution sections accounts for the mesh When the ratio of file destination total quantity reaches the predetermined threshold value in mark file set, it sets this document size distribution section to institute State pre-set interval.
4. method as claimed in claim 3, which is characterized in that described that corresponding size offset is arranged for the pre-set interval Including:
Set the initial value of the pre-set interval to the size offset of the pre-set interval.
5. the method as described in claim 1, which is characterized in that the method further includes:
When receiving the read requests of the file destination, the index data of the file destination is read;
File size based on the file destination stored in the index data and the size offset and as institute The actual file size for stating file destination carries out digital independent.
6. a kind of file storage device, which is characterized in that described device includes:
Acquisition module is configured as obtaining the file size of file destination;
Judgment module, is configured as judging whether the file size of the file destination falls into pre-set interval;It is wherein described default Section has been pre-arranged corresponding size offset;
Memory module is configured as when the size of the file destination falls into the pre-set interval, by the file destination The difference of size and the size offset is stored as the index data of the file destination.
7. device as claimed in claim 6, which is characterized in that described device further includes:
Spider module is configured as traversal file destination collection to obtain the size that the file destination concentrates each file destination;
Analysis module is configured as concentrating the size of each file destination to carry out statistical the file destination according to preset algorithm Analysis is to obtain characterizing the size distribution characteristic that the file destination concentrates the size distribution rule of each file destination;
Creation module is configured as the size distribution characteristic based on each file destination and creates the pre-set interval, and is institute It states pre-set interval and corresponding size offset is set.
8. device as claimed in claim 7, which is characterized in that the size distribution characteristic of each file destination includes statistical Several file size distribution sections being precipitated, and fall into the quantity of file destination in several file size distribution sections;
The creation module includes:
Computational submodule, be configured to calculate file destination in several file size distribution sections quantity account for it is described File destination concentrates the ratio of file destination total quantity;
Comparison sub-module is configured as the calculated ratio being compared with predetermined threshold value;
First setting submodule, is configured as in several file size distribution sections in any file size distribution section When the ratio that the quantity of file destination accounts for the file destination concentration file destination total quantity reaches the predetermined threshold value, by this article Part size distribution section is set as the pre-set interval.
9. device as claimed in claim 8, which is characterized in that the creation module further includes:
Second setting submodule is configured as setting the initial value of the pre-set interval to the size offset of the pre-set interval Amount.
10. device as claimed in claim 6, which is characterized in that described device further includes:
First read module is configured to read the rope of the file destination when receiving the read requests of the file destination Argument evidence;
Second read module, be configured as file size based on the file destination stored in the index data with it is described Size offset and as the file destination actual file size carries out digital independent.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is handled The step of any one of claim 1-5 the methods are realized when device executes.
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 CN105205153A (en) 2015-12-30
CN105205153B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107544969B (en) * 2016-06-23 2021-08-03 北京搜狗科技发展有限公司 Method for optimizing size of static lexicon and electronic equipment
CN109710547B (en) * 2018-12-29 2020-12-08 浙江理工大学 Buffer memory management design and implementation method in industrial Internet of things
CN110968549B (en) * 2019-11-18 2024-03-29 Oppo(重庆)智能科技有限公司 File storage method, device, electronic equipment and medium
CN113068064B (en) * 2021-03-18 2023-09-05 深圳市迅雷网络技术有限公司 Method, device, computer equipment and storage medium for processing transmission stream media file
CN114218621A (en) * 2021-12-15 2022-03-22 北京鼎普科技股份有限公司 Small file rapid checking method and device, electronic equipment and storage medium
CN116756093B (en) * 2023-08-17 2023-11-03 天津神舟通用数据技术有限公司 Large object storage and query method, device, equipment and medium

Citations (5)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8635195B2 (en) * 2011-05-19 2014-01-21 International Business Machines Corporation Index compression in a database system

Patent Citations (5)

* 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
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

Also Published As

Publication number Publication date
CN105205153A (en) 2015-12-30

Similar Documents

Publication Publication Date Title
CN105205153B (en) File memory method and device
US11740694B2 (en) Managing and mapping multi-sided touch
CN104038536B (en) Plug-in unit communication means and device
CN104375828B (en) Memory Optimize Method and device
CN105607857B (en) page selection method and device
CN105512545B (en) Access rights management method and device
CN103324394B (en) For input control method and the mobile terminal of mobile terminal
CN108334352A (en) Notification message processing method, device, electronic equipment and storage medium
CN105389113B (en) Application control method, apparatus based on gesture and terminal
CN108038102A (en) Recommendation method, apparatus, terminal and the storage medium of facial expression image
CN108401487A (en) The frequency domain information indicating means of the public control resource collection of remaining critical system information
CN109992119A (en) A kind of display methods of interface of input method, device and equipment
CN105955808B (en) The task management method and device of instant messaging application
CN109922098A (en) A kind of content share method, device and the device for content share
CN108446178A (en) Optimize the method and device of interim card
CN105426904B (en) Photo processing method, device and equipment
CN104850592B (en) The method and apparatus for generating model file
CN105975428A (en) Method and device for displaying character and terminal
CN107729439A (en) Obtain the methods, devices and systems of multi-medium data
CN108804684A (en) A kind of data processing method and device
CN108810409A (en) One kind is taken pictures guidance method, terminal device and computer-readable medium
CN105847675A (en) Camera mode switching method, apparatus and mobile device
CN105205101A (en) Evaluation method and device for network information, and terminal
CN105487795B (en) The operation interface setting method and device of singlehanded pattern
CN114647623A (en) Folder processing method, intelligent terminal and storage medium

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