JPH01307847A - File data processing system - Google Patents

File data processing system

Info

Publication number
JPH01307847A
JPH01307847A JP63139851A JP13985188A JPH01307847A JP H01307847 A JPH01307847 A JP H01307847A JP 63139851 A JP63139851 A JP 63139851A JP 13985188 A JP13985188 A JP 13985188A JP H01307847 A JPH01307847 A JP H01307847A
Authority
JP
Japan
Prior art keywords
file
data
memory
memory file
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
Application number
JP63139851A
Other languages
Japanese (ja)
Inventor
Kazuhiro Aoki
青木 一広
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 JP63139851A priority Critical patent/JPH01307847A/en
Publication of JPH01307847A publication Critical patent/JPH01307847A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To efficiently perform the processing to shorten the processing time by providing a memory file where processing object data is stored besides a processing object file to reduce the number of times of access to the processing object file. CONSTITUTION:When a file data processing program 1 is started, a memory file generating means 11 generates a memory file 4. A memory file retrieving means 13 uses input data inputted through a key input means 12 as the key to retrieve processing object data is outputted through an output means 16. When processing object data cannot be retrieved, a file retrieving means 14 retrieves processing object data in a processing object file 3. Processing object data obtained by this retrieving means 14 is registered in the memory file 4 by a memory file register means 15.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はファイルの入力方式に関し、特に処理対象ファ
イルより同一データを連続的に、または不連続的に何度
も読み込む場合のファイルデータ処理方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a file input method, and in particular to a file data processing method when reading the same data from a file to be processed many times continuously or discontinuously. Regarding.

〔従来の技術〕[Conventional technology]

従来、この種のファイルデータ処理方式は処理対象ファ
イルより処理対象データを必要に応じて読み込むように
していた。
Conventionally, this type of file data processing method reads data to be processed from a file to be processed as necessary.

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

上述した従来のファイルデータ処理方式は、処理対象フ
ァイルより同一データを連続的に、または不連続的に何
度も読み込む場合にも、その度に処理対象ファイルへの
アクセスが必要であるので、処理効率が悪く処理時間も
多くかかるという欠点がある。
The conventional file data processing method described above requires access to the file to be processed each time, even when reading the same data from the file to be processed many times, either continuously or discontinuously. The drawback is that it is inefficient and takes a lot of processing time.

本発明の目的は、上述の点を解消するために処理対象フ
ァイルへのアクセス回数をできるだけ減らし、処理の効
率化および処理時間の短縮化を計るファイルデータ処理
方式を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a file data processing method that reduces the number of accesses to a file to be processed as much as possible in order to solve the above-mentioned problems, improves processing efficiency, and shortens processing time.

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

本発明のファイルデータ処理方式は、メモリ上に処理対
象データを格納するメモリファイルを作成するメモリフ
ァイル作成手段と、前記処理対象データのキーとなるデ
ータを受けとるキー入力手段と、前記キー入力手段で得
たデータをキーとして前記メモリファイルの処理対象デ
ータを検索するメモリファイル検索手段と、前記メモリ
ファイル検索手段が前記処理対象データを検索できなか
ったときに前記キーを用いて処理対象ファイルの処理対
象データを検索するファイル検索手段と、前記ファイル
検索手段で得た処理対象データを前記メモリファイルに
登録するメモリファイル登録手段とを有することを特徴
とする。
The file data processing method of the present invention includes a memory file creation means for creating a memory file for storing data to be processed on a memory, a key input means for receiving data serving as a key for the data to be processed, and the key input means. a memory file search means for searching for data to be processed in the memory file using the obtained data as a key; and a memory file search means for searching for data to be processed in the file to be processed using the key when the memory file search means has not been able to search for the data to be processed in the file to be processed; It is characterized by comprising a file search means for searching data, and a memory file registration means for registering the processing target data obtained by the file search means in the memory file.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例のファイルデータ処理方式の
構成を示すブロック図である。同図において、ファイル
データ処理方式は、ファイルデータ処理プログラム1と
、入力データ2と、処理対象ファイル3と、メモリファ
イル4と、出力データ5とを有して構成されている。そ
してファイルデータ処理プログラム1は、メモリファイ
ル作成手段11と、キー入力手段12と、メモリファイ
ル検索手段13と、ファイル検索手段14と、メモリフ
ァイル登録手段15と、出力手段16とを含んで構成さ
れている。
FIG. 1 is a block diagram showing the configuration of a file data processing system according to an embodiment of the present invention. In the figure, the file data processing method includes a file data processing program 1, input data 2, a processing target file 3, a memory file 4, and output data 5. The file data processing program 1 includes a memory file creation means 11, a key input means 12, a memory file search means 13, a file search means 14, a memory file registration means 15, and an output means 16. ing.

入力データ2は処理対象データを処理対象ファイル3ま
たはメモリファイル4がら検索するときのキーとなる(
第3図(a)参照)。
Input data 2 is the key when searching for processing target data from processing target file 3 or memory file 4 (
(See Figure 3(a)).

処理対象ファイル3は、例えば磁気ディスク装置のよう
なランダムアクセス可能な補助記憶装置上に構成され、
データの一部にキーを含んだ形となって複数格納してい
る(第3図(b)参照)。
The processing target file 3 is configured on a randomly accessible auxiliary storage device such as a magnetic disk device,
A plurality of keys are stored as part of the data (see FIG. 3(b)).

メモリファイル4は、例えばRAMのようなランダムア
クセス可能な主記憶装置上に構成され、処理対象ファイ
ル3と同様に格納していて、ファイルデータ処理プログ
ラム1による処理対象データの検索または処理対象ファ
イル3より読み込んだ処理対象データを登録するための
ファイルである(第3図(C)参照)。
The memory file 4 is configured on a randomly accessible main storage device such as a RAM, and is stored in the same manner as the processing target file 3, and is used to search for processing target data by the file data processing program 1 or to process the processing target file 3. This is a file for registering data to be processed that has been read in (see FIG. 3(C)).

出力データ5はファイルデータ処理プログラム1により
検索された処理対象データである(第3図(f)参照)
Output data 5 is the processing target data searched by the file data processing program 1 (see FIG. 3(f)).
.

第2図はファイルデータ処理方式の動作を示す流れ図で
ある。同図においてファイルデータ処理方式の処理は、
初回判定ステップ21と、メモリファイル作成ステップ
22と、キー入力ステップ23と、メモリファイルでの
処理対象データ検索ステップ24と、検索判定ステップ
25と、処理対象ファイルでの処理対象データ検索ステ
ップ26と、メモリファイル登録ステップ27と、デー
タ出力ステップ28とを有する。
FIG. 2 is a flow chart showing the operation of the file data processing method. In the figure, the processing of the file data processing method is as follows:
an initial determination step 21, a memory file creation step 22, a key input step 23, a process target data search step 24 in the memory file, a search determination step 25, a process target data search step 26 in the process target file, It has a memory file registration step 27 and a data output step 28.

次に、ファイルデータ処理方式の動作について第3図(
a)〜(f)を参照しながら説明する。
Next, we will explain the operation of the file data processing method in Figure 3 (
This will be explained with reference to a) to (f).

ファイルデータ処理プログラム1が起動されると、始め
てこのプログラムが起動された場合であるから(ステッ
プ21の判定がイエス)、メモリファイル作成手段11
がメモリファイル4を作成する(ステップ22)。
When the file data processing program 1 is started, this is the first time this program has been started (the judgment in step 21 is YES), so the memory file creation means 11
creates memory file 4 (step 22).

次に、キー入力手段12によって処理対象データのキー
となるデータに2□をフィールド■から入力する(ステ
ップ23)。そしてメモリファイル検索手段13はキー
入力手段12からフィールド丁を受は取り、フィールド
■のデータに2、をキーとして、例えば第3図(c)に
示すようなメモリファイルにアクセスし、一致するキー
を有する処理対象データを検索する(ステップ24)。
Next, the key input means 12 inputs 2□ into the key data of the data to be processed from the field ■ (step 23). Then, the memory file search means 13 receives the field 2 from the key input means 12, uses the data in the field 2 as a key, accesses a memory file such as that shown in FIG. Search for processing target data having (step 24).

一致するキーが検索されないなめ(検索判定ステップ2
5がノー)、ファイル検索手段14がフィールド丁のデ
ータに2.をキーとして、例えは第3図(b)に示すよ
うな処理対象ファイルにアクセスし、一致するキーを有
する処理対象データF2を検索する(ステップ26)。
If a matching key is not found (search determination step 2)
5 is no), the file search means 14 searches the data in the field 2. Using this as a key, a file to be processed, for example as shown in FIG. 3(b), is accessed and data to be processed F2 having a matching key is searched for (step 26).

