JPH0652021A - File sort access system - Google Patents

File sort access system

Info

Publication number
JPH0652021A
JPH0652021A JP4219802A JP21980292A JPH0652021A JP H0652021 A JPH0652021 A JP H0652021A JP 4219802 A JP4219802 A JP 4219802A JP 21980292 A JP21980292 A JP 21980292A JP H0652021 A JPH0652021 A JP H0652021A
Authority
JP
Japan
Prior art keywords
file
sort
record
search table
request
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
JP4219802A
Other languages
Japanese (ja)
Inventor
Akinori Ito
晃徳 伊藤
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 JP4219802A priority Critical patent/JPH0652021A/en
Publication of JPH0652021A publication Critical patent/JPH0652021A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To decrease the capacity of a secondary storage device, and also, to prevent a user program from being complicated, in the case of accessing a sort object file in order of plural codes. CONSTITUTION:A sort retrieval table file generating means 16 extracts a key value from each record of a sort object file 41, sorts it in accordance with a sequence of a designated code classification and generates sort retrieval table files 51, 52, .... A fort file opening means 11 opens a sort retrieval table file corresponding to the code classification and the sort object file 41, a sort file reading means 12 obtains a record relative position from the sort retrieval table file corresponding to the code classification and reads out a real record from the sort object file 41, and a sort file closing means 13 closes the sort retrieval table file corresponding to the code classification and the sort object file 41.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は順序付けられたファイル
のアクセス方式に関し、特に複数のレコードからなるソ
ート対象ファイルを各レコードのいくつかのフィールド
をキーにして複数のコード順によりアクセスするファイ
ルソートアクセス方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an ordered file access method, and more particularly to a file sort access for accessing a file to be sorted consisting of a plurality of records in a plurality of code orders using some fields of each record as keys. Regarding the scheme.

【0002】[0002]

【従来の技術】従来、ファイルをソートするときに、文
字型のフィールドをキーにする場合には、使用するコー
ドにより昇順,降順,辞書順等に順序付けるのが一般的
である。利用者プログラムが使用するコード種別が異な
る場合に目的のコード種別でファイルをアクセスするに
は、あらかじめ各コード種別でソートしたソート済ファ
イルを作成するか、利用者プログラム内で目的のコード
種別にコード変換した後にソート処理を行っていた。
2. Description of the Related Art Conventionally, when sorting a file, when a character type field is used as a key, it is common to order files in ascending order, descending order, dictionary order, etc. depending on the code used. To access a file with the target code type when the code types used by the user program are different, create a sorted file that is sorted by each code type in advance, or code to the target code type in the user program. Sorting was done after conversion.

【0003】また、遠隔ファイルへのアクセスの場合に
も、あらかじめ各コード種別でソートしたソート済ファ
イルを作成するか、利用者プログラム内で目的のコード
種別にコード変換した後にソート処理を行っていた。
Also, in the case of accessing a remote file, the sorted file is created by sorting in advance by each code type, or the sorting process is performed after the code conversion into the desired code type in the user program. .

【0004】[0004]

【発明が解決しようとする課題】上述した従来のファイ
ルソートアクセス方式では、以下に示す問題点があっ
た。
The above-mentioned conventional file sort access method has the following problems.

【0005】コード種別毎にソート済ファイルを持つ場
合には、2次記憶装置の容量を大量に必要とするととも
に、レコードの追加,削除等のデータの変更が発生する
と、複数のコード種別対応にソートされたソート済ファ
イルを再度構築しなければならないという問題点があっ
た。
If there is a sorted file for each code type, a large amount of secondary storage device capacity is required, and when data changes such as record addition and deletion occur, a plurality of code types are supported. There was a problem that a sorted sorted file had to be rebuilt.

【0006】また、利用者プログラム内でコード変換後
にソートした場合には、利用者プログラムが複雑になる
とともに実行時に処理が多量に必要となって性能が悪く
なるという問題点があった。
Further, when the sorting is performed after the code conversion in the user program, there is a problem that the user program becomes complicated and a large amount of processing is required at the time of execution to deteriorate the performance.

【0007】さらに、1つのコンピュータでなく、ネッ
トワーク上に接続されている複数のコンピュータで利用
し、各コンピュータの利用者プログラムが使用している
コード種別がJISコード,EBCDICコード,EU
Cコード,MS−JISコード等のように異なる場合に
は、コード順の処理を行うためには、利用者プログラム
がコード体系の違いを意識しなければならず利用者プロ
グラムの開発が困難になるとともに、コード種別分のフ
ァイルが必要になってしまうため、1コンピュータで発
生する上記問題点を非常に大きくしてしまっていた。
Further, the code types used by a plurality of computers connected on a network instead of one computer and used by a user program of each computer are JIS code, EBCDIC code, EU.
When different such as C code and MS-JIS code, in order to process in code order, the user program must be aware of the difference in code system, which makes development of the user program difficult. At the same time, the files for the code types are needed, and the above-mentioned problems that occur in one computer are greatly increased.

【0008】本発明の目的は、上述の点に鑑み、2次記
憶装置の容量が少なくてすむとともに利用者プログラム
も複雑化しないですむようにしたファイルソートアクセ
ス方式を提供することにある。
In view of the above points, it is an object of the present invention to provide a file sort access method in which the capacity of the secondary storage device is small and the user program does not become complicated.

【0009】また、本発明の他の目的は、2次記憶装置
の容量が少なくてすむとともに利用者プログラムも複雑
化しないですみ、かつレコードの変更が発生してもソー
ト済ファイルを再構築しなくてもすむようにしたファイ
ルソートアクセス方式を提供することにある。
Another object of the present invention is that the capacity of the secondary storage device is small, the user program does not become complicated, and the sorted file is reconstructed even if a record change occurs. It is to provide a file sort access method that does not need to be included.

【0010】さらに、本発明の別の目的は、ネットワー
ク上に接続されている複数のコンピュータの利用者プロ
グラムが使用しているコード種別が異なる場合でも、利
用者プログラムがコード体系の違いを意識しなくてもす
むとともに、コード種別分のファイルが必要でないよう
にしたファイルソートアクセス方式を提供することにあ
る。
Further, another object of the present invention is to make the user programs aware of the difference in the code system even when the code types used by the user programs of a plurality of computers connected to the network are different. It is not necessary to provide a file sort access method that eliminates the need for files of the code type.

【0011】[0011]

