JPH0682334B2 - Management processing device for management table - Google Patents

Management processing device for management table

Info

Publication number
JPH0682334B2
JPH0682334B2 JP62302131A JP30213187A JPH0682334B2 JP H0682334 B2 JPH0682334 B2 JP H0682334B2 JP 62302131 A JP62302131 A JP 62302131A JP 30213187 A JP30213187 A JP 30213187A JP H0682334 B2 JPH0682334 B2 JP H0682334B2
Authority
JP
Japan
Prior art keywords
management
storage area
management block
item information
stored
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.)
Expired - Lifetime
Application number
JP62302131A
Other languages
Japanese (ja)
Other versions
JPH01142954A (en
Inventor
外志幸 宮本
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.)
PFU Ltd
Original Assignee
PFU Ltd
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 PFU Ltd filed Critical PFU Ltd
Priority to JP62302131A priority Critical patent/JPH0682334B2/en
Publication of JPH01142954A publication Critical patent/JPH01142954A/en
Publication of JPH0682334B2 publication Critical patent/JPH0682334B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔概要〕 本発明は,項目情報によって作業ファイルに格納される
ところの実データへのアクセスを実現するための管理テ
ーブルの管理処理装置に関し, 大量の実データを高速かつ有効にアクセスすることので
きる管理処理装置の提供を目的とし, 項目情報によって特定されるところの実データをアクセ
スするためのポインタを管理することで,作業ファイル
に格納される実データへのアクセスを実現する管理テー
ブルの管理処理装置において,上記管理テーブルを一定
の項目数を単位とした管理ブロックをもって分割して構
成するとともに,分割されたこれらの管理ブロックを作
業ファイルにと格納するよう構成し,データ処理装置の
主記憶装置に,上記管理ブロックのいずれか1つを展開
するための管理ブロック格納領域と,上記各管理ブロッ
クの管理下の有効な項目情報の項目数を格納するための
有効項目数格納領域とを設けるよう構成して,実データ
へのアクセス要求時に,上記有効項目数格納領域の有効
項目数に従って求められるその実データを特定する項目
情報を管理するところの上記管理ブロックを,作業ファ
イルから上記管理ブロック格納領域にと展開してなるよ
うに管理するよう構成するものである。
DETAILED DESCRIPTION OF THE INVENTION [Outline] The present invention relates to a management processing device for a management table for realizing access to real data stored in a work file according to item information. For the purpose of providing a management processing device that can be effectively accessed, by managing the pointer for accessing the actual data specified by the item information, the actual data stored in the work file can be accessed. In the management processing device of the management table to be realized, the management table is divided into management blocks each having a fixed number of items, and the divided management blocks are stored in a work file. A management block case for expanding any one of the above management blocks in the main memory of the data processing device A storage area and an effective item number storage area for storing the number of items of effective item information under the control of each management block are provided, and the effective item number is stored when an access request is made to actual data. The management block for managing the item information for specifying the actual data obtained according to the number of valid items in the area is managed so as to be expanded from the work file to the management block storage area.

〔産業上の利用分野〕[Industrial application field]

本発明は,項目情報によって作業ファイルに格納される
ところの実データへのアクセスを実現するための管理テ
ーブルの管理処理装置に関し,特に,項目情報が大量と
なっても実データへのアクセス時間が長くならないでア
クセスを実現できるようにする管理テーブルの管理処理
装置に関する。
The present invention relates to a management processing device for a management table for realizing access to actual data stored in a work file according to item information, and particularly, even when the item information is large, the access time to the actual data is large. The present invention relates to a management processing device for a management table that allows access to be realized without lengthening.

データ処理装置では,項目情報によって特定される実デ
ータをアクセスするために,項目情報毎に実データをア
クセスするためのポインタを管理する管理テーブルを設
けて,この管理テーブルに従って指定された項目情報が
特定するところの実データへのポインタを求めて,作業
ファイル上に展開される実データのアクセスを実行して
いる。この管理テーブルは,データ処理装置の扱う情報
処理装置の増大に伴う項目情報の大量化によって,大き
なメモリ容量が要求されるようになってきている。これ
から,このような状況下にあって,実データへのアクセ
スができる限り高速で実現できるようにと管理テーブル
を構成し管理していく必要がでてくる。
In the data processing device, in order to access the actual data specified by the item information, a management table that manages a pointer for accessing the actual data for each item information is provided, and the item information specified according to this management table is stored. The actual data expanded on the work file is accessed for the pointer to the actual data to be specified. The management table is required to have a large memory capacity due to an increase in the number of item information items that accompanies an increase in information processing devices handled by the data processing device. Under these circumstances, it will be necessary to configure and manage the management table so that actual data can be accessed as quickly as possible.