続いてメモリファイル登録手段15はファイル検索手段
14により得た処理対象データF2を第3図(d)に示
すようにメモリファイルM1に登録する(ステップ27
)と共に、出力手段16を介してそれを第311ffi
(f)のフィールドOにセットする(ステップ28)。
Subsequently, the memory file registration means 15 registers the processing target data F2 obtained by the file search means 14 in the memory file M1 as shown in FIG. 3(d) (step 27).
) and output it via the output means 16 to the 311ffi.
(f) is set in field O (step 28).

以上て1回目の動作が終了する。This completes the first operation.

次に、K11をキーに持つデータの入力要求が来ると、
2回目であるからく初回判定21がノー)、キー入力手
段12が処理対象データのキーとなるデータIり11を
フィールド■から入力する(ステップ23)。そしてメ
モリファイル検索手段13はキー入力手段12からフィ
ールド■を受は取り、フィールド■のデータKllをキ
ーとして、第3図(d)に示すメモリファイルにアクセ
スし、一致するキーを有する処理対象データを検索する
(ステップ24)。
Next, when a request to input data with K11 as the key comes,
If this is the second time (the first judgment 21 is NO), the key input means 12 inputs the data 11 which is the key of the data to be processed from the field (2) (step 23). Then, the memory file search means 13 receives the field ■ from the key input means 12, uses the data Kll of the field ■ as a key, and accesses the memory file shown in FIG. (step 24).

一致するキーが検索されないため(検索判定ステップ2
5がノー)、ファイル検索手段14がフィールド■のデ
ータに11をキーにして、第3図(b)に示す処理対象
ファイルにアクセスし、−致するキーを有する処理対象
データF1を検索する(ステップ26)。続いてメモリ
ファイル登録手段15はファイル検索手段14により得
た処理対象データF1を第3図(e)に示すようにメモ
リファイルM2に登録する(ステップ27)と共に、出
力手段16を介してそれを第3図(f)のフィールドO
にセットする(ステップ28)。以上で2回目の動作か
終了する。
Because no matching key is found (search determination step 2)
5 is no), the file search means 14 accesses the processing target file shown in FIG. 3(b) using 11 as a key for the data in the field ■, and searches for processing target data F1 having a key matching (-). Step 26). Subsequently, the memory file registration means 15 registers the processing target data F1 obtained by the file search means 14 in the memory file M2 as shown in FIG. Field O in Figure 3(f)
(step 28). This completes the second operation.

次に、K21をキーに持つデータの入力要求が来ると、
3回目であるから(初回判定21がノー)、キー入力手
段12が処理対象データのキーとなるデータに21をフ
ィールド■から入力する(ステップ23)。そしてメモ
リファイル検索手段13はキー入力手段12からフィー
ルドエを受は取り、フィールドエのデータに21をキー
として第3図(e)に示すメモリファイルにアクセスし
、一致するキーを有する処理対象データを検索する(ス
テップ24)。このときに21をキーに持つデータM1
が検索されたため(検索判定25はイエス)、出力手段
を介してそれを第3図(f>のフィールド0にセットす
る(ステップ28)。
Next, when a request to input data with K21 as the key comes,
Since this is the third time (first time determination 21 is NO), the key input means 12 inputs 21 from field 2 as the key data for the data to be processed (step 23). Then, the memory file search means 13 receives the field E from the key input means 12, accesses the memory file shown in FIG. (step 24). At this time, data M1 with 21 as the key
Since it has been retrieved (retrieval decision 25 is YES), it is set in field 0 of FIG. 3 (f>) via the output means (step 28).

〔発明の効果〕〔Effect of the invention〕

本発明は、補助記憶装置である磁気ディスク装置内のフ
ァイルをアクセスすることを避け、主記憶装置であるメ
モリ上にファイルデータを格納してアクセスするように
して、同一データを繰り返し使用する場合にファイルへ
のアクセス時間の短縮かできるという効果がある。
The present invention avoids accessing files in a magnetic disk device, which is an auxiliary storage device, and stores and accesses file data in the memory, which is a main storage device, so that the same data can be used repeatedly. This has the effect of shortening the time required to access files.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明のファイルデータ処理方式の一実施例を
示すブロック内、第2図は処理手順を示す流れ図、第3
図(a)〜(f)はデータのフォーマットを示す説明図
である。 1・・・ファイルデータ処理プログラム、2・・・入力
データ、3・・・処理対象ファイル、4・・・メモリフ
ァイル、5・・・出力データ、11・・・メモリファイ
ル作成手段、12・・・キー入力手段、13・・・メモ
リファイル検索手段、14・・・ファイル検索手段、1
5・・・メモリファイル登録手段、16・・・出力手段
Fig. 1 shows a block diagram showing an embodiment of the file data processing method of the present invention, Fig. 2 is a flow chart showing the processing procedure, and Fig. 3 shows a block diagram showing an embodiment of the file data processing method of the present invention.
Figures (a) to (f) are explanatory diagrams showing data formats. DESCRIPTION OF SYMBOLS 1...File data processing program, 2...Input data, 3...Processing target file, 4...Memory file, 5...Output data, 11...Memory file creation means, 12... - Key input means, 13...Memory file search means, 14...File search means, 1
5...Memory file registration means, 16...Output means.

Claims (1)

【特許請求の範囲】[Claims] メモリ上に処理対象データを格納するメモリファイルを
作成するメモリファイル作成手段と、前記処理対象デー
タのキーとなるデータを受けとるキー入力手段と、前記
キー入力手段で得たデータをキーとして前記メモリファ
イルの処理対象データを検索するメモリファイル検索手
段と、前記メモリファイル検索手段が前記処理対象デー
タを検索できなかったときに前記キーを用いて処理対象
ファイルの処理対象データを検索するファイル検索手段
と、前記ファイル検索手段で得た処理対象データを前記
メモリファイルに登録するメモリファイル登録手段とを
有することを特徴とするファイルデータ処理方式。
a memory file creation means for creating a memory file in which data to be processed is stored in a memory; a key input means for receiving data serving as a key for the data to be processed; and a key input means for generating the memory file using the data obtained by the key input means as a key. a memory file search means for searching for data to be processed in the file to be processed using the key when the memory file search means has not been able to search for the data to be processed; A file data processing method comprising: memory file registration means for registering processing target data obtained by the file search means in the memory file.
JP63139851A 1988-06-06 1988-06-06 File data processing system Pending JPH01307847A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63139851A JPH01307847A (en) 1988-06-06 1988-06-06 File data processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63139851A JPH01307847A (en) 1988-06-06 1988-06-06 File data processing system

Publications (1)

Publication Number Publication Date
JPH01307847A true JPH01307847A (en) 1989-12-12

Family

ID=15255010

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63139851A Pending JPH01307847A (en) 1988-06-06 1988-06-06 File data processing system

Country Status (1)

Country Link
JP (1) JPH01307847A (en)

Similar Documents

Publication Publication Date Title
JPH081642B2 (en) Keyword search method
JPH05314188A (en) Retrieval processing system for data having range
JPH05204978A (en) Information retrieving device
JPS6024631A (en) Registering and retrieving system of information
JPH10240744A (en) System for processing retrieval of range division chart and method therefor and recording medium for recording retrieval processing program
JP3348279B2 (en) Price lookup data search circuit, search method therefor, and recording medium storing control program therefor
JPH02116936A (en) Reorganizing system
JPS633351A (en) Buffer retrieving control system
JPS6014324A (en) Associative storage device
JP2747009B2 (en) Record addition method for indexed sequential files
JPS6366635A (en) Index retrieving system
JPH03126141A (en) Code file retrieving device
JPH0371262A (en) Data processor
JPH09330322A (en) Data retrieval device
JPH05165891A (en) Database data registration / search method
JPH04297956A (en) Multimedium retrieval and processing system
JPH05204729A (en) Data base access system
JPH05241925A (en) File access managing system
JP2000194720A (en) System and method for processing huge data file
JPH03102439A (en) File control system
JPH0553886A (en) Table access managing system
JPH07295993A (en) System for retrieving relational record
JPH01129324A (en) data retrieval device
JPH04304559A (en) Data retrieving system
JPS62180437A (en) File input/output system