【課題を解決するための手段】本発明のファイルソート
アクセス方式は、複数のレコードからなるソート対象フ
ァイルを各レコードのいくつかのフィールドをキーにし
て複数のコード順によりアクセスするファイルソートア
クセス方式において、指定されたキー値フィールド位置
に基づいて前記ソート対象ファイルの各レコードからキ
ー値を抽出し指定されたコード種別の順序に従ってソー
トしたキー値を前記ソート対象ファイル内のレコード相
対位置とともにレコード対応部に順次格納してなるソー
ト検索テーブルファイルを作成するソート検索テーブル
ファイル作成手段と、利用者プログラムからのファイル
オープン要求に応じて指定されたコード種別に対応する
ソート検索テーブルファイルおよび前記ソート対象ファ
イルをオープンするソートファイルオープン手段と、前
記利用者プログラムからの次レコード読出し要求に応じ
て指定されたコード種別に対応するソート検索テーブル
ファイルの次のレコード対応部からレコード相対位置を
得て前記ソート対象ファイルから実レコードを読み出す
ソートファイルリード手段と、前記利用者プログラムか
らのファイルクローズ要求に応じて指定されたコード種
別に対応するソート検索テーブルファイルおよび前記ソ
ート対象ファイルをクローズするソートファイルクロー
ズ手段とを有する。
The file sort access method of the present invention is a file sort access method in which a sort target file including a plurality of records is accessed in a plurality of code orders by using some fields of each record as keys. A key value extracted from each record of the sort target file based on a designated key value field position and sorted in accordance with a designated code type order, and a key value together with a record relative position in the sort target file A sort search table file creating means for creating a sort search table file sequentially stored in the file, a sort search table file corresponding to a code type specified in response to a file open request from a user program, and the sort target file. Open The sort file opening means and the record relative position are obtained from the next record corresponding part of the sort search table file corresponding to the code type specified in response to the next record read request from the user program, and the record relative position is obtained from the sort target file. It has a sort file reading means for reading out records, a sort search table file corresponding to a code type designated in response to a file close request from the user program, and a sort file closing means for closing the sort target file.

【0012】また、本発明のファイルソートアクセス方
式は、複数のレコードからなるソート対象ファイルを各
レコードのいくつかのフィールドをキーにして複数のコ
ード順によりアクセスするファイルソートアクセス方式
において、指定されたキー値フィールド位置に基づいて
前記ソート対象ファイルの各レコードからキー値を抽出
し指定されたコード種別の順序に従ってソートしたキー
値を前記ソート対象ファイル内のレコード相対位置とと
もにレコード対応部に順次格納してなるソート検索テー
ブルファイルを作成するソート検索テーブルファイル作
成手段と、利用者プログラムからのファイルオープン要
求に応じて指定されたコード種別に対応するソート検索
テーブルファイルおよび前記ソート対象ファイルをオー
プンするソートファイルオープン手段と、前記利用者プ
ログラムからの次レコード読出し要求に応じて指定され
たコード種別に対応するソート検索テーブルファイルの
次のレコード対応部からレコード相対位置を得て前記ソ
ート対象ファイルから実レコードを読み出すソートファ
イルリード手段と、前記利用者プログラムからのファイ
ルクローズ要求に応じて指定されたコード種別に対応す
るソート検索テーブルファイルおよび前記ソート対象フ
ァイルをクローズするソートファイルクローズ手段と、
前記利用者プログラムからのレコード追加要求に応じて
前記ソート対象ファイルに追加レコードを追加するとと
もに前記ソート対象ファイルから作成されたすべてのソ
ート検索テーブルファイルに追加レコードのレコード対
応部をソートして登録するソートファイルレコード追加
手段と、前記利用者プログラムからのレコード削除要求
に応じて前記ソート対象ファイルから削除レコードを削
除するとともに前記ソート対象ファイルから作成された
すべてのソート検索テーブルファイルから削除レコード
のレコード対応部を削除するソートファイルレコード削
除手段とを有する。
The file sort access method of the present invention is specified in the file sort access method in which a file to be sorted consisting of a plurality of records is accessed in a plurality of code orders by using some fields of each record as keys. The key value is extracted from each record of the sort target file based on the key value field position, and the key value sorted according to the specified code type order is sequentially stored in the record corresponding part together with the record relative position in the sort target file. Sort search table file creating means for creating a sort search table file, a sort search table file corresponding to a code type specified in response to a file open request from a user program, and a sort file for opening the sort target file. File opening means and the record relative position from the next record corresponding part of the sort search table file corresponding to the code type specified in response to the next record read request from the user program, and the actual record from the sort target file is obtained. A sort file reading means for reading out, a sort search table file corresponding to a code type designated in response to a file close request from the user program, and a sort file closing means for closing the sort target file,
In response to a record addition request from the user program, an additional record is added to the sort target file, and the record corresponding parts of the additional record are sorted and registered in all sort search table files created from the sort target file. Sort file record adding means and delete record deletion from the sort target file in response to a record delete request from the user program, and record correspondence of the delete record from all sort search table files created from the sort target file And sort file record deleting means for deleting a copy.

【0013】さらに、本発明のファイルソートアクセス
方式は、複数のレコードからなるソート対象ファイルが
存在するファイル所在コンピュータと遠隔コンピュータ
とがネットワークで接続されたコンピュータシステムに
おいて前記ソート対象ファイルを各レコードのいくつか
のフィールドをキーにして複数のコード順によりアクセ
スするファイルソートアクセス方式において、前記遠隔
コンピュータが、指定されたキー値フィールド位置およ
び利用者プログラムが使用しているコード種別を乗せた
ファイルオープン要求,次レコード読出し要求,ファイ
ルクローズ要求,レコード追加要求およびレコード削除
要求を前記ファイル所在コンピュータに転送する遠隔ソ
ートファイルアクセス手段を有し、前記ファイル所在コ
ンピュータが、指定されたキー値フィールド位置に基づ
いて前記ソート対象ファイルの各レコードからキー値を
抽出し指定されたコード種別の順序に従ってソートした
キー値を前記ソート対象ファイル内のレコード相対位置
とともにレコード対応部に順次格納してなるソート検索
テーブルファイルを作成するソート検索テーブルファイ
ル作成手段と、前記遠隔ソートファイルアクセス手段か
らの要求を受けて各種のソートファイルアクセス手段に
分配し結果を返却する遠隔ソートファイル要求受付け手
段と、前記遠隔ソートファイルアクセス手段から転送さ
れてきたファイルオープン要求に応じて指定されたコー
ド種別に対応するソート検索テーブルファイルおよび前
記ソート対象ファイルをオープンするソートファイルオ
ープン手段と、前記遠隔ソートファイルアクセス手段か
ら転送されてきた次レコード読出し要求に応じて指定さ
れたコード種別に対応するソート検索テーブルファイル
の次のレコード対応部からレコード相対位置を得て前記
ソート対象ファイルから実レコードを読み出すソートフ
ァイルリード手段と、前記遠隔ソートファイルアクセス
手段から転送されてきたファイルクローズ要求に応じて
指定されたコード種別に対応するソート検索テーブルフ
ァイルおよび前記ソート対象ファイルをクローズするソ
ートファイルクローズ手段と、前記遠隔ソートファイル
アクセス手段から転送されてきたレコード追加要求に応
じて前記ソート対象ファイルに追加レコードを追加する
とともに前記ソート対象ファイルから作成されたすべて
のソート検索テーブルファイルに追加レコードのレコー
ド対応部をソートして登録するソートファイルレコード
追加手段と、前記遠隔ソートファイルアクセス手段から
転送されてきたレコード削除要求に応じて前記ソート対
象ファイルから削除レコードを削除するとともに前記ソ
ート対象ファイルから作成されたすべてのソート検索テ
ーブルファイルから削除レコードのレコード対応部を削
除するソートファイルレコード削除手段とを有する。
Further, according to the file sort access method of the present invention, in a computer system in which a file location computer having a file to be sorted consisting of a plurality of records and a remote computer are connected by a network, the number of the files to be sorted from each of the files to be sorted is determined. In a file sort access method in which a certain field is used as a key to access in a plurality of code orders, the remote computer requests the file open with the specified key value field position and the code type used by the user program, A remote sort file access means for transferring a next record read request, a file close request, a record addition request and a record deletion request to the file location computer is provided, and the file location computer is The key value is extracted from each record of the sort target file based on the selected key value field position, and the key value sorted according to the order of the specified code type is sequentially transferred to the record corresponding part together with the record relative position in the sort target file. Sort search table file creating means for creating a stored sort search table file, and remote sort file request accepting means for receiving a request from the remote sort file access means and distributing it to various sort file access means and returning the result. A sort search table file corresponding to a code type designated in response to a file open request transferred from the remote sort file access means and a sort file open means for opening the sort target file; and the remote sort file. The sort for reading the actual record from the sort target file by obtaining the record relative position from the next record corresponding part of the sort search table file corresponding to the code type designated in response to the next record read request transferred from the access means. A file read means, a sort search table file corresponding to a code type designated in response to a file close request transferred from the remote sort file access means, and a sort file close means for closing the sort target file; In response to the record addition request transferred from the sort file access means, an additional record is added to the sort target file and the record of the additional record is added to all sort search table files created from the sort target file. Sorting file record adding means for sorting and registering the corresponding portions, and deleting deleted records from the sorting target file in response to a record deletion request transferred from the remote sorting file access means, and creating from the sorting target file. And a sort file record deleting means for deleting the record corresponding part of the deleted record from all the sorted search table files.

【0014】[0014]

【作用】本発明のファイルソートアクセス方式では、ソ
ート検索テーブルファイル作成手段が指定されたキー値
フィールド位置に基づいてソート対象ファイルの各レコ
ードからキー値を抽出し指定されたコード種別の順序に
従ってソートしたキー値をソート対象ファイル内のレコ
ード相対位置とともにレコード対応部に順次格納してな
るソート検索テーブルファイルを作成し、ソートファイ
ルオープン手段が利用者プログラムからのファイルオー
プン要求に応じて指定されたコード種別に対応するソー
ト検索テーブルファイルおよびソート対象ファイルをオ
ープンし、ソートファイルリード手段が利用者プログラ
ムからの次レコード読出し要求に応じて指定されたコー
ド種別に対応するソート検索テーブルファイルの次のレ
コード対応部からレコード相対位置を得てソート対象フ
ァイルから実レコードを読み出し、ソートファイルクロ
ーズ手段が利用者プログラムからのファイルクローズ要
求に応じて指定されたコード種別に対応するソート検索
テーブルファイルおよびソート対象ファイルをクローズ
する。
In the file sort access method of the present invention, the sort search table file creating means extracts the key value from each record of the file to be sorted based on the designated key value field position and sorts according to the designated code type order. Create a sort search table file that sequentially stores the selected key values together with the record relative position in the file to be sorted in the record corresponding part, and the sort file open means is the code specified in response to the file open request from the user program. Opens the sort search table file and sort target file corresponding to the type, and the sort file read means corresponds to the next record of the sort search table file corresponding to the code type specified in response to the next record read request from the user program. From the department The actual record is read from the sort target file by obtaining the code relative position, and the sort file closing means closes the sort search table file and the sort target file corresponding to the code type specified in response to the file close request from the user program. .

【0015】また、本発明のファイルソートアクセス方
式では、ソート検索テーブルファイル作成手段が指定さ
れたキー値フィールド位置に基づいてソート対象ファイ
ルの各レコードからキー値を抽出し指定されたコード種
別の順序に従ってソートしたキー値をソート対象ファイ
ル内のレコード相対位置とともにレコード対応部に順次
格納してなるソート検索テーブルファイルを作成し、ソ
ートファイルオープン手段が利用者プログラムからのフ
ァイルオープン要求に応じて指定されたコード種別に対
応するソート検索テーブルファイルおよびソート対象フ
ァイルをオープンし、ソートファイルリード手段が利用
者プログラムからの次レコード読出し要求に応じて指定
されたコード種別に対応するソート検索テーブルファイ
ルの次のレコード対応部からレコード相対位置を得てソ
ート対象ファイルから実レコードを読み出し、ソートフ
ァイルクローズ手段が利用者プログラムからのファイル
クローズ要求に応じて指定されたコード種別に対応する
ソート検索テーブルファイルおよびソート対象ファイル
をクローズし、ソートファイルレコード追加手段が利用
者プログラムからのレコード追加要求に応じてソート対
象ファイルに追加レコードを追加するとともにソート対
象ファイルから作成されたすべてのソート検索テーブル
ファイルに追加レコードのレコード対応部をソートして
登録し、ソートファイルレコード削除手段が利用者プロ
グラムからのレコード削除要求に応じてソート対象ファ
イルから削除レコードを削除するとともにソート対象フ
ァイルから作成されたすべてのソート検索テーブルファ
イルから削除レコードのレコード対応部を削除する。
Further, in the file sort access method of the present invention, the sort search table file creating means extracts the key value from each record of the file to be sorted based on the designated key value field position, and the order of the designated code type. According to the file open request from the user program, the sort file open method is specified by creating the sort search table file in which the key values sorted according to The sort search table file corresponding to the code type and the sort target file are opened, and the sort file read means selects the next file of the sort search table file corresponding to the code type specified in response to the next record read request from the user program. record The actual record is read from the sort target file by obtaining the record relative position from the response part, and the sort file closing means and sort target table file and sort target file corresponding to the code type specified in response to the file close request from the user program. And the sort file record adding means adds the additional record to the sort target file in response to the record add request from the user program, and supports the record of the added record to all sort search table files created from the sort target file. Sort and register the parts, and the sort file record deletion means deletes the deleted records from the sort target file in response to the record deletion request from the user program, and all sort files created from the sort target file. To delete a record corresponding portion of the deleted records from the search table file.

【0016】さらに、本発明のファイルソートアクセス
方式では、遠隔コンピュータの遠隔ソートファイルアク
セス手段が指定されたキー値フィールド位置および利用
者プログラムが使用しているコード種別を乗せたファイ
ルオープン要求,次レコード読出し要求,ファイルクロ
ーズ要求,レコード追加要求およびレコード削除要求を
ファイル所在コンピュータに転送し、ファイル所在コン
ピュータのソート検索テーブルファイル作成手段が指定
されたキー値フィールド位置に基づいてソート対象ファ
イルの各レコードからキー値を抽出し指定されたコード
種別の順序に従ってソートしたキー値をソート対象ファ
イル内のレコード相対位置とともにレコード対応部に順
次格納してなるソート検索テーブルファイルを作成し、
遠隔ソートファイル要求受付け手段が遠隔ソートファイ
ルアクセス手段からの要求を受けて各種のソートファイ
ルアクセス手段に分配し結果を返却し、ソートファイル
オープン手段が遠隔ソートファイルアクセス手段から転
送されてきたファイルオープン要求に応じて指定された
コード種別に対応するソート検索テーブルファイルおよ
びソート対象ファイルをオープンし、ソートファイルリ
ード手段が遠隔ソートファイルアクセス手段から転送さ
れてきた次レコード読出し要求に応じて指定されたコー
ド種別に対応するソート検索テーブルファイルの次のレ
コード対応部からレコード相対位置を得てソート対象フ
ァイルから実レコードを読み出し、ソートファイルクロ
ーズ手段が遠隔ソートファイルアクセス手段から転送さ
れてきたファイルクローズ要求に応じて指定されたコー
ド種別に対応するソート検索テーブルファイルおよびソ
ート対象ファイルをクローズし、ソートファイルレコー
ド追加手段が遠隔ソートファイルアクセス手段から転送
されてきたレコード追加要求に応じてソート対象ファイ
ルに追加レコードを追加するとともにソート対象ファイ
ルから作成されたすべてのソート検索テーブルファイル
に追加レコードのレコード対応部をソートして登録し、
ソートファイルレコード削除手段が遠隔ソートファイル
アクセス手段から転送されてきたレコード削除要求に応
じてソート対象ファイルから削除レコードを削除すると
ともにソート対象ファイルから作成されたすべてのソー
ト検索テーブルファイルから削除レコードのレコード対
応部を削除する。
Further, in the file sort access method of the present invention, the remote sort file access means of the remote computer places a designated key value field and a file open request containing the code type used by the user program, and the next record. A read request, a file close request, a record addition request, and a record deletion request are transferred to the computer in which the file is located, and the sort search table file creation means of the computer in which the file is located selects from each record of the file to be sorted based on the specified key value field position. Create a sort search table file in which key values are extracted and sorted according to the order of the specified code type, and the key values are sequentially stored in the record corresponding part together with the record relative position in the sort target file.
The remote sort file request accepting means receives the request from the remote sort file access means, distributes it to various sort file access means, returns the result, and the sort file open means transfers the file open request transferred from the remote sort file access means. The sort search table file and the sort target file corresponding to the code type specified according to are opened, and the code type specified according to the next record read request transferred from the remote sort file access means by the sort file read means. File that has the relative record position obtained from the next record corresponding part of the sort search table file corresponding to, and reads the actual record from the sort target file, and the sort file closing means has been transferred from the remote sort file access means. Rose The sort search table file and the sort target file corresponding to the code type specified in response to the request are closed, and the sort file record adding means is the sort target file in response to the record addition request transferred from the remote sort file access means. In addition to adding the additional record to, the record corresponding part of the additional record is sorted and registered in all sort search table files created from the sort target file,
The sort file record deletion means deletes the deleted record from the sort target file in response to the record deletion request transferred from the remote sort file access means, and deletes the record of the deleted record from all sort search table files created from the sort target file. Delete the corresponding part.

【0017】[0017]

【実施例】次に、本発明について図面を参照して詳細に
説明する。
The present invention will be described in detail with reference to the drawings.

【0018】図1は、本発明の一実施例に係るファイル
ソートアクセス方式が適用されたコンピュータシステム
の構成を示すブロック図である。このコンピュータシス
テムでは、ソートファイル所在コンピュータ1と遠隔コ
ンピュータ2とがネットワーク3を介して接続され、ソ
ートファイル所在コンピュータ1には2次記憶装置4が
接続されている。
FIG. 1 is a block diagram showing the configuration of a computer system to which a file sort access method according to an embodiment of the present invention is applied. In this computer system, a sort file location computer 1 and a remote computer 2 are connected via a network 3, and a sort file location computer 1 is connected to a secondary storage device 4.

【0019】ソートファイル所在コンピュータ1は、ソ
ートファイルオープン手段11と、ソートファイルリー
ド手段12と、ソートファイルクローズ手段13と、ソ
ートファイルレコード追加手段14と、ソートファイル
レコード削除手段15と、ソート検索テーブルファイル
作成手段16と、遠隔ソートファイル要求受付け手段1
7とを含んで構成されている。
The sort file location computer 1 has a sort file opening means 11, a sort file reading means 12, a sort file closing means 13, a sort file record adding means 14, a sort file record deleting means 15, and a sort search table. File creating means 16 and remote sort file request receiving means 1
And 7 are included.

【0020】2次記憶装置4上には、ソート対象ファイ
ル41と、コード種別対応のソート検索テーブルファイ
ル、すなわちJISコードのソート検索テーブルファイ
ル51,EBCDICコードのソート検索テーブルファ
イル52,…が置かれる。
A file 41 to be sorted, a sort search table file corresponding to the code type, that is, a sort search table file 51 of JIS code, a sort search table file 52 of EBCDIC code, ... Are placed on the secondary storage device 4. .

【0021】遠隔コンピュータ2は、遠隔ソートファイ
ルアクセス手段21を含んで構成されている。
The remote computer 2 comprises a remote sort file access means 21.

【0022】ソートファイル所在コンピュータ1および
遠隔コンピュータ2上には、それぞれ利用者プログラム
18および22が存在し、ソートファイル(ソート対象
ファイル41およびソート検索テーブルファイル51,
52,…を総称する。以下同様)へのアクセスを行う構
成となっている。
User files 18 and 22 exist on the sort file location computer 1 and the remote computer 2, respectively, and sort files (sort target file 41 and sort search table file 51,
52, ... Are collectively referred to. The same applies hereinafter).

【0023】図2を参照すると、各ソート検索テーブル
ファイル51,52,…は、コード種別フィールド20
1,ソート対象ファイル名フィールド202,昇順,降
順,辞書順等のキー毎のソート種別フィールド203等
の情報を持つヘッダ部と、使用未使用識別フィールド2
04,レコード相対位置フィールド205,キー値フィ
ールド206,207等を持つ各レコード対応のレコー
ド対応部とからなる。
Referring to FIG. 2, each sort search table file 51, 52, ...
1, a sort target file name field 202, a header section having information such as a sort type field 203 for each key such as ascending order, descending order, dictionary order, etc., and an unused / unused identification field 2
04, record relative position field 205, and key value fields 206 and 207.

【0024】次に、このように構成された本実施例のフ
ァイルソートアクセス方式の動作について説明する。
Next, the operation of the file sort access method of the present embodiment thus constructed will be described.

【0025】(1) まず、ソート検索テーブルファイ
ル51,52,…の作成について説明する。
(1) First, the creation of sort search table files 51, 52, ... Will be described.

