JPH05274201A - File controller - Google Patents

File controller

Info

Publication number
JPH05274201A
JPH05274201A JP3068337A JP6833791A JPH05274201A JP H05274201 A JPH05274201 A JP H05274201A JP 3068337 A JP3068337 A JP 3068337A JP 6833791 A JP6833791 A JP 6833791A JP H05274201 A JPH05274201 A JP H05274201A
Authority
JP
Japan
Prior art keywords
file
storage address
data storage
data
index field
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
Application number
JP3068337A
Other languages
Japanese (ja)
Inventor
Morio Takeishi
守雄 竹石
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP3068337A priority Critical patent/JPH05274201A/en
Publication of JPH05274201A publication Critical patent/JPH05274201A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the use efficiency of a system by reducing the load of softwares at the time of file access and preventing the access time of files from being affected by the load state of softwares. CONSTITUTION:A retrieval key data comparing part 2 compares the data of the file name of a retrieving object with retrieval key data according to comparative conditions and retrieves the index field of the file. A data storage address holding part 3 informed the comparative condition establishment from the comparing part 2 holds a data storage address in the index field establishing that comparative condition and instructs the start of positioning to a positioning control part 4 together with the data storage address. The positioning control part 4 positions the data at that data storage address.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ファイル制御装置に関
し、特に、リレーショナルデータベース等の検索アクセ
スを高速化したファイル制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file control device, and more particularly to a file control device which speeds up search access to a relational database or the like.

【0002】[0002]

【従来の技術】磁気ディスク、フロッピーディスク等の
ランダムアクセス可能なファイル装置におけるファイル
の管理は、インデッス(INDEX)ファイル、インデ
ックス(INDEX)シリンダ等にファイル名、ファイ
ルの格納アドレス、ファイルサイズ等のファイル情報を
格納して行っている。
2. Description of the Related Art File management in a randomly accessible file device such as a magnetic disk and a floppy disk is performed by using an index (INDEX) file, an index (INDEX) cylinder, etc., such as a file name, a file storage address, and a file size. Information is stored and done.

【0003】従来のファイル制御装置を用いたシステム
でのファイルアクセスは、まずソフトウェアがファイル
制御装置に対してインデックス(INDEX)ファイル
上のファイル検索のキーとなるファイル名等の検索をフ
ァイル制御装置に指示し、ファイル制御装置が目的のフ
ァイル名を検出すると、さらにソフトウェアは、ファイ
ル制御装置に対してファイル情報を含むレコードの読出
しを指示する。目的のファイルに関するファイル情報を
得たソフトウェアは、ファイル情報内のファイルの格納
アドレスへの位置付けをファイル制御装置に指示し、位
置付けが終了した時点でファイルのアクセスが可能とな
る。
In the file access in the system using the conventional file control device, first, the software asks the file control device to search the file control device for a file name or the like which is a key for the file search on the index (INDEX) file. When the instruction is given and the file controller detects the target file name, the software further instructs the file controller to read the record including the file information. The software, which has obtained the file information about the target file, instructs the file controller to position the storage address of the file in the file information, and the file can be accessed when the positioning is completed.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、この従
来のファイル制御装置では、ファイル検索キーの指示か
ら実際のファイルの格納アドレスへの位置付け指示まで
の間にソフトウェアによる処理が含まれるために、ソフ
トウェアの負荷状態にファイルのアクセスタイムが左右
されるという課題があった。
However, in this conventional file control device, processing by software is included between the instruction of the file search key and the instruction of positioning to the actual storage address of the file. There was a problem that the access time of the file depends on the load condition.

【0005】本発明は従来の上記実情に鑑みてなされた
ものであり、従って本発明の目的は、従来の技術に内在
する上記課題を解決することを可能とした新規なファイ
ル制御装置を提供することにある。
The present invention has been made in view of the above-mentioned conventional circumstances, and therefore an object of the present invention is to provide a novel file control apparatus capable of solving the above problems inherent in the conventional art. Especially.

【0006】[0006]

【課題を解決するための手段】上記目的を達成する為
に、本発明に係るファイル制御装置は、インデックス
(INDEX)フィールドのフォーマット情報を記憶す
る手段と、このフォーマット情報を基に外部から与えら
れる検索キーデータと各インデックスフィールドのキー
とを比較する手段と、比較条件が成立したインデックス
フィールド内のデータ格納アドレスを保持する手段と、
前記データ格納アドレスに位置付けする手段とを備えて
構成される。
In order to achieve the above object, a file control apparatus according to the present invention is provided with a means for storing format information of an index (INDEX) field and an external source based on this format information. Means for comparing the search key data with the key of each index field, means for holding the data storage address in the index field where the comparison condition is satisfied,
And a means for locating the data storage address.

【0007】[0007]

【実施例】次に、本発明をその好ましい一実施例につい
て図面を参照して具体的に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described in detail with reference to the accompanying drawings with reference to the accompanying drawings.

【0008】図1は本発明の一実施例を示すブロツク構
成図である。
FIG. 1 is a block diagram showing an embodiment of the present invention.

【0009】図1を参照するに、フォーマット情報記憶
部1は、図2に示すようなインデックス(INDEX)
フィールドのフォーマット情報を記憶し、その時送られ
てきているデータが検索対象となるファイル名のデータ
か否かを検索キーデータ比較部2に、またファイル格納
先頭アドレスのデータか否かをデータ格納アドレス保持
部3にそれぞれ通知する。検索キーデータ比較部2は、
フォーマット情報記憶部1から検索対象となるファイル
名のデータであるとの通知を受けたデータと外部から与
えられた検索キーデータとを比較し、比較条件が成立す
ると、データ格納アドレス保持部3に比較条件成立を通
知する。データ格納アドレス保持部3は、検索キーデー
タ比較部2からの比較条件成立通知を受けると、フォー
マット情報記憶部1からのファイル格納先頭アドレスの
データであるとの通知を受けたデータをデータ格納アド
レスとして保持する。位置付け制御部4は、データ格納
アドレス保持部3が保持しているデータ格納アドレスへ
の位置付けを制御する。
Referring to FIG. 1, the format information storage unit 1 stores an index (INDEX) as shown in FIG.
The format information of the field is stored, and whether or not the data sent at that time is the data of the file name to be searched is stored in the search key data comparison unit 2, and whether the data of the file storage start address is stored or not is stored in the data storage address. The holding unit 3 is notified respectively. The search key data comparison unit 2
Data notified of from the format information storage unit 1 that the data has a file name to be searched is compared with search key data given from the outside, and when the comparison condition is satisfied, the data storage address holding unit 3 Notify that the comparison condition is satisfied. When the data storage address holding unit 3 receives the comparison condition establishment notification from the search key data comparison unit 2, the data storage address holding unit 3 converts the data for which the data storage start address is notified from the format information storage unit 1 to the data storage address. Hold as. The positioning control unit 4 controls positioning to the data storage address held by the data storage address holding unit 3.

【0010】次に本実施例の動作を説明する。ここで、
ファイル装置の媒体上には、図2に示すようなINDE
Xフィールドが複数連続したINDEXファイルが存在
するものとする。また、フォーマット情報記憶部1には
INDEXファイル内のINDEXフィールドのフォー
マット情報が予め与えられているものとする。まず外部
より検索キ−デ−タ及び比較条件が与えられると、フォ
ーマット情報記憶部1は、INDEXファイル内の各I
NDEXフィールドの検索対象となるファイル名のデー
タが送られてきている期間を検索キーデータ比較部2へ
通知する。この通知を受けた検索キーデータ比較部2
は、この時のデータと検索キーデータとを比較条件に従
って比較する。この比較条件が成立しない場合には、次
のINDEXフィ−ルドで同様に比較が行われる。比較
条件が成立すると、検索キーデータ比較部2はデータ格
納アドレス保持部3に比較条件成立を通知する。比較条
件成立の通知を受けたデータ格納アドレス保持部3は、
フォーマット情報記憶部1からのINDEXフィールド
内のファイル格納先頭アドレスが送られてきていること
を示す信号を受けると、デバイスから送られてきている
データをデータ格納アドレスとして保持する。データ格
納アドレス保持部3がデータ格納アドレスの取込みを終
えると、位置付け制御部4へデータ格納アドレスと共に
位置付けの開始を指示する。位置付け開始の指示を受け
た位置付け制御部4はデータ格納アドレスへの位置付け
を行う。
Next, the operation of this embodiment will be described. here,
The INDE as shown in FIG.
It is assumed that there is an INDEX file in which a plurality of X fields are continuous. Further, it is assumed that the format information storage unit 1 is previously provided with the format information of the INDEX field in the INDEX file. First, when a search key and a comparison condition are given from the outside, the format information storage unit 1 stores each I in the INDEX file.
The search key data comparison unit 2 is notified of the period during which the data of the file name to be searched for in the NDEX field is being sent. Search key data comparison unit 2 that received this notification
Compares the data at this time with the search key data according to the comparison condition. If this comparison condition is not satisfied, the next INDEX field is similarly compared. When the comparison condition is satisfied, the search key data comparison unit 2 notifies the data storage address holding unit 3 that the comparison condition is satisfied. The data storage address holding unit 3 that has received the notification that the comparison condition is satisfied,
When receiving a signal from the format information storage unit 1 indicating that the file storage start address in the INDEX field is sent, the data sent from the device is held as the data storage address. When the data storage address holding unit 3 finishes fetching the data storage address, it instructs the positioning control unit 4 to start positioning together with the data storage address. The positioning control unit 4, which has received the positioning start instruction, positions the data storage address.

【0011】[0011]

【発明の効果】以上説明したように、本発明によればフ
ァイルのINDEXフィールドの検索からファイルの格
納アドレスへの位置付けまでをソフトウェアの介入なし
にファイル制御装置のみで行うようにしたので、ファイ
ルアクセス時におけるソフトウェアの負荷を軽減し、ま
たファイルのアクセスタイムがソフトウェアの負荷状態
には左右されなくなり、システムの使用効率が向上する
という効果が得られる。
As described above, according to the present invention, the search of the INDEX field of a file to the positioning of the storage address of the file is performed only by the file controller without software intervention. The effect is that the load on the software at the time is reduced, the file access time is not affected by the load state of the software, and the system usage efficiency is improved.

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

【図1】本発明の一実施例を示すブロツク構成図であ
る。
FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】INDEXフィールドのフォーマット情報例を
示した図である。
FIG. 2 is a diagram showing an example of format information of an INDEX field.

【符号の説明】[Explanation of symbols]

1…フォーマット情報記憶部 2…検索データ比較部 3…データ格納アドレス保持部 4…位置付け制御部 1 ... Format information storage unit 2 ... Search data comparison unit 3 ... Data storage address holding unit 4 ... Positioning control unit

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成5年3月19日[Submission date] March 19, 1993

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】全図[Correction target item name] All drawings

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図1】 [Figure 1]

【図2】 [Fig. 2]

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ファイル情報等の検索のためのキーとデ
ータ格納アドレスとを含んだ同一フォーマットのインデ
ックスフィールドが連続したレコードを処理するファイ
ル制御装置において、前記インデックスフィールドのフ
ォーマット情報を記憶する手段と、このフォーマット情
報を基に外部から与えられる検索キーデータと各インデ
ックスフィールドのキーとを比較する手段と、比較条件
が成立したインデックスフィールド内のデータ格納アド
レスを保持する手段と、前記データ格納アドレスに位置
付けする手段とを備えることを特徴とするファイル制御
装置。
1. A file control device for processing a record in which an index field of the same format including a key for searching file information and a data storage address is consecutive, and means for storing the format information of the index field. , Means for comparing the search key data given from the outside based on this format information with the key of each index field, means for holding the data storage address in the index field where the comparison condition is satisfied, and the data storage address A file control device comprising means for positioning.
JP3068337A 1991-04-01 1991-04-01 File controller Pending JPH05274201A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3068337A JPH05274201A (en) 1991-04-01 1991-04-01 File controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3068337A JPH05274201A (en) 1991-04-01 1991-04-01 File controller

Publications (1)

Publication Number Publication Date
JPH05274201A true JPH05274201A (en) 1993-10-22

Family

ID=13370930

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3068337A Pending JPH05274201A (en) 1991-04-01 1991-04-01 File controller

Country Status (1)

Country Link
JP (1) JPH05274201A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9858158B2 (en) 2014-09-29 2018-01-02 International Business Machines Corporation File system for rolling back data on tape

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9858158B2 (en) 2014-09-29 2018-01-02 International Business Machines Corporation File system for rolling back data on tape
US9886355B2 (en) 2014-09-29 2018-02-06 International Business Machines Corporation File system for rolling back data on tape
US10417100B2 (en) 2014-09-29 2019-09-17 International Business Machines Corporation File system for rolling back data on tape

Similar Documents

Publication Publication Date Title
JPH05274201A (en) File controller
JP2713405B2 (en) File system
JP2943693B2 (en) Sort work file space management method
JPH0239225A (en) Filing system
JPH05274364A (en) Optical disk filing device
JP3260632B2 (en) Multiple data format table management method
JPH0528066A (en) Service processing method
JP2747009B2 (en) Record addition method for indexed sequential files
JPH02208737A (en) Queue control system
JPH0391067A (en) Document preparing device
JPS63231527A (en) Time series retrieving system
JPS62144255A (en) Data file saving processor
JPH05233386A (en) Data base management system
JPH06259293A (en) Useless document batch deleting device
JPH0228846A (en) Data storing system
JPH0991300A (en) File management method
JPH06274404A (en) Data storage managing method
JPH04190454A (en) History data managing method
JPH05120340A (en) Routing address managing method
JPH0447346A (en) Decentraiized file processing system
JPH03276254A (en) Document control system
JPH0736747A (en) Method for managing information stored in different kinds of storage media
JPH05233499A (en) Computer system
JPH09146811A (en) File management device
JPH01169547A (en) Method for continuous output to sequential recording medium