发明名称 METHOD AND APPARATUS FOR THE NAMING OF DATABASE COMPONENT FILES TO AVOID DUPLICATION OF FILES
摘要 In the method and apparatus of the present invention a file to be added to the database is given a unique name that is dependent upon the contents of the file such that, when the contents of the source file changes, the name of the database component file to be added to the database also changes. Conversely, if two files of the same name have the same information contained therein, the same file name will be generated and the duplication of information in the database is prevented by providing a simple test that checks for the existence of the name of the database file before the generation and addition of the new file to the database. If the file name exists in the database, information is already contained in the database and the file is not generated and added to the database information. Preferably the name of the file is generated by computing a hash value from the contents of the file concatenating the hash value to the name of the source file. Because the source file name is used in conjunction with the hash value to construct the database file name, the hash value does not have to be unique for all files but only for those source files having the same name.
申请公布号 GB9016310(D0) 申请公布日期 1990.09.12
申请号 GB19900016310 申请日期 1990.07.25
申请人 SUN MICROSYSTEMS INC 发明人
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项
地址