JPH09138762A - Memory developing method for tree structure table - Google Patents

Memory developing method for tree structure table

Info

Publication number
JPH09138762A
JPH09138762A JP7295366A JP29536695A JPH09138762A JP H09138762 A JPH09138762 A JP H09138762A JP 7295366 A JP7295366 A JP 7295366A JP 29536695 A JP29536695 A JP 29536695A JP H09138762 A JPH09138762 A JP H09138762A
Authority
JP
Japan
Prior art keywords
memory
address
tables
tree structure
information
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
JP7295366A
Other languages
Japanese (ja)
Inventor
Naoko Tanaka
直子 田中
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 Solution Innovators Ltd
Original Assignee
NEC Solution Innovators 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 NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP7295366A priority Critical patent/JPH09138762A/en
Publication of JPH09138762A publication Critical patent/JPH09138762A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To execute memory development in common by means of the tree structure table of any constitution. SOLUTION: A data file having a data structure information part 12 provided with a data length 1-4 being size information of a table and position information 1-5 being link regulation information among the tables, and a data part 1-3 is prepared. The table area is secured on a memory by the data length 1-4, and the plural tables which are linked as shown in (A) are developed into a tree form on the memory by using the real address of the head table secured on the memory and position information 1-5.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はトリー構造テーブル
のメモリ展開方法に関し、特に任意の構造のトリー構造
テーブルのメモリ展開方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a tree structure table memory expansion method, and more particularly to a tree structure table memory expansion method of an arbitrary structure.

【0002】[0002]

【従来の技術】従来、ネットワークシステムにおける運
用管理システムにおいては、ノードやノードに属する端
末などの関係および運用データをトリー構造のテーブル
で管理していた。これらのトリー構造のテーブルはネッ
トワークシステムごとに異なっており、トリー構造のテ
ーブルをメモリ展開する際は、それぞれのトリー構造に
合ったメモリ展開プログラムを作成し、運用管理システ
ムからその専用のメモリ展開プログラムを呼び出すこと
によりメモリ展開を行う必要があった。
2. Description of the Related Art Conventionally, in an operation management system in a network system, relations of nodes and terminals belonging to the nodes and operation data are managed by a tree structure table. These tree structure tables are different for each network system. When expanding a tree structure table into a memory, create a memory expansion program suitable for each tree structure, and use the operation management system to create a dedicated memory expansion program for the memory expansion program. It was necessary to expand the memory by calling.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のトリー
構造テーブルのメモリ展開方法では、1つのプログラム
で特定の構造のトリーテーブル情報しかメモリ展開する
ことができず、新たなトリー構造テーブルの追加や既存
のトリー構造テーブルの変更があった場合に、メモリ展
開プログラムの新規作成や修正をしなければならないと
いう問題点があった。
In the conventional memory expansion method of the tree structure table described above, only one tree table information of a specific structure can be expanded in memory by one program, and addition of a new tree structure table or When the existing tree structure table was changed, there was a problem that a new memory expansion program had to be created or modified.

【0004】また、メモリ展開プログラムがトリー構造
に特化しているため、テーブル展開処理プログラムの共
通化が行えないという問題点があった。
Further, since the memory expansion program is specialized for the tree structure, there is a problem that the table expansion processing programs cannot be shared.

【0005】[0005]

【課題を解決するための手段】第1の発明は、複数のテ
ーブルをメモリ上でトリー状に管理するシステムにおけ
るトリー構造テーブルのメモリ展開方法において、前記
複数の各テーブルの大きさ情報と該各テーブル間のリン
ク規定情報を予めファイルに用意し、前記テーブルの大
きさ情報により前記メモリ上に該テーブル領域を確保
し、前記メモリ上に確保された前記テーブルの先頭の実
アドレスと前記リンク規定情報を用いて前記複数のテー
ブルをリンクさせ前記メモリ上にトリー状に展開するこ
とを特徴とする。
According to a first aspect of the present invention, in a memory expansion method of a tree structure table in a system for managing a plurality of tables in a tree form on a memory, size information of each of the plurality of tables and Link definition information between tables is prepared in a file in advance, the table area is secured in the memory according to the size information of the table, and the real address of the head of the table secured in the memory and the link regulation information. Is used to link the plurality of tables and to develop them in a tree shape on the memory.

