Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0477341B2 - - Google Patents
[go: Go Back, main page]

JPH0477341B2 - - Google Patents

Info

Publication number
JPH0477341B2
JPH0477341B2 JP59276362A JP27636284A JPH0477341B2 JP H0477341 B2 JPH0477341 B2 JP H0477341B2 JP 59276362 A JP59276362 A JP 59276362A JP 27636284 A JP27636284 A JP 27636284A JP H0477341 B2 JPH0477341 B2 JP H0477341B2
Authority
JP
Japan
Prior art keywords
record
item
data
definition
section
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
JP59276362A
Other languages
Japanese (ja)
Other versions
JPS61165146A (en
Inventor
Koji Obata
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP59276362A priority Critical patent/JPS61165146A/en
Publication of JPS61165146A publication Critical patent/JPS61165146A/en
Publication of JPH0477341B2 publication Critical patent/JPH0477341B2/ja
Granted legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データ項目の追加、削除や、データ
項目の属性変更等のレコード定義が変更された
時、この時点で、データベース中に存在する格納
レコードの再構成をすることなく、該レコードの
定義を変更し、該変更された定義体に合つた項目
アクセス(項目追加、項目削除、属性変更を行つ
た後の、ユーザの指定する項目データをアクセス
してユーザに返送する)を行うようにしたレコー
ド型データにおけるデータ項目の動的変更処理方
法に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention provides a method for detecting information that exists in a database when a record definition is changed, such as adding or deleting a data item or changing the attributes of a data item. You can change the definition of the record without reconfiguring the stored record, and access items that match the changed definition (item data specified by the user after adding items, deleting items, and changing attributes). The present invention relates to a method for dynamically changing data items in record-type data, in which data items are accessed and sent back to the user.

最近、金融業界、製造業界等の各種の業界に導
入が図られている一般的なデータベースシステム
は、運用を重ねている内に、該データベースに対
するアクセス効率、スペース使用効率が低下して
くる為、定期的に、該データベースを吸い上げ、
初期化して、再投入すると云う、所謂再編集処理
が行われるのが普通である。
Recently, general database systems that have been introduced in various industries such as the financial industry and manufacturing industry tend to become less efficient in accessing the database and in using space as they are used repeatedly. Periodically, download the database,
Normally, a so-called re-editing process is performed, in which the data is initialized and reinserted.

従つて、このような再編集処理が不要なデータ
ベースシステムが求められており、例えば試行錯
誤的にデータ項目の追加、削除、項目名称の変更
等ができるデータベースシステム、即ちデータ項
目の動的変更が可能なシステムが知られている。
Therefore, there is a need for a database system that does not require such re-editing processing. For example, a database system that allows data items to be added, deleted, and item names changed by trial and error, that is, a database system that can dynamically change data items, is needed. Possible systems are known.

このような方式では、データベースの導入が容
易となり、運用に柔軟性がでてくる特徴がある。
This type of system is characterized by ease of database introduction and operational flexibility.

又、データベースには、銀行業界等で良く使用
される定形的なデータベース(ネツトワーク型デ
ータベース、或いは階層構造型データベース)
と、人事管理業務、統計管理業務等のように、デ
ータ項目の追加、削除、項目名称の変更等が多
い、所謂非定形型データベース(リレーシヨナ
ル・データベース)とがあるが、最近の業界にお
いては、データ処理業務の多様化に伴つて、多少
性能は落ちても、導入が容易で、運用上の柔軟性
が大きい、上記非定形型データベースが求められ
ており、このような非定形型データベースシステ
ムでの性能向上が期待される。
In addition, the database includes a standardized database (network type database or hierarchical structure type database) that is often used in the banking industry, etc.
There are also so-called non-standard databases (relational databases), which often involve the addition and deletion of data items, and changes in item names, such as those used in personnel management, statistical management, etc. However, in recent industries, With the diversification of data processing operations, there is a need for the above-mentioned amorphous databases, which are easy to introduce and have great operational flexibility, even if their performance is slightly degraded. It is expected that the performance will improve.

〔従来の技術〕[Conventional technology]

上記非定形型データベースシステムの1つとし
て、レコード型データにおけるデータ項目の動的
変更を行う改良された方式が、特願昭58−118940
で開示されている。
As one of the non-standardized database systems mentioned above, an improved method for dynamically changing data items in record-type data was proposed in Japanese Patent Application No. 58-118940.
It is disclosed in.

第4図、第5図は、上記特願昭58−118940で開
示されている「レコード型データにおけるデータ
項目の動的変更方式」の概念を示す図であつて、
第4図は該方式のレコード定義体の構成を示し、
第5図は本方式によつて生成されるレコードの物
理的構成を示している。
FIG. 4 and FIG. 5 are diagrams showing the concept of "dynamic change method of data items in record type data" disclosed in the above-mentioned Japanese Patent Application No. 118940/1982,
Figure 4 shows the structure of the record definition body of this method,
FIG. 5 shows the physical structure of records generated by this method.

第4図、第5図において、1はフアイル・セ
ル、2−1乃至2−1′は項目セル、3はビツ
ト・マツプ長部、4はビツト・マツプ部、5−1
乃至5−1′はデータ項目を示しており、又実線
の矢印は物理順ポインタを、点線の矢印は表示順
ポインタを、一点鎖線の矢印は新定義ポインタを
それぞれ示している。以下、全図を通じて同じ符
号は同じ対象物を示すものとする。
4 and 5, 1 is a file cell, 2-1 to 2-1' are item cells, 3 is a bit map length section, 4 is a bit map section, and 5-1
5-1' to 5-1' indicate data items, solid line arrows indicate physical order pointers, dotted line arrows indicate display order pointers, and dashed-dotted line arrows indicate new definition pointers. Hereinafter, the same reference numerals indicate the same objects throughout the figures.

上記、特願昭58−118940で開示されている「レ
コード型データにおけるデータ項目の動的変更方
式」の概要を以下に説明する。即ち、 ビツト・マツプ長部と、ビツト・マツプ部と、
データ項目とを持つ複数のレコード(第5図、
3,4,5−1〜5−1′参照)から構成される
フアイルを記憶するフアイル記憶部と、上記デー
タ項目の属性を保持する1個、又は複数の項目セ
ル(第4図、2−1〜2−1′参照)と、該デー
タ項目のレコード上における物理的配列順ポイン
タ(第4図、実線参照)と、該データ項目のユー
ザインタフエースから見えるレコードと該レコー
ドに含まれるデータ項目の順番を示す論理的な表
示順を示す為に項目セル間に設けられた表示順ポ
インタ(第4図、点線参照)とを有すると共に、
新たに属性変更をした属性変更データ項目5−
1′に対する新たな属性の定義を持つ属性変更項
目セル2−1′と、既存の項目セル2−1,2−
2、〜との関係を示す属性変更項目定義ポインタ
(第4図、一点鎖線参照)を項目セル間に設けら
れるように構成されたレコード定義記憶部と、上
記フアイル記憶部と、上記レコード定義記憶部を
アクセスするアクセスシステムとを備え、該アク
セスシステムは、 データ項目の追加が指令された場合{第4
図、第5図ロのケース}には、追加データ項目
5−4の属性を保持する項目セル2−4を、上
記レコード定義記憶部内に作成して、上記物理
的配列順ポインタ、及び表示順ポインタの張り
替えを行い、 データ項目5−2の削除が指令された場合
{第4図、第5図ハのケース}には、上記レコ
ード定義記憶部内の該当する項目セル、例えば
2−2に、無効表示を立てると共に、上記表示
順ポインタの張り替えを行い、 データ項目5−1の属性変更が指令された場
合{第4図、第5図ニのケース}には、上記レ
新しい属性を保持する属性変更項目セル2−
1′を作成し、旧属性の項目セル2−1と新属
性の属性変更項目セル2−1′との間を、上記
属性変更定義ポインタで連絡すると共に、上記
物理的配列順ポインタ、及び表示順ポインタの
張り替えを行い、 フアイルへのレコードの入力が指令された場
合には、上記レコード定義記憶部中に存在する
項目セルの個数と同数のビツトを有し、且つ第
i番目のビツトが物理的配列順ポインタに従う
第i番目の項目セルに対応するデータ項目の、
入力対象レコード中における有無を示す(0/
1)を持つビツト・マツプ部4を作成すると共
に、入力対象レコードのデータ項目を、上記レ
コード定義記憶部の内容に従つて配列し、該配
列されたデータ項目に、上記ビツト・マツプ部
4を付加して、上記フアイル記憶部に格納し、 フアイルからレコードの出力が指令された場
合には、上記フアイル記憶部から該当するレコ
ードを取り出し、該取り出されたレコードのビ
ツト・マツプ部4の内容、及び上記レコード定
義記憶部を参照して必要な処理、例えば項目追
加がある場合には、該項目5−iに‘NULL'
の値を持つデータ項目を追加し、項目削除があ
る場合には、該項目5−jの項目を削除し、項
目5−kの属性変更がある場合には、該項目の
属性変更を行い、該処理されたレコードを出力
する。
An outline of the ``method for dynamically changing data items in record type data'' disclosed in the above-mentioned Japanese Patent Application No. 118940/1988 will be explained below. That is, the bit map length section, the bit map section,
Multiple records with data items (Figure 5,
3, 4, 5-1 to 5-1'), and one or more item cells (see FIG. 4, 2-1') that store the attributes of the data items. 1 to 2-1'), the physical sequence pointer on the record of the data item (see solid line in Figure 4), the record visible from the user interface of the data item, and the data item contained in the record. It has a display order pointer (see dotted line in FIG. 4) provided between item cells to indicate a logical display order indicating the order of
Attribute change data item 5- with new attribute change
Attribute change item cell 2-1' with new attribute definition for 1' and existing item cells 2-1, 2-
2. A record definition storage section configured to provide an attribute change item definition pointer (see FIG. 4, one-dot chain line) between item cells indicating the relationship between ~, the file storage section, and the record definition storage section; and an access system that accesses the data item, and the access system is configured to:
In the case shown in FIG. When the pointer is replaced and deletion of data item 5-2 is commanded {cases in Figures 4 and 5 C}, the corresponding item cell in the record definition storage unit, for example 2-2, is In addition to setting an invalid display, the above display order pointer is changed, and when a command is given to change the attribute of data item 5-1 {cases shown in Figures 4 and 5 D}, the above-mentioned new attribute is retained. Attribute change item cell 2-
1', and communicates between the old attribute item cell 2-1 and the new attribute attribute change item cell 2-1' using the attribute change definition pointer, and the physical arrangement order pointer and display. When the forward pointer is changed and a record input to the file is commanded, the record definition memory has the same number of bits as the number of item cells existing in the record definition storage unit, and the i-th bit is physically of the data item corresponding to the i-th item cell according to the array order pointer,
Indicates the presence or absence in the input target record (0/
1), the data items of the record to be input are arranged according to the contents of the record definition storage section, and the bit map section 4 is written to the arranged data items. In addition, the record is stored in the file storage unit, and when a record is commanded to be output from the file, the corresponding record is retrieved from the file storage unit, and the contents of the bit map unit 4 of the retrieved record are And when there is a necessary process such as adding an item by referring to the record definition storage section, set 'NULL' to the item 5-i.
If there is an item deletion, delete the item 5-j, and if there is an attribute change of item 5-k, change the attribute of the item, Output the processed record.

ように動作するものであり、上記の処理が
後述するレコードのリード処理と、データ項目
のアドレスを認識するマツピング処理と、該認
識したアドレスによる項目アクセス処理であ
る。
The above-mentioned processing includes record read processing, which will be described later, mapping processing for recognizing the address of a data item, and item access processing using the recognized address.

従つて、上記改良された「レコード型データに
おけるデータ項目の動的変更方式」は、データ項
目の追加、削除、データ項目の属性変更等のレコ
ード定義が変更された時、この時点で、データベ
ース中に存在する格納レコードの再構成をするこ
となく、レコード定義記憶部のレコード定義を変
更して、該レコード定義体に合つた項目アクセス
を行うようにした所に特徴がある。
Therefore, the above-mentioned improved "dynamic change method for data items in record-type data" is effective when the record definition is changed, such as adding or deleting a data item, changing the attributes of a data item, etc. The feature is that the record definition in the record definition storage section is changed without reconfiguring the stored records existing in the record definition body, and item access that matches the record definition body is performed.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

然しながら、本方式においては、データ項目の
追加、削除、データ項目の属性変更等の処理に伴
つて、レコード定義体は動的に変化するが、それ
以前に存在するフアイル記憶部上でのレコードを
変更することがない為、第5図イ〜ニで示す、各
レコードが該フアイル記憶部に存在する可能性が
あり、特定のレコードをアクセス(リード)する
時、上記イ〜ニの何れかのレコードを読んで、レ
コード定義記憶部の最新の定義体に合わせる為
の、上記複雑なレコードのリード処理、各データ
項目のアドレスを認識するマツピング処理、該認
識したアドレスに基づいた項目アクセス処理を行
う必要があり、フアイルアクセス時のオーバヘツ
ドが大きくなると云う問題があつた。
However, in this method, the record definition changes dynamically as data items are added, deleted, data item attributes changed, etc. Since it is not changed, there is a possibility that each record shown in Figure 5 A to D exists in the file storage unit, and when accessing (reading) a specific record, any of the above A to D Performs the above-mentioned complex record read processing to read the record and match it to the latest definition set in the record definition storage unit, mapping processing that recognizes the address of each data item, and item access processing based on the recognized address. However, there was a problem in that the overhead during file access became large.

本発明は上記従来の欠点に鑑み、一般にフアイ
ルの変更は、いつも行われるものではないこと
と、互いに隣接したレコードは、殆どが同時期に
変更を受けたレコードであることが多いと云うフ
アイル生成上の特徴に着目して、フアイルをアク
セス(リード)する毎に該アクセスしたデータ項
目のアドレスを認識するマツピング処理、該認識
したアドレスに基づいた項目アクセス処理を行わ
なくても良い方法を提供することを目的とするも
のである。
The present invention has been developed in view of the above-mentioned drawbacks of the conventional art, and in general, changes to files are not always made, and records that are adjacent to each other are often records that have been changed at the same time. Focusing on the above features, we provide a method that does not require mapping processing to recognize the address of the accessed data item every time a file is accessed (read), and item access processing based on the recognized address. The purpose is to

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

この目的は、レコード型データ形式のデータベ
ース17において、 ビツトマツプ長部3と、該ビツトマツプ長部3
が示す数のデータ項目5−1,5−2、〜の有無
を示す値を持つビツトマツプ部4と、該データ項
目5−1,5−2、〜とを持つ複数のレコードか
ら構成されるフアイルを記憶するフアイル記憶部
と、 上記データ項目5−1,5−2、〜の属性を保
持する1個、又は複数の項目セル2−1,2−
2、〜と、該データ項目5−1,5−2、〜のレ
コード上における物理的な配列順ポインタ(実線
の矢印)と、該データ項目のユーザインタフエー
スから見えるレコードと該レコードに含まれるデ
ータ項目の順番を示す論理的な表示順を示す為に
設けられた表示順ポインタ(点線の矢印)とを有
すると共に、あるデータ項目に対する属性変更が
行われた属性変更データ項目5−1′に対する新
たな属性の定義を持つ属性変更項目セル2−1′
と、既存の項目セル2−1,2−2、〜との関係
を示す属性変更項目定義ポインタ(一点鎖線の矢
印)を項目セル2−1,2−2、〜、2−1′間
に設けるように構成したレコード定義記憶部と、 上記フアイル記憶部と、上記レコード定義部を
アクセスするレコードアクセスシステム12とを
備え、 該レコードアクセスシステム12で、上記デー
タ項目5−1,5−2、〜の追加、削除や、該デ
ータ項目5−1,5−2、〜の属性変更等のレコ
ードの定義を上記項目セル2−1,2−2、〜で
変更した時、 上記レコード型データのデータベース17に存
在する格納レコードの再編成を行うことなく、上
記レコード定義記憶部のみの変更をして、該変更
された定義体に合つた項目アクセス(項目追加、
項目削除、属性変更を行つた後の、ユーザの指定
する項目データをアクセスしてユーザに返送す
る)を行うようにしたレコード型データにおける
データ項目5−1,5−2、〜の動的変更方式に
おいて、 上記レコード定義記憶部に、マツピングセル1
−1を設け、該マツピングセル1−1に、アクセ
スしたレコードの上記ビツト・マツプ長部3と、
上記ビツト・マツプ部4のパターンと、各データ
項目5−1,5−2、〜毎のアドレス情報を記憶
し、 次に、レコードをアクセスしたとき、上記マツ
ピングセル1−1の上記ビツト・マツプ長部3
と、上記ビツト・マツプ部4のパターンを参照し
て、不一致を検出したときのみ、該レコード内の
データ項目のアドレスを認識するマツピング処理
と、該認識した各データ項目のアドレスをマツピ
ングセルの該当の位置に記憶するパターンアドレ
ス記憶処理と、該記憶したアドレスを基に、該当
のレコードに対する項目アクセスを行うようにし
た本発明のレコード型データにおけるデータ項目
の動的変更処理方法によつて達成される。
The purpose of this is to provide the bitmap length section 3 and the bitmap length section 3 in the record type data format database 17.
A file consisting of a bit map section 4 having a value indicating the presence or absence of the data items 5-1, 5-2, and the number indicated by , and a plurality of records having the data items 5-1, 5-2, and. a file storage unit that stores the data items 5-1, 5-2, and one or more item cells 2-1, 2- that hold the attributes of the data items 5-1, 5-2, and
2. ~, the data item 5-1, 5-2, the physical sequence pointer (solid arrow) on the record of ~, the record visible from the user interface of the data item, and the record contained in the record. It has a display order pointer (dotted line arrow) provided to indicate a logical display order indicating the order of data items, and an attribute change data item 5-1' in which an attribute change has been made to a certain data item. Attribute change item cell 2-1' with new attribute definition
and existing item cells 2-1, 2-2, ~, and the attribute change item definition pointer (dotted chain arrow) between item cells 2-1, 2-2, ~, 2-1'. a record definition storage section configured to provide a record definition storage section; a record access system 12 that accesses the file storage section and the record definition section; When the definition of a record such as adding or deleting ~ or changing the attributes of data items 5-1, 5-2, ~ is changed in the item cells 2-1, 2-2, ~, the above record type data. Without reorganizing the stored records existing in the database 17, only the record definition storage section is changed, and item access (item addition, item addition,
Dynamic modification of data items 5-1, 5-2, ~ in record-type data that accesses the item data specified by the user and returns it to the user after deleting items and changing attributes. In this method, mapping cell 1 is stored in the record definition storage section.
-1 is provided, and the bit map length section 3 of the accessed record is provided in the mapping cell 1-1,
The pattern of the bit map section 4 and the address information for each data item 5-1, 5-2, etc. are stored, and when the record is accessed next, the bit map length of the mapping cell 1-1 is stored. Part 3
Then, by referring to the pattern of the bit map section 4, a mapping process that recognizes the address of the data item in the record only when a mismatch is detected, and a mapping process that recognizes the address of each recognized data item in the corresponding mapping cell. This is achieved by the method for dynamically changing data items in record-type data of the present invention, which includes storing a pattern address in a location, and accessing the item to the corresponding record based on the stored address. .

〔作用〕[Effect]

即ち、本発明によれば、前回アクセスしたレコ
ードのビツト・マツプ長部とビツト・マツプ部の
パターンと、各データ項目のレコード相対アドレ
ス等のアドレス情報とを、レコード定義記憶部に
マツピングセルとして記憶しておき、次回のフア
イルアクセス時、該レコードの上記パターンと、
上記マツピングセルの内容とのパターン比較を行
い、不一致の時のみ、マツピング処理を施した
後、該レコードの上記パターンを新たなマツピン
グセルとして記憶し、当該レコードに対する項目
アクセスを行うが、該パターンが一致した時に
は、当該マツピングセルの各データ項目の上記ア
ドレス情報から、各データ項目のアドレスを求
め、物理データベースシステム(第3図の14参
照)内のバツフア上の該アドレスに基づいて、項
目アクセスを行うようにしたものであるので、レ
コード型データにおけるデータ項目の変更を動的
に行う方法を用いて、変更不可能なレコード形式
のデータベースアクセスと、略同等のアクセス性
能が得られる効果がある。
That is, according to the present invention, the patterns of the bit map length section and bit map section of the last accessed record, and address information such as the record relative address of each data item are stored as mapping cells in the record definition storage section. Then, the next time you access the file, use the above pattern of the record,
The pattern is compared with the content of the above mapping cell, and only when there is a mismatch, the mapping process is performed, and the above pattern of the record is stored as a new mapping cell, and the item access to the record is performed, but if the pattern matches. Sometimes, the address of each data item is obtained from the address information of each data item of the mapping cell, and item access is performed based on the address on the buffer in the physical database system (see 14 in Figure 3). Therefore, by using a method of dynamically changing data items in record-type data, it is possible to obtain access performance that is approximately the same as database access in an unchangeable record format.

〔実施例〕〔Example〕

以下本発明の実施例を図面によつて詳述する。
第1図は、本発明を実施した場合のレコード定義
体の構成例を示した図で、マツピングセル1−1
が本発明を実施するのに必要なレコード定義体で
あり、第2図は本発明を実施してデータベースを
アクセスする時の動作を流れ図で示した図であ
り、第3図は本発明が適用されるリレーシヨナ
ル・データベース管理システムの構成例を示した
図である。
Embodiments of the present invention will be described in detail below with reference to the drawings.
FIG. 1 is a diagram showing an example of the configuration of a record definition body when the present invention is implemented, and shows a mapping cell 1-1.
is a record definition body necessary to implement the present invention, FIG. 2 is a flowchart showing the operation when accessing a database by implementing the present invention, and FIG. 3 is a record definition body necessary to implement the present invention. 1 is a diagram showing an example of the configuration of a relational database management system.

本発明を実施しても、データ項目の追加、削
除、属性変更、フアイルのレコードの入力、フア
イルからのレコードの読み出し動作等に伴う項目
アクセス動作は従来方式と全く同じであるので、
ここでは省略し、本発明の主眼となる上記マツピ
ングセルのアクセスパターンと、今アクセス中の
レコードの当該パターンとの照合動作を中心に、
第1図〜第3図によつて、本発明の実施例を説明
する。
Even if the present invention is implemented, the item access operations associated with adding, deleting, changing attributes, inputting records in a file, reading records from a file, etc. are exactly the same as in the conventional method.
The explanation will be omitted here, and will focus on the operation of matching the access pattern of the mapping cell and the corresponding pattern of the record currently being accessed, which is the main focus of the present invention.
Embodiments of the present invention will be described with reference to FIGS. 1 to 3.

先ず、第1図を参照しながら、第2図によつ
て、ユーザが要求するレコードをデータベースか
らリードする時の動作を説明する。本発明におい
ては、第1図から明らかな如く、レコード定義体
にマツピングセル1−1が設けられている所が従
来方式と異なる。
First, referring to FIG. 1 and FIG. 2, the operation when reading a record requested by a user from a database will be explained. As is clear from FIG. 1, the present invention differs from the conventional system in that a mapping cell 1-1 is provided in the record definition body.

ステツプ20:データベースからユーザが要求する
レコードを読み出す。
Step 20: Read the record requested by the user from the database.

ステツプ21:上記読み出したレコードについてビ
ツト・マツプ長部と、ビツト・マツプ部を読み
取り、レコード定義記憶部に記憶されている当
該レコードに関するマツピングセルに設定され
ている前回のアクセスパターン(ビツト・マツ
プ長部と、ビツト・マツプ部データ)と比較
し、一致出力が得られると、ステツプ24に飛ぶ
が、不一致の時には次のステツプに移る。
Step 21: Read the bit map length part and the bit map part of the record read above, and read the previous access pattern (bit map length part) set in the mapping cell related to the record stored in the record definition storage part. If a matching output is obtained, the process jumps to step 24, but if there is a mismatch, the process moves to the next step.

ステツプ22:上記読み出されたレコードについ
て、項目セル2−1,2−2、〜の表示順ポイ
ンタに従つて、例えば、第4図ニの項目セル2
−1に対応する第5図に示したビツトマツプ4
上の表示が“O”(NULL)であることを認識
し、レコード中に、該当のデータ項目5−1が
存在しないことを知り、項目セル2−1の属性
変更項目定義ポインタから、新しい属性変更項
目セル2−1′を求め、ビツトマツプ4上の該
当ビツトが“1”であることを確認して、物理
順ポインタの先頭の項目セル2−1から、該ビ
ツトマツプ4の0/1を確認しながら、上記新規
の属性変更項目セル2−1′迄のデータ長を加
算して、該新規の属性変更データ項目5−1′
のレコード内の相対のデータ項目アドレスを求
める。そして、上記の各データ項目5−1,5
−2、〜のアドレスを出力する処理を全てのデ
ータ項目について処理し、次の処理ステツプに
移る。
Step 22: Regarding the read record, follow the display order pointer of item cells 2-1, 2-2, ~, for example, item cell 2 in Fig. 4D.
Bitmap 4 shown in FIG. 5 corresponding to -1
Recognizing that the above display is "O" (NULL) and knowing that the corresponding data item 5-1 does not exist in the record, select the new attribute from the attribute change item definition pointer of item cell 2-1. Find the changed item cell 2-1', confirm that the corresponding bit on the bit map 4 is "1", and check 0/1 of the bit map 4 from the first item cell 2-1 of the physical order pointer. At the same time, add the data length up to the above new attribute change item cell 2-1' to obtain the new attribute change data item 5-1'.
Find the relative data item address within the record. And each data item 5-1, 5 above
-2, the process of outputting the addresses of ~ is processed for all data items, and the process moves on to the next processing step.

ステツプ23:上記マツピング処理を施したレコー
ドについて、ビツト・マツプ長部とビツト・マ
ツプ部を生成し、該内容をアクセスパターンと
して、更に上記ユーザの要求する各データ項目
のアドレス情報とを、レコード定義記憶部の当
該レコードに関するマツピングセル(第1図、
1−1参照)に記憶する。
Step 23: Generate a bit map length part and a bit map part for the record subjected to the above mapping process, and use the contents as an access pattern and the address information of each data item requested by the above user to create a record definition. Mapping cells related to the record in the storage unit (Fig. 1,
1-1).

ステツプ24:マツピングセルに記憶されているレ
コードアドレス情報、或いはステツプ24で生成
したユーザレコードのアドレス情報に基づい
て、該当のデータ項目のみをユーザに返送す
る。
Step 24: Based on the record address information stored in the mapping cell or the address information of the user record generated in step 24, only the corresponding data item is returned to the user.

次に、上記本発明によるデータベースアクセス
を、第3図のリレーシヨナル・データベース管理
システムで実行した場合の動作を説明する。
Next, the operation when the database access according to the present invention is executed by the relational database management system shown in FIG. 3 will be explained.

先ず、ユーザ10のデータベース17に対する
アクセス(リード)要求は、集合インタフエース
形式で行われる。例えば、「どのテーブルの、ど
の項目の、どの値以上のもの」と言つた指示であ
る。
First, an access (read) request from the user 10 to the database 17 is made in a collective interface format. For example, it is an instruction such as "which table, which item, which value is greater than or equal to".

該指示をリレーシヨン操作システム11が受け
取ると、ユーザから見えるレコード定義が格納さ
れている外部スキーマ15をアクセスして、「ど
のレコードのどの項目」が上記条件を満足してい
ると云う形に変換してレコード・アクセス・シス
テム12に渡す。
When the relation operation system 11 receives this instruction, it accesses the external schema 15 in which record definitions visible to the user are stored, and converts it into a format that indicates "which item of which record" satisfies the above conditions. and passes it to the record access system 12.

レコード・アクセス・システム12においては、
このアクセス要求を論理データベースアクセス・
システム13に伝えると、該論理データベースア
クセス・システム13は、上記外部スキーマ15
をアクセスして、最新のレコード定義体を、主記
憶装置(図示せず)に展開した後、該展開された
レコード定義体情報と、該レコードが物理的にデ
ータベース17のどの位置に入つているかを示す
内部スキーマ16とを参照して、該ユーザ要求を
物理データベースアクセス・システム14が実行
できる形に変換して渡す。以後、該レコード定義
体情報は、上記主記憶装置上に展開されている情
報が参照される。
In the record access system 12,
Logical database access
system 13, the logical database access system 13 uses the external schema 15
After accessing and expanding the latest record definition in the main storage (not shown), the expanded record definition information and the physical location of the record in the database 17 are stored. The user request is converted into a form that can be executed by the physical database access system 14 and is passed on by referring to the internal schema 16 that indicates the user request. Thereafter, the information developed on the main storage device is referred to as the record definition body information.

物理データベースアクセス・システム14は、
上記内部スキーマ16と、データベース17とを
参照して当該レコードを読み出し、論理データベ
ースアクセス・システム13に渡す。
The physical database access system 14 includes:
The record is read by referring to the internal schema 16 and the database 17, and is passed to the logical database access system 13.

ここで、論理データベースアクセス・システム
13は、上記主記憶装置に展開されているレコー
ド定義体情報と、内部スキーマ16との対応に従
つて、ユーザが要求するレコードを外部スキーマ
15の表現形式に変換し(ステツプ20参照)、該
変換されたレコードについて、そのビツト・マツ
プ長部と、ビツト・マツプ部を取り出し、上記レ
コード定義体情報の中の、前記マツピングセル1
−1のアクセスパターンと比較し、一致すると、
該マツピングセルに記憶している各データ項目ア
ドレスの内、ユーザの要求するデータのみを、レ
コード・アクセス・システム12に返送する。
(ステツプ21,24参照) 然し、上記比較処理で、不一致が検出された時
には、上記マツピング処理(ステツプ22参照)を
施した後、該生成されたレコードについて、ビツ
ト・マツプ長、及びビツト・マツプをアクセスパ
ターンとし、更に該レコードのアドレス情報を、
上記マツピングセルに記憶(ステツプ23参照)し
た後、ユーザが要求するレコードについてのみ、
レコード・アクセス・システム12に返送する。
(ステツプ24参照) これをリレーシヨン操作システム11を介して
ユーザ10に戻すことにより、一連のデータベー
ス処理が完了する。
Here, the logical database access system 13 converts the record requested by the user into the representation format of the external schema 15 according to the correspondence between the record descriptor information developed in the main storage device and the internal schema 16. (see step 20), extracts the bit map length part and bit map part of the converted record, and inserts the mapping cell 1 in the record definition information.
-1 access pattern and if it matches,
Of the data item addresses stored in the mapping cell, only the data requested by the user is returned to the record access system 12.
(See Steps 21 and 24.) However, if a mismatch is detected in the above comparison process, after performing the above mapping process (see Step 22), the bit map length and bit map length are calculated for the generated record. is the access pattern, and the address information of the record is,
After storing in the above mapping cell (see step 23), only the records requested by the user are
Return to record access system 12.
(See step 24) By returning this to the user 10 via the relation operation system 11, a series of database processing is completed.

データベース17の更新を行う時も、上記外部
スキーマ15の形のレコードへの要求として、論
理データベースアクセス・システム13によつて
受け取られた命令が、内部スキーマ16によつ
て、実際のデータベース17上に反映されるよう
にして実行される。
When updating the database 17, instructions received by the logical database access system 13 as requests for records in the external schema 15 are updated by the internal schema 16 onto the actual database 17. It is executed in such a way that it is reflected.

従つて、上記マツピング処理には、多くの処理
時間が必要となるので、本発明においては、前述
のデータベースの構造的特徴に着目して、前回の
アクセス(リード)時のビツトマツプ長部と、ビ
ツトマツプ部のパターンと、前回アクセス(リー
ド)時のレコードのそれとを比較して、異なる場
合のみ、上記各データ項目のアドレスを認識する
マツピング処理と、該認識したアドレスを該ビツ
トマツプセルの対応する領域に記憶し、該記憶し
たアドレスに基づいた項目アクセスに入るように
した所に特徴がある。
Therefore, the above-mentioned mapping process requires a lot of processing time. Therefore, in the present invention, by focusing on the structural characteristics of the database mentioned above, the bitmap length part and bitmap A mapping process that compares the pattern of the data item with that of the record at the time of previous access (read) and recognizes the address of each data item only if it is different, and stores the recognized address in the corresponding area of the bit map cell. However, the feature is that item access is performed based on the stored address.

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

以上、詳細に説明したように、本発明のレコー
ド型データにおけるデータ項目の動的変更処理方
法は、前回アクセスしたレコードのビツト・マツ
プ長部とビツト・マツプ部のパターンを、レコー
ド定義記憶部にマツピングセルとして記憶してお
き、次回のフアイルアクセス時、該レコードの上
記パターンと、上記マツピングセルの内容とのパ
ターン比較を行い、不一致の時のみ、マツピング
処理を施した後、該レコードの上記パターンを新
たなマツピングセルとして記憶し、当該レコード
に対する項目アクセスを行うが、該パターンが一
致した時には、当該マツピングセルの内容に従つ
て、項目アクセスを行うようにしたものであるの
で、レコード型データにおけるデータ項目の変更
を動的に行う方法を用いて、変更不可能なレコー
ド形式のデータベースアクセスと、略同等のアク
セス性能が得られる効果がある。
As explained above in detail, the method for dynamically changing data items in record-type data of the present invention stores the patterns of the bit map length part and bit map part of the last accessed record in the record definition storage part. It is stored as a mapping cell, and the next time the file is accessed, the above pattern of the record is compared with the contents of the mapping cell, and only when there is a mismatch, the mapping process is performed and the above pattern of the record is updated. The data item is stored as a mapped cell and the item is accessed for the record, but when the pattern matches, the item is accessed according to the contents of the mapped cell, so it is not necessary to change data items in record type data. By using a method of dynamically performing this, it is possible to obtain almost the same access performance as database access in an immutable record format.

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

第1図は本発明を実施した場合のレコード定義
体の構成例を示した図、第2図は本発明を実施し
て、データベースをアクセスした場合の動作を流
れ図で示した図、第3図は本発明が適用されるリ
レーシヨナル・データベース管理システムの構成
例を示した図、第4図は従来方式のレコード定義
体の構成を示した図、第5図は従来方式によつて
生成されるレコードの物理的構成を示した図、で
ある。 図面において、1はフアイルセル、2−1〜2
−1′は項目セル、1−1はマツピングセル、3
はビツト・マツプ長部、4はビツト・マツプ部、
5−1〜5−1′はデータ項目、10はユーザ、
11はリレーシヨン操作システム、12はレコー
ド・アクセス・システム、13は論理データベー
スアクセス・システム、14は物理データベース
アクセス・システム、15は外部スキーマ、16
は内部スキーマ、17はデータベース、20〜2
4は動作ステツプ、をそれぞれ示す。
Fig. 1 is a diagram showing an example of the configuration of a record definition body when the present invention is implemented, Fig. 2 is a flowchart showing the operation when accessing a database by implementing the present invention, and Fig. 3 4 is a diagram showing a configuration example of a relational database management system to which the present invention is applied, FIG. 4 is a diagram illustrating the configuration of a record definition body in the conventional method, and FIG. 5 is a diagram showing a record generated by the conventional method. FIG. 2 is a diagram showing the physical configuration of. In the drawings, 1 is a file cell, 2-1 to 2
-1' is an item cell, 1-1 is a mapping cell, 3
is the bit map length section, 4 is the bit map section,
5-1 to 5-1' are data items, 10 is a user,
11 is a relation operation system, 12 is a record access system, 13 is a logical database access system, 14 is a physical database access system, 15 is an external schema, 16
is internal schema, 17 is database, 20-2
4 indicates operation steps.

Claims (1)

【特許請求の範囲】 1 レコード型データ形式のデータベース17に
おいて、 ビツトマツプ長部3と、該ビツトマツプ長部3
が示す数のデータ項目5−1,5−2、〜の有無
を示す値を持つビツトマツプ部4と、該データ項
目5−1,5−2、〜とを持つ複数のレコードか
ら構成されるフアイルを記憶するフアイル記憶部
と、 上記データ項目5−1,5−2、〜の属性を保
持する1個、又は複数の項目セル2−1,2−
2、〜と、該データ項目5−1,5−2、〜のレ
コード上における物理的な配列順ポインタ(実線
の矢印)と、該データ項目のユーザインタフエー
スから見えるレコードと該レコードに含まれるデ
ータ項目の順番を示す論理的な表示順を示す為に
設けられた表示順ポインタ(点線の矢印)とを有
すると共に、あるデータ項目に対する属性変更が
行われた属性変更データ項目5−1′に対する新
たな属性の定義を持つ属性変更項目セル2−1′
と、既存の項目セル2−1,2−2、〜との関係
を示す属性変更項目定義ポインタ(一点鎖線の矢
印)を項目セル2−1,2−2、〜、2−1′間
に設けるように構成したレコード定義記憶部と、 上記フアイル記憶部と、上記レコード定義部を
アクセスするレコードアクセスシステム12とを
備え、 該レコードアクセスシステム12で、上記デー
タ項目5−1,5−2、〜の追加、削除や、該デ
ータ項目5−1,5−2、〜の属性変更等のレコ
ードの定義を上記項目セル2−1,2−2、〜で
変更した時、上記レコード型データのデータベー
ス17に存在する格納レコードの再構成を行うこ
となく、上記レコード定義部のみの変更をして、
該変更された定義体に合つた項目アクセスを行う
ようにしたレコード型データにおけるデータ項目
5−1,5−2、〜の動的変更方法において、 上記レコード定義記憶部に、マツピングセル1
−1を設け、該マツピングセル1−1に、アクセ
スしたレコードの上記ビツト・マツプ長部3と、
上記ビツト・マツプ部4のパターンと、各データ
項目5−1,5−2、〜毎のアドレス情報を記憶
し、 次に、レコードをアクセスしたとき、上記マツ
ピングセル1−1の上記ビツト・マツプ長部3
と、上記ビツト・マツプ部4のパターンを参照し
て、不一致を検出したときのみ、該レコードを構
成している各データ項目のアドレスを認識するマ
ツピング処理(処理ステツプ22)と、該認識した
アドレスの上記マツピングセル1−1の該当領域
への記憶(処理ステツプ23)と、該認識したアド
レスに基づいた項目アクセス(処理ステツプ24)
を行うようにしたことを特徴とするレコード型デ
ータにおけるデータ項目の動的変更処理方法。
[Scope of Claims] 1. In the database 17 in record type data format, a bitmap length section 3;
A file consisting of a bit map section 4 having a value indicating the presence or absence of the data items 5-1, 5-2, and the number indicated by , and a plurality of records having the data items 5-1, 5-2, and. a file storage unit that stores the data items 5-1, 5-2, and one or more item cells 2-1, 2- that hold the attributes of the data items 5-1, 5-2, and
2. ~, the data item 5-1, 5-2, the physical sequence pointer (solid arrow) on the record of ~, the record visible from the user interface of the data item, and the record contained in the record. It has a display order pointer (dotted line arrow) provided to indicate a logical display order indicating the order of data items, and an attribute change data item 5-1' in which an attribute change has been made to a certain data item. Attribute change item cell 2-1' with new attribute definition
and existing item cells 2-1, 2-2, ~, and the attribute change item definition pointer (dotted chain arrow) between item cells 2-1, 2-2, ~, 2-1'. a record definition storage section configured to provide a record definition storage section; a record access system 12 that accesses the file storage section and the record definition section; When the definition of a record such as adding or deleting ~ or changing the attributes of data items 5-1, 5-2, ~ is changed in the item cells 2-1, 2-2, ~, the above record type data. By changing only the record definition section described above without reconfiguring the stored records existing in the database 17,
In a method for dynamically changing data items 5-1, 5-2, etc. in record-type data in which item access is performed in accordance with the changed definition structure, mapping cell 1 is stored in the record definition storage section.
-1 is provided, and the bit map length section 3 of the accessed record is provided in the mapping cell 1-1,
The pattern of the bit map section 4 and the address information for each data item 5-1, 5-2, etc. are stored, and when the record is accessed next, the bit map length of the mapping cell 1-1 is stored. Part 3
Then, a mapping process (processing step 22) that refers to the pattern of the bit map section 4 and recognizes the address of each data item constituting the record only when a mismatch is detected; storage in the corresponding area of the mapping cell 1-1 (processing step 23), and item access based on the recognized address (processing step 24)
A method for dynamically changing data items in record type data.
JP59276362A 1984-12-28 1984-12-28 Dynamic changing and processing system of data item in record type data Granted JPS61165146A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59276362A JPS61165146A (en) 1984-12-28 1984-12-28 Dynamic changing and processing system of data item in record type data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59276362A JPS61165146A (en) 1984-12-28 1984-12-28 Dynamic changing and processing system of data item in record type data

Publications (2)

Publication Number Publication Date
JPS61165146A JPS61165146A (en) 1986-07-25
JPH0477341B2 true JPH0477341B2 (en) 1992-12-08

Family

ID=17568367

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59276362A Granted JPS61165146A (en) 1984-12-28 1984-12-28 Dynamic changing and processing system of data item in record type data

Country Status (1)

Country Link
JP (1) JPS61165146A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2503297B2 (en) * 1990-08-31 1996-06-05 富士通株式会社 Database processing apparatus and definition change processing method

Also Published As

Publication number Publication date
JPS61165146A (en) 1986-07-25

Similar Documents

Publication Publication Date Title
US6954759B2 (en) Data processing method using record division storing scheme and apparatus therefor
US5261088A (en) Managing locality in space reuse in a shadow written B-tree via interior node free space list
US7529726B2 (en) XML sub-document versioning method in XML databases using record storages
US6647391B1 (en) System, method and article of manufacture for fast mapping from a propertied document management system to a relational database
US6615202B1 (en) Method for specifying a database import/export operation through a graphical user interface
US5185887A (en) Database generation management method and system
US20060143187A1 (en) Integrating tablespaces with different block sizes
JPH09212528A (en) Method of storing a database, method of retrieving records from a database, and database storage / retrieval system
JPH10501086A (en) Storage plane organization and storage system based thereon
EP1091295B1 (en) Data management system using a plurality of data operation modules
CN114625713A (en) Metadata management method and device in storage system and storage system
US20250077122A1 (en) File system improvements for zoned storage device operations
EP0410210A2 (en) Method for dynamically expanding and rapidly accessing file directories
US5519860A (en) Central processor index sort followed by direct record sort and write by an intelligent control unit
US7171425B2 (en) Structure and method for sharing large databases
JPH0477341B2 (en)
JPH09305622A (en) Database management method and system having document retrieval function
Deppisch et al. Managing complex objects in the Darmstadt database kernel system
US6438536B1 (en) Method and system for dynamically generating code to enhance the performance of a relational database manager that provides access to a relational database
JP7654585B2 (en) Database system and data management method
CN118567577B (en) Data access method and device based on distributed block storage and electronic equipment
JP2540821B2 (en) Database search system
JPH0198020A (en) Index management system
Pollack et al. Index Storage Fundamentals
JPS62107336A (en) Hierarchical database control method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees