CN107766491A - File memory method and device, computer-readable recording medium, terminal - Google Patents
File memory method and device, computer-readable recording medium, terminal Download PDFInfo
- Publication number
- CN107766491A CN107766491A CN201710968285.1A CN201710968285A CN107766491A CN 107766491 A CN107766491 A CN 107766491A CN 201710968285 A CN201710968285 A CN 201710968285A CN 107766491 A CN107766491 A CN 107766491A
- Authority
- CN
- China
- Prior art keywords
- file
- storage
- stored
- dimension
- content
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/168—Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/13—File access structures, e.g. distributed indices
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/1727—Details of free space management performed by the file system
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)
- Human Computer Interaction (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A kind of file memory method and device, computer-readable recording medium, terminal, methods described include:Obtain file to be stored, and the storage file of multidimensional form corresponding to establishment;File operation space corresponding to being created for the file to be stored in default multidimensional data space;By the fills of the file to be stored in the file operation space;The file operation space that will be filled with the content of the file is converted to binary stream and stored.Above-mentioned scheme, the convenience of file operation can be improved.
Description
Technical field
, can more particularly to a kind of file memory method and device, computer the present invention relates to file system technology field
Read storage medium, terminal.
Background technology
File system, it is to be responsible for being referred to as file management system with the software mechanism of storage file information in operating system
File system, is method and data structure that operating system is used for clear and definite disk or the file on subregion, namely the group on disk
The method for knitting file, or disk or subregion or file system species for storage file can also be referred to.
File system is made up of three parts, including software relevant with file management, be managed file and implement file pipe
Data structure needed for reason.From the point of view of system perspective, file system is to carry out tissue and distribution to file memory space, is responsible for text
The system that part stores and the file of deposit is protected and retrieved.Specifically, file system establishes text by being responsible for user
Part, deposit, read, change, dump file, controlling the access of file, file etc. is cancelled when user does not use.
But as the fast development of computer software, the complexity of file system step up, existing file
The file memory method used in system, there are problems that unhandy, can not meet the operational requirements of file system.
The content of the invention
The technical problem that the embodiment of the present invention solves is how to improve the convenience of file operation.
To solve the above problems, the embodiments of the invention provide a kind of file memory method, methods described includes:
Obtain file to be stored, and the storage file of multidimensional form corresponding to establishment;
File operation space corresponding to being created for the file to be stored in default multidimensional data space;
By the fills of the file to be stored in the file operation space;
The file operation space that will be filled with the content of the file is converted to binary stream and stored.
Alternatively, described is file behaviour corresponding to the file to be stored creates in default multidimensional data space
Make space, including:
The information of the definition of the storage dimension and storage dimension of the file to be stored is set;
According to the storage dimension and the information for the definition for storing dimension, the file of the multidimensional form is split, obtained
To the file content of corresponding some;
The file content of the multiple part is set correspondingly to store the data space of dimension in the multidimensional data space respectively
In storage original position, storage direction and unit length information;
In the multidimensional data space correspondingly stores the data space of dimension, it will deposit along the storage direction and from described
Storage original position starts and every the data space position coordinates of the unit length, respectively as the file of the multiple part
Storage location of the file content of corresponding part in the multidimensional data space in content, it is described to be stored so as to obtain
File operation space of the file in the multidimensional data space.
Alternatively, methods described also includes:
The storage dimension grade of the file content of the multiple part is set, with enable it is high-grade storage dimension file content
Enough file contents to low dimensional grade operate.
Alternatively, methods described also includes:
When the file content of appropriate section changes, by the current latest edition of the file content of the appropriate section with it is upper
The part being had differences between one version is stored in the data space of the multidimensional data space respective stored dimension.
The embodiment of the present invention additionally provides a kind of file storage device, including:
First creating unit, suitable for obtaining file to be stored, and the storage file of multidimensional form corresponding to establishment;
Second creating unit, be suitable for the file to be stored created in default multidimensional data space corresponding to file
Operating space;
Fills unit, suitable for by the fills of the file to be stored in the file operation space;
Memory cell, be converted to binary stream suitable for will be filled with the file operation space of content of the file and store.
Alternatively, second creating unit, suitable for setting the storage dimension and storage dimension of the file to be stored
Definition information;According to the storage dimension and the information for the definition for storing dimension, the file of the multidimensional form is entered
Row is split, and obtains the file content of corresponding some;The file content of the multiple part is set respectively in the multidimensional
Change data space correspondingly to store storage original position in the data space of dimension, store the information of direction and unit length;
The multidimensional data space is correspondingly stored in the data space of dimension, will be originated along the storage direction and from the storage
Position starts and every the data space position coordinates of the unit length, respectively as in the file content of the multiple part
Storage location of the file content of corresponding part in the multidimensional data space, exist so as to obtain the file to be stored
File operation space in the multidimensional data space.
Alternatively, second creating unit, it is further adapted for setting storage dimension of the file content of the multiple part etc.
Level, to enable the file content of high-grade storage dimension to operate the file content of low dimensional grade.
Alternatively, described device also includes:
Difference memory cell, suitable for when the file content of appropriate section changes, by the file content of the appropriate section
Current latest edition and last revision between the part that has differences be stored in the multidimensional data space respective stored
In the data space of dimension.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, is stored thereon with computer instruction, described
The step of file memory method described in any of the above-described is performed when computer instruction is run.
The embodiment of the present invention additionally provides a kind of terminal, including memory and processor, and energy is stored on the memory
Enough computer instructions run on the processor, the processor perform any of the above-described when running the computer instruction
The step of described file memory method.
Compared with prior art, technical scheme has the following advantages that:
Above-mentioned scheme, by creating the file of multidimensional form corresponding to file to be stored, wait to deposit for described in and by described
The fills of the file of storage will be filled with the file operation space of the content of the file in the file operation space
Be converted to binary stream and store, parallelization can be realized to the file content being stored in the data space of different storage dimensions
Operation, without paying close attention to the change of file at any time during operated to file, therefore file operation can be improved just
Profit, lift the experience of user.
Further, when the content of corresponding document changes, stored only in the data space of respective dimensions corresponding
Difference section between the current version and last revision of the content of file, and be then not repeated to deposit for the part of identical content
Storage, therefore memory space can be saved, improve the utilization rate of storage resource.
Brief description of the drawings
Fig. 1 is a kind of flow chart of file memory method in the embodiment of the present invention;
Fig. 2 is the flow chart of another file memory method in the embodiment of the present invention;
Fig. 3 is the schematic diagram for the multidimensional segmentation that file is carried out in another file memory method in the embodiment of the present invention;
Fig. 4 is the example schematic to inserting data in file in another file memory method in the embodiment of the present invention;
Fig. 5 is that a kind of content of FileVersion in the embodiment of the present invention carries out the example schematic of differentiation storage;
Fig. 6 is a kind of structural representation of file storage device in the embodiment of the present invention.
Embodiment
The foundation of file system is the important milestone of operating system development, is had in the evolution of computer technology
Important meaning.But as the fast development of computer software, the complexity of system step up, it is multi-user, parallel
The operation requirement of change also becomes all the more universal, and the operating method in traditional field in units of file can not solve correlation
Resource conflict problem.
By taking COM technologies as an example, it is proposed that the concept of structured document operation, it is intended to divide by the characteristic of file structure
Section handles the different storage zone in single file, meets common requirements for access of the different processes to identical file with this.So
And this method tool is greatly limited, file to be split according to length, the method for not only splitting file is single, and
It is also extremely cumbersome in actual operating process.Therefore, the access that can only solve the resource of different storage zone in identical file is asked
Topic.For example, when program A accesses the view data in file, and program B accesses the voice data in file, using this method just
It is more suitable.
But when different programs needs to access the same asset in identical file, this method is just difficult to meet to require.
For example program A and program B be when needing sound source datas different in access voice data simultaneously, user not only it will be clear that know
The particular location of each sound source data of road, it is also necessary to which the moment pays close attention to the change of file size and content, and this is many parallel
It is extremely cumbersome during changing computing, can not even accomplishes.
To sum up, the file memory method used in the prior art in file system be there are problems that unhandy.
To solve the above-mentioned problems in the prior art, the technical scheme that the embodiment of the present invention uses is waited to deposit by creating
The file of multidimensional form corresponding to the file of storage, in the file for described in and by the fills of the file to be stored
In operating space, and the file operation space that will be filled with the content of the file is converted to binary stream and stored, can be right
The file content being stored in the data space of different storage dimensions realizes that parallelization operates, without being operated used in file
During pay close attention to the change of file at any time, therefore the convenience of file operation can be improved, lift the experience of user.
It is understandable to enable the above objects, features and advantages of the present invention to become apparent, below in conjunction with the accompanying drawings to the present invention
Specific embodiment be described in detail.
Fig. 1 shows a kind of flow chart of file memory method in the embodiment of the present invention.A kind of file as shown in Figure 1
Storage method, suitable for carrying out multidimensional storage to file, it can specifically include the steps:
Step S101:Obtain file to be stored, and the storage file of multidimensional form corresponding to establishment.
In specific implementation, the storage file of multidimensional form corresponding to the establishment, namely create multidimensional form
Each storage field in storage file, include the information of file header corresponding to establishment.
Wherein, the file header field of the storage file of the multidimensional form includes the file to be stored default
Multidimensional data space in when being stored corresponding multidimensional attribute information, such as store the quantity of dimension and each storage
The information such as the definition of dimension, when being created successfully with the storage file in corresponding multidimensional form, pass through the file header field
In the information of the contents of the section filled in, can be identified from the storage file of the multidimensional form and obtain each storage dimension
File content corresponding to degree.
Step S102:File operation corresponding to being created for the file to be stored in default multidimensional data space
Space.
In specific implementation, the file to be stored corresponding file operation in default multidimensional data space is empty
Between, for the storage of the file to be stored file that corresponding each storage location is formed in the multidimensional data space
Space.
Step S103:By the fills of the file to be stored in the file operation space.
In specific implementation, when it is determined that the multidimensional form file in the multidimensional data space file behaviour
When making space, the content of the file to be stored can be filled in corresponding file operation space, so as to wait to deposit by described
The content of the file of storage is stored in created file operation space.
Step S104:The file operation space that will be filled with the content of the file is converted to binary stream and stored.
In specific implementation, corresponded to when by the fills of the file to be stored in the multidimensional data space
File operation space in when, can with by fill by the file to be stored True Data content file operation space turn
Binary stream corresponding to being changed to simultaneously is stored in the data field of the storage file of the multidimensional form, so as to obtain described treat
The storage file of multidimensional form corresponding to the file of storage.
Above-mentioned scheme, by creating the file of multidimensional form corresponding to file to be stored, for described in and by described in
The fills of file to be stored will be filled with the file operation of the content of the file in the file operation space
Space is converted to binary stream and stored, and the file content that be stored in the data space of different storage dimensions can be realized simultaneously
Rowization operates, and without paying close attention to the change of file at any time during operated to file, therefore can improve file operation
Convenience, lift the experience of user.
Further details of introduction is carried out to the file memory method in the embodiment of the present invention below in conjunction with Fig. 2.
Referring to Fig. 2, a kind of file memory method in the embodiment of the present invention, suitable for file to be stored is stored in into multidimensional
Change in data space, can specifically use following operation to realize:
Step S201:Obtain file to be stored, and the storage file of multidimensional form corresponding to establishment.
Step S202:The information of the definition of the storage dimension and storage dimension of the file to be stored is set.
In specific implementation, storage dimension of the file to be stored in default multidimensional data space can basis
Actual needs are configured.
Referring to Fig. 3, so that file to be stored is multimedia file as an example, corresponding storage dimension can include audio and tie up
Degree, default dimensions and three kinds of authority dimension storage dimensions, audio dimension can also be divided further into as needed source of sound dimension,
Scene dimension and audio receive Object Dimension.
Wherein, the definition of audio dimension, namely the appropriate section of the multimedia file for setting audio dimension to be stored
Content information, such as the voice data of multimedia file.
The definition of default dimensions, namely appropriate section in the multimedia file that the default dimensions are stored is set
The information of content, it is voice data or video data such as according to data type, stores the multimedia file and split what is obtained
The content of video data and voice data;
The definition of the authority dimension, namely corresponding portion in the multimedia file to be stored that is stored of authority dimension is set
The information for the content divided, whether disclosed according to number, store public data and encryption data that the multi-medium data is split to obtain
Deng.
Step S203:According to the storage dimension and the information for the definition for storing dimension, by the text of the multidimensional form
Part is split, and obtains the file content of corresponding some.
In specific implementation, when the definition for being provided with storage dimension corresponding to the file to be stored and storage dimension
Information when, the file to be stored can be carried out with the information according to corresponding storage dimension and the definition for storing dimension
Segmentation, so as to obtain file content corresponding to each storage dimension.
In an embodiment of the present invention, for the ease of being operated to file, the file storage side in the embodiment of the present invention
Method can also include:
Step S204:The storage dimension grade of the file content of the multiple part is set.
In specific implementation, the storage dimension grade of the file content by setting the multiple part, so as to wait to deposit
The content of relevant portion is associated in storage file, to enable the file content of high-grade storage dimension to low dimensional grade
File content be managed operation.
Wherein, both can be with when realizing that the management of the file content of high-dimensional grade to the file content of inferior grade operates
The data of low dimensional are managed by way of spatial coordinate location mapping, can also be carried out correspondingly by other forms.Example
Such as, when carrying out man-machine interaction, first it is seen that user interface/interface(UI)The data of dimension, but by user interface/
During the data of interface dimension remove control computer bottom operation and the data of a variety of different dimensions are may included, than
Such as functional operation dimension, hardware resource management dimension, this mapping relations both can be by data in multidimensional data space
The relation between spatial coordinate location during middle storage is configured, and can also be identified by class(classid)Found etc. form
Corresponding com interface, dll file etc. realize the data of user interface/interface dimension to including functional operation dimension, hardware money
The management of the data such as source control dimension.Therefore, those skilled in the art can choose corresponding mode according to the actual needs
To realize management of the high-dimensional data to the data of low dimensional, it is not limited herein.
Step S205:The file content of the multiple part is set respectively in the corresponding storage dimension of the multidimensional data space
The information of storage original position, storage direction and unit length in the data space of degree.
In specific implementation, set the file content of the multiple part corresponding in the multidimensional data space respectively
Storage original position, storage mode and unit length in the data space of dimension, to determine the data space in corresponding dimension
In storage location, i.e. spatial coordinate location information.
Wherein, the file content of each section in more than two dimensions corresponding to the multidimensional data space
There is relevance between storage original position in data space.Specifically, in multiple storage dimensions corresponding to the contents of the section
In the data space of degree, at the end of the storage location of high-dimensional data space, the contents of the section can be pointed under
The storage original position of the data space of one low dimensional, so that the file content of the part more than two is deposited corresponding
The spatial coordinate location stored up in the data space of dimension is continuous, so as to form continuous and complete spatial data accessing curve.
Step S206:In the multidimensional data space correspondingly stores the data space of dimension, along the storage
Direction and since it is described storage original position and every in the data space position coordinates of the unit length, fill institute respectively
State the file content of corresponding part in the file content of some.
In specific implementation, when by setting the file content for some for splitting to obtain in file to be stored to distinguish
Storage dimension in the multidimensional data space, depositing in the data space for defining, corresponding to storage dimension of storage dimension
, can be with described to be stored when storing up the information of multidimensional operational attribute such as the information of original position, storage direction and unit length
File in the content of corresponding part be respectively stored in corresponding storage location in the multidimensional data space, namely in multidimensional
Change in the data space that dimension is corresponded in data space, along corresponding storage direction, opened from the corresponding storage original position
Begin, by every the spatial coordinate location of corresponding unit length, respectively as the storage location of corresponding file content.Wherein,
Spatial coordinate location corresponding to all storage locations of the file to be stored in the multidimensional data space constitutes institute
File operation space of the file to be stored in the multidimensional data space is stated, or is referred to as file operation space.
When it is determined that during file corresponding file operation space in the multidimensional data space to be stored, can with
The appropriate section of the file to be stored is filled at each spatial coordinate location in corresponding file operation space respectively
True Data content.
Step S207:The file operation space that will be filled with the content of the file is converted to binary stream and stored.
In specific implementation, when by the True Data content of all parts in the file to be stored in the multidimensional
Change and filled in data space in corresponding file operation space when completing, can be will fill by the true of the file to be stored
The file operation space of real data content is converted to corresponding binary data stream and fills in the multidimensional form created before
Storage file data field in stored.
In specific implementation, when the storage file that the file to be stored is stored in corresponding multidimensional form is completed
When, phase can also be carried out to the file content for having completed storage when the True Data content of file to be stored changes
The operation of increase, deletion and the modification answered.
In specific implementation, the file memory method in the embodiment of the present invention, it can also include:
Step S208:When the file content of appropriate section changes, by the file content of the appropriate section it is current most
The part being had differences between redaction and last revision is stored in the number in the multidimensional data space respective stored dimension
According in space.
In the present invention one is implemented, in order to save the resource of data storage, changed in the file content of appropriate section
When, by by the current latest edition of the file content of appropriate section compared with the content of last revision, it is determined that both it
Between the part that has differences, when the current latest edition of the file content to appropriate section stores, only storage is current most
Existing difference section between redaction and the content of last revision, and correspond to and keep constant content to will not be repeated again storage,
To save memory space and resource, the utilization rate of storage resource is improved.
In specific implementation, the file content of appropriate section changes, including the file content of appropriate section is current
Latest edition is compared with the content of last revision, the current latest edition of the file content of appropriate section and the content of last revision
Compare, deletion be present, increase and have modified at least one of partial file content.Specifically, can include:
When appropriate section file content current latest edition compared with the content of last revision, the text of the appropriate section of deletion
, can be according to default rule when storing the current latest edition of file content of appropriate section during the partial data of part content
Spatial coordinate location corresponding with the deletion part is then created in the data space of respective dimensions, and in the data space of establishment
The information of spatial coordinate location of the part in last revision is deleted corresponding to being recorded in position coordinates, and is deleted corresponding to addition
Mark, so that the data content in the position and the position where deletion content can be identified in follow-up operation.
When appropriate section file content current latest edition compared with the content of last revision, it is necessary to last revision
Appropriate section file content in when inserting data, can be created according to default rule in the data space of corresponding dimension
Spatial coordinate location corresponding with the insertion portion, and corresponding insertion content is filled in the spatial coordinate location created,
And the information of the insertion position of insertion mark and the insertion data corresponding to adding, it is slotting can be identified in follow-up operation
The Data Position and the true content of insertion number entered.
Referring to Fig. 4, when needing the sum of data 2 in data sequence-data 1 hereof, data 2, data 3, data 4
During according to inserting data 5 between 3, it is only necessary to the space coordinates corresponding to data 2 and data 3 in the data space of corresponding storage dimension
The corresponding spatial coordinate location of data 5 or the true content of data 5 are filled on blank node among position.Wherein,
Blank node corresponding to data 2 and data 3 among spatial coordinate location, can be determined according to the actual needs, such as work as
When data 1, data 2, data 3, the y-axis coordinate of data 4 are 0, keep other coordinate positions constant, by the y-axis coordinate of data 5
It is set to 1.
When appropriate section file content current latest edition compared with the content of last revision, it is necessary to change corresponding portion
During the partial data of the file content divided, it can be created in the data space of multidimensional data space respective dimensions and modification portion
Spatial coordinate location corresponding to point, and amended content is filled in the data space position coordinates of establishment, and add correspondingly
Location revision and modification mark information.Wherein, corresponding location revision is that part modification content is deposited in last revision
The spatial coordinate location of corresponding content during storage.
Referring to Fig. 5, for the storage dimension for FileVersion, when the more file of the file of redaction 1 and prototype version
During compared to changing, more redaction 1 and prototype version are created in the data space of the corresponding dimension of multidimensional data space
Compared to spatial coordinate location corresponding to the part having differences, and record in corresponding spatial coordinate location more redaction 1 with
Prototype version compares the content of existing difference section, and adds mark corresponding to the difference section and the position where difference section
The information put.
When renewal version 2 changes compared with more redaction 1, in the data of the corresponding dimension of multidimensional data space
Spatial coordinate location corresponding to the part that renewal version 2 has differences compared with more redaction 1 is created in space, and corresponding
The content of more redaction 1 existing difference section compared with prototype version is recorded in spatial coordinate location, and adds the difference portion
Mark corresponding to point and the information of the position where difference section.
Above-mentioned mode, by only storing the different information between adjacent version in multidimensional data space, and for
The data of repeatability no longer carry out repeating storage, can rapidly identify the information of difference section, and can save storage money
Source and memory space, improve the utilization rate of storage resource.
To sum up, using the file memory method in the embodiment of the present invention, the file tool stored in multidimensional data space
Have cross-version compatibility and can inheritance capability, file when store in multidimensional data space it is corresponding it is multidimensional operation belong to
Property, differentiation setting can be carried out according to the actual needs by such as storing dimension, can also inherit previously positioned multidimensional behaviour
Make attribute, therefore the convenience of file operation can be improved, and storage resource can be saved, improve the utilization rate of storage resource.
The above-mentioned method in the embodiment of the present invention is described in detail, below by dress corresponding to above-mentioned method
Put and be introduced.
Fig. 6 shows a kind of structure of file storage device in the embodiment of the present invention.Referring to Fig. 3, a kind of file storage
Device 60 can include the first creating unit 601, the second creating unit 602, fills unit 603 and memory cell 604, wherein:
First creating unit 601, suitable for obtaining file to be stored, and the storage text of multidimensional form corresponding to establishment
Part.
Second creating unit 602, it is suitable for the file to be stored and is created in default multidimensional data space
File operation space corresponding to building.
The fills unit 603, suitable for by the fills of the file to be stored in the file operation space.
The memory cell 604, binary system is converted to suitable for will be filled with the file operation space of content of the file
Flow and store.
In an embodiment of the present invention, second creating unit 602, suitable for setting the storage of the file to be stored
The information of the definition of dimension and storage dimension;According to the storage dimension and the information for the definition for storing dimension, by the multidimensional
The file for changing form is split, and obtains the file content of corresponding some;The file content of the multiple part is set
Storage original position in the multidimensional data space correspondingly stores the data space of dimension, storage direction and unit respectively
The information of length;In the multidimensional data space correspondingly stores the data space of dimension, will along it is described storage direction and
Since the storage original position and every the data space position coordinates of the unit length, respectively as the multiple portion
Storage location of the file content of corresponding part in the multidimensional data space in the file content divided, it is described so as to obtain
The file operation space of file to be stored in the multidimensional data space.
In an embodiment of the present invention, second creating unit 602, it is further adapted for setting in the file of the multiple part
The storage dimension grade of appearance, to enable the file content of high-grade storage dimension to carry out the file content of low dimensional grade
Operation.
In an embodiment of the present invention, described device 60 can also include difference memory cell 603, wherein:
The difference memory cell 603, suitable for when the file content of appropriate section changes, by the text of the appropriate section
The part being had differences between the current latest edition and last revision of part content is stored in the multidimensional data space phase
In the data space that dimension should be stored.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, is stored thereon with computer instruction, described
The step of described file memory method is performed when computer instruction is run.Wherein, before described file memory method refers to
The description of appropriate section is stated, will not be repeated here.
The embodiment of the present invention additionally provides a kind of terminal, including memory and processor, and energy is stored on the memory
Enough computer instructions run on the processor, the processor perform described file when running the computer instruction
The step of storage method.Wherein, described file memory method refers to the description of foregoing appropriate section, will not be repeated here.
Such scheme in the embodiment of the present invention, by creating the file of multidimensional form corresponding to file to be stored,
For it is described and by the fills of the file to be stored in the file operation space, and will be filled with the file
The file operation space of content is converted to binary stream and stored, can be to being stored in the data space of different storage dimensions
File content realizes that parallelization operates, the change without paying close attention to file during operated to file at any time, therefore can
To improve the convenience of file operation, the experience of user is lifted.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
To instruct the hardware of correlation to complete by program, the program can be stored in computer-readable recording medium, and storage is situated between
Matter can include:ROM, RAM, disk or CD etc..
The method and system of the embodiment of the present invention are had been described in detail above, the present invention is not limited thereto.Any
Art personnel, without departing from the spirit and scope of the present invention, it can make various changes or modifications, therefore the guarantor of the present invention
Shield scope should be defined by claim limited range.
Claims (10)
- A kind of 1. file memory method, it is characterised in that including:Obtain file to be stored, and the storage file of multidimensional form corresponding to establishment;File operation space corresponding to being created for the file to be stored in default multidimensional data space;By the fills of the file to be stored in the file operation space;The file operation space that will be filled with the content of the file to be stored is converted to binary stream and stored.
- 2. file memory method according to claim 1, it is characterised in that described to be preset for the file to be stored Multidimensional data space in create corresponding to file operation space, including:The information of the definition of the storage dimension and storage dimension of the file to be stored is set;According to the storage dimension and the information for the definition for storing dimension, the file of the multidimensional form is split, obtained To the file content of corresponding some;The file content of the multiple part is set correspondingly to store the data space of dimension in the multidimensional data space respectively In storage original position, storage direction and unit length information;In the multidimensional data space correspondingly stores the data space of dimension, it will deposit along the storage direction and from described Storage original position starts and every the data space position coordinates of the unit length, respectively as the file of the multiple part Storage location of the file content of corresponding part in the multidimensional data space in content, it is described to be stored so as to obtain File operation space of the file in the multidimensional data space.
- 3. file memory method according to claim 2, it is characterised in that also include:The storage dimension grade of the file content of the multiple part is set, with enable it is high-grade storage dimension file content Enough file contents to low dimensional grade operate.
- 4. file memory method according to claim 2, it is characterised in that also include:When the file content of appropriate section changes, by the current latest edition of the file content of the appropriate section with it is upper The part being had differences between one version is stored in the data space of the multidimensional data space respective stored dimension.
- A kind of 5. file storage device, it is characterised in that including:First creating unit, suitable for obtaining file to be stored, and the storage file of multidimensional form corresponding to establishment;Second creating unit, be suitable for the file to be stored created in default multidimensional data space corresponding to file Operating space;Fills unit, suitable for by the fills of the file to be stored in the file operation space;Memory cell, be converted to binary stream suitable for will be filled with the file operation space of content of the file and store.
- 6. file storage device according to claim 5, it is characterised in that second creating unit, suitable for setting institute State the information of the definition of the storage dimension and storage dimension of file to be stored;According to the storage dimension and store determining for dimension The information of justice, the file of the multidimensional form is split, and obtains the file content of corresponding some;Described in setting The storage starting in the multidimensional data space correspondingly stores the data space of dimension respectively of the file content of some The information of position, storage direction and unit length;, will in the multidimensional data space correspondingly stores the data space of dimension Along the storage direction and since the storage original position and every the data space position coordinates of the unit length, Respectively as file content the depositing in the multidimensional data space of corresponding part in the file content of the multiple part Storage space is put, so as to obtain file operation space of the file to be stored in the multidimensional data space.
- 7. file storage device according to claim 6, it is characterised in that second creating unit, be further adapted for setting The storage dimension grade of the file content of the multiple part, to enable the file content of high-grade storage dimension to low-dimensional The file content of degree grade is operated.
- 8. file storage device according to claim 6, it is characterised in that also include:Difference memory cell, suitable for when the file content of appropriate section changes, by the file content of the appropriate section Current latest edition and last revision between the part that has differences be stored in the multidimensional data space respective stored In the data space of dimension.
- 9. a kind of computer-readable recording medium, is stored thereon with computer instruction, it is characterised in that the computer instruction fortune Perform claim requires the step of file memory method described in 1 to 4 any one during row.
- 10. a kind of terminal, it is characterised in that including memory and processor, being stored on the memory can be at the place The computer instruction run on reason device, any one of perform claim requirement 1 to 4 institute when the processor runs the computer instruction The step of file memory method stated.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710968285.1A CN107766491A (en) | 2017-10-18 | 2017-10-18 | File memory method and device, computer-readable recording medium, terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710968285.1A CN107766491A (en) | 2017-10-18 | 2017-10-18 | File memory method and device, computer-readable recording medium, terminal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107766491A true CN107766491A (en) | 2018-03-06 |
Family
ID=61269741
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710968285.1A Pending CN107766491A (en) | 2017-10-18 | 2017-10-18 | File memory method and device, computer-readable recording medium, terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107766491A (en) |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6161105A (en) * | 1994-11-21 | 2000-12-12 | Oracle Corporation | Method and apparatus for multidimensional database using binary hyperspatial code |
| CN102930040A (en) * | 2012-11-13 | 2013-02-13 | 陈奇 | Media multi-dimensional content expressing method |
| CN103995861A (en) * | 2014-05-16 | 2014-08-20 | 罗敬宁 | Distributed data device, method and system based on spatial correlation |
| CN104991813A (en) * | 2015-06-04 | 2015-10-21 | 浪潮软件集团有限公司 | A method and device for data processing |
| CN105279440A (en) * | 2015-07-06 | 2016-01-27 | 深圳市美贝壳科技有限公司 | Photo file encryption method |
| CN105353994A (en) * | 2015-12-11 | 2016-02-24 | 上海斐讯数据通信技术有限公司 | Data storage method and device for three-dimensional structure and query method and device |
| CN106095436A (en) * | 2016-06-12 | 2016-11-09 | 浪潮(苏州)金融技术服务有限公司 | A kind of method using multidimensional technique construction data package |
| CN107193536A (en) * | 2017-05-18 | 2017-09-22 | 浪潮金融信息技术有限公司 | The packet processing method and system of a kind of multidimensional dynamic data |
-
2017
- 2017-10-18 CN CN201710968285.1A patent/CN107766491A/en active Pending
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6161105A (en) * | 1994-11-21 | 2000-12-12 | Oracle Corporation | Method and apparatus for multidimensional database using binary hyperspatial code |
| CN102930040A (en) * | 2012-11-13 | 2013-02-13 | 陈奇 | Media multi-dimensional content expressing method |
| CN103995861A (en) * | 2014-05-16 | 2014-08-20 | 罗敬宁 | Distributed data device, method and system based on spatial correlation |
| CN104991813A (en) * | 2015-06-04 | 2015-10-21 | 浪潮软件集团有限公司 | A method and device for data processing |
| CN105279440A (en) * | 2015-07-06 | 2016-01-27 | 深圳市美贝壳科技有限公司 | Photo file encryption method |
| CN105353994A (en) * | 2015-12-11 | 2016-02-24 | 上海斐讯数据通信技术有限公司 | Data storage method and device for three-dimensional structure and query method and device |
| CN106095436A (en) * | 2016-06-12 | 2016-11-09 | 浪潮(苏州)金融技术服务有限公司 | A kind of method using multidimensional technique construction data package |
| CN107193536A (en) * | 2017-05-18 | 2017-09-22 | 浪潮金融信息技术有限公司 | The packet processing method and system of a kind of multidimensional dynamic data |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2020000675A1 (en) | Method and device for publishing game resource package, terminal device and medium | |
| CN103080903A (en) | Scheduler, multi-core processor system, and scheduling method | |
| CN106339475A (en) | Distributed storage system for mass data | |
| CN110457666B (en) | Report generation method, system, electronic equipment and storage medium | |
| CN102289730A (en) | Graphic showing system and method for group customer relation management | |
| JP2008210001A (en) | Server transfer planning system and server transfer planning method | |
| US8909596B1 (en) | Operational-transform-compatible representation of 2-dimensional page layout data | |
| CN103617070A (en) | Virtual machine migration method and device | |
| CN109656889A (en) | File system implementation method, device, equipment and storage medium based on block chain | |
| CN108897876A (en) | A kind of data cut-in method and device | |
| US20140340396A1 (en) | Method of representing environment object in cyber-physical system using environment data model structure and computer-readable storage medium storing program therefor | |
| CN110377295A (en) | A kind of management Platform deployment method, device and equipment | |
| CN105787392A (en) | Data reading and writing control method and control device | |
| CA2885914C (en) | Managing inferred data | |
| CN110019487A (en) | A kind of database connection management method and device | |
| CN107766491A (en) | File memory method and device, computer-readable recording medium, terminal | |
| CN114356715B (en) | Memory management method, device, equipment and storage medium | |
| CN104199984A (en) | Method and device for realizing dynamic reference of function library | |
| JP2008225686A (en) | Data arrangement management device and method in distributed data processing platform, and system and program | |
| CN103095833A (en) | Updating method of cloud service system and device | |
| US20110154374A1 (en) | Apparatus and method for managing customized application | |
| CN106875152A (en) | A kind of task creation method and device | |
| CN108241626A (en) | The generation method and device of query script | |
| CN103314368B (en) | Document design is caught and is reused system | |
| CN105468304A (en) | Native memory card and management method thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180306 |
|
| RJ01 | Rejection of invention patent application after publication |