CN103020144B - File management system and file management method - Google Patents

File management system and file management method Download PDF

Info

Publication number
CN103020144B
CN103020144B CN201210477748.1A CN201210477748A CN103020144B CN 103020144 B CN103020144 B CN 103020144B CN 201210477748 A CN201210477748 A CN 201210477748A CN 103020144 B CN103020144 B CN 103020144B
Authority
CN
China
Prior art keywords
file
string
character string
filename
memory location
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
CN201210477748.1A
Other languages
Chinese (zh)
Other versions
CN103020144A (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.)
Uf Automotive Information Technology (shanghai) Ltd By Share Ltd
Original Assignee
Uf Automotive Information Technology (shanghai) Ltd By Share Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Uf Automotive Information Technology (shanghai) Ltd By Share Ltd filed Critical Uf Automotive Information Technology (shanghai) Ltd By Share Ltd
Priority to CN201210477748.1A priority Critical patent/CN103020144B/en
Publication of CN103020144A publication Critical patent/CN103020144A/en
Application granted granted Critical
Publication of CN103020144B publication Critical patent/CN103020144B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention provides a kind of file management system, comprising: text string generation unit, in the process stored file, according to pre-defined rule, the memory location of described file is generated as corresponding character string; Document handling unit, for using the filename of described character string as described file; Storage unit, for storing the file after described document handling unit process.The invention allows for a kind of file management method.By technical scheme of the present invention, the filename of the file being in different memory location can be avoided to repeat, be conducive to realizing the management to distributed document.

Description

File management system and file management method
Technical field
The present invention relates to art file management technology field, in particular to a kind of file management system and a kind of file management method.
Background technology
Current software application system generally all can be mutual with file system, and file management is one of basic function of application system.If application system needs receive or generate a large amount of files, that will propose higher requirement to file management method, current file management method relies on the file management mode of operating system, need to specify particular category as memory location, sectional lists preserves file, there is the risk that filename repeats, and can not managing distributed file.
Therefore, need a kind of new art file management technology, the filename of the file being in different memory location can be avoided to repeat, be conducive to realizing the management to distributed document.
Summary of the invention
The present invention, just based on the problems referred to above, proposes a kind of new art file management technology, and the filename of the file being in different memory location can be avoided to repeat, and is conducive to realizing the management to distributed document.
In view of this, the present invention proposes a kind of file management system, comprising: text string generation unit, in the process stored file, according to pre-defined rule, the memory location of described file is generated as corresponding character string; Document handling unit, for using the filename of described character string as described file; Storage unit, for storing the file after described document handling unit process.
In this technical scheme, the memory location according to file generates corresponding filename, effectively can avoid having identical filename at the file of different memory location, thus be conducive to the management of system for distributed document.
In technique scheme, preferably, the memory location of described file comprises: the physical machine residing for described file, and the store path on described physical machine.
In technique scheme, preferably, described text string generation unit, specifically for: position process subelement, for described memory location is divided into multiple concrete positional information, and generates the character string corresponding to described positional information; Random string generates subelement, for generating one section of random string, is divided into groups successively by described random string, to correspond respectively to the character string of described positional information; First string processing subelement, for the character string of each described positional information is carried out xor operation with corresponding random string respectively, to generate character string after corresponding process respectively; Title generates subelement, for by after character string after all described process and the splicing of described random string, as the filename of described file.
In technique scheme, preferably, also comprise: ff unit, for the filename according to file to be found, determine corresponding memory location, to obtain this file to be found.
In this technical scheme, system, according to the filename of file, can separate out corresponding file storage location by Directly solution, waits operation, thus reduces the consumption for system resource, the treatment effeciency of raising system without the need to repeatedly retrieving file.
In technique scheme, preferably, described ff unit comprises: filename segmentation subelement, for according to pre-defined rule, described filename is divided into character string and random string after the segmentation corresponding to each positional information; Random string segmentation subelement, for described random string is divided into multistage, with corresponding with character string after described segmentation; Second string processing subelement, for every section of random string is carried out xor operation with character string after corresponding described segmentation, to obtain corresponding positional information; Position acquisition subelement, for being spliced into the memory location of described file to be found by all positional informations.
According to another aspect of the invention, also proposed a kind of file management method, comprising: step 202, in the process that file is stored, according to pre-defined rule, the memory location of described file is generated as corresponding character string; Step 204, using the filename of described character string as described file.
In this technical scheme, the memory location according to file generates corresponding filename, effectively can avoid having identical filename at the file of different memory location, thus be conducive to the management of system for distributed document.
In technique scheme, preferably, the memory location of described file comprises: the physical machine residing for described file, and the store path on described physical machine.
In technique scheme, preferably, described step 202 comprises: described memory location is divided into multiple concrete positional information, and generates the character string corresponding to described positional information; Generate one section of random string, described random string is divided into groups successively, to correspond respectively to the character string of described positional information; The character string of each described positional information is carried out xor operation with corresponding random string respectively, to generate character string after corresponding process respectively; After character string after all described process and the splicing of described random string, as the filename of described file.
In technique scheme, preferably, after described step 204, also comprise: step 206, according to the filename of file to be found, determine corresponding memory location, to obtain this file to be found.
In this technical scheme, system, according to the filename of file, can separate out corresponding file storage location by Directly solution, waits operation, thus reduces the consumption for system resource, the treatment effeciency of raising system without the need to repeatedly retrieving file.
In technique scheme, preferably, described step 206 comprises: according to pre-defined rule, described filename is divided into character string and random string after the segmentation corresponding to each positional information; Described random string is divided into multistage, with corresponding with character string after described segmentation; Every section of random string is carried out xor operation with character string after corresponding described segmentation, to obtain corresponding positional information, all positional informations is spliced into the memory location of described file to be found.
By above technical scheme, the filename of the file being in different memory location can be avoided to repeat, be conducive to realizing the management to distributed document.
Accompanying drawing explanation
Fig. 1 shows the block diagram of file management system according to an embodiment of the invention;
Fig. 2 shows the process flow diagram of file management method according to an embodiment of the invention;
Fig. 3 shows according to an embodiment of the invention by abstract for the physical location of the file schematic diagram for logical file;
Fig. 4 shows according to an embodiment of the invention to the schematic diagram that filename is encoded;
Fig. 5 shows according to an embodiment of the invention to the schematic diagram that filename is decoded.
Embodiment
In order to more clearly understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail.It should be noted that, when not conflicting, the feature in the embodiment of the application and embodiment can combine mutually.
Set forth a lot of detail in the following description so that fully understand the present invention; but; the present invention can also adopt other to be different from other modes described here and implement, and therefore, protection scope of the present invention is not by the restriction of following public specific embodiment.
Fig. 1 shows the block diagram of file management system according to an embodiment of the invention.
As shown in Figure 1, file management system 100 according to an embodiment of the invention, comprising: text string generation unit 102, in the process stored file, according to pre-defined rule, the memory location of described file is generated as corresponding character string; Document handling unit 104, for using the filename of described character string as described file; Storage unit 106, for storing the file after described document handling unit process.
In this technical scheme, the memory location according to file generates corresponding filename, effectively can avoid having identical filename at the file of different memory location, thus be conducive to the management of system for distributed document.
In technique scheme, preferably, the memory location of described file comprises: the physical machine residing for described file, and the store path on described physical machine.
In technique scheme, preferably, described text string generation unit 102, specifically for: position process subelement 1022, for described memory location is divided into multiple concrete positional information, and generates the character string corresponding to described positional information; Random string generates subelement 1024, for generating one section of random string, is divided into groups successively by described random string, to correspond respectively to the character string of described positional information; First string processing subelement 1026, for the character string of each described positional information is carried out xor operation with corresponding random string respectively, to generate character string after corresponding process respectively; Title generates subelement 1028, for by after character string after all described process and the splicing of described random string, as the filename of described file.
In technique scheme, preferably, also comprise: ff unit 108, for the filename according to file to be found, determine corresponding memory location, to obtain this file to be found.
In this technical scheme, system, according to the filename of file, can separate out corresponding file storage location by Directly solution, waits operation, thus reduces the consumption for system resource, the treatment effeciency of raising system without the need to repeatedly retrieving file.
In technique scheme, preferably, described ff unit 108 comprises: filename segmentation subelement 1082, for according to pre-defined rule, described filename is divided into character string and random string after the segmentation corresponding to each positional information; Random string segmentation subelement 1084, for described random string is divided into multistage, with corresponding with character string after described segmentation; Second string processing subelement 1086, for every section of random string is carried out xor operation with character string after corresponding described segmentation, to obtain corresponding positional information; Position acquisition subelement 1088, for being spliced into the memory location of described file to be found by all positional informations.
Fig. 2 shows the process flow diagram of file management method according to an embodiment of the invention.
As shown in Figure 2, file management method according to an embodiment of the invention, comprising: step 202, in the process stored file, according to pre-defined rule, the memory location of described file is generated as corresponding character string; Step 204, using the filename of described character string as described file.
In this technical scheme, the memory location according to file generates corresponding filename, effectively can avoid having identical filename at the file of different memory location, thus be conducive to the management of system for distributed document.
In technique scheme, preferably, the memory location of described file comprises: the physical machine residing for described file, and the store path on described physical machine.
In technique scheme, preferably, described step 202 comprises: described memory location is divided into multiple concrete positional information, and generates the character string corresponding to described positional information; Generate one section of random string, described random string is divided into groups successively, to correspond respectively to the character string of described positional information; The character string of each described positional information is carried out xor operation with corresponding random string respectively, to generate character string after corresponding process respectively; After character string after all described process and the splicing of described random string, as the filename of described file.
In technique scheme, preferably, after described step 204, also comprise: step 206, according to the filename of file to be found, determine corresponding memory location, to obtain this file to be found.
In this technical scheme, system, according to the filename of file, can separate out corresponding file storage location by Directly solution, waits operation, thus reduces the consumption for system resource, the treatment effeciency of raising system without the need to repeatedly retrieving file.
In technique scheme, preferably, described step 206 comprises: according to pre-defined rule, described filename is divided into character string and random string after the segmentation corresponding to each positional information; Described random string is divided into multistage, with corresponding with character string after described segmentation; Every section of random string is carried out xor operation with character string after corresponding described segmentation, to obtain corresponding positional information, all positional informations is spliced into the memory location of described file to be found.
In the inventive solutions, the management for file mainly comprises three parts, below in conjunction with Fig. 3 to Fig. 5, is described in detail respectively to each part.
One, abstract formation logical file is carried out to physical location
Fig. 3 shows according to an embodiment of the invention by abstract for the physical location of the file schematic diagram for logical file.
As shown in Figure 3, be separated by file by NameNode with DataNode two levels of abstraction with actual storage locations, NameNode represents the IP of physical machine, and what DataNode then represented that this machine has can the physical storage locations of storage file.To preserve the abstract of multiple physical machine in FileSys.xml, this file is the important evidence of filename being carried out to Code And Decode, and this file further comprises access physical machine, operating right etc. additional information in addition.
Two, the cataloged procedure of filename
Fig. 4 shows according to an embodiment of the invention to the schematic diagram that filename is encoded.
When writing a file to file management system, from FileSys.xml, an available position is selected to store this file by documentor, and the physical location encoded of this file is formed a CHAR, character string is also as the filename storing this file.
As shown in Figure 4, this cataloged procedure specifically comprises:
1. select a physical storage locations by documentor;
2. the NameNode coding in physical location is become the 16 system character strings that length is 4;
3. the DataNode coding in physical location is become the 16 system character strings that length is 4;
4. the directory name coding under DataNode is become the 16 system character strings that length is 8;
5. stochastic generation length is the 16 system character strings of 8;
6. use random code to do xor operation to section character string of 3 above;
7. 4 sections of character strings and source file suffix name are spliced and become definitive document name.
Three, the decode procedure of filename
Fig. 5 shows according to an embodiment of the invention to the schematic diagram that filename is decoded.
The decoding of filename is the reverse procedure of coding, and will obtain 3 segment tables and show the character string of file physical location after being decoded by filename by rule, documentor uses FileSys.xml to determine final physical storage locations.
As shown in Figure 5, this decode procedure specifically comprises:
1. filename is divided into 5 parts, to be length be respectively 4 NameNode, the length DataNode that is 4, the length directory name that is 8, length be 8 random code and file name suffix;
2. use random code to do xor operation with first 3 sections respectively;
3. in FileSys.xml, retrieve the physical machine representated by it according to NameNode;
4. in FileSyste.xml, retrieve the memory location representated by it according to DataNode;
5. determine the next stage catalogue of this file in memory location according to directory name;
6. physical machine, memory location, directory name, filename 4 part are spliced into concrete access path.
More than be described with reference to the accompanying drawings technical scheme of the present invention, by technical scheme of the present invention, achieved:
1, become a file management system in logic by abstract for the file storage location of distribution, the true physical location of file during user's operation file, need not be concerned about.When file management system dilatation, migration, only need the related abstractions revised in fileSys.xml to configure, the normal file operation of user can not be affected, the service ability of file management system is got a promotion.
2, eliminate the central point in traditional file management method, do not need central point preserve the index of file and provide document alignment function.Can locating file physical location accurately as long as obtain fileSys.xml and filename coding and decoding rule in the method.Central point is avoided to become performance bottleneck and the Single Point of Faliure risk of file operation.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. a file management system, is characterized in that, comprising:
Text string generation unit, in the process stored file, is generated as corresponding character string according to pre-defined rule by the memory location of described file;
Document handling unit, for using the filename of described character string as described file;
Storage unit, for storing the file after described document handling unit process;
Described text string generation unit specifically comprises:
Position process subelement, for described memory location is divided into multiple concrete positional information, and generates the character string corresponding to described positional information;
Random string generates subelement, for generating one section of random string, is divided into groups successively by described random string, obtains the random string after dividing into groups, to correspond respectively to the character string of described positional information;
First string processing subelement, for the character string of each described positional information is carried out xor operation with the random string after corresponding described grouping respectively, to generate character string after corresponding process respectively;
Title generates subelement, for by after the described random string splicing before character string after all described process and grouping, as the filename of described file.
2. file management system according to claim 1, is characterized in that, the memory location of described file comprises: the physical machine residing for described file, and the store path on described physical machine.
3. file management system according to claim 1 and 2, is characterized in that, also comprises:
Ff unit, for the filename according to file to be found, determines corresponding memory location, to obtain this file to be found.
4. file management system according to claim 3, is characterized in that, described ff unit comprises:
Filename segmentation subelement, for according to pre-defined rule, is divided into character string and random string after the segmentation corresponding to each positional information by described filename;
Random string segmentation subelement, for described random string is divided into multistage, with corresponding with character string after described segmentation;
Second string processing subelement, for every section of random string is carried out xor operation with character string after corresponding described segmentation, to obtain corresponding positional information;
Position acquisition subelement, for being spliced into the memory location of described file to be found by all positional informations.
5. a file management method, is characterized in that, comprising:
Step 202, in the process stored file, is generated as corresponding character string according to pre-defined rule by the memory location of described file;
Step 204, using the filename of described character string as described file;
Described step 202 comprises:
Described memory location is divided into multiple concrete positional information, and generates the character string corresponding to described positional information;
Generate one section of random string, described random string is divided into groups successively, obtain the random string after dividing into groups, to correspond respectively to the character string of described positional information;
The character string of each described positional information is carried out xor operation with the random string after corresponding described grouping respectively, to generate character string after corresponding process respectively;
After the described random string splicing before character string after all described process and grouping, as the filename of described file.
6. file management method according to claim 5, is characterized in that, the memory location of described file comprises: the physical machine residing for described file, and the store path on described physical machine.
7. the file management method according to claim 5 or 6, is characterized in that, after described step 204, also comprises:
Step 206, according to the filename of file to be found, determines corresponding memory location, to obtain this file to be found.
8. file management method according to claim 7, is characterized in that, described step 206 comprises:
According to pre-defined rule, described filename is divided into character string and random string after the segmentation corresponding to each positional information;
Described random string is divided into multistage, with corresponding with character string after described segmentation;
Every section of random string is carried out xor operation with character string after corresponding described segmentation, to obtain corresponding positional information, all positional informations is spliced into the memory location of described file to be found.
CN201210477748.1A 2012-11-21 2012-11-21 File management system and file management method Active CN103020144B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210477748.1A CN103020144B (en) 2012-11-21 2012-11-21 File management system and file management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210477748.1A CN103020144B (en) 2012-11-21 2012-11-21 File management system and file management method