〔従来の技術〕[Conventional technology]

従来,管理テーブルは,データ処理装置の主記憶装置に
直接格納されていた。これから,項目情報に従って作業
ファイルの実データへのアクセス要求がなされると,デ
ータ処理装置は,この主記憶装置上の管理テーブルから
直ちに指定された項目情報が特定するところの実データ
のポインタを求めることができ,実データをアクセスす
ることができたのである。
Conventionally, the management table has been directly stored in the main storage device of the data processing device. From now on, when an access request is made to the actual data of the work file according to the item information, the data processing device immediately obtains the pointer of the actual data to which the specified item information is specified from the management table on the main storage device. It was possible to access the actual data.

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

しかしながら,項目情報が多くなって管理テーブルのた
めに必要とされるメモリ容量が大きなものとなってくる
と,従来のように管理テーブルを主記憶装置に格納する
ことができなくなってくる。これに対しての1つの対応
策として,管理テーブルをいくつかの管理ブロックをも
って分割して構成するとともに,分割されたこれらの管
理ブロックを作業ファイルにと格納するよう構成し,指
定された項目情報を管理するところのと管理ブロックを
作業ファイルから主記憶装置上にと展開して,実データ
へのアクセスの実現を図るという方式を採ることが考え
られる。
However, if the amount of item information increases and the memory capacity required for the management table becomes large, it becomes impossible to store the management table in the main storage device as in the conventional case. As one countermeasure against this, the management table is divided into several management blocks, and the divided management blocks are stored in a work file. It is conceivable to adopt a method of expanding the management block and the management block from the work file onto the main storage device to realize the access to the actual data.

しかしながら,このような方式をそのまま採るならば,
管理ブロックの項目情報の一部が不要となって削除され
るようなことが起ると,その後に指定された項目情報を
管理する管理ブロックについては,直接的に求めること
ができなくなる。従って,作業ファイル上の管理ブロッ
クを順次主記憶装置上に読み出してきて展開し、その展
開された内容にもとづいて、該当するところの管理ブロ
ックを求めて,実データへのアクセスの実現を図ること
になる。しかるにこれでは,主記憶装置上に読み出す管
理ブロックのスワップ回数が多くなるため,実データへ
のアクセスに多大な時間を要してしまうという新たな問
題点がでてしまうことになる。
However, if such a method is adopted as it is,
If a part of the item information of the management block becomes unnecessary and is deleted, the management block that manages the item information specified thereafter cannot be directly obtained. Therefore, the management blocks in the work file are sequentially read out into the main storage device and expanded, and the management block at the corresponding position is obtained based on the expanded contents to realize the access to the actual data. become. However, in this case, the number of swaps of the management blocks read onto the main storage device increases, which causes a new problem that it takes a lot of time to access the actual data.

本発明はかかる事情に鑑みてなされたものであって,項
目情報が多くなって管理テーブルを作業ファイルにと格
納せざるを得なくなったときに,実データへのアクセス
をできる限り高速で実現できるようにする管理テーブル
の管理処理装置の提供を目的とするものである。
The present invention has been made in view of the above circumstances, and when the item information becomes large and the management table has to be stored in the work file, the actual data can be accessed as fast as possible. It is an object of the present invention to provide a management processing device for a management table.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明の原理説明図である。 FIG. 1 is an explanatory view of the principle of the present invention.