【0026】利用者は、あらかじめソート検索テーブル
ファイル作成手段16に対して、ソート対象ファイル名
と、各レコードのキー値フィールドとなる任意のフィー
ルド位置(以下、キー値フィールド位置という)と、昇
順,降順,辞書順等のソート種別と、JISコード,E
BCDICコード等のコード種別とを指定して、ソート
検索テーブルファイルの作成を指示する。
The user uses the sort search table file creating means 16 in advance to sort the file names to be sorted, an arbitrary field position (hereinafter referred to as a key value field position) to be a key value field of each record, and an ascending order, Sort type such as descending order, dictionary order, JIS code, E
A code type such as a BCDIC code is designated to instruct creation of a sort search table file.

【0027】ソート検索テーブルファイル作成手段16
は、ソート対象ファイル名,キー値フィールド位置,ソ
ート種別およびコード種別を並べたファイル名を持つソ
ート検索テーブルファイルを作成する。詳しくは、ソー
ト検索テーブルファイル作成手段16は、指定されたキ
ー値フィールド位置に基づいてソート対象ファイル41
の各レコードからキー値を抽出し指定されたコード種別
の順序に従ってソートしたキー値をソート対象ファイル
41内のレコード相対位置とともにレコード対応部に順
次格納してなるソート検索テーブルファイル51,5
2,…を作成する。
Sort search table file creating means 16
Creates a sort search table file having a file name in which the sort target file name, key value field position, sort type and code type are arranged. Specifically, the sort search table file creating means 16 sorts the sort target file 41 based on the designated key value field position.
Sort search table files 51, 5 in which key values are extracted from the respective records and sorted in the order of the specified code type, and the key values are sequentially stored in the record corresponding part together with the relative positions of the records in the sort target file 41.
Create 2, ...

【0028】図1は、JISコードのソート検索テーブ
ルファイル51,EBCDICコードのソート検索テー
ブルファイル52等が作成された状態を示す。
FIG. 1 shows a state in which a JIS code sort search table file 51, an EBCDIC code sort search table file 52, and the like are created.

【0029】(2) 次に、ソートファイル所在コンピ
ュータ1内の利用者プログラム18のファイルアクセス
動作を説明する。
(2) Next, the file access operation of the user program 18 in the sort file location computer 1 will be described.

【0030】利用者プログラム18は、ソートファイル
へのアクセスを行う場合、ソートファイルオープン手段
11に対してソート対象ファイル名,ソート種別および
コード種別とともにファイルオープン要求を転送する。
以下、コード種別としてJISコードを指定したものと
して説明する。
When accessing the sort file, the user program 18 transfers a file open request to the sort file opening means 11 together with the sort target file name, sort type and code type.
Hereinafter, description will be given assuming that the JIS code is specified as the code type.

【0031】ファイルオープン要求を受けると、ソート
ファイルオープン手段11は、2次記憶装置4に格納さ
れたソート検索テーブルファイル51,52,…のソー
ト対象ファイル名フィールド202,ソート種別フィー
ルド203およびコード種別フィールド201を参照し
て該当するソート対象ファイル名,ソート種別およびコ
ード種別を持つソート検索テーブルファイルが存在する
かどうかを調べ、存在しなければファイルオープンの失
敗を利用者プログラム18に通知する。該当するソート
対象ファイル名,ソート種別およびコード種別を持つソ
ート検索テーブルファイル(以下、これをソート検索テ
ーブルファイル51とする)が存在する場合には、ソー
トファイルオープン手段11は、ソート対象ファイル4
1とソート検索テーブルファイル51とをオープンし、
ファイルオープンの成功を利用者プログラム18に通知
する。
Upon receiving the file open request, the sort file open means 11 causes the sort search table files 51, 52, ... Stored in the secondary storage device 4, the sort target file name field 202, the sort type field 203 and the code type. By referring to the field 201, it is checked whether or not there is a sort search table file having the corresponding sort target file name, sort type and code type, and if there is not, a file open failure is notified to the user program 18. When there is a sort search table file (hereinafter referred to as a sort search table file 51) having the corresponding sort target file name, sort type and code type, the sort file opening means 11 causes the sort target file 4 to be sorted.
1 and sort search table file 51 are opened,
The user program 18 is notified of the successful opening of the file.

【0032】ソート対象ファイル41およびソート検索
テーブルファイル51のオープン後、利用者プログラム
18が次レコード読出し要求を発行すると、ソートファ
イルリード手段12は、ソート検索テーブルファイル5
1のレコード対応部を順番にアクセスし、各レコード対
応部のレコード相対位置フィールド205が指す実レコ
ードをソート対象ファイル41から読み出して、実レコ
ードのコード種別と利用者の要求するコード種別とが異
なればコード変換を行い、利用者プログラム18に返却
する。ただし、このとき、レコード対応部の使用未使用
識別フィールド204が未使用だった場合には、ソート
ファイルリード手段12は、このレコード対応部をスキ
ップして次のレコード対応部を用いて実レコードの読込
みを行う。
When the user program 18 issues a next record read request after opening the sort target file 41 and the sort search table file 51, the sort file read means 12 causes the sort search table file 5 to be read.
The record corresponding portion of No. 1 is sequentially accessed, and the real record indicated by the record relative position field 205 of each record corresponding portion is read from the sort target file 41, and the code type of the real record and the code type requested by the user are different. For example, the code is converted and returned to the user program 18. However, at this time, if the used / unused identification field 204 of the record corresponding part is unused, the sort file read means 12 skips this record corresponding part and uses the next record corresponding part to determine whether the actual record Read.

【0033】利用者プログラム18は、ソートファイル
へのアクセスを停止する場合に、ソートファイルクロー
ズ手段13に対してソート対象ファイル名,ソート種別
およびコード種別を指示してファイルクローズ要求を発
行する。
When the access to the sort file is stopped, the user program 18 issues a file close request to the sort file closing means 13 by instructing the sort target file name, sort type and code type.

【0034】ファイルクローズ要求を受けると、ソート
ファイルクローズ手段13は、2次記憶装置4に格納さ
れたソート検索テーブルファイル51のソート対象ファ
イル名フィールド202,ソート種別フィールド203
およびコード種別フィールド201を参照して該当する
ソート対象ファイル名,ソート種別およびコード種別を
持つソート検索テーブルファイルが存在するかどうかを
調べ、存在しなければファイルクローズの失敗を利用者
プログラム18に通知する。該当するソート対象ファイ
ル名,ソート種別およびコード種別を持つソート検索テ
ーブルファイル51が存在する場合には、ソートファイ
ルクローズ手段13は、ソート対象ファイル41とソー
ト検索テーブルファイル51とをクローズし、ソート検
索テーブルファイル51におけるレコード対応部の相対
位置を忘却する。
Upon receiving the file close request, the sort file close means 13 causes the sort target file name field 202 and the sort type field 203 of the sort search table file 51 stored in the secondary storage device 4.
And the code type field 201 to check whether or not there is a sort search table file having the corresponding sort target file name, sort type and code type, and if there is not, notify the user program 18 of file close failure. To do. When there is a sort search table file 51 having the corresponding sort target file name, sort type, and code type, the sort file closing means 13 closes the sort target file 41 and the sort search table file 51, and performs the sort search. Forget the relative position of the record corresponding part in the table file 51.

