JP2629034B2 - File management method for data with identifiers of unlimited length - Google Patents

File management method for data with identifiers of unlimited length

Info

Publication number
JP2629034B2
JP2629034B2 JP63303668A JP30366888A JP2629034B2 JP 2629034 B2 JP2629034 B2 JP 2629034B2 JP 63303668 A JP63303668 A JP 63303668A JP 30366888 A JP30366888 A JP 30366888A JP 2629034 B2 JP2629034 B2 JP 2629034B2
Authority
JP
Japan
Prior art keywords
file
name
path
tree structure
partial
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.)
Expired - Fee Related
Application number
JP63303668A
Other languages
Japanese (ja)
Other versions
JPH02148341A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP63303668A priority Critical patent/JP2629034B2/en
Publication of JPH02148341A publication Critical patent/JPH02148341A/en
Application granted granted Critical
Publication of JP2629034B2 publication Critical patent/JP2629034B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔概要〕 識別名をもつ多数のデータをファイルで一元管理する
ファイル管理システムに関し, UNIXファイルのようなファイル名の長さに制限のある
ファイルを用いる場合に,応用プログラムが特に意識す
ることなく単一のファイル構造で長さに制限のない識別
名を扱えるようにすることを目的とし, 与えられたデータ識別名について,上記ファイル名の
制限文字数より1以上少ない文字数で細分化し,細分化
された各部分について最終のものを除く各部分の文字列
の後に継続を示す特殊な継続文字を付加することによっ
て一連の部分名を作成する手段と,与えられたデータ識
別名について細分化を行った後,一連の部分名を順次取
り出して,ファイルの木構造を部分明ごとに深さ方向に
パスを辿り,部分名に一致するパスを見出せないとき新
たにその部分名のパスを張ることによりファイルを創成
する手段と,与えられたデータ識別名について細分化を
行った後,一連の部分名を順次取り出して,ファイルの
木構造のパスを深さ方向に辿って該当するファイルを検
索する手段と,検索して該当するパスを削除する手段と
をそなえた構成をもつ。
DETAILED DESCRIPTION OF THE INVENTION [Overview] Regarding a file management system that centrally manages a large number of data having identifiers in a file, when a file with a limited file name length such as a UNIX file is used, an application program The purpose of this is to make it possible to handle identifiers of unlimited length in a single file structure without special consideration. For a given data identifier, the number of characters that is at least one less than the number of characters limited to the above file name Means for creating a series of part names by subdividing and adding a special continuation character indicating continuation after each part of the subdivided part except for the last one, and a given data identifier After subdividing, a series of partial names are sequentially extracted, and the tree structure of the file is traversed in the depth direction for each partial light, and matches the partial name Means to create a file by adding a new path to the partial name when the file cannot be found. After segmenting the given data identifier, a series of partial names are sequentially extracted and the tree structure of the file is extracted. And a means for searching for a corresponding file by tracing the path in the depth direction, and a means for searching and deleting the corresponding path.

〔産業上の利用分野〕[Industrial applications]

本発明は識別名をもつ多数のデータをファイルで一元
管理するファイル管理システムに関するものであり,特
に図面等の長い識別名をもつデータをファイル名の長さ
が制限されているファイル構造で管理するファイル管理
方式に関する。
The present invention relates to a file management system for centrally managing a large number of data having an identification name in a file, and in particular, managing data having a long identification name such as a drawing in a file structure having a limited file name length. Related to file management method.

〔従来の技術〕[Conventional technology]

近年,CADシステムによる設計の自動化が進み,製造図
面等はコンピュータによりファイル管理されることが多
くなっている。ところで多種類の製品や部品を扱う製造
工場では,管理対象の図面の枚数が膨大となり,数万枚
から数十万枚にも達することがあるため,コンピュータ
によるファイル管理の効率化がますます重要になってい
る。
In recent years, automation of design by a CAD system has progressed, and manufacturing drawings and the like are often managed in files by a computer. By the way, in a manufacturing factory that handles many kinds of products and parts, the number of drawings to be managed is enormous, and it can reach tens of thousands to hundreds of thousands, so it is increasingly important to improve the efficiency of file management by computer. It has become.

図面には図面識別名(以後図面名という)が付与され
るが,これらは通常,シーケンス番号や機器種別,製造
場所等の種々の管理事項と関連する記号や数字との組み
合せを用いて,業務上識別しやすくしているのが普通で
ある。このため図面名が長くなり,図面の枚数が多い場
合には,30文字ないし40文字の長さの図面名もしばしば
使用される。
Drawings are given drawing identifiers (hereinafter referred to as drawing names), which are usually used in combination with various control items such as sequence numbers, equipment types, manufacturing locations, and other related symbols and numbers. It is common to make it easy to distinguish. For this reason, the drawing name becomes long, and when the number of drawings is large, a drawing name having a length of 30 to 40 characters is often used.

一方,UNIX上にCADシステムを構築した場合,ファイル
構造は木構造となるが,木構造のディレクトリを含むフ
ァイル名には長さの制限があるため,図面名はN文字
(通常はN=14)以内にしなければならない。
On the other hand, when a CAD system is built on UNIX, the file structure becomes a tree structure. However, since the file name including the directory of the tree structure has a limit on the length, the drawing name has N characters (usually N = 14). ).

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

従来のUNIXファイルではファイル名の長さに制限があ
るため,図面名のように特に長い識別名をもつデータを
扱う場合には,それらの識別名を制限された文字数のN
文字以内に短縮してファイル名に対応づけを行う必要が
あった。
Conventional UNIX files have a limited file name length. When handling data with particularly long identifiers, such as drawing names, the identifiers must be limited to the number of characters N
It had to be shortened to characters and corresponded to the file name.

このため図面名などの識別名からファイル名を得るた
めのインデックスファイルが必要となり二重のファイル
となってデータの追加削除等の処理が複雑化し,またバ
ックアップのためにとられるデータ量も増大するという
不都合があった。
For this reason, an index file for obtaining a file name from an identification name such as a drawing name is required, so that the file becomes a double file, which complicates processing such as addition and deletion of data, and increases the amount of data to be backed up. There was an inconvenience.

本発明は,UNIXファイルのようなファイル名の長さに
制限のあるファイルを用いる場合に,応用プログラムが
特に意識することなく単一のファイル構造で長さに制限
のない識別名を扱えるようにすることを目的とする。
The present invention enables an application program to handle an identifier having an unlimited length in a single file structure without special consideration when using a file having a limited length of a file name such as a UNIX file. The purpose is to do.

〔課題を解決するための手段〕[Means for solving the problem]

本発明は,長さに制限のないデータ識別名を細分化す
ることにより,ファイル名の長さに制限のあるファイル
構造に対応可能にするものである。本発明ではファイル
名の長さに制限のあるファイルにおけるその制限文字数
をNとし,与えられる長さに制限のないデータ識別名の
長さを可変のnとしたとき,データ識別名を先頭から順
次nまで,少なくともNよりも1以上少ないたとえばN
−1文字ずつ分割して間に継続を表わす特殊文字を挿入
し,分割単位ごとにパスをのばして木構造をつくるよう
にする。
The present invention makes it possible to cope with a file structure having a limited file name length by subdividing a data identifier having an unlimited length. In the present invention, when the limited number of characters in a file having a limited file name length is N and the length of a data identifier having no given length is variable n, the data identifiers are sequentially arranged from the top. n, at least one less than N, for example N
A special character indicating continuation is inserted between each character, and a tree structure is formed by extending a path for each division unit.

第1図は本発明の原理説明図であり,1はデータの入出
力あるいは削除を要求する応用プログラム,2は本発明に
基づくファイルライブラリ管理プログラム,3はOS,4はOS
により管理されたデータファイルである。
FIG. 1 is a diagram for explaining the principle of the present invention. 1 is an application program for requesting data input / output or deletion, 2 is a file library management program based on the present invention, 3 is an OS, and 4 is an OS.
Is a data file managed by.

ファイルライブラリ管理プログラム2の機能は次の通
りである。
The functions of the file library management program 2 are as follows.