図中,1はデータ処理を実行するところのデータ処理装
置,4はこのデータ処理装置1の備える主記憶装置,30は
このデータ処理装置1の備える補助記憶装置上に設定さ
れる作業ファイルである。31は項目情報によって特定さ
れるところの実データをアクセスするためのポインタを
管理する管理テーブルである。この管理テーブル31は,
一定の項目数を単位とする32で示される管理ブロックを
もって分割されて構成され,作業ファイル30にと格納さ
れる。33は管理テーブル31の実データへのポインタによ
り指定されるところの実データである。41は作業ファイ
ル30に格納される管理ブロック32のいずれか1つを格納
するために設けられる管理ブロック格納領域,42は作業
ファイル30に格納される各管理ブロック32が管理してい
る項目情報の内で有効なモードにある項目情報の項目数
を格納するために設けられる有効項目数格納領域であ
る。この管理ブロック格納領域41と有効項目数格納領域
42は主記憶装置4に設けられる。
In the figure, 1 is a data processing device for executing data processing, 4 is a main storage device of the data processing device 1, and 30 is a work file set in an auxiliary storage device of the data processing device 1. . Reference numeral 31 is a management table that manages pointers for accessing the actual data specified by the item information. This management table 31 is
It is divided into control blocks each having a fixed number of items, and is stored in the work file 30. Reference numeral 33 is actual data designated by the pointer to the actual data in the management table 31. Reference numeral 41 denotes a management block storage area provided for storing any one of the management blocks 32 stored in the work file 30, and 42 denotes item information managed by each management block 32 stored in the work file 30. This is an effective item number storage area provided to store the number of items of item information in the effective mode. This management block storage area 41 and effective item count storage area
42 is provided in the main storage device 4.

上記有効項目数格納領域に格納される項目数は,次の如
きものである。
The number of items stored in the valid item number storage area is as follows.

即ち例えば最初に,No.1の管理ブロック32が管理してい
る有効な項目数が「1024」,No.2の管理ブロック32が管
理している有効な項目数が「1024」,No.3の管理ブロッ
ク32が管理している有効な項目数が「1024」,No.4の管
理ブロック32が管理している有効な項目数が「1024」,
であるとした場合,上記有効項目数格納領域42には, No.1 1024 No.2 1024 No.3 1024 No.4 1024 と格納される。この結果,求めるべき項目番号POSが300
0であるとすると, 1024+1024<3000<1024+1024+1024 であることから,No.3の管理ブロック内に存在すること
が判る。
That is, for example, first, the number of valid items managed by the No. 1 management block 32 is “1024”, and the number of valid items managed by the No. 2 management block 32 is “1024”, No. 3 The number of valid items managed by the management block 32 of “1024”, the number of valid items managed by the management block 32 of No. 4 is “1024”,
If No. 1, No. 1 1024 No. 2 1024 No. 3 1024 No. 4 1024 is stored in the valid item number storage area 42. As a result, the required item number POS is 300
If it is 0, 1024 + 1024 <3000 <1024 + 1024 + 1024, which means that it exists in the No. 3 control block.

また上記状態の下で例えばNo.2の管理ブロック内で項目
番号1034ないし2033の1000個分の項目情報が不要になっ
たとすると,No.2の管理ブロック内で残余の有効な24個
分の項目情報が先頭にまとめて配置されかつ上記不要と
なった1000個分は後方にまとめられる。この結果,上記
有効項目数格納領域42の内容は, No.1 1024 No.2 24 No.3 1024 No.4 1024 となる。したがって,上記POSを探した場合 1024+24+1024<3000<1024+24+1024+1024であり,N
o.4の管理ブロック内に存在することが判る。さらに 3000−(1024+24+1024)=928 となり,No.4の管理ブロックの928番目であることが判
る。
Under the above conditions, if the item information for 1000 items of item numbers 1034 to 2033 is no longer needed in the No. 2 management block, the remaining 24 valid items in the No. 2 management block will be used. The item information is collectively arranged at the beginning and the unnecessary 1000 items are arranged at the rear. As a result, the contents of the valid item number storage area 42 are No. 1 1024 No. 2 24 No. 3 1024 No. 4 1024. Therefore, when searching for the above POS, 1024 + 24 + 1024 <3000 <1024 + 24 + 1024 + 1024, and N
It can be seen that it exists in the management block of o.4. Furthermore, 3000− (1024 + 24 + 1024) = 928, which is the 928th control block in No. 4.

〔作用〕[Action]

本発明では,管理ブロック32の管理する項目情報が不要
となって有効なモードでなくなるときには,有効項目数
格納領域42に格納される有効項目数もそれに合わせて変
更されるよう動作する。そして,第i番目の項目情報に
従って実データ33へのアクセス要求がなされるときに
は,この有効項目数格納領域42に格納される有効項目数
によって第i番目の項目情報を管理する管理ブロック32
が求められるとともに,このようにして求められた管理
ブロック32が管理ブロック格納領域41にと展開されるこ
とで,その第i番目の項目情報が管理するところの実デ
ータ33へのポインタが求まり実データ33へのアクセスが
実現される。
In the present invention, when the item information managed by the management block 32 becomes unnecessary and the valid mode is no longer available, the number of valid items stored in the valid item number storage area 42 is also changed accordingly. Then, when an access request is made to the actual data 33 according to the i-th item information, the management block 32 for managing the i-th item information according to the number of valid items stored in the valid item number storage area 42.
And the management block 32 obtained in this way is expanded in the management block storage area 41, and a pointer to the actual data 33 managed by the i-th item information is obtained. Access to the data 33 is realized.

従って,作業ファイル40と主記憶装置4との間での管理
ブロック32のスワップ動作は1回ですむことから,実デ
ータ33へのアクセスも従来とそう変わることのない時間
で実現できることになる。
Therefore, the swap operation of the management block 32 between the work file 40 and the main storage device 4 only needs to be performed once, so that the access to the actual data 33 can be realized in the same time as before.

〔実施例〕〔Example〕

以下,実施例に従って本発明を詳細に説明する。 Hereinafter, the present invention will be described in detail according to examples.

第2図に本発明の一実施例を示す。FIG. 2 shows an embodiment of the present invention.

図中,1aはCPU,2はバスライン,3は補助記憶装置,4aは主
メモリ,30は作業ファイル,32は管理ブロック,33は実デ
ータ,41は管理ブロック格納領域,42は有効項目数格納領
域,43はブロック番号格納領域である。ここで,第1図
と同じ構成要素については同じ符号を用いている。第1
図でも説明したように,補助記憶装置3上に設定される
作業ファイル30は管理ブロック32と実データ33とを格納
し,また,主メモリ4a上に設けられる管理ブロック格納
領域41は複数ある管理ブロック32のいずれか1つを格納
し,有効項目数格納領域42は各管理ブロック32の有効項
目数を格納するものである。ブロック番号格納領域43
は、管理ブロック格納領域41に格納されている管理ブロ
ック33のブロック番号を格納する。このブロック番号格
納領域43と有効項目数格納領域42とで,主メモリ4a上に
展開されている管理ブロック32が管理されることにな
る。
In the figure, 1a is a CPU, 2 is a bus line, 3 is an auxiliary storage device, 4a is a main memory, 30 is a work file, 32 is a management block, 33 is actual data, 41 is a management block storage area, and 42 is the number of valid items. A storage area, 43 is a block number storage area. Here, the same reference numerals are used for the same constituent elements as in FIG. First
As described in the figure, the work file 30 set in the auxiliary storage device 3 stores the management block 32 and the actual data 33, and the management file storage area 41 provided on the main memory 4a has a plurality of management blocks. Any one of the blocks 32 is stored, and the effective item number storage area 42 stores the number of effective items of each management block 32. Block number storage area 43
Stores the block number of the management block 33 stored in the management block storage area 41. The block number storage area 43 and the valid item number storage area 42 manage the management block 32 developed on the main memory 4a.

第3図に,管理ブロック32の具体的な構成例を示す。こ
の図に示すように,管理ブロック32は,実データ33を管
理するために,フラグ32aと圧縮キー32bとポインタ部32
cとを備える。ここで,フラグ32aは,自らの項目情報が
特定しているところの実データ33が有効モードにあるの
か無効モードにあるのかを表わすために設けられるフラ
グ,圧縮キー32bは,サーチ処理のために設けられる圧
縮キー,ポインタ部32cは,自らの項目情報が特定して
いるところの実データ33をアクセスするためのポインタ
を格納する格納領域である。このフラグ32a,圧縮キー32
b及びポインタ部32cが一組となって,1個の項目情報とし
て,実データ33を管理することになる。そして,この基
本単位のフラグ32a,圧縮キー32b及びポインタ部32cのセ
ットが1024個集まることで1個の管理ブロック32が構成
されることになる。すなわち,1個の管理ブロック32は,1
024個の項目情報の実データ33を管理するよう構成され
るものである。
FIG. 3 shows a specific configuration example of the management block 32. As shown in this figure, the management block 32 has a flag 32a, a compression key 32b, and a pointer section 32 for managing the actual data 33.
with c and. Here, the flag 32a is provided to indicate whether the actual data 33 specified by its item information is in the valid mode or the invalid mode, and the compression key 32b is used for the search process. The provided compression key / pointer section 32c is a storage area for storing a pointer for accessing the actual data 33 specified by its item information. This flag 32a, compression key 32
The b and the pointer portion 32c form a set, and the actual data 33 is managed as one item information. Then, one management block 32 is constructed by collecting 1024 sets of the basic unit flag 32a, compression key 32b, and pointer section 32c. That is, one management block 32 is
It is configured to manage the actual data 33 of 024 item information.

次に,このように構成される本発明が実行するフローチ
ャートに従って,本発明の動作について説明する。
Next, the operation of the present invention will be described according to the flowchart executed by the present invention configured as described above.

第4図は,ライト処理である場合において,実データ33
へのアクセスを実現するためにCPU1aが実行するところ
のフローチャートである。この図に示すように,オペレ
ータから例えば項目番号“POS"にライト処理を実行する
との要求があると,CPU1aは最初にステップ41に示すよう
に,この項目番号“POS"が管理ブロック格納領域41に既
に格納されているところの管理ブロック32が管理する項
目情報であるか否かを判断する。この判断は,ブロック
番号格納領域43に格納されるブロック番号から管理ブロ
ック格納領域41に格納されている管理ブロック32のブロ
ック番号を求めるとともに,有効項目数格納領域42に格
納される有効項目数を計数することでこの求められた管
理ブロック32中に項目番号“POS"が含まれるか否かを調
べることで行われる。
FIG. 4 shows the actual data 33 in the case of write processing.
2 is a flowchart that is executed by the CPU 1a to realize access to the. As shown in this figure, when the operator requests to write the item number "POS", for example, the CPU 1a first sets the item number "POS" to the management block storage area 41 as shown in step 41. It is determined whether or not the item information is the item information managed by the management block 32 that is already stored in. In this determination, the block number of the management block 32 stored in the management block storage area 41 is obtained from the block number stored in the block number storage area 43, and the number of valid items stored in the valid item number storage area 42 is calculated. The counting is performed by checking whether or not the item number "POS" is included in the obtained management block 32.

ステップ41での判断で,項目番号“POS"が管理ブロック
格納領域41に格納されているところの管理ブロック32の
管理する項目情報であると判断されるときには,ステッ
プ46に進み,CPU1aは直ちにその管理ブロック32の管理す
る項目番号“POS"のポインタ部32cに格納されるポイン
タを読み取って,項目番号“POS"が特定するところの実
データ33をアクセスすることになる。これに対して,ス
テップ41での判断で,項目番号“POS"が管理ブロック格
納領域41に格納されているところの管理ブロック32の管
理する項目情報でないと判断されるときには,ステップ
42に進んで,管理ブロック格納領域41に格納されている
管理ブロック32を作業ファイル30上の元の位置に戻す処
理を行い,続くステップ43で,項目番号“POS"が作業フ
ァイル30上の管理ブロック32に存在する項目情報である
のか否かを判断する。ここで,この判断は,項目番号
“POS"が有効項目数格納領域42に格納されている有効項
目数の総和より大きいか小さいかを調べることで行われ
る。即ち,上述した No.1 1024 No.2 24 No.3 1024 No.4 1024 の如く,有効項目数格納領域42の内容を計算して調べる
ようにされる。
When it is determined in step 41 that the item number “POS” is the item information managed by the management block 32 stored in the management block storage area 41, the process proceeds to step 46, and the CPU 1a immediately The pointer stored in the pointer part 32c of the item number "POS" managed by the management block 32 is read to access the actual data 33 specified by the item number "POS". On the other hand, if it is determined in step 41 that the item number “POS” is not the item information managed by the management block 32 stored in the management block storage area 41,
In step 42, the management block 32 stored in the management block storage area 41 is returned to its original position in the work file 30. In step 43, the item number "POS" is managed in the work file 30. It is determined whether the item information exists in the block 32. Here, this determination is made by checking whether the item number "POS" is larger or smaller than the total sum of the valid item numbers stored in the valid item number storage area 42. That is, as in No. 1 1024 No. 2 24 No. 3 1024 No. 4 1024, the contents of the valid item number storage area 42 are calculated and examined.

ステップ43での判断で,項目番号“POS"が作業ファイル
上の管理ブロック32に存在する項目情報であると判断さ
れるときには,ステップ44に進み,有効項目数格納領域
42に格納されている有効項目数を使って項目番号“POS"
を管理するところの管理ブロック32を求めて,この管理
ブロック32を管理ブロック格納領域41にと読出し,そし
て続くステップ46で項目番号“POS"のポインタ部32cに
格納されるポインタを読み取って実データをアクセスす
ることになる。これに対して,ステップ43での判断で,
項目番号“POS"が作業ファイル上の管理ブロック32に存
在しない項目情報であると判断されるときには,ステッ
プ45に進んでメモリブロックの生成処理に入ることにな
る。
When it is determined in step 43 that the item number "POS" is the item information existing in the management block 32 on the work file, the process proceeds to step 44, and the effective item number storage area
Item number "POS" using the number of valid items stored in 42
Is obtained, the management block 32 is read into the management block storage area 41, and the pointer stored in the pointer portion 32c of the item number "POS" is read in step 46 to read the actual data. Will be accessed. On the other hand, in the judgment at step 43,
When it is determined that the item number "POS" is item information that does not exist in the management block 32 on the work file, the process proceeds to step 45 to enter the memory block generation process.

このように,本発明の管理処理装置によれば,有効項目
数格納領域42に格納される有効項目数を使うことで,管
理ブロック32を多くても1回,作業ファイル40と主記憶
装置4との間でスワップ動作するだけで実データをアク
セスできるようになる。次に,本発明において,不要と
なった項目情報かどのようにして削除されることになる
のかについて説明する。
As described above, according to the management processing device of the present invention, by using the number of valid items stored in the number-of-valid-items storage area 42, the management file 32 and the main storage device 4 can be stored at least once in the management block 32. You can access the actual data just by swapping between and. Next, in the present invention, how the item information becomes unnecessary will be deleted will be described.

第5図に示すフローチャートは,不要となった項目情報
を削除するために本発明が実行するところのフローチャ
ートである。このフローチャートに示すように,項目番
号“a"から項目番号“b"までの項目情報を削除するとき
にあっては、項目番号“a"を管理する管理ブロック32か
ら項目番号“b"を管理する管理ブロック32までの管理ブ
ロック32を、スワップ動作を実行しながら順次管理ブロ
ック格納領域41にと読み出し,該当する項目情報のフラ
グ32aを無効モードにセットすることで実現されること
になる。このようにして項目情報が有効モードから無効
モードにと削除されるときにおいては,有効項目数格納
領域42に格納される有効項目数もそれに合わせて変更さ
れることになる。
The flowchart shown in FIG. 5 is a flowchart executed by the present invention to delete unnecessary item information. As shown in this flowchart, when deleting the item information from the item number "a" to the item number "b", the item number "b" is managed from the management block 32 that manages the item number "a". It is realized by sequentially reading the management blocks 32 up to the management block 32 to the management block storage area 41 while executing the swap operation and setting the flag 32a of the corresponding item information to the invalid mode. In this way, when the item information is deleted from the valid mode to the invalid mode, the number of valid items stored in the valid item number storage area 42 is also changed accordingly.

第6図にこの有効項目数格納領域42の有効項目数の変化
の具体的な一例を示す。第4図でも説明したように,各
管理ブロック32は,1024個の項目情報を管理している。
この例は,このような下で,オペレータから1000〜3000
番の項目情報の削除要求があったときの動きを示すもの
である。項目情報の削除が実行された後に実データ33の
要求があると,CPU1aはこの変化した有効項目数を使っ
て,要求のある実データ33のポインタを管理する項目情
報を管理するところの管理ブロック32を求めるのであ
る。第6図の例で具体的にみるならば,削除処理の後に
1000番目の項目情報が指定されたならば,この1000番目
の項目情報はNo.3の管理ブロック32の第1番目の項目情
報であることが求まることになる。
FIG. 6 shows a concrete example of changes in the number of effective items in the effective item number storage area 42. As described in FIG. 4, each management block 32 manages 1024 item information.
This example shows the operator 1000-3000 under such conditions.
It shows the movement when there is a request to delete the item information of No. When a request for the actual data 33 is made after the item information is deleted, the CPU 1a uses the changed number of valid items to manage the pointer of the requested actual data 33 and manages the item information. You want 32. If you look concretely in the example of Figure 6, after the deletion process
If the 1000th item information is designated, this 1000th item information is found to be the first item information of the No. 3 management block 32.

このような削除処理が重なると,空きの管理ブロック32
がでてきてメモリに無駄が生ずることになる。そこで本
発明では,ライト処理の段階で,使用する管理ブロック
32がある個数を越えるようなことになるときには,空き
の管理ブロック32を削滅するための圧縮処理を実行する
よう構成している。第7図に本発明が実行するこの圧縮
処理のためのフローチャートを示す。また第8図に,こ
のフローチャートの実行によって変化することになる有
効項目数格納領域42の有効項目数の変化の具体的な動き
の一例を示す。この例では,管理ブロック32が5個目に
なるときのライト処理時に圧縮処理が実行される例を示
している。このように本発明によれば,管理テーブルを
なすところの管理ブロック32も効率的に構成できること
になる。
When such deletion processing overlaps, an empty management block 32
Will result in wasted memory. Therefore, in the present invention, the management block used in the write processing stage
When 32 exceeds a certain number, it is configured to execute a compression process for deleting the empty management block 32. FIG. 7 shows a flowchart for this compression processing executed by the present invention. Further, FIG. 8 shows an example of a specific movement of the change in the number of effective items in the effective item number storage area 42 which is changed by the execution of this flowchart. In this example, the compression process is executed during the write process when the fifth management block 32 is reached. As described above, according to the present invention, the management block 32 forming the management table can be efficiently configured.

〔発明の効果〕〔The invention's effect〕

以上説明したように,本発明によれば,論理的に制限な
く(物理的限界まで可能)管理できるようになるととも
に,実データへのアクセスも項目情報の少ない従来技術
とそう変わることのない時間で実現できることになる。
As described above, according to the present invention, it becomes possible to manage without limitation logically (up to the physical limit is possible), and access to actual data is not so different from the conventional technology with a small amount of item information. Can be realized with.

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

第1図は本発明の原理説明図, 第2図は本発明のシステム構成図, 第3図は本発明の管理ブロックの一実施例構成図, 第4図は本発明の実データのアクセスのためのフローチ
ャート, 第5図は本発明の項目情報の削除処理のためのフローチ
ャート, 第6図は第5図の処理結果を示す説明図, 第7図は本発明の管理ブロックの圧縮処理のためのフロ
ーチャート, 第8図は第7図の処理結果を示す説明図である。 図中,1はデータ処理装置,4は主記憶装置,30は作業ファ
イル,31は管理テーブル,32は管理ブロック,33は実デー
タ,41は管理ブロック格納領域,42は有効項目数格納領域
である。
FIG. 1 is a diagram illustrating the principle of the present invention, FIG. 2 is a system configuration diagram of the present invention, FIG. 3 is a configuration diagram of an embodiment of a management block of the present invention, and FIG. 4 is an actual data access of the present invention. 5 is a flow chart for deleting item information according to the present invention, FIG. 6 is an explanatory diagram showing the processing result of FIG. 5, and FIG. 7 is for compressing management block according to the present invention. FIG. 8 is an explanatory view showing the processing result of FIG. 7. In the figure, 1 is a data processing device, 4 is a main memory device, 30 is a work file, 31 is a management table, 32 is a management block, 33 is real data, 41 is a management block storage area, and 42 is a valid item number storage area. is there.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】項目情報によって特定されるところの実デ
ータ(33)をアクセスするためのポインタを管理するこ
とで,作業ファイル(30)に格納される実データ(33)
へのアクセスを実現する管理テーブル(31)の管理処理
装置において, 上記管理テーブル(31)を一定の項目数を単位とした管
理ブロック(32)をもって分割して構成するとともに,
分割されたこれらの管理ブロック(32)を作業ファイル
(30)にと格納するよう構成し, データ処理を実行するところのデータ処理装置(1)の
主記憶装置(4)に,上記管理ブロック(32)のいずれ
か1つを展開するための管理ブロック格納領域(41)
と,上記各管理ブロック(32)の管理下の有効な項目情
報の項目数を格納するための有効項目数格納領域(42)
とを設けるよう構成して, 実データ(33)へのアクセス要求時に,上記有効項目数
格納領域(42)に格納される有効項目数に従って求めら
れるその実データ(33)を特定する項目情報を管理する
ところの上記管理ブロック(32)を,作業ファイル(3
0)から上記管理ブロック格納領域(41)にと展開して
なるように管理されてなることを, 特徴とする管理テーブルの管理処理装置。
1. A real data (33) stored in a work file (30) by managing a pointer for accessing a real data (33) specified by item information.
In the management processing device of the management table (31) for realizing access to the management table (31), the management table (31) is divided into management blocks (32) each having a fixed number of items, and
These management blocks (32) are configured to be stored in the work file (30) and are stored in the main storage device (4) of the data processing device (1) where the data processing is executed. Management block storage area (41) for expanding any one of 32)
And a valid item number storage area (42) for storing the number of valid item information items under the control of each management block (32)
And managing the item information specifying the actual data (33) obtained according to the number of effective items stored in the effective item number storage area (42) when the access request to the actual data (33) is made. The above management block (32) where
A management table management processing device characterized by being managed so as to be expanded from 0) to the management block storage area (41).
JP62302131A 1987-11-30 1987-11-30 Management processing device for management table Expired - Lifetime JPH0682334B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62302131A JPH0682334B2 (en) 1987-11-30 1987-11-30 Management processing device for management table

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62302131A JPH0682334B2 (en) 1987-11-30 1987-11-30 Management processing device for management table

Publications (2)

Publication Number Publication Date
JPH01142954A JPH01142954A (en) 1989-06-05
JPH0682334B2 true JPH0682334B2 (en) 1994-10-19

Family

ID=17905290

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62302131A Expired - Lifetime JPH0682334B2 (en) 1987-11-30 1987-11-30 Management processing device for management table

Country Status (1)

Country Link
JP (1) JPH0682334B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100982118B1 (en) * 2002-08-13 2010-09-14 소니 주식회사 Recording device, recording method, and recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100982118B1 (en) * 2002-08-13 2010-09-14 소니 주식회사 Recording device, recording method, and recording medium

Also Published As

Publication number Publication date
JPH01142954A (en) 1989-06-05

Similar Documents

Publication Publication Date Title
JPH0415839A (en) Distributed data base control device
EP0461046B1 (en) File access processing system
JP3378594B2 (en) Processing unit that performs database relocation
JPH0682334B2 (en) Management processing device for management table
JP3180336B2 (en) Data access method using multilayer buffer
JP3020512B2 (en) File data management method
JP2735400B2 (en) Asynchronous I / O control method
JP4131579B2 (en) Data management system and data management method
JPH05151037A (en) Reorganization processing system for database in business processing
JP2912657B2 (en) File access processor
JP2903605B2 (en) File area management processing method
JP2615046B2 (en) Record addition processing method
JP3585264B2 (en) Database system and data retrieval method
JP2641399B2 (en) File management device
JP2994917B2 (en) Storage system
JP3398672B2 (en) Intermediate data storage device
JPH05100926A (en) Input/output managing system
JPH04102118A (en) Buffer flash mechanism
JPH0337748A (en) External storage accessing system utilizing main storage
JPH04638A (en) System starting method
JPS62160545A (en) System for managing unused area of direct access storage device
JPS6380349A (en) High speed page input/output system
JPH02138645A (en) Processing system for input order file
JPS61123953A (en) Virtual object control method
JPH0652019A (en) File controller