JPH0535791A - Retrieving sequential file - Google Patents

Retrieving sequential file

Info

Publication number
JPH0535791A
JPH0535791A JP3188531A JP18853191A JPH0535791A JP H0535791 A JPH0535791 A JP H0535791A JP 3188531 A JP3188531 A JP 3188531A JP 18853191 A JP18853191 A JP 18853191A JP H0535791 A JPH0535791 A JP H0535791A
Authority
JP
Japan
Prior art keywords
file
sequential
search
sequential file
index
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
JP3188531A
Other languages
Japanese (ja)
Inventor
Teiichi Omote
禎一 表
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 JP3188531A priority Critical patent/JPH0535791A/en
Publication of JPH0535791A publication Critical patent/JPH0535791A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To shorten retrieval time when retrieving in large amount, relating to sequential files. CONSTITUTION:A file control part 3 reads, under instruction from an upper- priority device, a sequential file 4 and generates or deletes a temporary index key file 5, and in addition, controls the sequential file 4 and the temporary index key file 5 so as to realize index retrieval. Therefore, when retrieving in large amount, wasteful processings are limited to minimum and retrieval time comes to be short consequently, high efficiency is obtained.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータシステム
におけて索引キーを持たない順編成ファイルに対し検索
を行なう方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for searching a sequential file having no index key in a computer system.

【0002】[0002]

【従来の技術】従来の順編成ファイルの検索方式では、
検索の要求が生じた時に、順編成ファイルに格納されて
いるデータを先頭より読み込み、必要とするデータかど
うか検査を行ない、必要とするデータを見つけるまで、
読み込み・検査を繰り返し行なっていた。
2. Description of the Related Art In a conventional sequential file search method,
When a search request occurs, read the data stored in the sequential file from the beginning, check whether it is the required data, and find the required data.
I was repeatedly reading and inspecting.

【0003】新たに検索の要求が生じた場合も前記と同
様の処理を繰り返し行なっていた。
Even when a new search request is made, the same processing as described above is repeated.

【0004】[0004]

【発明が解決しようとする課題】この従来の順編成ファ
イルの検索方式では、1回の検査を行うために、不必要
なデータの読み込みが行なわれ、多量の検索の行なう場
合には、この不必要な処理が増加し、非常に効率が悪
く、又検索時間も増大するという問題があった。
In this conventional sequential file retrieval method, unnecessary data is read in order to perform a single inspection, and when a large number of retrievals are made, this error is not read. There is a problem that the required processing increases, the efficiency is very low, and the search time also increases.

【0005】[0005]

【課題を解決するための手段】本発明の順編成ファイル
の検索方式は、順編成ファイルの検索要求に対し、索引
検索に必要な索引キーを格納している検索キー部及びデ
ータの順編成ファイル内の位置を示すアドレス部の2つ
の領域を持つ一時索引キーファイルを作成してからこの
一時索引キーファイルを用いて前記順編成ファイルを索
引検索することを特徴とする。
SUMMARY OF THE INVENTION A sequential file search method according to the present invention is a sequential file of a search key portion and a data storing an index key required for an index search in response to a sequential file search request. It is characterized in that a temporary index key file having two areas of an address part indicating a position in is created and then the sequential file is index-searched using this temporary index key file.

【0006】[0006]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0007】図1は、本発明の一実施例の構成図であ
る。上位装置1は、コンピュータシステムであり、ファ
イル制御部3・順編成ファイル4・一時索引キーファイ
ル5は、上位装置1に接続されている磁気ディスク2上
に存在する。
FIG. 1 is a block diagram of an embodiment of the present invention. The higher-level device 1 is a computer system, and the file control unit 3, the sequential organization file 4, and the temporary index key file 5 exist on the magnetic disk 2 connected to the higher-level device 1.

【0008】次に、本実施例の動作について説明する。Next, the operation of this embodiment will be described.

【0009】上位装置1は、順編成ファイル4での索引
検索の要求が発生すると、ファイル制御部3に一時索引
キーファイル5の作成指令を発行する。次にファイル制
御部3は、指令を受けて順編成ファイル4を全て読み込
み順編成ファイル4の任意の項目をキーとし、検索キー
部とデータの順編成ファイル内の位置を示すアドレス部
の2つの領域を持つ一時索引キーファイル5を作成し、
作成終了後上位装置1へ通知する。上位装置1は、その
通知を受領後は、ファイル制御部3の索引検索指示を行
ない、ファイル制御部3は、順編成ファイル4及び一時
索引キーファイル5を制御し、順編成ファイル4を索引
検査し検索結果を上位装置1へ通知する。
When a request for an index search in the sequential file 4 is made, the host device 1 issues a command to create a temporary index key file 5 to the file controller 3. Then, the file control unit 3 receives all the instructions, reads all the sequential files 4, and uses any item of the sequential file 4 as a key, and uses two items, that is, a search key section and an address section indicating the position of the data in the sequential file. Create a temporary index key file 5 with areas,
After the creation is completed, the higher-level device 1 is notified. After receiving the notification, the higher-level device 1 issues an index search instruction to the file control unit 3, and the file control unit 3 controls the sequential file 4 and the temporary index key file 5 to check the sequential file 4 for an index. Then, the search result is notified to the higher-level device 1.

【0010】また、上位装置1は、索引検査の要求が消
滅した場合は、ファイル制御部3へ通知し、ファイル制
御部3は、一時・索引キーファイル5を解放し、終了後
上位装置1へ通知する。
Further, when the request for the index check disappears, the higher-level device 1 notifies the file control unit 3, and the file control unit 3 releases the temporary / index key file 5 and, after the end, sends it to the higher-level device 1. Notice.

【0011】[0011]

【発明の効果】以上説明したように本発明は、順編成フ
ァイルの索引検索の必要性が生じた時に、任意の項目を
キーとして一時索引キーファイルを作成し、順編成ファ
イルに対して索引検索を行なえるようにしてたため、従
来のような順編成ファイルのデータを先頭より順に読み
込む検索を複数回行なう必要がなく、多量の検索を行な
う場合には、従来の技術と比較して、非常に少ない時間
で検索を行なえるという効果を有する。
As described above, according to the present invention, when it becomes necessary to search the index of a sequential file, a temporary index key file is created using any item as a key, and the index search is performed on the sequential file. Since it is possible to perform the above, it is not necessary to perform the search for reading the data of the sequential file sequentially from the beginning as in the conventional case, and when performing a large number of searches, compared to the conventional technology, It has an effect that a search can be performed in a short time.

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

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

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

1 上位装置 2 磁気ディスク 3 ファイル制御部 4 順編成ファイル 5 一時索引キーファイル 1 Upper device 2 Magnetic disk 3 File control unit 4 Sequential file 5 Temporary index key file

Claims (1)

【特許請求の範囲】 【請求項1】 順編成ファイルの検索要求に対し、索引
検索に必要な索引キーを格納している検索キー部及びデ
ータの順編成ファイル内の位置を示すアドレス部の2つ
の領域を持つ一時索引キーファイルを作成してからこの
一時索引キーファイルを用いて前記順編成ファイルを索
引検索することを特徴とする順編成ファイルの検索方
式。
What is claimed is: 1. A search key part storing an index key required for an index search in response to a search request for a sequential file, and an address part indicating the position of data in the sequential file. A method for searching a sequential file, wherein a temporary index key file having one area is created and then the sequential file is index-searched using this temporary index key file.
JP3188531A 1991-07-29 1991-07-29 Retrieving sequential file Pending JPH0535791A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3188531A JPH0535791A (en) 1991-07-29 1991-07-29 Retrieving sequential file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3188531A JPH0535791A (en) 1991-07-29 1991-07-29 Retrieving sequential file

Publications (1)

Publication Number Publication Date
JPH0535791A true JPH0535791A (en) 1993-02-12

Family

ID=16225340

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3188531A Pending JPH0535791A (en) 1991-07-29 1991-07-29 Retrieving sequential file

Country Status (1)

Country Link
JP (1) JPH0535791A (en)

Similar Documents

Publication Publication Date Title
US7526469B2 (en) Method and system of database management with shared area
JPH0535791A (en) Retrieving sequential file
JPS634334A (en) Electronic file device for document image
JPH0239225A (en) Filing system
JPH0728836A (en) Database search method and database system using this method
JPH03174654A (en) Filing method and its device
JPH0644302A (en) Data base retrieval system
JPH05128050A (en) Data retrieval control method in electronic computer system
JPH06149647A (en) Multi-media file managing system
JPS6319052A (en) High speed label accessing system
JPH0659948A (en) File management system
JPH05298166A (en) Data control device
JPS62177642A (en) File management system for postscript filing device
JPH0644300A (en) Information retrieval device
JPH06275023A (en) Information recorder
JPH04336341A (en) File access control system
JPH05143643A (en) File retrieval system
JPH0877044A (en) Database controller
JPH05250243A (en) Data processing system for extended storage device
JPS63250739A (en) Filing device
JPH02157934A (en) variable length data processing device
JPH03103916A (en) Track formatting system for magnetic disk medium
JPH0398167A (en) Adverse retrieving system for index forward compiling file
JPS62281030A (en) Document retrieving and processing system
JPH04310143A (en) Automatic recomposition processor for multi-index order composition file