文字数nのデータ識別名をM,・・・Mnとし,継続を表
わす特殊文字を&とする。またOS3におけるファイル名
の制限文字数はNである。このとき (1) nNであれば,ファイル名をM1・・・Mn
し, (2) N<n2(N−1)であれば,ファイル名を
M1・・・MN-1&/MN・・・Mnとし, (3) 2(N−1)<n3(N−1)であれば,フ
ァイル名をM1・・・MN-1&/MN・・・M2(N-1)&/M2N-1
し, 以下同様にして,N−1個の文字と継続文字&とを合わ
せたN個の文字の列を部分名と考えて,文字数がN以下
に制限されたファイルの木構造を構築する。
.., Mn, and the special character indicating continuation is &. The limit number of characters of the file name in OS3 is N. At this time, (1) if nN, the file name is M 1 ... Mn ; (2) if N <n2 (N−1), the file name is
And M 1 ··· M N-1 & / M N ··· M n, (3) 2 (N-1) <n3 if (N-1) a, the name of the file M 1 ··· M N -1 & / M N ... M2 (N-1) & / M 2N-1. Similarly, a string of N characters consisting of N-1 characters and continuation character & Construct a tree structure of a file in which the number of characters is limited to N or less by considering it as a partial name.

〔作用〕[Action]

第1図に示された本発明の原理を第2図の具体例によ
り説明する。
The principle of the present invention shown in FIG. 1 will be described with reference to a specific example in FIG.

新規ファイルを創成する場合,与えられたデータの識
別名の文字列を,前述した(1),(2),(3),…
…のように細分化し,細分化した個個の部分名を順次取
り出して,既存の木構造上のパスを辿り,次に一致する
ものがなくなったノード(ディレクトリ)から新しいパ
スを先に延してゆく。後続する部分名の有無は,現部分
名が継続文字&を含むか否かにより判定する。
When a new file is created, the character string of the identification name of the given data is replaced by the above (1), (2), (3),.
Subdivided like…, fetch the subdivided individual part names sequentially, follow the path on the existing tree structure, and then extend the new path first from the node (directory) where there is no more match Go on. The presence or absence of the following partial name is determined based on whether or not the current partial name includes the continuation character &.

たとえば第2図(a)の例では,与えられたデータ識
別名がabcdefgであり,制限文字数がN=3のとき細分
化したファイル名は ab&/cd&/efg となる。
For example, in the example of FIG. 2A, the given data identification name is abcdefg, and when the limit number of characters is N = 3, the subdivided file name is ab & / cd & / efg.

これを第2図(b)に例示した木構造に適用してab
&,cd&まで一致するパスを辿り,ここで一致するパス
が先にないため,cd&からefgのパスを分岐してファイル
を創成する。このパスの終端(◎で示される。以下同
じ)は,第1図のデータファイル4のデータ位置を指す
情報をもつ。
This is applied to the tree structure illustrated in FIG.
Follow the matching path from &&, cd &, and since there is no matching path first, branch the efg path from cd & to create a file. The end of this path (indicated by ◎, the same applies hereinafter) has information indicating the data position of the data file 4 in FIG.

次にファイルを検索する場合には,検索を指示された
データ識別名を第2図(a)と同様に細分化し,その結
果の一連の部分名を用いてファイル木構造上の順次のパ
スを検索し,順次の部分名と一致する一連のパスを辿
り,終端を検出する。
Next, when searching for a file, the data identifier specified to be searched is subdivided in the same manner as in FIG. 2 (a), and the sequential path on the file tree structure is determined using the resulting series of partial names. Search and follow a series of paths that match the sequential part names to detect the end.

次にファイルを削除する場合には,上述したように木
構造を検索し,検索がヒットしたとし,検索結果のパス
を逆方向に辿り,最初の分岐点に達したところで,そこ
までのパスを削除する。
Next, when deleting a file, the tree structure is searched as described above. If the search is hit, the path of the search result is traced in the reverse direction. When the first branch point is reached, the path to that point is searched. delete.

第2図(c)の例は,データ識別名abcdrstのファイ
ルを削除する場合の処理であり,で該当するファイル
のパスを検索し,で分岐点cd&までのパスrs&とtと
を削除する。
The example of FIG. 2 (c) is a process for deleting the file with the data identifier abcdrst. The path of the corresponding file is searched by, and the paths rs & and t to the branch point cd & are deleted by.

〔実施例〕〔Example〕

第3図(a),(b)に,本発明実施例によるファイ
ルライブラリ管理プログラムのファイル創成および削除
の各処理のフローを示す。以下に,各処理を図中のステ
ップにしたがって説明する。
FIGS. 3A and 3B show the flow of each process of file creation and deletion of the file library management program according to the embodiment of the present invention. Hereinafter, each processing will be described according to the steps in the figure.