【0035】利用者プログラム18がレコードの追加を
要求すると、ソートファイルレコード追加手段14は、
ソート対象ファイル41の最後にレコードを追加した後
に、ソート検索テーブルファイル作成手段16を呼び出
して、ソート対象ファイル41から作成されたすべての
ソート検索テーブルファイル51,52,…に追加レコ
ードのレコード対応部をソートして追加する。
When the user program 18 requests the addition of a record, the sort file record adding means 14
After adding the record to the end of the sort target file 41, the sort search table file creating means 16 is called to add the record corresponding part of the additional record to all sort search table files 51, 52, ... Created from the sort target file 41. Sort and add.

【0036】利用者プログラム18がレコードの削除を
要求すると、ソートファイルレコード削除手段15は、
レコードに対応するあるソート検索テーブルファイルの
レコード対応部をキー値フィールド206,207,…
により発見し、該当するレコード対応部の使用未使用識
別フィールド204を未使用状態にする。また、未使用
にした使用未使用識別フィールド204のレコード対応
部のレコード相対位置フィールド205と同じ値のレコ
ード相対位置フィールド205を持つ残りのすべてのソ
ート検索テーブルファイルのレコード対応部の使用未使
用識別フィールド204を未使用状態にする。
When the user program 18 requests record deletion, the sort file record deletion means 15
The key-value fields 206, 207, ...
Then, the used / unused identification field 204 of the corresponding record corresponding part is set to the unused state. Also, the used / unused identification of the record corresponding parts of all the remaining sorted search table files having the record relative position field 205 having the same value as the record relative position field 205 of the record corresponding part of the unused / used identification field 204 which is made unused The field 204 is set to the unused state.

【0037】(3) 次に、遠隔コンピュータ2内の利
用者プログラム22からのファイルアクセス動作を説明
する。
(3) Next, a file access operation from the user program 22 in the remote computer 2 will be described.

【0038】遠隔コンピュータ2上の利用者プログラム
22は、ソートファイルへのアクセスを行う場合、遠隔
ソートファイルアクセス手段21に対してファイルオー
プン要求をソート対象ファイル名,ソート種別およびコ
ード種別とともに要求する。
When accessing the sort file, the user program 22 on the remote computer 2 requests a file open request to the remote sort file access means 21 together with the sort target file name, sort type and code type.

【0039】遠隔ソートファイルアクセス手段21は、
正常なファイルオープン要求を受けると、ファイル所在
コンピュータ1上の遠隔ソートファイル要求受付け手段
17との間に通信路を開設し、ファイルオープン要求を
ソート対象ファイル名,ソート種別およびコード種別と
ともに遠隔ソートファイル要求受付け手段17に転送す
る。
The remote sort file access means 21 is
When a normal file open request is received, a communication path is established between the file sort computer 1 and the remote sort file request accepting means 17, and the file open request is sent to the remote sort file together with the sort target file name, sort type and code type. The request is transferred to the request receiving means 17.

【0040】遠隔ソートファイル要求受付け手段17
は、受け取ったファイルオープン要求をソートファイル
オープン手段11に転送する。
Remote sort file request acceptance means 17
Transfers the received file open request to the sort file open means 11.

【0041】ソートファイルオープン手段11は、遠隔
ソートファイル要求受付け手段17からファイルオープ
ン要求を受けると、自コンピュータ1内の利用者プログ
ラム18からの要求と同様に、ソート対象ファイル41
およびソート検索テーブルファイル51のオープン処理
を行い、その結果を遠隔ソートファイル要求受付け手段
17に返却する。
When the sort file opening means 11 receives the file opening request from the remote sort file request accepting means 17, the sort target file 41 is processed in the same manner as the request from the user program 18 in the own computer 1.
Then, the sort search table file 51 is opened, and the result is returned to the remote sort file request acceptance means 17.

【0042】遠隔ソートファイル要求受付け手段17
は、返却された結果を遠隔ソートファイルアクセス手段
21に転送する。
Remote sort file request acceptance means 17
Transfers the returned result to the remote sort file access means 21.

【0043】利用者プログラム22からの次レコード読
出し要求,ファイルクローズ要求,レコード追加要求お
よびレコード削除要求も同様に、遠隔ソートファイルア
クセス手段21から遠隔ソートファイル要求受付け手段
17に転送され、ソートファイルリード手段12,ソー
トファイルクローズ手段13,ソートファイルレコード
追加手段14およびソートファイルレコード削除手段1
5に分配されて処理される。
Similarly, a next record read request, a file close request, a record addition request and a record deletion request from the user program 22 are also transferred from the remote sort file access means 21 to the remote sort file request acceptance means 17, and the sort file read is performed. Means 12, sort file closing means 13, sort file record adding means 14, and sort file record deleting means 1
It is distributed to 5 and processed.

【0044】その結果が遠隔ソートファイル要求受付け
手段17に転送され、遠隔コンピュータ2上の遠隔ソー
トファイルアクセス手段21に返送され、利用者プログ
ラム22に通知される。
The result is transferred to the remote sort file request accepting means 17, returned to the remote sort file access means 21 on the remote computer 2, and notified to the user program 22.

【0045】[0045]

【発明の効果】以上説明したように本発明は、コード種
別毎にソート済ファイルを作成するのではなくてキー値
等の必要な情報だけを持つソート検索テーブルファイル
を作成するようにしたことにより、コードが多種類あっ
ても2次記憶装置の容量を大量に必要とすることなしに
複数のコード順によりソートファイルをアクセスするこ
とができるという効果がある。また、レコードの追加の
ときには、元のソート対象ファイルの変更を伴わずにソ
ート検索テーブルファイルを更新するだけなので、高速
に処理できるという効果もある。さらに、レコードの削
除時には、ソート検索テーブルファイルの再構築さえ行
わないので、高速な処理が可能であるという効果があ
る。
As described above, according to the present invention, a sorted search table file having only necessary information such as a key value is created instead of creating a sorted file for each code type. Even if there are many kinds of codes, there is an effect that the sort file can be accessed in the order of a plurality of codes without requiring a large capacity of the secondary storage device. In addition, when a record is added, only the sort search table file is updated without changing the original sort target file, so that there is an effect that it can be processed at high speed. Further, since the sort search table file is not even rebuilt when the record is deleted, there is an effect that high speed processing is possible.

【0046】また、利用者プログラム内でソート処理を
行うことがないので、利用者プログラムが複雑になった
り、実行時に処理が多量に必要となって性能が悪くなっ
たりすることがないという効果がある。
Further, since the sorting process is not performed in the user program, there is an effect that the user program is not complicated and performance is not deteriorated due to a large amount of processing required at the time of execution. is there.

【0047】特に、ネットワークでの遠隔ファイルアク
セスにおいては、利用者プログラムはコンピュータ間の
コード体系の違いを意識せずにすむので、容易に利用者
プログラムの開発を行うことが可能であるとともに、コ
ード種別分のファイルが必要でなくなるという利点があ
る。
Particularly, in remote file access on the network, the user program does not need to be aware of the difference in the code system between the computers, so that the user program can be easily developed and the code can be easily developed. There is an advantage that files for each type are not needed.

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

【図1】本発明の一実施例に係るファイルソートアクセ
ス方式が適用されたコンピュータシステムの構成を示す
ブロック図である。
FIG. 1 is a block diagram showing the configuration of a computer system to which a file sort access method according to an embodiment of the present invention is applied.

【図2】図1中のソート検索テーブルファイルの内容を
例示する図である。
FIG. 2 is a diagram exemplifying the contents of a sort search table file in FIG.

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

1 ソートファイル所在コンピュータ 2 遠隔コンピュータ 3 ネットワーク 4 2次記憶装置 11 ソートファイルオープン手段 12 ソートファイルリード手段 13 ソートファイルクローズ手段 14 ソートファイルレコード追加手段 15 ソートファイルレコード削除手段 16 ソート検索テーブルファイル作成手段 17 遠隔ソートファイル要求受付け手段 18,22 利用者プログラム 21 遠隔ソートファイルアクセス手段 41 ソート対象ファイル 51,52 ソート検索テーブルファイル 201 コード種別フィールド 202 ソート対象ファイル名フィールド 203 ソート種別フィールド 204 使用未使用識別フィールド 205 レコード相対位置フィールド 206,207 キー値フィールド 1 Sort File Location Computer 2 Remote Computer 3 Network 4 Secondary Storage Device 11 Sort File Opening Means 12 Sort File Reading Means 13 Sort File Closing Means 14 Sort File Record Adding Means 15 Sort File Record Deleting Means 16 Sort Search Table File Creating Means 17 Remote sort file request acceptance means 18,22 User program 21 Remote sort file access means 41 Sort target file 51,52 Sort search table file 201 Code type field 202 Sort target file name field 203 Sort type field 204 Unused identification field 205 Record relative position field 206, 207 Key value field

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数のレコードからなるソート対象ファ
イルを各レコードのいくつかのフィールドをキーにして
複数のコード順によりアクセスするファイルソートアク
セス方式において、 指定されたキー値フィールド位置に基づいて前記ソート
対象ファイルの各レコードからキー値を抽出し指定され
たコード種別の順序に従ってソートしたキー値を前記ソ
ート対象ファイル内のレコード相対位置とともにレコー
ド対応部に順次格納してなるソート検索テーブルファイ
ルを作成するソート検索テーブルファイル作成手段と、 利用者プログラムからのファイルオープン要求に応じて
指定されたコード種別に対応するソート検索テーブルフ
ァイルおよび前記ソート対象ファイルをオープンするソ
ートファイルオープン手段と、 前記利用者プログラムからの次レコード読出し要求に応
じて指定されたコード種別に対応するソート検索テーブ
ルファイルの次のレコード対応部からレコード相対位置
を得て前記ソート対象ファイルから実レコードを読み出
すソートファイルリード手段と、 前記利用者プログラムからのファイルクローズ要求に応
じて指定されたコード種別に対応するソート検索テーブ
ルファイルおよび前記ソート対象ファイルをクローズす
るソートファイルクローズ手段とを有することを特徴と
するファイルソートアクセス方式。
1. In a file sort access method in which a file to be sorted consisting of a plurality of records is accessed in a plurality of code orders by using some fields of each record as keys, the sorting is performed based on a designated key value field position. Create a sort search table file in which key values are extracted from each record of the target file and sorted according to the specified code type order, and the key values are sequentially stored in the record corresponding part together with the record relative position in the sort target file. Sort search table file creating means, sort search table file corresponding to a code type designated in response to a file open request from a user program and sort file opening means for opening the sort target file; and the user program Sort file read means for reading a real record from the sort target file by obtaining a record relative position from the next record corresponding part of the sort search table file corresponding to the code type designated in response to the next record read request from A file sort access method comprising: a sort search table file corresponding to a code type designated in response to a file close request from a user program; and sort file closing means for closing the sort target file.
【請求項2】 複数のレコードからなるソート対象ファ
イルを各レコードのいくつかのフィールドをキーにして
複数のコード順によりアクセスするファイルソートアク
セス方式において、 指定されたキー値フィールド位置に基づいて前記ソート
対象ファイルの各レコードからキー値を抽出し指定され
たコード種別の順序に従ってソートしたキー値を前記ソ
ート対象ファイル内のレコード相対位置とともにレコー
ド対応部に順次格納してなるソート検索テーブルファイ
ルを作成するソート検索テーブルファイル作成手段と、 利用者プログラムからのファイルオープン要求に応じて
指定されたコード種別に対応するソート検索テーブルフ
ァイルおよび前記ソート対象ファイルをオープンするソ
ートファイルオープン手段と、 前記利用者プログラムからの次レコード読出し要求に応
じて指定されたコード種別に対応するソート検索テーブ
ルファイルの次のレコード対応部からレコード相対位置
を得て前記ソート対象ファイルから実レコードを読み出
すソートファイルリード手段と、 前記利用者プログラムからのファイルクローズ要求に応
じて指定されたコード種別に対応するソート検索テーブ
ルファイルおよび前記ソート対象ファイルをクローズす
るソートファイルクローズ手段と、 前記利用者プログラムからのレコード追加要求に応じて
前記ソート対象ファイルに追加レコードを追加するとと
もに前記ソート対象ファイルから作成されたすべてのソ
ート検索テーブルファイルに追加レコードのレコード対
応部をソートして登録するソートファイルレコード追加
手段と、 前記利用者プログラムからのレコード削除要求に応じて
前記ソート対象ファイルから削除レコードを削除すると
ともに前記ソート対象ファイルから作成されたすべての
ソート検索テーブルファイルから削除レコードのレコー
ド対応部を削除するソートファイルレコード削除手段と
を有することを特徴とするファイルソートアクセス方
式。
2. In a file sort access method in which a file to be sorted consisting of a plurality of records is accessed in a plurality of code orders using some fields of each record as keys, the sorting is performed based on a designated key value field position. Create a sort search table file in which key values are extracted from each record of the target file and sorted according to the specified code type order, and the key values are sequentially stored in the record corresponding part together with the record relative position in the sort target file. Sort search table file creating means, sort search table file corresponding to a code type designated in response to a file open request from a user program and sort file opening means for opening the sort target file; and the user program Sort file read means for reading a real record from the sort target file by obtaining a record relative position from the next record corresponding part of the sort search table file corresponding to the code type designated in response to the next record read request from A sort search table file corresponding to a code type specified in response to a file close request from a user program and a sort file closing means for closing the sort target file; and a sort file closing unit in response to a record addition request from the user program. Sort file record adding means for adding an additional record to the sort target file and sorting and registering record corresponding parts of the additional record in all sort search table files created from the sort target file; Sort file record deleting means for deleting the deleted record from the sort target file in response to a record delete request from the RAM and deleting the record corresponding part of the deleted record from all sort search table files created from the sort target file. A file sort access method comprising:
【請求項3】 複数のレコードからなるソート対象ファ
イルが存在するファイル所在コンピュータと遠隔コンピ
ュータとがネットワークで接続されたコンピュータシス
テムにおいて前記ソート対象ファイルを各レコードのい
くつかのフィールドをキーにして複数のコード順により
アクセスするファイルソートアクセス方式において、 前記遠隔コンピュータが、 指定されたキー値フィールド位置および利用者プログラ
ムが使用しているコード種別を乗せたファイルオープン
要求,次レコード読出し要求,ファイルクローズ要求,
レコード追加要求およびレコード削除要求を前記ファイ
ル所在コンピュータに転送する遠隔ソートファイルアク
セス手段を有し、 前記ファイル所在コンピュータが、 指定されたキー値フィールド位置に基づいて前記ソート
対象ファイルの各レコードからキー値を抽出し指定され
たコード種別の順序に従ってソートしたキー値を前記ソ
ート対象ファイル内のレコード相対位置とともにレコー
ド対応部に順次格納してなるソート検索テーブルファイ
ルを作成するソート検索テーブルファイル作成手段と、 前記遠隔ソートファイルアクセス手段からの要求を受け
て各種のソートファイルアクセス手段に分配し結果を返
却する遠隔ソートファイル要求受付け手段と、 前記遠隔ソートファイルアクセス手段から転送されてき
たファイルオープン要求に応じて指定されたコード種別
に対応するソート検索テーブルファイルおよび前記ソー
ト対象ファイルをオープンするソートファイルオープン
手段と、 前記遠隔ソートファイルアクセス手段から転送されてき
た次レコード読出し要求に応じて指定されたコード種別
に対応するソート検索テーブルファイルの次のレコード
対応部からレコード相対位置を得て前記ソート対象ファ
イルから実レコードを読み出すソートファイルリード手
段と、 前記遠隔ソートファイルアクセス手段から転送されてき
たファイルクローズ要求に応じて指定されたコード種別
に対応するソート検索テーブルファイルおよび前記ソー
ト対象ファイルをクローズするソートファイルクローズ
手段と、 前記遠隔ソートファイルアクセス手段から転送されてき
たレコード追加要求に応じて前記ソート対象ファイルに
追加レコードを追加するとともに前記ソート対象ファイ
ルから作成されたすべてのソート検索テーブルファイル
に追加レコードのレコード対応部をソートして登録する
ソートファイルレコード追加手段と、 前記遠隔ソートファイルアクセス手段から転送されてき
たレコード削除要求に応じて前記ソート対象ファイルか
ら削除レコードを削除するとともに前記ソート対象ファ
イルから作成されたすべてのソート検索テーブルファイ
ルから削除レコードのレコード対応部を削除するソート
ファイルレコード削除手段とを有することを特徴とする
ファイルソートアクセス方式。
3. A computer system in which a file location computer including a sort target file composed of a plurality of records and a remote computer are connected by a network, and the sort target file is divided into a plurality of fields by using some fields of each record as keys. In the file sort access method for accessing in code order, the remote computer includes a file open request, a next record read request, a file close request, which includes a specified key value field position and a code type used by a user program,
A remote sort file access means for transferring a record addition request and a record deletion request to the file resident computer is provided, and the file resident computer has a key value from each record of the sort target file based on a designated key value field position. A sort search table file creating means for creating a sort search table file in which the key values sorted according to the order of the specified code type are sequentially stored in the record corresponding part together with the record relative position in the sort target file; Remote sort file request accepting means for receiving a request from the remote sort file access means and distributing the result to various sort file access means and returning the result; and a file open request transferred from the remote sort file access means. A sort search table file corresponding to the code type designated in accordance with the sort file opening means for opening the sort target file, and a code designated in response to the next record read request transferred from the remote sort file access means. Sort file read means for reading the actual record from the sort target file by obtaining the record relative position from the next record corresponding part of the sort search table file corresponding to the type, and the file close request transferred from the remote sort file access means A sort search table file corresponding to the code type specified according to the sort type, and a sort file closing means for closing the sort target file; and a record addition request transferred from the remote sort file access means. Sorting file record adding means for adding and registering additional records to the sort target file according to the above, and sorting and registering record corresponding parts of the additional records in all sort search table files created from the sort target files; In response to the record deletion request transferred from the sort file access means, the deleted record is deleted from the sort target file and the record corresponding part of the deleted record is deleted from all sort search table files created from the sort target file. A file sort access method comprising: a sort file record deleting means.
JP4219802A 1992-07-27 1992-07-27 File sort access system Pending JPH0652021A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4219802A JPH0652021A (en) 1992-07-27 1992-07-27 File sort access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4219802A JPH0652021A (en) 1992-07-27 1992-07-27 File sort access system

Publications (1)

Publication Number Publication Date
JPH0652021A true JPH0652021A (en) 1994-02-25

Family

ID=16741271

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4219802A Pending JPH0652021A (en) 1992-07-27 1992-07-27 File sort access system

Country Status (1)

Country Link
JP (1) JPH0652021A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4834540A (en) * 1986-07-04 1989-05-30 Canon Kabushiki Kaisha Projection exposure apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4834540A (en) * 1986-07-04 1989-05-30 Canon Kabushiki Kaisha Projection exposure apparatus

Similar Documents

Publication Publication Date Title
US6035303A (en) Object management system for digital libraries
US6449607B1 (en) Disk storage with modifiable data management function
EP0722591B1 (en) Method and apparatus for data storage and retrieval
US5742817A (en) Method and apparatus for file server addressing
US4933848A (en) Method for enforcing referential constraints in a database management system
US7467163B1 (en) System and method to manipulate large objects on enterprise server data management system
US6711566B2 (en) Database processing method and apparatus using handle
US7752226B1 (en) Reverse pathname lookup by inode identifier
EP0437159B1 (en) Method for identifying documents having a particular attribute using a vector relational characteristical object
US6879982B2 (en) Data management system, server, and data management method
US6182082B1 (en) Method and system for managing object-oriented database
JP2001125930A (en) Meta-document and its management method
US7519620B2 (en) Replication system, method and program for replicating a plurality of databases into a replica database
US5884321A (en) Document image and query management system for application databases
US7617206B1 (en) Method for analyzing status of specialized tank files which store and handle large objects
US6985894B2 (en) Document management method and computer-readable storage medium storing program code for executing the same
US20060020572A1 (en) Computer, storage system, file management method done by the computer, and program
JP3489216B2 (en) File system
JPH0652021A (en) File sort access system
JPH11250092A (en) Shared database, shared databse system, method for extracting data from shared database and medium recording data extraction program from shared databse
JP3769775B2 (en) Distributed link information maintenance method
JPH07271569A (en) Program specification preparation system
JP3676564B2 (en) Database apparatus, database system, database apparatus control method, and recording medium
JPH11265389A (en) Shared data base device ahd shared data base system
JP4056622B2 (en) Database management device