【0006】また、第2の発明は、第1の発明における
前記リンク規定情報が、前記トリー状に展開された前記
各テーブルにおける下位テーブルの前記実アドレスの設
定アドレスを、前記各テーブルの先頭からのオフセット
値として規定することを特徴とする。
According to a second aspect of the present invention, the link definition information of the first aspect of the invention is such that the set address of the real address of the lower table in each of the tables expanded in the tree form is set from the top of each table. It is characterized in that it is defined as an offset value of.

【0007】また、第3の発明は、第2の発明における
前記リンク規定情報が、前記トリー状に展開された前記
各テーブル中の複数の同位テーブルにおける上位テーブ
ルの前記実アドレスの設定アドレスを、前記複数の同位
テーブルの先頭からのオフセット値として規定すること
を特徴とする。
In a third aspect of the invention, the link defining information in the second aspect of the invention is such that the set address of the real address of the upper table in the plurality of peer tables in each of the tables expanded in the tree shape is It is characterized in that it is defined as an offset value from the head of the plurality of peer tables.

【0008】[0008]

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

【0009】図1(A)は本発明で用いるトリー構造テ
ーブル例を示す図、図1(B)はトリー構造をメモリ展
開する時に参照する本発明のデータファイルの構成例を
示す図である。また、図2は本発明の動作説明図であ
り、(A)はトリー構造テーブル詳細図、(B)はデー
タファイル中の位置情報例を示す図である。さらに、図
3〜図5は、本発明の動作を示すフローチャートであ
る。
FIG. 1A is a diagram showing an example of a tree structure table used in the present invention, and FIG. 1B is a diagram showing an example of the structure of a data file of the present invention which is referred to when the tree structure is expanded into a memory. 2A and 2B are operation explanatory diagrams of the present invention, FIG. 2A is a detailed diagram of a tree structure table, and FIG. 2B is a diagram showing an example of position information in a data file. 3 to 5 are flowcharts showing the operation of the present invention.

【0010】複数の要素(以降テーブルと称す)を管理
するシステムにおいて、テーブルを図1(A)のような
トリー構造としてメモリに展開したい場合、参照する図
1(B)のデータファイルはテーブル毎にデータ構造情
報部1-2 とデータ部1-3 から成っている。データ構造情
報部1-2 には、テーブルの展開位置アドレスや、テーブ
ルのチェーン先、チェーン元アドレス等が格納されてい
る。また、データ部は、展開されたテーブルにコピーさ
れるデータが格納されている。
In a system for managing a plurality of elements (hereinafter referred to as a table), when it is desired to expand a table in a memory as a tree structure as shown in FIG. 1A, the data file of FIG. It consists of a data structure information section 1-2 and a data section 1-3. The data structure information section 1-2 stores the expansion position address of the table, the chain destination of the table, the chain source address, and the like. Further, the data section stores the data to be copied to the expanded table.

【0011】さらにデータ構造情報部1-2 はデータ長1-
4 と位置情報1-5 から構成されている。ここでデータ部
1-3 を持つデータ構造情報部1-2 をレコード種別1、デ
ータ部1-3 をレコード種別2、データ部1-3 を持たない
データ構造情報部1-7 をレコード種別3とする。これら
の種別は、図示しないがデータ構造情報部1-2 、データ
部1-3 の先頭に格納されているものとする。
Further, the data structure information part 1-2 has a data length 1-
It is composed of 4 and location information 1-5. Where the data section
The data structure information section 1-2 having 1-3 is the record type 1, the data section 1-3 is the record type 2, and the data structure information section 1-7 having no data section 1-3 is the record type 3. Although not shown, these types are stored at the head of the data structure information section 1-2 and the data section 1-3.

【0012】次に、本発明のメモリ展開の手続きについ
て、図3〜図5、および図1(B)のデータファイルを
参照して説明する。
Next, the memory expansion procedure of the present invention will be described with reference to the data files of FIGS. 3 to 5 and FIG. 1 (B).

【0013】まず初めにデータファイルからデータ構造
情報部1-2 を読み込み(S1-1)、データ長1-4 を元に1テ
ーブル分をメモリに確保し(S1-2)、次に図5に示すアド
レス取得関数を呼び出し位置情報1-5 を元に展開位置を
取得し(S1-3)、取得した展開位置にステップS1-2で確保
したメモリの実アドレスを格納し(S1-4)、その後次レコ
ードを読み込み(S1-5)、レコード種別2(データ部1-3
)であった場合(S1-7)、データをコピーする(S1-8)。
この処理により1テーブルがメモリに展開される。テー
ブル毎にデータ構造情報部1-2 を持っているので、ステ
ップS1-7でレコード種別1(データ構造情報部1-2 )と
なった場合ステップ(S1-2)に戻り、次テーブル展開の
ためこの処理を繰り返すことにより複数のテーブルのメ
モリ展開を行う。
First, the data structure information section 1-2 is read from the data file (S1-1), and one table is reserved in the memory based on the data length 1-4 (S1-2), and then FIG. Call the address acquisition function shown in to acquire the expansion position based on the position information 1-5 (S1-3), and store the real address of the memory secured in step S1-2 in the acquired expansion position (S1-4). , Then read the next record (S1-5), record type 2 (data section 1-3
If it is (S1-7), the data is copied (S1-8).
By this processing, one table is expanded in the memory. Since each table has a data structure information section 1-2, if record type 1 (data structure information section 1-2) is found in step S1-7, the process returns to step (S1-2) to expand the next table. Therefore, the memory expansion of a plurality of tables is performed by repeating this process.

【0014】また、既に展開されているテーブル同士を
チェーン付ける場合、即ち、ステップ(S1-7)でレコー
ド種別3(データ構造情報部1-7 )の場合にチェーン付
け関数(図4参照)を呼び出す(S1-9)。チェーン付け関
数( F2) の手続きは、まずアドレス取得関数を呼び出し
位置情報1-5 によりチェーン付けされるテーブルの先頭
実アドレスを取得し(S2-1)、取得した実アドレスをチェ
ーン先アドレスとして待避しておき(S2-2)、それから次
レコード(データ構造情報部1-8 )を読み込み(S2-3)、
再びアドレス取得関数を呼び出し位置情報1-5 によりチ
ェーン元アドレスを取得し(S2-4)、チェーン元アドレス
の示す位置にステップS2-2で取得したチェーン先アドレ
ス( 実アドレス) を格納する。この時、データ構造情報
部1-7 、1-8 のデータ長1-4 のエリアは未使用となる。
テーブル同士のチェーン付けを行いたい数分のデータ構
造情報部1-7,1-8 を持ち、この処理を順次行うことによ
り、複数のテーブル同士をチェーン付けることが可能と
なる。
When chaining already developed tables, that is, in the case of record type 3 (data structure information section 1-7) in step (S1-7), a chaining function (see FIG. 4) is used. Call (S1-9). The procedure of the chaining function (F2) first calls the address acquisition function to acquire the first real address of the table to be chained by the position information 1-5 (S2-1), and saves the acquired real address as the chain destination address. (S2-2), then read the next record (data structure information section 1-8) (S2-3),
The address acquisition function is called again to acquire the chain source address from the position information 1-5 (S2-4), and the chain destination address (real address) acquired in step S2-2 is stored at the position indicated by the chain source address. At this time, areas of data length 1-4 of data structure information section 1-7 and 1-8 are unused.
It is possible to chain a plurality of tables by having the data structure information sections 1-7 and 1-8 for the number of tables to be chained and sequentially performing this process.

【0015】トリー構造テーブルにおいて、テーブルを
双方向のリスト構造とし、上位から下位テーブルへだけ
でなく下位から上位テーブルへの検索、また同位テーブ
ル間で前方向だけでなく後方向への検索等を実現するた
めに、チェーン付けは重要な機能となる。
In the tree structure table, the table has a bidirectional list structure to search not only from the upper table to the lower table but also from the lower table to the upper table, and between the peer tables not only in the forward direction but also in the backward direction. Chaining will be an important feature to achieve.

【0016】次に、位置情報1-5 の構造およびアドレス
取得(S1-3,S2-1,S2-4) の方法についてさらに詳しく説
明する。
Next, the structure of the position information 1-5 and the method of address acquisition (S1-3, S2-1, S2-4) will be described in more detail.

【0017】位置情報1-5 は、あるテーブルの位置を検
索するために、トリー構造の出発点からターゲットのテ
ーブルに辿りつくまでの各テーブル先頭からのオフセッ
ト値の繰り返しデータからなっている。図2(A)はト
リー構造テーブル詳細図で、図1(A)のトリー構造テ
ーブル例の破線部分のテーブルについて上下間および同
位の関係をオフセット値と共に表したもので、16進表
記数字(0x00,0x20,0x30等)は各テーブル先頭からのオ
フセット値を示す。図2(B)はデータファイル中の各
データ構造情報部の位置情報例で、図2(A)を展開す
る場合の位置情報を示しており、上述のオフセット値の
配列である。配列の最後の0xFFFFは1つの位置情報の終
わりを意味するデリミタとする。
The position information 1-5 is composed of repeated data of offset values from the beginning of each table from the starting point of the tree structure to the target table in order to search the position of a certain table. FIG. 2 (A) is a detailed view of the tree structure table, which shows the relationship between the upper and lower parts and the equality of the table in the broken line portion of the tree structure table example of FIG. 1 (A) together with the offset value. , 0x20, 0x30, etc.) indicates an offset value from the head of each table. FIG. 2B is an example of the position information of each data structure information section in the data file, showing the position information in the case of expanding FIG. 2A, which is the array of the offset values described above. 0xFFFF at the end of the array is a delimiter meaning the end of one position information.

【0018】図2(A)に示すトリーを展開する場合の
アドレス取得の手続きについて、図2(B)および図5
のアドレス取得フローチャートを用いて説明する。ま
ず、ルートテーブル2-3 を展開しその先頭アドレス(実
アドレス)をアドレス格納エリア2-1 に入れる場合(2-
2) 、位置情報はで示される。のオフセット値[0]
はアドレス格納エリア2-1 の先頭からのオフセット値 0
x0000 の所にルートテーブル2-3 を位置付けるという意
味である。アドレス取得関数(F3)はアドレス格納エリア
の先頭アドレスを引数として受け取り、その先頭アドレ
スをworkに代入する(S3-1)。そしてオフセット値[0] が
デリミタでないので(S3-3)、workにオフセット値[0] を
加算しアドレスを取得し(S3-4)、次のオフセット値[1]
がデリミタなので(S3-5)、関数終了となる。
Regarding the procedure for obtaining an address when expanding the tree shown in FIG. 2 (A), FIG. 2 (B) and FIG.
This will be described with reference to the address acquisition flow chart. First, expand the route table 2-3 and put the start address (real address) in the address storage area 2-1 (2-
2), position information is indicated by. Offset value of [0]
Is the offset value 0 from the beginning of address storage area 2-1
This means that the route table 2-3 is located at x0000. The address acquisition function (F3) receives the start address of the address storage area as an argument and substitutes the start address into work (S3-1). Since the offset value [0] is not the delimiter (S3-3), the offset value [0] is added to work to obtain the address (S3-4), and the next offset value [1]
Is a delimiter (S3-5), the function ends.

【0019】ここで取得したアドレスはオフセット値
[0] が0x0000であるためアドレス格納エリアの先頭アド
レスのままであり、アドレス格納エリア2-1 にルートテ
ーブル2-3 の先頭アドレス(実アドレス)を格納する。
次に、Aテーブル2-5 をルートテーブル2-3 の先頭から
のオフセット値 0x0020 の所に展開する場合(2-4) 、位
置情報はの様になる。のオフセット値[1] は、ルー
トテーブル2-3 の先頭からのオフセット値 0x0020 の所
にAテーブル2-5 を位置付けることを示す。アドレス取
得関数(F3)は前回と同様にアドレス格納エリアの先頭ア
ドレスを引数として受け取り、ステップS3-4まで前回と
同様の手続きでアドレスを取得する。ここで次のオフセ
ット値[1] がデリミタでないので(S3-5)、取得アドレス
(ここではアドレス格納エリアの先頭アドレスのまま)
に格納されている実アドレス(前回格納した、ルートテ
ーブル2-3 先頭アドレス)をworkに代入し(S3-6)、ステ
ップS3-2 へ戻る。オフセット値[1] がデリミタでない
ので(S3-3)、workにオフセット値[1] を加算しアドレス
を取得し(S3-4)、オフセット値[2] がデリミタなので(S
3-5)、関数終了となる。ここで取得したアドレスはルー
トテーブル2-3 の先頭の実アドレスにオフセット値[1]
即ち0x0020 を加算したアドレスであり、ここにAテー
ブル2-5 の先頭アドレスを格納する。
The address acquired here is an offset value
Since [0] is 0x0000, the start address of the address storage area remains unchanged, and the start address (real address) of route table 2-3 is stored in address storage area 2-1.
Next, when the A table 2-5 is expanded at the offset value 0x0020 from the head of the route table 2-3 (2-4), the position information is as follows. The offset value [1] indicates that the A table 2-5 is positioned at the offset value 0x0020 from the beginning of the route table 2-3. The address acquisition function (F3) receives the head address of the address storage area as an argument as in the previous time, and acquires the address by the same procedure as the previous time until step S3-4. Since the next offset value [1] is not the delimiter here (S3-5), the acquisition address (here, it remains the first address of the address storage area)
The actual address (previously stored route table 2-3 start address) stored in is substituted for work (S3-6), and the process returns to step S3-2. Since the offset value [1] is not the delimiter (S3-3), the offset value [1] is added to work to obtain the address (S3-4), and the offset value [2] is the delimiter (S3-3).
3-5), the function ends. The address acquired here is the offset value [1] at the first real address of the route table 2-3.
That is, it is an address obtained by adding 0x0020, and the leading address of the A table 2-5 is stored here.

【0020】以降同様に、B1テーブル2-7 を展開する
場合(2-6) の位置情報はで、のオフセット値[0] と
オフセット値[1] はと同様の意味を表し、のオフセ
ット値[2] 0x0030 は、Aテーブル2-5 の先頭からのオ
フセット値 0x0030 の所にB1テーブル2-7 の先頭アド
レスを格納することを示す。
Similarly, when the B1 table 2-7 is expanded (2-6), the position information is and the offset value [0] and the offset value [1] have the same meanings as [2] 0x0030 indicates that the start address of the B1 table 2-7 is stored at the offset value 0x0030 from the start of the A table 2-5.

【0021】ここで、Aテーブル2-5 をB1テーブル2-
7 の上位テーブルとして位置付ける合(2-8) を考える。
このような既に展開されているテーブル同士をチェーン
付ける場合は、およびの様に位置情報2つで表す。
のオフセット値[2] を 0x0000 とすることで、位置情
報によりAテーブル2-5 の先頭(Aテーブル自身)の
アドレスを取得できる。図5のフローチャートに従って
説明すると、アドレス取得関数(F3)はn が1の時のステ
ップS3-4まで、つまりオフセット値[1] をworkに加算す
る処理までは、の位置情報を元にアドレス取得を行っ
た場合と同じ動きをする。ここまでの処理で、ルートテ
ーブル2-3 の先頭アドレスにオフセット値[1] 0x0020
を加算したアドレスが取得できている(S3-4)。ここで、
位置情報の場合と異なりオフセット値[2] がデリミタ
でないので(S3-5)ステップS3-6へ進み、取得アドレスに
格納されている実アドレス(の時格納した、Aテーブ
ル2-5 先頭アドレス)をworkに代入し、ステップS3-2
へ戻る。オフセット値[2]がデリミタでないので(S3-
3)、workにオフセット値[2] を加算しアドレスを取得す
るが(S3-4)、オフセット値[2] が 0x0000 なので、work
の値はAテーブル2-5先頭アドレスのままであり、Aテ
ーブル2-5 の先頭アドレスが取得できたことになる。そ
してオフセット値[3] がデリミタなので(S3-5)関数終了
となる。
Here, A table 2-5 is replaced with B1 table 2-
Consider the case (2-8) where it is positioned as the upper table of 7.
When chaining such already expanded tables, two pieces of position information are used as in and.
By setting the offset value [2] of 0 to 0x0000, the address of the head of A table 2-5 (A table itself) can be acquired from the position information. Explaining according to the flowchart of FIG. 5, the address acquisition function (F3) acquires an address based on the position information of up to step S3-4 when n is 1, that is, until the process of adding the offset value [1] to work. Do the same as if you did. By the processing up to this point, the offset value [1] 0x0020 is added to the start address of the route table 2-3.
The address obtained by adding is obtained (S3-4). here,
Unlike the case of position information, the offset value [2] is not the delimiter (S3-5), the process proceeds to step S3-6, and the real address stored in the acquired address (the A-table 2-5 start address stored at that time) To work, and step S3-2
Return to Since the offset value [2] is not the delimiter, (S3-
3), add the offset value [2] to work to get the address (S3-4), but the offset value [2] is 0x0000, so work
The value of is still the A-table 2-5 start address, which means that the A-table 2-5 start address has been acquired. Since the offset value [3] is the delimiter (S3-5), the function ends.

【0022】このように位置情報によりAテーブル2-
5 の先頭アドレスをチェーン先のアドレスとして取得す
る。そして、位置情報を元にアドレス取得関数(F3)に
より取得した位置、つまり位置情報のオフセット値
[3] で示される、B1テーブル2-7 の先頭からのオフセ
ット値 0x0024 の所にチェーン先アドレス(Aテーブル
2-5 の先頭アドレス)を格納し、Aテーブル2-5 をB1
テーブル2-7 の上位テーブルとしてチェーン付けを行
う。同様に、B2テーブル2-10をB1テーブル2-7の同
位(B1テーブル2-7 の先頭からのオフセット値 0x002
8 の所)に展開する場合(2-9) の位置情報はで表され
る。また、Aテーブル2-5 をB2テーブル2-10の上位に
チェーン付ける場合(2-11)の位置情報はおよびで表
され、位置情報を元にアドレス取得関数(F3)により取
得したAテーブル2-5 の先頭アドレス(位置情報の場
合と同じ)が、位置情報を元にアドレス取得関数(F3)
により取得した位置(B2テーブル2-10の先頭からのオ
フセット値 0x0024 の所)に格納されチェーン付けが行
われる。
In this way, according to the position information, the A table 2-
Get the start address of 5 as the chain destination address. Then, the position acquired by the address acquisition function (F3) based on the position information, that is, the offset value of the position information
At the offset value 0x0024 from the beginning of the B1 table 2-7 shown by [3], the chain destination address (A table
(Start address of 2-5) is stored and A table 2-5 is set to B1.
Chaining is performed as the upper table of Table 2-7. Similarly, the B2 table 2-10 is the same as the B1 table 2-7 (offset value 0x002 from the beginning of the B1 table 2-7).
The location information of (2-9) when expanding to 8 places is represented by. Further, when chaining the A table 2-5 to the higher order of the B2 table 2-10 (2-11), the position information is represented by and the A table 2 acquired by the address acquisition function (F3) based on the position information. -The start address of -5 (same as the case of position information) is the address acquisition function (F3) based on the position information.
The data is stored in the position (offset value 0x0024 from the beginning of the B2 table 2-10) acquired by, and chaining is performed.

【0023】このように、図2(B)に示すような構造
の位置情報1-5 を図1(B)のデータファイルに持つこ
とにより、1テーブル毎に展開位置を取得しメモリに反
映して行くことができるため、様々な構成のトリー構造
のテーブルを共通にメモリ展開することが可能となる。
As described above, by having the position information 1-5 having the structure shown in FIG. 2B in the data file of FIG. 1B, the expansion position is acquired for each table and reflected in the memory. Therefore, it becomes possible to commonly expand the tree-structured tables of various configurations in the memory.

【0024】尚、図1(A)のルートテーブルからC1
テーブルへ展開する場合も、図2(B)に示す位置情報
の次からC1とC2のテーブル展開位置アドレスの位
置情報を追加しておけば、A,B1,B2の各テーブル
と同様にメモリ上に展開される。
From the route table of FIG. 1A, C1
Also when expanding to a table, if the position information of the table expansion position address of C1 and C2 is added after the position information shown in FIG. 2B, it is stored in the memory in the same manner as each table of A, B1 and B2. Be deployed to.

【0025】[0025]

【発明の効果】以上説明したように本発明は、テーブル
をトリー構造としてメモリ展開する際に、テーブルのデ
ータ長と位置情報からなるデータ構造情報部およびデー
タ部をテーブル毎にファイルに持ち、そのファイルを読
み込みデータ構造情報を元にデータを1テーブル単位に
メモリに展開するようにしたので、どのような構成のト
リー構造テーブルでも共通にメモリ展開でき、各トリー
構造テーブル毎に展開プログラムを作成する必要がな
く、またトリー構造テーブルに変更があった場合にも各
プログラムの修正の必要がないという効果を有する。
As described above, according to the present invention, when a table is expanded into a tree structure into a memory, a data structure information section and a data section, which are composed of the data length and position information of the table, are stored in a file for each table. Since the file is read and the data is expanded into the memory in units of one table based on the data structure information, the tree structure table of any structure can be commonly expanded in the memory, and the expansion program is created for each tree structure table. There is an effect that there is no need and that there is no need to modify each program even if there is a change in the tree structure table.

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

【図1】(A)は本発明で用いるトリー構造テーブル例
を示す図、(B)は本発明のデータファイルの構成例を
示す図である。
FIG. 1A is a diagram showing an example of a tree structure table used in the present invention, and FIG. 1B is a diagram showing a configuration example of a data file of the present invention.

【図2】(A)はトリー構造テーブルの詳細な構成例を
示す図、(B)はデータファイル中の位置情報例を示す
図である。
FIG. 2A is a diagram showing a detailed configuration example of a tree structure table, and FIG. 2B is a diagram showing an example of position information in a data file.

【図3】本発明の動作を示すフローチャートである。FIG. 3 is a flowchart showing the operation of the present invention.

【図4】図3におけるチェーン付け処理のフローチャー
トである。
FIG. 4 is a flowchart of chaining processing in FIG.

【図5】図3におけるアドレス取得関数のフローチャー
トである。
5 is a flow chart of an address acquisition function in FIG.

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

1−1 ルートテーブル 1−2 データ構造情報部 1−3 データ部 1−4 データ長 1−5 位置情報 2−1 アドレス格納エリア 2−3 ルートテーブル 2−5 Aテーブル 2−7 B1テーブル 2−10 B2テーブル 1-1 Route table 1-2 Data structure information section 1-3 Data section 1-4 Data length 1-5 Position information 2-1 Address storage area 2-3 Route table 2-5 A table 2-7 B1 table 2- 10 B2 table

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数のテーブルをメモリ上でトリー状に
管理するシステムにおけるトリー構造テーブルのメモリ
展開方法において、前記複数の各テーブルの大きさ情報
と該各テーブル間のリンク規定情報を予めファイルに用
意し、前記テーブルの大きさ情報により前記メモリ上に
該テーブル領域を確保し、前記メモリ上に確保された前
記テーブルの先頭の実アドレスと前記リンク規定情報を
用いて前記複数のテーブルをリンクさせ前記メモリ上に
トリー状に展開することを特徴とするトリー構造テーブ
ルのメモリ展開方法。
1. A memory expansion method of a tree structure table in a system for managing a plurality of tables in a tree form on a memory, wherein size information of each of the plurality of tables and link definition information between the respective tables are previously stored in a file. Prepare and secure the table area in the memory according to the size information of the table, and link the plurality of tables using the real address of the head of the table secured in the memory and the link definition information. A tree expanding method for a tree structure table, which is expanded in a tree shape on the memory.
【請求項2】 前記リンク規定情報が、前記トリー状に
展開された前記各テーブルにおける下位テーブルの前記
実アドレスの設定アドレスを、前記各テーブルの先頭か
らのオフセット値として規定することを特徴とする請求
項1記載のトリー構造テーブルのメモリ展開方法。
2. The link defining information defines a setting address of the real address of the lower table in each table expanded in the tree shape as an offset value from the head of each table. A method for expanding a memory of a tree structure table according to claim 1.
【請求項3】 前記リンク規定情報が、前記トリー状に
展開された前記各テーブル中の複数の同位テーブルにお
ける上位テーブルの前記実アドレスの設定アドレスを、
前記複数の同位テーブルの先頭からのオフセット値とし
て規定することを特徴とする請求項2記載のトリー構造
テーブルのメモリ展開方法。
3. The link specification information indicates a set address of the real address of a higher-order table in a plurality of peer tables in each of the tables expanded in the tree shape,
3. The memory expansion method for a tree structure table according to claim 2, wherein an offset value from the head of the plurality of peer tables is defined.
JP7295366A 1995-11-14 1995-11-14 Memory developing method for tree structure table Pending JPH09138762A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7295366A JPH09138762A (en) 1995-11-14 1995-11-14 Memory developing method for tree structure table

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7295366A JPH09138762A (en) 1995-11-14 1995-11-14 Memory developing method for tree structure table

Publications (1)

Publication Number Publication Date
JPH09138762A true JPH09138762A (en) 1997-05-27

Family

ID=17819703

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7295366A Pending JPH09138762A (en) 1995-11-14 1995-11-14 Memory developing method for tree structure table

Country Status (1)

Country Link
JP (1) JPH09138762A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013210807A (en) * 2012-03-30 2013-10-10 Aisin Aw Co Ltd Data processing device, data processing method and data processing program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62138924A (en) * 1985-12-11 1987-06-22 Nec Corp Table search control system
JPS648448A (en) * 1987-07-01 1989-01-12 Hitachi Ltd Expression system for tree structure data
JPH05342069A (en) * 1992-06-05 1993-12-24 Hitachi Ltd Number sampling system for page number

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62138924A (en) * 1985-12-11 1987-06-22 Nec Corp Table search control system
JPS648448A (en) * 1987-07-01 1989-01-12 Hitachi Ltd Expression system for tree structure data
JPH05342069A (en) * 1992-06-05 1993-12-24 Hitachi Ltd Number sampling system for page number

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013210807A (en) * 2012-03-30 2013-10-10 Aisin Aw Co Ltd Data processing device, data processing method and data processing program

Similar Documents

Publication Publication Date Title
PL171126B1 (en) Method of generating and saving in a library of a data processing equipment many versions of a document
CN112163048A (en) Method and device for realizing OLAP analysis based on ClickHouse
Kostochka et al. Turán problems and shadows II: Trees
US7467130B2 (en) Method for converting chained join tables to tree structure, and a program for converting the same
CN109344468A (en) CAD diagram paper introduction method, system and computer readable storage medium
JPH09138762A (en) Memory developing method for tree structure table
JPH05241934A (en) Compute system
GB2380840A (en) Using constraints to include and exclude files from file systems of peers in a peer-to-peer network
US20170228395A1 (en) Tag pyramid data management system
ZA200510092B (en) File system represented inside a database
JPH03103942A (en) Distributed data base management system
JP2005250722A (en) Sequential execution method for input/output dynamic reconfiguration
JP3916691B2 (en) File access method and file access apparatus
KR100296357B1 (en) Spatial Data Update Method in Geographic Information System
JPH08320817A (en) File system managing method
JPS59189471A (en) Wiring route searching system
JPH034354A (en) Information distributed processing system
JPH02132533A (en) Expanding system for multi-logical volume
JPH0338746A (en) Managing system for definition of data structure
JPH1078905A (en) Information reuse method and system in shared space
JPS62194542A (en) Program control system
JPH03286233A (en) File control system for working program
JPH0233240A (en) Network control system
JPH0779283A (en) Communication network constitution display system
JPH05303613A (en) Method and device for generating three-dimensional picture

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19980414