JPH03252738A - File managing system - Google Patents
File managing systemInfo
- Publication number
- JPH03252738A JPH03252738A JP2051017A JP5101790A JPH03252738A JP H03252738 A JPH03252738 A JP H03252738A JP 2051017 A JP2051017 A JP 2051017A JP 5101790 A JP5101790 A JP 5101790A JP H03252738 A JPH03252738 A JP H03252738A
- Authority
- JP
- Japan
- Prior art keywords
- record
- file
- relative number
- key data
- key
- 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
- 238000007726 management method Methods 0.000 claims description 12
- 238000010586 diagram Methods 0.000 description 6
- 230000008520 organization Effects 0.000 description 6
- 238000000034 method Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はファイル管理方式に関し、特にディスクファイ
ルを備えたコンピュータシステムにおけるファイル管理
方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a file management system, and particularly to a file management system in a computer system equipped with disk files.
従来、汎用コンピューターミニコンピユータの基本オペ
レーティングシステムのファイル管理方式は、順編成、
相対編成、索引順編成の3種類を管理している。そして
、レコード番号によるレコードアクセスには相対編成フ
ァイルを用いていた。Conventionally, the file management methods of basic operating systems for general-purpose minicomputers have been sequential organization,
Three types of organization are managed: relative organization and index order organization. A relative organization file was used to access records using record numbers.
上述した従来のファイル管理方式は、レコードの更新お
よび参照処理を行う場合、レコードを順次読み込み、対
象とするレコードを検索するため、タスク処理時間が長
くかかり、効率が悪くなるという問題点があった。The conventional file management method described above has the problem that when updating and referencing records, the records are read sequentially and the target record is searched, which takes a long time to process the task and reduces efficiency. .
本発明の目的は、レコードの参照および更新処理におけ
るタスク処理時間が短くてすみ、ファイルのアクセス効
率が良くなるファイル管理方式を提供することにある。An object of the present invention is to provide a file management method that reduces task processing time in record reference and update processing and improves file access efficiency.
本発明のファイル管理方式は、データファイルを備え、
前記データファイルのレコードの更新および参照が行わ
れるファイル管理方式において、
(A)前記データファイルに格納されているレコードの
キーデータが格納されているキーファイル、
(B)前記キーファイルからキーデータを検索して前記
キーデータに対応する領域相対番号を読み出し、前記領
域相対番号に対応するレコード相対番号を送出するキー
データ検索手段、(C)前記データファイルのレコード
を更新するレコード更新要求を外部から受けて前記キー
データ検索手段にキーデータ検索要求を送出し、前記キ
ーデータ検索手段から送出された前記レコード相対番号
を受信し、前記レコード相対番号により指定された前記
データファイルのレコードを更新するレコード更新手段
、(D)前記データファイルのレコードを参照するレコ
ード参照要求を外部から受けて前記キーデータ検索手段
にキーデータ検索要求を送出し、前記キーデータ検索手
段から送出された前記レコード相対番号を受信し、前記
レコード相対番号により指定された前記データファイル
のレコードを参照するレコード参照手段、を備えている
。The file management method of the present invention includes a data file,
In a file management method in which records of the data file are updated and referenced, (A) a key file storing key data of records stored in the data file; (B) key data from the key file; (C) a key data search means for searching and reading an area relative number corresponding to the key data, and sending a record relative number corresponding to the area relative number; (C) an external record update request for updating a record in the data file; a record that sends a key data search request to the key data search means, receives the record relative number sent from the key data search means, and updates the record of the data file specified by the record relative number; (D) receiving a record reference request for referencing a record of the data file from the outside, sending a key data search request to the key data search means, and receiving the record relative number sent from the key data search means; and record referencing means for receiving and referencing the record of the data file specified by the record relative number.
次に、本発明の実施例について図面を参照して説明する
。Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明の一実施例のブロック図、第2図は第1
図のファイル管理方式のデータファイルとキーファイル
の構成図である。FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a block diagram of an embodiment of the present invention.
FIG. 2 is a configuration diagram of a data file and a key file of the file management method shown in FIG.
第1図に示すファイル管理方式は、データファイル10
、データファイル10に格納されているレコードのキー
データ33a〜33cが格納されているキーファイル9
、キーファイル9がらキーデータ33a〜33cを検索
して、キーデータ33a〜33cに対応するキーデータ
の領域相対番号32を含むキーデータの領域相対番号信
号7を受信し、キーデータの領域相対番号32に対応す
るレコード相対番号35を含むレコード相対番号信号8
a、8bを出力するキーデータ検索手段3、データファ
イル10のレコードを更新するレコード更新要求信号4
を外部から受けてキーデータ検索手段3にキーデータ検
索要求信号5aを送出し、キーデータ検索手段3から送
出された、キーデータの領域相対番号32を含むキーデ
ータの領域相対番号信号7を受信し、キーデータの領域
相対番号32と同じ番号のレコード相対番号35を含ん
だレコード相対番号信号8aを受信し、このレコード相
対番号35により指定されたデータファイル10のレコ
ードを更新するレコード更新手段1、データファイル1
0のレコードを更新するレコード参照要求信号6を外部
から受けてキーデータ検索手段3にキーデータ検索要求
信号5bを送出し、キーデータ検索手段3がら送出され
た、キーデータの領域相対番号32を含むキーデータの
領域相対番号信号7を受信し、キーデータの領域相対番
号32と同じ番号のレコード相対番号35を含んだレコ
ード相対番号信号8bを受信し、このレコード相対番号
35により指定されたデータファイル10のレコードを
参照するレコード参照手段2から構成されている。The file management method shown in FIG.
, a key file 9 in which key data 33a to 33c of records stored in the data file 10 are stored.
, searches the key data 33a to 33c in the key file 9, receives the key data area relative number signal 7 including the key data area relative number 32 corresponding to the key data 33a to 33c, and receives the key data area relative number signal 7. Record relative number signal 8 containing record relative number 35 corresponding to 32
A key data search means 3 that outputs a, 8b, and a record update request signal 4 that updates the record of the data file 10.
from the outside, sends a key data search request signal 5a to the key data search means 3, and receives a key data area relative number signal 7 including the key data area relative number 32 sent from the key data search means 3. A record updating means 1 receives a record relative number signal 8a containing a record relative number 35 having the same number as the area relative number 32 of the key data, and updates the record of the data file 10 specified by this record relative number 35. , data file 1
Upon receiving a record reference request signal 6 for updating the record 0 from the outside, a key data search request signal 5b is sent to the key data search means 3, and the area relative number 32 of the key data sent from the key data search means 3 is received. Receiving the area relative number signal 7 of the included key data, receiving the record relative number signal 8b containing the record relative number 35 having the same number as the area relative number 32 of the key data, and receiving the data specified by this record relative number 35. It consists of a record reference means 2 that refers to records in a file 10.
次に、動作を説明する。Next, the operation will be explained.
第1図において、キーファイル9には、第2図に示すよ
うに、相対編成形式のデータファイル10のレコード3
6a〜36cのキー情報が、データファイル10のレコ
ード相対番号35と同じ領域相対番号32を持つキーデ
ータ33a〜33cに展開されている。In FIG. 1, the key file 9 contains record 3 of the relative organization format data file 10, as shown in FIG.
The key information 6a to 36c is developed into key data 33a to 33c having the same area relative number 32 as the record relative number 35 of the data file 10.
データファイル10のレコードを更新するレコード更新
手段1は、外部からデータファイル10のレコードを更
新するレコード更新要求信号4を受け、キーデータ検索
手段3にキーデータ検索要求信号5aを送出する。キー
データ検索手段3は、キーファイル9からキーデータ3
3aを検索してキーデータの領域相対番号32を読み出
し、これをキーデータの領域相対番号7として受信し、
さらにキーデータの領域相対番号32に対応するレコー
ド相対番号35をレコード相対番号信号8aとしてレコ
ード更新手段1に送出する。Record update means 1 for updating records in data file 10 receives a record update request signal 4 for updating records in data file 10 from the outside, and sends a key data search request signal 5a to key data search means 3. The key data search means 3 searches the key data 3 from the key file 9.
3a, reads out the area relative number 32 of the key data, receives this as the area relative number 7 of the key data,
Further, a record relative number 35 corresponding to the area relative number 32 of the key data is sent to the record updating means 1 as a record relative number signal 8a.
レコード更新手段1は、レコード相対番号35を持つデ
ータファイル10のレコード36aへ書き込みを行い、
そのレコードを更新する。The record updating means 1 writes to the record 36a of the data file 10 having the record relative number 35,
Update that record.
同様に、データファイル10のレコードを参照するレコ
ード参照手段2は、外部からデータファイル10のレコ
ードを参照するレコード参照要求信号6を受け、キーデ
ータ検索手段3にキーデータ検索要求信号5bを送出す
る。キーデータ検索手段3は、キーファイル9からキー
データ33bを検索してキーデータの領域相対番号32
を読み出し、これをキーデータの領域相対番号7として
受信し、さらにキーデータの領域相対番号32に対応す
るレコード相対番号35をレコード相対番号信号8bと
してレコード参照手段2に送出する。レコード参照手段
2は、レコード相対番号35を持つデータファイル10
のレコード36bの読み出しを行いレコード参照を行う
。Similarly, the record reference means 2 that refers to records in the data file 10 receives a record reference request signal 6 that refers to records in the data file 10 from the outside, and sends a key data search request signal 5b to the key data search means 3. . The key data search means 3 searches the key data 33b from the key file 9 and searches for the area relative number 32 of the key data.
is read out and received as the area relative number 7 of the key data, and the record relative number 35 corresponding to the area relative number 32 of the key data is sent to the record reference means 2 as the record relative number signal 8b. The record reference means 2 is a data file 10 having a record relative number 35.
The record 36b is read and the record is referenced.
以上説明したように、本発明は、キーファイルによって
レコードの検索を行うことができるため、レコードの更
新および参照処理におけるタスク処理時間が短くなり、
ファイルのアクセス効率が良くなるという効果を有する
。As explained above, since the present invention can search for records using a key file, the task processing time in record update and reference processing is shortened.
This has the effect of improving file access efficiency.
第1図は本発明の一実施例のブロック図、第2図は第1
図のファイル管理方式のデータファイルとキーファイル
の構成図である。
■・・・・・・レコード更新手段、2・・・・・・レコ
ード参照手段、3・・・・・・キーデータ検索手段、4
・・・・・・レコード更新要求信号、5a、5b・・・
・・・キーデータ検索要求信号、6・・・・・・レコー
ド参照要求信号、7・・・・・・キーデータの領域相対
番号信号、8a、8b・−・・・・レコード相対番号信
号、9・・・・・・キーファイル、10・・・・・・デ
ータファイル、32・・・・・・キーデータの領域相対
番号、33a〜33c・・・・・・キーデータ、35・
−・・・・レコード相対番号、36a〜36c・・・・
・・レコード。FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a block diagram of an embodiment of the present invention.
FIG. 2 is a configuration diagram of a data file and a key file of the file management method shown in FIG. ■...Record updating means, 2...Record reference means, 3...Key data search means, 4
...Record update request signal, 5a, 5b...
...Key data search request signal, 6...Record reference request signal, 7...Key data area relative number signal, 8a, 8b...Record relative number signal, 9...Key file, 10...Data file, 32...Key data area relative number, 33a-33c...Key data, 35...
-...Record relative number, 36a to 36c...
··record.
Claims (1)
の更新および参照が行われるファイル管理方式において
、 (A)前記データファイルに格納されているレコードの
キーデータが格納されているキーファイル、 (B)前記キーファイルからキーデータを検索して前記
キーデータに対応する領域相対番号を読み出し、前記領
域相対番号に対応するレコード相対番号を送出するキー
データ検索手段、 (C)前記データファイルのレコードを更新するレコー
ド更新要求を外部から受けて前記キーデータ検索手段に
キーデータ検索要求を送出し、前記キーデータ検索手段
から送出された前記レコード相対番号を受信し、前記レ
コード相対番号により指定された前記データファイルの
レコードを更新するレコード更新手段、 (D)前記データファイルのレコードを参照するレコー
ド参照要求を外部から受けて前記キーデータ検索手段に
キーデータ検索要求を送出し、前記キーデータ検索手段
から送出された前記レコード相対番号を受信し、前記レ
コード相対番号により指定された前記データファイルの
レコードを参照するレコード参照手段、 を備えたことを特徴とするファイル管理方式。[Scope of Claims] A file management method comprising a data file and in which records in the data file are updated and referenced, comprising: (A) a key file in which key data of records stored in the data file is stored; , (B) a key data search means for searching key data from the key file, reading an area relative number corresponding to the key data, and sending out a record relative number corresponding to the area relative number; (C) the data file receives a record update request from the outside to update a record, sends a key data search request to the key data search means, receives the record relative number sent from the key data search means, and specifies by the record relative number. record updating means for updating records of the data file that have been searched; A file management method comprising: record reference means for receiving the record relative number sent from the search means and referencing the record of the data file specified by the record relative number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2051017A JPH03252738A (en) | 1990-03-01 | 1990-03-01 | File managing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2051017A JPH03252738A (en) | 1990-03-01 | 1990-03-01 | File managing system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03252738A true JPH03252738A (en) | 1991-11-12 |
Family
ID=12875022
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2051017A Pending JPH03252738A (en) | 1990-03-01 | 1990-03-01 | File managing system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03252738A (en) |
-
1990
- 1990-03-01 JP JP2051017A patent/JPH03252738A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110309233A (en) | Method, apparatus, server and the storage medium of data storage | |
JP2553751B2 (en) | Disk sector replacement method | |
JPH03252738A (en) | File managing system | |
JPH07334402A (en) | Data base as main memory | |
JP2679048B2 (en) | File management method on non-rewritable media | |
JPS61103242A (en) | High-speed retrieval system | |
JPS62245574A (en) | Data storing system to rotating type recording medium | |
JPH06231012A (en) | Log data managing device | |
JPH1173353A (en) | Transaction retrieval processor based on specified time | |
JPH0371349A (en) | File control system | |
JP2721034B2 (en) | Clustering control system | |
JP3008500B2 (en) | Update record reading mechanism | |
JPH01282635A (en) | Index maintaining system | |
JPH04330534A (en) | File retrieval system | |
JPS62177642A (en) | File management system for postscript filing device | |
WO2008091054A1 (en) | Enhanced file system and method of managing files using the file system | |
JPH04350741A (en) | Access speed increasing method for indexed sequential file | |
JPS60254325A (en) | Control method of data retrieval key | |
JPH05204729A (en) | Data base access system | |
JPH04236639A (en) | File space management system | |
JPS63291145A (en) | Method for managing file | |
JPH0325636A (en) | Managing method for data record | |
JPS63184960A (en) | Data control system | |
JPH04140825A (en) | Optical disk device access system | |
JPH04299749A (en) | Magneto-optical disk system |