Publications (2)

Publication Number Publication Date
CN103020144A CN103020144A (en) 2013-04-03
CN103020144B true CN103020144B (en) 2015-11-18

Family

ID=47968748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210477748.1A Active CN103020144B (en) 2012-11-21 2012-11-21 File management system and file management method

Country Status (1)

Country Link
CN (1) CN103020144B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10127244B2 (en) * 2014-06-04 2018-11-13 Harris Corporation Systems and methods for dynamic data storage
JP6362452B2 (en) * 2014-07-03 2018-07-25 キヤノン株式会社 Information processing apparatus, information processing apparatus control method, and program
CN104202384A (en) * 2014-08-27 2014-12-10 四川长虹电器股份有限公司 File uploading and searching method of distributed file system
CN105808535A (en) * 2014-12-29 2016-07-27 上海淳洲电子科技有限公司 An ini file reading method
CN105590064B (en) * 2015-12-14 2018-10-19 中国建设银行股份有限公司 Document handling method, document handling apparatus and file server
CN105893539B (en) * 2016-03-31 2018-01-19 广东欧珀移动通信有限公司 IMEI number lookup method, device and mobile terminal
CN110222048B (en) * 2019-05-06 2023-06-23 平安科技(深圳)有限公司 Sequence generation method, device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547303A (en) * 2008-03-27 2009-09-30 索尼株式会社 Imaging apparatus, character information association method and character information association program
CN101669109A (en) * 2007-04-27 2010-03-10 惠普发展公司,有限责任合伙企业 With the file storage location that separates method and system as unified file storage
CN102486821A (en) * 2010-12-02 2012-06-06 北大方正集团有限公司 Word stock copyright control method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040236752A1 (en) * 2003-05-19 2004-11-25 Keli Han Document sharing in a distributed server system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101669109A (en) * 2007-04-27 2010-03-10 惠普发展公司,有限责任合伙企业 With the file storage location that separates method and system as unified file storage
CN101547303A (en) * 2008-03-27 2009-09-30 索尼株式会社 Imaging apparatus, character information association method and character information association program
CN102486821A (en) * 2010-12-02 2012-06-06 北大方正集团有限公司 Word stock copyright control method and device

Also Published As

Publication number Publication date
CN103020144A (en) 2013-04-03

Similar Documents

Publication Publication Date Title
CN103020144B (en) File management system and file management method
US9645787B1 (en) Tag-based electronic media playlist processing
US8244530B2 (en) Efficient indexing of documents with similar content
Li et al. Efficient processing of updates in dynamic XML data
WO2016155669A1 (en) Data storage method and device
US9542411B2 (en) Adding cooperative file coloring in a similarity based deduplication system
CN102279749A (en) Method and equipment for merging codes
CN104021123A (en) Method and system for data transfer
US11048594B2 (en) Adding cooperative file coloring protocols in a data deduplication system
CN105447166A (en) Keyword based information search method and system
CN109460406B (en) Data processing method and device
KR20140038441A (en) Compression match enumeration
CN100395712C (en) Source management method for software system
CN101859316B (en) Method and device for mass file access
Chung et al. An indexing method for wireless broadcast XML data
CN102508690A (en) Storing method and decoding method for command line of embedded equipment
CN102855255B (en) Content Management dissemination method and system
CN102542019A (en) Identification code storage method and identification code storage system as well as identification code indexing method and identification code indexing system
CN105336379B (en) A kind of information processing method and solid-state memory
Qin et al. Efficient XML query and update processing using a novel prime-based middle fraction labeling scheme
CN103116654B (en) A kind of XML data node code compression method
WO2013159156A1 (en) Method for storing and applying related sets of pattern/message rules
CN101556595A (en) Method for fast positioning relevant documents in document system
CN103902554B (en) Data access method and device
Mirabi et al. PS+ Pre/Post: A novel structure and access mechanism for wireless XML stream supporting twig pattern queries

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: YONYOU AUTOMOBILE INFORMATION TECHNOLOGY (SHANGHAI

Free format text: FORMER OWNER: UFIDA SOFTWARE CO., LTD.

Effective date: 20130820

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100094 HAIDIAN, BEIJING TO: 201821 JIADING, SHANGHAI

TA01 Transfer of patent application right

Effective date of registration: 20130820

Address after: 201821, room 1, building 1288, 50138 Yecheng Road, Jiading Industrial Zone, Shanghai, China

Applicant after: UFIDA Automotive Information Technology (Shanghai) Co., Ltd.

Address before: 100094 Beijing city Haidian District North Road No. 68, UFIDA Software Park

Applicant before: UFIDA Software Co., Ltd.

CB02 Change of applicant information

Address after: 201821, room 1, building 1288, 50138 Yecheng Road, Jiading Industrial Zone, Shanghai, China

Applicant after: UF Automotive Information Technology (Shanghai) Limited by Share Ltd

Address before: 201821, room 1, building 1288, 50138 Yecheng Road, Jiading Industrial Zone, Shanghai, China

Applicant before: UFIDA Automotive Information Technology (Shanghai) Co., Ltd.

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant