JP2604787B2 - Two-dimensional data storage method - Google Patents

Two-dimensional data storage method

Info

Publication number
JP2604787B2
JP2604787B2 JP63055196A JP5519688A JP2604787B2 JP 2604787 B2 JP2604787 B2 JP 2604787B2 JP 63055196 A JP63055196 A JP 63055196A JP 5519688 A JP5519688 A JP 5519688A JP 2604787 B2 JP2604787 B2 JP 2604787B2
Authority
JP
Japan
Prior art keywords
data
row
key
specified
computer
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
JP63055196A
Other languages
Japanese (ja)
Other versions
JPH01228022A (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.)
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 JP63055196A priority Critical patent/JP2604787B2/en
Publication of JPH01228022A publication Critical patent/JPH01228022A/en
Application granted granted Critical
Publication of JP2604787B2 publication Critical patent/JP2604787B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は二次元データ格納方式に関し、特に多重キー
による検索が可能な二次元データ格納方式に関する。
Description: FIELD OF THE INVENTION The present invention relates to a two-dimensional data storage system, and more particularly to a two-dimensional data storage system capable of searching using multiple keys.

〔従来の技術〕[Conventional technology]

従来の二次元データ格納方式は、特に高速にデータの
格納や検索を行うことが必要なオンライン処理などを行
うコンピュータシステムでは、処理時間を向上させるた
め、多重レベルのキー部を主記憶上のテーブルに保有
し、データ部を補助記憶の中へ格納している。
The conventional two-dimensional data storage method uses a multi-level key unit in a main storage table to improve processing time, especially in a computer system that performs online processing that requires high-speed data storage and retrieval. And the data part is stored in the auxiliary storage.

また、従来の二次元データ格納方式は、キー部および
データ部の最大容量、キーの位置、属性情報の種類など
をプログラミングの段階で定めて固定している。
In the conventional two-dimensional data storage method, the maximum capacities of the key portion and the data portion, the position of the key, the type of attribute information, and the like are determined and fixed at the stage of programming.

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

上述した従来の二次元データ格納方式は、プログラミ
ングの段階で、キー部を保有する主記憶上のテーブル、
およびデータ部を格納する補助記憶上のファイルを、あ
らかじめプログラムで定められた最大の容量に合せて確
保して置かなければならないので、特にいくつかの種類
のファイルを同一のプログラムで取扱い、ファイルの種
類によって、キー部やデータ部の大きさにかなりの差が
ある場合などでは、主記憶や補助記憶を効率よく利用す
ることができないという問題点がある。
In the conventional two-dimensional data storage method described above, at the stage of programming, a table on a main memory having a key portion,
And the file on the auxiliary storage for storing the data section must be reserved and set according to the maximum capacity specified in advance by the program. There is a problem that the main memory and the auxiliary memory cannot be used efficiently when there is a considerable difference in the size of the key portion and the data portion depending on the type.

また、データ部を補助記憶の中へ格納しているので、
データの検索や格納の処理にそれぞれ、時間を要すると
いう問題点がある。
Also, since the data part is stored in the auxiliary storage,
There is a problem that it takes time to search and store data.

本発明の目的は、処理の実行時に、処理するファイル
の種類に応じて、キー部やデータ部に必要な主記憶上の
使用領域を確保することにより、主記憶を効率良く利用
するとともに、データ部をセグメントに分割して常駐/
非常駐の指定を可能にすることにより、コンピュータの
主記憶容量に制限されない大容量の二次元データを有す
るファイルを処理することができる二次元データ格納方
式を提供することにある。
An object of the present invention is to use a main memory efficiently by securing a use area on a main memory necessary for a key portion and a data portion according to the type of a file to be processed at the time of execution of a process. Department is divided into segments and resident /
An object of the present invention is to provide a two-dimensional data storage method capable of processing a file having a large amount of two-dimensional data which is not limited by the main storage capacity of a computer by enabling designation of non-resident status.

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

本発明の二次元データ格納方式は、 (A)データ行を特定する幾つかのキーと、前記幾つか
のキーにより特定される前記データ行を格納するアドレ
スを示すデータポインタとの組合せを、前記幾つかのキ
ーにより特定される種類のそれぞれについて、コンピュ
ータの主記憶上に保有する行管理キーテーブル、 (B)前記データ行の各データに与えられた各列の属性
情報のそれぞれを、コンピュータの主記憶上に保有する
列管理テーブル、 (C)前記属性情報のそれぞれで意味付けされた各列の
各データを保有する前記データ行を、前記幾つかのキー
により特定されたデータポインタが示すアドレスの順序
に、前記幾つかのキーにより特定される種類の行数分、
コンピュータの主記憶上に保有するとともに、コンピュ
ータの主記憶上に保有できるデータ行の行数単位を越え
るとき、適当な行数単位でコンピュータの補助記憶に格
納できるデータテーブル、 を備えて構成されている。
The two-dimensional data storage method according to the present invention includes: (A) a combination of some keys for specifying a data row and a data pointer indicating an address for storing the data row specified by the some keys, A row management key table held on the main memory of the computer for each of the types specified by the several keys, (B) the attribute information of each column given to each data of the data row, A column management table held on the main storage; (C) an address indicated by the data pointer specified by the several keys, indicating the data row holding each data of each column meaninged by each of the attribute information In the order of the number of rows of the type specified by the several keys,
A data table that can be stored in the main memory of the computer and, when the number of data rows that can be stored in the main memory of the computer exceeds the number of rows, stored in the auxiliary storage of the computer in an appropriate number of rows. I have.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して説明す
る。
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の二次元データ格納方式の一実施例を
示す情報構成図である。
FIG. 1 is an information structure diagram showing one embodiment of a two-dimensional data storage method of the present invention.

第1図に示すように、行管理キーテーブル1は、コン
ピュータの主記憶上に、データ行を特定する第1キー,
第2キー,第3キー,……およびそれらのキーの値で特
定されるデータ行を格納するアドレスを示すデータポイ
ンタの各欄に値を保有し、これらの各欄に値を有する行
数のL(第1キー,第2キー,第3キー,……により特
定される種類の数)を保有している。
As shown in FIG. 1, a row management key table 1 stores a first key for specifying a data row on a main memory of a computer.
Each column of the data pointer indicating the address for storing the data line specified by the second key, the third key,... And the value of the key has a value. L (the number of types specified by the first key, the second key, the third key,...).

すなわち、a1,b1,c1,……で特定されるデータ行は、
アドレスp1にあり、a1,b2,c2,……で特定されるデータ
行は、アドレスp2にあり、a2,b2,c1,……で特定される
データ行は、アドレスp4にあり、a3,b1,c2,……で特定
されるデータ行は、アドレスp3にあることをそれぞれ示
している。
That is, the data row specified by a 1 , b 1 , c 1 ,.
The data line at address p 1 and identified by a 1 , b 2 , c 2 ,... Is at address p 2 and the data line identified by a 2 , b 2 , c 1 ,. There the address p 4, a 3, b 1 , c 2, data lines specified by ...... respectively show that the address p 3.

また、列管理テーブル2は、データ行の各データに与
えられた各列の属性情報のそれぞれを、コンピュータの
主記憶上に保有し、これらの各欄に値を有する列数のM
を保有している。
The column management table 2 holds the attribute information of each column given to each data of the data row in the main memory of the computer, and stores the M of the number of columns having values in these columns.
Have.

すなわち、各データ行は、X〜X(1)という属性情
報のデータ,X〜X(2)という属性情報のデータ,……
…を有していることを示している。
That is, each data row is data of attribute information of X to X (1), data of attribute information of X to X (2),.
...

一方、データテーブル3は、列管理テーブル2の属性
情報のそれぞれで意味付けされたM個の各データを保有
するデータ行を、行管理キーテーブル1の第1キー,第
2キー,第3キー,……により特定されたデータポイン
タが示すアドレスの順序に、行管理キーテーブル1の第
1キー,第2キー,第3キー,……により特定される種
類の行数のL個分、コンピュータの主記憶上に保有する
とともに、コンピュータの主記憶上に保有できるデータ
行の行数単位を越えるとき、適当な行数単位のn個に分
けてそれらをコンピュータの補助記憶に格納している。
On the other hand, the data table 3 stores, in the row management key table 1, data rows holding M pieces of data, each of which is given a meaning by each of the attribute information of the column management table 2, the first key, the second key, and the third key. ,... In the order of the addresses indicated by the data pointers specified by the data pointers, the number of rows of the type specified by the first key, the second key, the third key,. When the number of data rows that can be held in the main memory of the computer exceeds the number of rows, the data is divided into n appropriate number of rows and stored in the auxiliary storage of the computer.

なお、データテーブル3は、保有するデータ数のN
(N=L×M)も保有している。
It should be noted that the data table 3 contains N of the number of held data.
(N = L × M).

すなわち、第1図のデータテーブエル3は、L行,M列
の二次元データである について、a1,b1,c1,……で特定されるデータポインタ
が示すアドレスp1の位置から最初のデータ行としてd11,
d12,d13,………d1Mを保有し、a1,b2,c2,……で特定され
るデータポインタが示すアドレスp2の位置から次のデー
タ行としてd21,d22,d23,………の順に、索引順編成のテ
ーブルを構成して、上記のL行,M列のデータのすべてを
保有していることを示している。
That is, the data table 3 in FIG. 1 is two-dimensional data of L rows and M columns. For, a 1, b 1, c 1, d 11 as the first data line from the position of the address p 1 indicated by the data pointer specified by ...,
d 12 , d 13 ,..., d 1 M, and d 21 , d 22 as the next data line from the position of the address p 2 indicated by the data pointer specified by a 1 , b 2 , c 2 ,. , d 23 ,..., in this order, a table of index sequential organization is constructed, indicating that all of the data in the L rows and M columns are held.

このため、データテーブル3は、アドレスを有してい
る各データ行ごとに検索および更新を行うことができ
る。
Thus, the data table 3 can be searched and updated for each data row having an address.

次に、本実施例における二次元データを格納する動作
を説明する。
Next, an operation of storing two-dimensional data in this embodiment will be described.

第2図は本実施例の二次元データ格納動作を示す流れ
図である。
FIG. 2 is a flowchart showing the two-dimensional data storage operation of this embodiment.

対象の二次元データをデータテーブル3に格納する場
合、順不同で送られてくる格納すべきデータを次々に受
けて以下の動作を行う。
When the target two-dimensional data is stored in the data table 3, the following operation is performed in response to the data to be stored which are sent out of order one after another.

まず、ステップS1では、受けたデータが更新用の属性
情報を含むときには、列管理テーブル2に保有している
対象の二次元データに関する属性情報X〜X(1),X〜
X(2),………の更新をするとともに、それらの数で
ある列数Mを更新して保有する。
First, in step S1, when the received data includes the attribute information for updating, the attribute information X to X (1), X to X of the target two-dimensional data held in the column management table 2 is stored.
X (2),... Are updated, and the number M of columns is updated and held.

次に、ステップS2で、受けたデータが有する各キー
が、行管理キーテーブル1にあるこれまでに保有されて
いる行の各キーに一致する行があるかどうかを検索す
る。
Next, in step S2, a search is performed to determine whether or not there is a row in which each key of the received data matches each key of the rows held so far in the row management key table 1.

次に、ステップS3で、ステップS2の結果を判定し、一
致する行がないときは、受けたデータが有するキーの組
が新規である(YES)ので、ステップS4に移り、一致す
る行があるときは、新規でない(NO)ので、ステップS5
に移る。
Next, in step S3, the result of step S2 is determined. If there is no matching row, the key set of the received data is new (YES). If it is not new (NO), step S5
Move on to

ステップS4では、受けたデータが有する各キーを、行
管理キーテーブル1における一行として、キーの配列順
序が昇順となる行位置に挿入し、その後の行を一行ずつ
後へずらせる。また、挿入した行のデータポインタに
は、アドレスとしてデータテーブル3の新たな格納位置
を示す値(L×M)を保有する。さらに、行管理キーテ
ーブル1の行数Lには、1を加えておく。
In step S4, each key of the received data is inserted as a row in the row management key table 1 at a row position where the key arrangement order is ascending, and the subsequent rows are shifted backward by one row. The data pointer of the inserted row has a value (L × M) indicating the new storage position of the data table 3 as an address. Further, 1 is added to the number L of rows in the row management key table 1.

一方、ステップS5では、行管理キーテーブル1におい
て、受けたデータが有する各キーと一致する行にあるデ
ータポインタが示すアドレスの値を読出しておく。
On the other hand, in step S5, in the row management key table 1, the value of the address indicated by the data pointer in the row corresponding to each key of the received data is read.

次に、ステップS6で、受けたデータを、行管理キーテ
ーブル1から、その受けたデータが有する各キーと一致
する行のデータポインタが示すアドレスを受けて、列管
理テーブル2から、その受けたデータのためのそれぞれ
の属性情報を受けて、その受けたデータをM個の部分に
分け、データテーブル3におけるそのアドレス(データ
行が指定される)から順番にそれぞれの属性情報(列が
指定される)で格納するとともに、データテーブル3の
データ数NにMを加える。
Next, in step S6, the received data is received from the row management key table 1 and received from the column management table 2 by receiving the address indicated by the data pointer of the row corresponding to each key of the received data. Each piece of attribute information for data is received, the received data is divided into M parts, and each piece of attribute information (column is specified in order) from the address (data row is specified) in the data table 3. ), And M is added to the number N of data in the data table 3.

以上のべたように、本実施例の二次元データ格納方式
は、処理の実行時に、処理するファイルの種類に応じ
て、キー部やデータ部に必要な主記憶上の使用領域を確
保することにより、主記憶を効率良く利用するととも
に、データ部をセグメントに分割して常駐/非常駐の指
定を可能にすることにより、コンピュータの主記憶容量
に制限されない大容量の二次元データを有するファイル
を処理することができる。
As described above, the two-dimensional data storage method according to the present embodiment secures a used area on the main memory necessary for the key part and the data part according to the type of the file to be processed at the time of executing the processing. A file having a large amount of two-dimensional data which is not limited by the main storage capacity of the computer is processed by efficiently using the main storage and dividing the data portion into segments to enable designation of resident / non-resident. be able to.

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

以上説明したように、本発明の二次元データ格納方式
は、処理の実行時に、処理するファイルの種類に応じ
て、キー部やデータ部に必要な主記憶上の使用領域を確
保することにより、主記憶を効率良く利用するととも
に、データ部をセグメントに分割して常駐/非常駐の指
定を可能にすることにより、コンピュータの主記憶容量
に制限されない大容量の二次元データを有するファイル
を処理することができるという効果を有している。
As described above, the two-dimensional data storage method of the present invention secures a used area on a main memory necessary for a key part and a data part according to the type of a file to be processed at the time of executing a process. To process a file having large-capacity two-dimensional data which is not limited by the main storage capacity of the computer by efficiently using the main storage and dividing the data section into segments to enable designation of resident / non-resident. It has the effect that it can be done.

また、本発明の二次元データ格納方式は、データ部の
処理する部分が、主記憶上で動作するので、データ部全
体が補助記憶上で動作する従来の二次元データ格納方式
に比べて、データの格納・検索を大幅に高速化できると
いう効果がある。
Further, in the two-dimensional data storage method of the present invention, since the processing part of the data part operates on the main storage, the data part is compared with the conventional two-dimensional data storage method in which the entire data part operates on the auxiliary storage. This has the effect of greatly speeding up the storage and retrieval of.

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

第1図は本発明の二次元データ格納方式の一実施例を示
す情報構成図、第2図は本実施例の二次元データ格納動
作を示す流れ図である。 1……行管理キーテーブル、2……列管理テーブル、3
……データテーブル。
FIG. 1 is an information configuration diagram showing one embodiment of a two-dimensional data storage method according to the present invention, and FIG. 2 is a flowchart showing a two-dimensional data storage operation of this embodiment. 1 ... row management key table, 2 ... column management table, 3
...... Data table.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】(A)データ行を特定する幾つかのキー
と、前記幾つかのキーにより特定される前記データ行を
格納するアドレスを示すデータポインタとの組合せを、
前記幾つかのキーにより特定される種類のそれぞれにつ
いて、コンピュータの主記憶上に保有する行管理キーテ
ーブル、 (B)前記データ行の各データに与えられた各列の属性
情報のそれぞれを、コンピュータの主記憶上に保有する
列管理テーブル、 (C)前記属性情報のそれぞれで意味付けされた各列の
各データを保有する前記データ行を、前記幾つかのキー
により特定されたデータポインタが示すアドレスの順序
に、前記幾つかのキーにより特定される種類の行数分、
コンピュータの主記憶上に保有するとともに、コンピュ
ータの主記憶上に保有できるデータ行の行数単位を越え
るとき、適当な行数単位でコンピュータの補助記憶に格
納できるデータテーブル、 を備えることを特徴とする二次元データ格納方式。
(A) A combination of some keys for specifying a data line and a data pointer indicating an address for storing the data line specified by the some keys is
A row management key table held on a main memory of a computer for each of the types specified by the several keys; and (B) a column management key table for each column of attribute data given to each data of the data row. (C) The data pointer specified by the several keys indicates the data row holding each data of each column meaninged by each of the attribute information. In the order of the addresses, the number of lines of the type specified by the several keys,
A data table that is stored in the main memory of the computer and that can be stored in the auxiliary storage of the computer in an appropriate number of rows when the number of data rows that can be stored in the main memory of the computer exceeds the number of rows. Two-dimensional data storage method.
JP63055196A 1988-03-08 1988-03-08 Two-dimensional data storage method Expired - Lifetime JP2604787B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63055196A JP2604787B2 (en) 1988-03-08 1988-03-08 Two-dimensional data storage method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63055196A JP2604787B2 (en) 1988-03-08 1988-03-08 Two-dimensional data storage method

Publications (2)

Publication Number Publication Date
JPH01228022A JPH01228022A (en) 1989-09-12
JP2604787B2 true JP2604787B2 (en) 1997-04-30

Family

ID=12991931

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63055196A Expired - Lifetime JP2604787B2 (en) 1988-03-08 1988-03-08 Two-dimensional data storage method

Country Status (1)

Country Link
JP (1) JP2604787B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0715001B2 (en) * 1987-07-15 1995-02-22 三井石油化学工業株式会社 Polyamide and gas barrier property-imparting agent comprising the polyamide

Also Published As

Publication number Publication date
JPH01228022A (en) 1989-09-12

Similar Documents

Publication Publication Date Title
US5293616A (en) Method and apparatus for representing and interrogating an index in a digital memory
JP2604787B2 (en) Two-dimensional data storage method
CN111581440B (en) Hardware acceleration B + tree operation device and method thereof
JPH07334402A (en) Data base as main memory
JPS6143338A (en) Searching of thin data base using association technology
JPH04112253A (en) Data accessing method using multilayer buffer
JP2615046B2 (en) Record addition processing method
JPS6143339A (en) Searching of association matrix
JPH0283640A (en) Data base updating method
JPS6058492B2 (en) Database search method
JPH04250568A (en) Record retrieval device
JP2815588B2 (en) Forgetting return method of virtual memory
JP2643850B2 (en) File processing device
JP3564173B2 (en) Access device for relative knitting files
JP3031944B2 (en) Data processing device
JPH0196728A (en) Alteration of data base table
JPH02259942A (en) Data base generation management processing system
JPH04230576A (en) Method for retrieving record
JPS6035692B2 (en) Buffer management method
JPH09330322A (en) Data retrieval device
JPS63253431A (en) Retrieving system for data base of inverted structure
JPS63150724A (en) Data access processing system
JPH0256038A (en) Access control system for memory
JPS63285631A (en) Updating and processing system for index file
JPH04190454A (en) History data managing method