第3図(a)のファイル創成処理では, :指示されたデータ識別名を部分名に細分化する。 In the file creation process shown in FIG. 3A, the data identifier specified is subdivided into partial names.

:細分化された順次の部分名をファイル木構造の順次
の深さのパス(分岐がある場合は各分岐のパス)と比較
する。
: Compare the subdivided sequential part name with the path of the sequential depth of the file tree structure (if there is a branch, the path of each branch).

:一致するパスがあった場合に戻りパスを次の深さ
に辿る。一致するパスがなければを実行する。
: If there is a matching path, return and follow the path to the next depth. If there is no matching path, execute.

:次の深さで新しくパスを創成する。: Create a new path at the next depth.

:残りの部分名があればを繰り返し,残りの部分名
がなくなったとき終了する。
: Repeat if there are remaining part names, and end when there are no remaining part names.

第3図(b)のファイル削除処理では, :指示されたファイルのデータ識別名を細分化する。 In the file deletion process of FIG. 3B, the data identifier of the designated file is subdivided.

:細分化された部分名を用いてファイル木構造上の一
致するパスを深さ方向に移動する。
: Move the matching path on the file tree structure in the depth direction using the subdivided part names.

:部分名に残りがあればを繰り返し実行し,残りの
部分名がなくなれば検索終了(ヒット)とする。
: If there is a remaining part name, the process is repeatedly executed. If there is no remaining part name, the search is terminated (hit).

:次に検索されたパスを逆行(バックトラック)して
次のパスを削除する。
: Reverse (backtrack) the next searched path and delete the next path.

:分岐点に達するまでを返し実行してパスを削除
し,終了する。
: Return until the branch point is reached, execute, delete the path, and end.

〔発明の効果〕〔The invention's effect〕

本発明によれば,CADシステムの任意の長さの図面識別
名をもつ図面の管理をUNIXファイルを利用して行うこと
ができ,特別な図面管理専用ファイルを作成する必要が
ないので,システム開発負担が著しく軽減される利点が
ある。
According to the present invention, it is possible to manage drawings having drawing identifiers of any length in a CAD system using UNIX files, and there is no need to create a special drawing management file. There is an advantage that the burden is significantly reduced.

【図面の簡単な説明】[Brief description of the drawings]

第1図は本発明の原理図,第2図は本発明におけるファ
イルの創成および削除処理の具体例による説明図,第3
図は本発明実施例によるファイルの創成および削除処理
のフロー図である。 第1図中, 1:応用プログラム 2:ファイルライブラリ管理プログラム 3:OS 4:データファイル
FIG. 1 is a diagram showing the principle of the present invention, FIG. 2 is an explanatory diagram showing a specific example of file creation and deletion processing in the present invention, and FIG.
FIG. 11 is a flowchart of a file creation and deletion process according to the embodiment of the present invention. In Fig. 1, 1: Application program 2: File library management program 3: OS 4: Data file

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】長さに制限のないデータ識別名をもつデー
タを,所定の制限文字数をもつファイル名による木構造
で管理するファイル管理システムにおいて, 与えられたデータ識別名について,上記ファイル名の制
限文字数より1以上少ない文字数で細分化し,細分化さ
れた各部分について最終のものを除く各部分の文字列の
後に継続を示す特殊な継続文字を付加することによって
一連の部分名を作成する手段と, 与えられたデータ識別名について細分化を行った後,一
連の部分名を順次取り出してファイルの木構造を部分明
ごとに深さ方向にパスを辿り,部分名に一致するパスを
見出せないとき新たにその部分名のパスを張ることによ
りファイルを創成する手段と, 与えられたデータ識別名について細分化を行った後,一
連の部分名を順次取り出して,ファイルの木構造のパス
を深さ方向に辿って該当するファイルを検索する手段
と, 与えられたデータ識別名についてファイルの木構造を検
索し,検索した結果の一連のパスを終端から最初の分岐
まで逆方向に辿り,その間のパスを削除する手段とをそ
なえていることを特徴とする長さに制限のない識別名を
もつデータのファイル管理方式。
In a file management system for managing data having a data identifier having an unlimited length in a tree structure using a file name having a predetermined number of characters, a given data identifier has the same file name as that of a given file. Means for generating a series of part names by subdividing the number of characters by at least one less than the limited number of characters, and adding a special continuation character indicating continuation after each substring of the subdivided part except the final character string After subdividing the given data identifier, a series of partial names are sequentially extracted and the tree structure of the file is traversed in the depth direction for each partial light, and no path matching the partial name is found. Sometimes a file is created by adding a new path to the partial name, and after subdividing the given data identifier, a series of partial names are Means to search for the file by tracing the path of the file tree structure in the depth direction, searching the file tree structure for the given data identifier, and terminating a series of paths of the search result A file management method for data having an identifier with an unlimited length, characterized in that it has means for tracing in the reverse direction from the first branch to the first branch and deleting a path therebetween.
JP63303668A 1988-11-30 1988-11-30 File management method for data with identifiers of unlimited length Expired - Fee Related JP2629034B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63303668A JP2629034B2 (en) 1988-11-30 1988-11-30 File management method for data with identifiers of unlimited length

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63303668A JP2629034B2 (en) 1988-11-30 1988-11-30 File management method for data with identifiers of unlimited length

Publications (2)

Publication Number Publication Date
JPH02148341A JPH02148341A (en) 1990-06-07
JP2629034B2 true JP2629034B2 (en) 1997-07-09

Family

ID=17923789

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63303668A Expired - Fee Related JP2629034B2 (en) 1988-11-30 1988-11-30 File management method for data with identifiers of unlimited length

Country Status (1)

Country Link
JP (1) JP2629034B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2120461C (en) * 1993-04-01 2009-09-22 Aaron R. Reynolds Common name space for long and short filenames
US6286013B1 (en) 1993-04-01 2001-09-04 Microsoft Corporation Method and system for providing a common name space for long and short file names in an operating system
US6578054B1 (en) 1999-10-04 2003-06-10 Microsoft Corporation Method and system for supporting off-line mode of operation and synchronization using resource state information
US6909910B2 (en) 2002-02-01 2005-06-21 Microsoft Corporation Method and system for managing changes to a contact database
US8321439B2 (en) 2004-12-17 2012-11-27 Microsoft Corporation Quick filename lookup using name hash
US9639554B2 (en) 2004-12-17 2017-05-02 Microsoft Technology Licensing, Llc Extensible file system
US7873596B2 (en) 2006-05-23 2011-01-18 Microsoft Corporation Extending cluster allocations in an extensible file system
US8606830B2 (en) 2004-12-17 2013-12-10 Microsoft Corporation Contiguous file allocation in an extensible file system
JP4692368B2 (en) * 2006-04-19 2011-06-01 日本ビクター株式会社 Browser-equipped device

Also Published As

Publication number Publication date
JPH02148341A (en) 1990-06-07

Similar Documents

Publication Publication Date Title
US5897636A (en) Distributed object computer system with hierarchical name space versioning
CN105589838B (en) A kind of electronic government documents trace reservation method based on Documents Comparison
US6928447B2 (en) Project-based configuration management method and apparatus
Pugh A skip list cookbook
US5047918A (en) File management system
US5488717A (en) MTree data structure for storage, indexing and retrieval of information
JPH11212980A (en) Production of index and retrieval method
JP2000181917A (en) Structured document managing method, executing device therefor and medium recording processing program therefor
JPH05135108A (en) Method and apparatus for organizing database
EP1265155A2 (en) File tree comparator
JP2629034B2 (en) File management method for data with identifiers of unlimited length
JPH0550774B2 (en)
CN109871233A (en) A kind of cloud programming file management method and device, equipment, storage medium
JP2002202973A (en) Structured document management device
Tsuda et al. An incremental algorithm for string pattern matching machines
EP1387292A1 (en) Method and apparatus for combining data of biological sequences into a non-redundant data source
US5241623A (en) Method and system for delineation of structure and linkages between knowledge base modules
JP3170795B2 (en) File group processing device
JP2722684B2 (en) File system search device
JP3582756B2 (en) Memory management method
CN117892811A (en) Knowledge graph construction system for intelligent design of typical structural member
Stallings An application of coroutines and backtracking in interactive systems
JPH01292524A (en) List type data storage retrieving device
Arita et al. An efficient algorithm for full text retrieval for multiple keywords
JPH04195559A (en) Subfile management system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees