JPH07192012A - Multi-stage list data handling device - Google Patents

Multi-stage list data handling device

Info

Publication number
JPH07192012A
JPH07192012A JP5330292A JP33029293A JPH07192012A JP H07192012 A JPH07192012 A JP H07192012A JP 5330292 A JP5330292 A JP 5330292A JP 33029293 A JP33029293 A JP 33029293A JP H07192012 A JPH07192012 A JP H07192012A
Authority
JP
Japan
Prior art keywords
data
search
column
pointer
row
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.)
Granted
Application number
JP5330292A
Other languages
Japanese (ja)
Other versions
JP2776226B2 (en
Inventor
Yuriko Shioda
百合子 潮田
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 JP5330292A priority Critical patent/JP2776226B2/en
Publication of JPH07192012A publication Critical patent/JPH07192012A/en
Application granted granted Critical
Publication of JP2776226B2 publication Critical patent/JP2776226B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To provide a multi-stage list data handling device in which a content is easily retrieved and grasped. CONSTITUTION:The device is provided with a data area reservation section reserving a storage area of list data in a data area, an item information generating section 4 reserving a storage area of table retrieval tree information in the data area and generating and storing the retrieval tree, an item retrieval section 7 converting the retrieval tree and an optional retrieval key into a row number or a column number of a table, a data retrieval section 6 reading elements of the table based on a pointer to the table data and the row number and the column number, and a data revision section 9 rewriting elements of the table based on the pointer to the table data and the row number and the column number.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は表形式のデータを扱う多
段表データ取り扱い装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multistage table data handling device for handling tabular data.

【0002】[0002]

【従来の技術】スプレッドシートツールと呼ばれる従来
型の表形式のデータ取り扱い装置では、縦方向の行番号
と横方向の列番号とを用いて特定の格納場所の内容の指
定を行なう。例えば、図2の従来型表例201に示すよ
うに、列にc1、c2、c3、…、行にr1、r2、r
3、…と番号が付けられていたならば、値検索文例20
2のようにして、列番号c1、行番号r1の要素を検索
する。この場合には数値7が検索される。このような行
指定と列指定番号を用いる方式では、プログラムに埋め
込まれた表内容の検索文の意味を知ろうとする場合に別
途用意する番号と意味との対応表が必要となる。このよ
うなプログラムは理解しにくく、プログラムの生産性が
低い。
2. Description of the Related Art In a conventional tabular data handling device called a spreadsheet tool, the contents of a specific storage location are specified using vertical row numbers and horizontal column numbers. For example, as shown in the conventional table example 201 of FIG. 2, columns are c1, c2, c3, ..., Rows are r1, r2, r.
If the numbers are 3, ..., Value retrieval sentence example 20
As in 2, the element with the column number c1 and the row number r1 is searched. In this case, the number 7 is searched. In such a method of using row designation and column designation numbers, a separate correspondence table of numbers and meanings is required when trying to know the meaning of a search statement of table contents embedded in a program. Such programs are difficult to understand and their productivity is low.

【0003】[0003]

【発明が解決しようとする課題】従来型装置では、内容
の検索が行ないにくく、内容が把握しにくいという欠点
がある。そのような内容も、図3の多段表例301のよ
うに多段の検索キーを設け、値検索文例302のように
縦キーが(欧州 北欧 スウェーデン)、横キーが(第
1都市 名前)というように検索する方が、プログラム
上の表現としてわかり易い。
However, the conventional device has a drawback that it is difficult to retrieve the contents and it is difficult to grasp the contents. As for such contents, a multi-level search key is provided as in the multi-level table example 301 in FIG. 3, and the vertical key (Europe and Northern Europe Sweden) and the horizontal key (first city name) are set as in the value search example 302. It is easier to understand the expression on the program by searching for.

【0004】[0004]

【課題を解決するための手段】本発明の多段表データ取
り扱い装置は、表形式のデータを扱うデータ取り扱い装
置において、データ領域内に表データの格納領域を確保
するデータ領域確保部と、データ領域内に表の検索ツリ
ー情報の格納領域を確保し検索ツリーを生成して保存す
る項目情報生成部と、検索ツリーと任意の検索キーとを
表の行番号あるいは列番号とに変換する項目検索部と、
表データへのポインタと表の行番号と列番号から表の要
素を読みとるデータ検索部と、表データへのポインタと
表の行番号と列番号と値から表の要素を書き換えるデー
タ変更部とを有することを特徴とする。
A multistage table data handling apparatus of the present invention is a data handling apparatus for handling tabular data, and a data area securing section for securing a table data storage area in a data area, and a data area. An item information generation unit that secures a storage area for the search tree information of the table in it and generates and stores the search tree, and an item search unit that converts the search tree and an arbitrary search key into the row number or column number of the table. When,
A data retrieval unit that reads the table element from the pointer to the table data and the row number and column number of the table, and a data change unit that rewrites the table element from the pointer to the table data and the row number, column number, and value of the table It is characterized by having.

【0005】[0005]

【実施例】多段表取り扱い装置は、図3の多段表例30
1に示すような検索キーが多段となる表の取り扱いを行
なう装置であり、従来型装置に比べて多段表の検索キー
の生成を行なう機構と多段表キーの解釈を行なう機構と
を備える。本装置を用いることにより、理解し易い表表
現を用いることが可能となり、プログラマの生産性が向
上する。
EXAMPLE A multi-stage table handling device is a multi-stage table example 30 shown in FIG.
1 is a device for handling a table in which search keys have multiple stages, and is provided with a mechanism for generating a search key for a multi-stage table and a mechanism for interpreting a multi-stage table key as compared with a conventional device. By using this device, it becomes possible to use a table expression that is easy to understand, and programmer productivity is improved.

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

【0007】図1は本発明の多段表データ取り扱い装置
の一実施例の機能ブロック図である。
FIG. 1 is a functional block diagram of an embodiment of the multistage table data handling apparatus of the present invention.

【0008】中央処理装置1と接続された本発明の多段
表データ取り扱い装置において、表の大きさ指定を入力
としてデータ領域内に表データ格納領域10のような表
データの格納領域を確保し確保した表デーダへのポイン
タを返却するデータ領域確保部3と、表の大きさ指定を
入力としてデータ領域内に検索ツリー格納領域11のよ
うな検索ツリーの格納領域を確保し、表の検索情報を入
力として検索ツリーを生成して検索ツリーの格納領域に
保存しそこへのポインタを返却する項目情報生成部4
と、表の生成要求を入力として、表の生成要求から表の
大きさ情報を抽出し前記データ領域確保部3に与えて表
データへのポインタを生成し、表生成要求から列検索情
報を抽出して前記項目情報生成部4に与えて列検索ツリ
ーへのポインタを生成し、表生成要求から行検索情報を
抽出して前記項目情報生成部4に与えて行検索ツリーへ
のポインタを生成し、生成した前記3つのポインタを表
構造体として1つにまとめて表構造体ポインタとし利用
者に返却する生成制御部2と、前記項目情報生成部4で
生成された検索ツリー11と任意の検索キーをもとに表
の行番号あるいは列番号とに変換する項目検索部7と、
表データポインタと行番号と列番号とから表の特定要素
を読みとるデータ検索部6と、表構造体ポインタと列検
索キーと行検索キーを入力として、表構造体ポインタか
ら表データポインタと列検索ツリーと行検索ツリーを取
り出し、前記項目検索部7をもちいて列検索キーと列検
索ツリーから列番号を計算し、前記項目検索部7をもち
いて行検索キーと行検索ツリーから行番号を計算し、前
記データ検索部6とを用いて表データポインタと列番号
と行番号から表の要素を読みとる検索制御部5と、表デ
ータポインタと行番号と列番号と値から表の要素を書き
換えるデータ変更部9と、表構造体ポインタと列検索キ
ーと行検索キーと値を入力として表構造体ポインタから
表データポインタと列検索ツリーと行検索ツリーを取り
出し、前記項目検索部7をもちいて列検索キーと列検索
ツリーから列番号を計算し、前記項目検索部7をもちい
て行検索キーと行検索ツリーから行番号を計算し、前記
データ変更部9を用いて表データポインタと列番号と行
番号と値から表の要素の書き換えを行なう書き換え制御
部8と、から構成され、従来型の表データ取り扱い装置
に項目情報生成部5と項目検索部7とを付加したことを
特徴とする。
In the multistage table data handling device of the present invention connected to the central processing unit 1, a table data storage area such as the table data storage area 10 is secured and secured by inputting the table size designation. The data area reserving unit 3 for returning a pointer to the created table data, and a search tree storage area such as the search tree storage area 11 is reserved in the data area by inputting the table size designation, and the table search information is stored. An item information generation unit 4 that generates a search tree as an input, saves it in the storage area of the search tree, and returns a pointer to it.
With the table generation request as input, table size information is extracted from the table generation request and given to the data area securing unit 3 to generate a pointer to table data, and column search information is extracted from the table generation request. To the item information generation unit 4 to generate a pointer to the column search tree, to extract the row search information from the table generation request and to the item information generation unit 4 to generate a pointer to the row search tree. , A generation control unit 2 that collects the generated three pointers as a table structure into one and returns it to the user as a table structure pointer, a search tree 11 generated by the item information generation unit 4, and an arbitrary search An item search unit 7 for converting into a row number or column number of a table based on a key,
A data search unit 6 that reads a specific element of a table from a table data pointer, a row number, and a column number, and a table data pointer and a column search from the table structure pointer by inputting a table structure pointer, a column search key, and a row search key. The tree and the row search tree are taken out, the column number is calculated from the column search key and the column search tree by using the item search section 7, and the row number is calculated from the row search key and the row search tree by using the item search section 7. Then, the retrieval control unit 5 that reads the table element from the table data pointer, the column number, and the row number using the data retrieval unit 6, and the data that rewrites the table element from the table data pointer, the row number, the column number, and the value The changing unit 9 and the table structure pointer, the column search key, the row search key, and the value are input, and the table data pointer, the column search tree, and the row search tree are extracted from the table structure pointer, and the item detection is performed. A column number is calculated from the column search key and the column search tree using the section 7, a row number is calculated from the row search key and the row search tree using the item search section 7, and a table is displayed using the data changing section 9. An item information generating unit 5 and an item retrieving unit 7 are added to a conventional table data handling device, which is composed of a rewriting control unit 8 that rewrites a table element from a data pointer, a column number, a row number, and a value. It is characterized by

【0009】図4は前記生成制御部2で作成されるデー
タの構成を表す図である。前記生成制御部2で生成され
る表構造体401は、前記データ領域確保部3で確保さ
れる表データ402と、前記項目情報生成部4で生成さ
れる表の列に関する検索ツリーの列情報403と、同じ
く前記項目情報生成部4とで生成される表の行に関する
検索ツリーの行情報ツリー404とから構成され、表構
造体へのポインタは前記中央処理装置1を通して利用者
に返却される。
FIG. 4 is a diagram showing the structure of data created by the creation control unit 2. The table structure 401 generated by the generation control unit 2 is the table data 402 secured by the data area securing unit 3 and the column information 403 of the search tree regarding the columns of the table generated by the item information generating unit 4. And a row information tree 404 of a search tree relating to the rows of the table that are also generated by the item information generating unit 4, and the pointer to the table structure is returned to the user through the central processing unit 1.

【0010】図5は前記生成制御部2で生成される表構
造体の内容例である。データ格納領域の例500では、
表として必要な大きさの領域に対して行と列に通し番号
がふられている。行検索ツリーの例501では、各行に
対して検索キーが定義されている。1段目の情報502
は1行目の探索キーが「欧州・北欧・スウェーデン」で
あるとを示している。502〜506によって、データ
格納領域500の全行に対して検索キーが定義されてい
る。1段目の情報508は1列目の探索キーが「第1都
市・名前」であるとを示している。508〜513によ
って、データ格納領域507の全列に対しての検索キー
が定義される。
FIG. 5 shows an example of the contents of the table structure generated by the generation control unit 2. In the data storage area example 500,
Serial numbers are assigned to rows and columns for areas of a size required for a table. In the row search tree example 501, a search key is defined for each row. First-stage information 502
Indicates that the search key in the first line is “Europe / Nordic / Sweden”. 502 to 506 define search keys for all rows of the data storage area 500. The information 508 in the first row indicates that the search key in the first column is “first city / name”. 508 to 513 define search keys for all columns of the data storage area 507.

【0011】図6は、図5で説明したデータ定義例に従
って表が生成された場合の情報の表示例601である。
値検索の構文例602が本発明の多段表データ取り扱い
装置に与えられた場合、検索制御部5は、〈表構造体ポ
インタ〉を表データと列検索ツリーと行検索ツリーとに
分解し、項目検索部7をもちいて行検索ツリーの例50
1と行キー(欧州 北欧 スウェーデン)とを比べて行
番号r1に対応することを計算し、項目検索部7をもち
いて列検索ツリーの例507と列キー(第1都市 名
前)とを比べ行番号c1に対応することを計算し、デー
タ検索部6を用いて表データポインタと行番号と列番号
から表の要素を読みとり、「ストックホルム」を返却し
ます。このように多段の検索キーを持つ表を用いること
で、理解しやすいプログラムを作成することができる。
FIG. 6 is a display example 601 of information when a table is generated according to the data definition example described in FIG.
When the syntax example 602 of the value search is given to the multistage table data handling device of the present invention, the search control unit 5 decomposes the <table structure pointer> into table data, a column search tree, and a row search tree, and Example of row search tree using search unit 7 50
1 is compared with the row key (Europe Nordic Sweden) to calculate that it corresponds to the row number r1, and the item search unit 7 is used to compare the column search tree example 507 with the column key (first city name). It calculates that it corresponds to the number c1, uses the data search unit 6 to read the table element from the table data pointer, row number, and column number, and returns "Stockholm". By using a table having multiple search keys in this way, a program that is easy to understand can be created.

【0012】図7は、表の生成要求の例を示している。
701行は関数名である。702〜706行は列情報を
定義している。図1の項目情報生成部4ではこの情報を
元に図5の502〜506で示されるツリー構造の検索
データを生成する。707〜712の行は行情報を定義
している。図1の項目情報生成部4ではこの情報を元に
図5の508〜513で示されるツリー構造の検索デー
タを生成する。図1のデータ領域確保部3では表の生成
要求で与えられる行数と列数を数え、その大きさの表デ
ータ領域を確保する。この例の場合には、5行6列の表
データ領域が確保される。
FIG. 7 shows an example of a table generation request.
Line 701 is the function name. Rows 702 to 706 define column information. The item information generation unit 4 of FIG. 1 generates search data of the tree structure shown by 502 to 506 of FIG. 5 based on this information. Rows 707 to 712 define row information. The item information generation unit 4 of FIG. 1 generates search data of the tree structure shown by 508 to 513 of FIG. 5 based on this information. The data area securing unit 3 in FIG. 1 counts the number of rows and the number of columns given in the table generation request, and secures a table data area of that size. In the case of this example, a table data area of 5 rows and 6 columns is secured.

【0013】[0013]

【発明の効果】以上説明したように、本発明の多段表取
り扱い装置は、図3の多段表例301に示すような検索
キーが多段となる表の取り扱いを行なう装置であり、従
来型装置に比べて多段表の検索キーの生成を行なう機構
と多段表キーの解釈を行なう機構とを備える。本装置を
用いることにより、図6のような理解し易い表表現を用
いることが可能となり、プログラマの生産性が向上す
る。
As described above, the multi-stage table handling device of the present invention is a device for handling a table having multi-stage search keys as shown in the multi-stage table example 301 of FIG. In comparison, a mechanism for generating a search key for a multi-stage table and a mechanism for interpreting a multi-stage table key are provided. By using this device, it is possible to use a table expression that is easy to understand as shown in FIG. 6, and programmer productivity is improved.

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

【図1】本発明の一実施例を示す図。FIG. 1 is a diagram showing an embodiment of the present invention.

【図2】従来型装置で扱われる表の例を示す図。FIG. 2 is a diagram showing an example of a table handled by a conventional device.

【図3】本発明の多段表取り扱い装置で扱われる表の例
を示す図。
FIG. 3 is a diagram showing an example of a table handled by the multi-stage table handling device of the present invention.

【図4】図1の生成制御部2で作成されるデータの構成
を表す図。
FIG. 4 is a diagram showing a configuration of data created by a creation control unit 2 in FIG. 1.

【図5】図1の生成制御部2で生成される表構造体の内
容例を示す図。
5 is a diagram showing an example of the contents of a table structure generated by the generation control unit 2 in FIG.

【図6】図5で説明したデータ定義例に従って表が生成
された場合の情報の表示例を示す図。
6 is a diagram showing a display example of information when a table is generated according to the data definition example described in FIG.

【図7】表の生成要求の例を示す図。FIG. 7 is a diagram showing an example of a table generation request.

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

1 中央処理装置 2 生成制御部 3 データ領域確保部 4 項目情報生成部 5 検索制御部 6 データ検索部 7 項目検索部 8 書き換え制御部 9 データ変更部 10 表データ格納領域 11 検索ツリー格納領域 1 central processing unit 2 generation control section 3 data area securing section 4 item information generation section 5 search control section 6 data search section 7 item search section 8 rewrite control section 9 data change section 10 table data storage area 11 search tree storage area

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 表形式のデータを扱うデータ取り扱い装
置において、 データ領域内に表データの格納領域を確保するデータ領
域確保部と、 データ領域内に表の検索ツリー情報の格納領域を確保し
検索ツリーを生成して保存する項目情報生成部と、 検索ツリーと任意の検索キーとを表の行番号あるいは列
番号とに変換する項目検索部と、 表データへのポインタと表の行番号と列番号から表の要
素を読みとるデータ検索部と、 表データへのポインタと表の行番号と列番号と値から表
の要素を書き換えるデータ変更部とを有することを特徴
とする多段表データ取り扱い装置。
1. A data handling device that handles tabular data, wherein a data area securing unit that secures a storage area for table data in a data area, and a storage area for storing search tree information of a table in the data area are searched. An item information generation unit that generates and stores a tree, an item search unit that converts the search tree and any search key into a table row number or column number, a pointer to table data, and a table row number and column An apparatus for handling multi-stage table data, comprising: a data search unit that reads a table element from a number; a pointer to table data; a data changing unit that rewrites a table element based on the row number, column number, and value of the table.
JP5330292A 1993-12-27 1993-12-27 Multi-table data handling equipment Expired - Lifetime JP2776226B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5330292A JP2776226B2 (en) 1993-12-27 1993-12-27 Multi-table data handling equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5330292A JP2776226B2 (en) 1993-12-27 1993-12-27 Multi-table data handling equipment

Publications (2)

Publication Number Publication Date
JPH07192012A true JPH07192012A (en) 1995-07-28
JP2776226B2 JP2776226B2 (en) 1998-07-16

Family

ID=18231024

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5330292A Expired - Lifetime JP2776226B2 (en) 1993-12-27 1993-12-27 Multi-table data handling equipment

Country Status (1)

Country Link
JP (1) JP2776226B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106407171A (en) * 2016-11-03 2017-02-15 华能澜沧江水电股份有限公司 System and method for generating safety monitoring self-defined report based on tree structure
JP2020119487A (en) * 2019-01-25 2020-08-06 株式会社 ビーアイマトリックスBi Matrix Co.,Ltd Deep-learning forecast data reflection system using olap result with pivot table structure

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0264769A (en) * 1988-08-31 1990-03-05 Canon Inc Information retrieving device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0264769A (en) * 1988-08-31 1990-03-05 Canon Inc Information retrieving device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106407171A (en) * 2016-11-03 2017-02-15 华能澜沧江水电股份有限公司 System and method for generating safety monitoring self-defined report based on tree structure
CN106407171B (en) * 2016-11-03 2023-09-26 华能澜沧江水电股份有限公司 Tree structure-based security monitoring custom report generation system and method
JP2020119487A (en) * 2019-01-25 2020-08-06 株式会社 ビーアイマトリックスBi Matrix Co.,Ltd Deep-learning forecast data reflection system using olap result with pivot table structure

Also Published As

Publication number Publication date
JP2776226B2 (en) 1998-07-16

Similar Documents

Publication Publication Date Title
US7113941B2 (en) Database access mechanisms for a computer user interface
JPH07160727A (en) Electronic manual display method
JPH08305616A (en) Data management system
US20040078355A1 (en) Information management system
JPH07192012A (en) Multi-stage list data handling device
JP3552339B2 (en) Database system
CN110795101A (en) SQL code information display method and device, computer device and storage medium
JPH04281566A (en) Document retrieving device
JP2795317B2 (en) Multi-stage processing method
JPH05250416A (en) Registering and retrieving device for data base
JPH06195386A (en) Data retriever
JP2002108844A (en) Xml data division editing device
JP2001022782A (en) Method for retrieving/displaying detailed explanation of message having no guide id
US6564200B1 (en) Apparatus for cross referencing routines and method therefor
JP2002259426A (en) Similar document retrieval device, similar document retrieval method, recording medium with similar document retrieval program recorded thereon and similar document retrieval program
JPH1021260A (en) Dynamically preparing and displaying method for tree, and retrieving and displaying system for tree
JP2669839B2 (en) Formula input editing device
JP2588210B2 (en) Help guide method
JPH05158984A (en) Device for extracting character string
JPH0944510A (en) Information processor and its method
JP2604787B2 (en) Two-dimensional data storage method
JPH0916620A (en) Index retrieving system
JPH0793361A (en) Information retrieving method
JP2002183142A (en) Device and method for storing data, and computer- readable recording medium with recorded program making computer to implement data storing method
JPH05128153A (en) Information retrieval system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980331