JPH1055373A - Index generating method and information retrieval device - Google Patents

Index generating method and information retrieval device

Info

Publication number
JPH1055373A
JPH1055373A JP9153340A JP15334097A JPH1055373A JP H1055373 A JPH1055373 A JP H1055373A JP 9153340 A JP9153340 A JP 9153340A JP 15334097 A JP15334097 A JP 15334097A JP H1055373 A JPH1055373 A JP H1055373A
Authority
JP
Japan
Prior art keywords
index
record
attribute value
tables
attribute
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
JP9153340A
Other languages
Japanese (ja)
Other versions
JP2940522B2 (en
Inventor
Yoshio Nakano
善夫 中埜
Takayasu Miki
孝保 三木
Nobutoshi Higaki
伸俊 桧垣
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP9153340A priority Critical patent/JP2940522B2/en
Publication of JPH1055373A publication Critical patent/JPH1055373A/en
Application granted granted Critical
Publication of JP2940522B2 publication Critical patent/JP2940522B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To enable fast retrieval of an attribute value beyond the limit of individual tables by grouping information into tables which are collection of records consisting of a plurality of attributes, and referring to all indexes generated in common as to corresponding attributes of respective tables in the group and retrieving a target record. SOLUTION: A retrieval means knows an index number Iij regarding an attribute ANij to be retrieved with type definition information, compares the attribute value 81 in the index with an attribute value given an index condition and finds a record pointer 82 corresponding to the attribute value 81 when finding the attribute value 81 meeting the condition, and takes target records #T1 :R1 and #T2 :R2 out of a secondary storage device with the record pointer 82. Consequently, the records #T1 :R1 and #T2 :R2 can be searched for beyond the limit of the tables.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、データベースに総
称される情報検索装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information retrieval apparatus generically referred to as a database.

【0002】[0002]

【従来の技術】従来の情報検索装置においては、表はそ
れぞれ独立な管理単位であり、表のグループ化という扱
いはなく、検索のための索引も表単位で作成されている
のが普通である。
2. Description of the Related Art In a conventional information retrieval apparatus, each table is an independent management unit, there is no treatment of grouping tables, and an index for retrieval is usually created in table units. .

【0003】リレーショナルデータベースにはビュー
(View)という概念があって、現実的には存在しない仮
想的な表を作り出すこともできるが、ビューは定義時に
固定であり、新たな表が作成されるたびに取り込まれる
な動的機能はない。
[0003] The relational database has a concept of a view, and it is possible to create a virtual table that does not actually exist. However, the view is fixed at the time of definition, and each time a new table is created. There are no dynamic features to be incorporated into.

【0004】データベースとまではいかない簡易言語の
世界でも、複数の表をバインダという単位で管理し、個
々の表内の検索だけでなくバインダ内のすべての表につ
いての検索が可能なものもある。
[0004] Even in the world of a simple language that does not reach a database, some tables manage a plurality of tables in units called binders, and can search not only individual tables but also all tables in the binder.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、複数の
同型の表に関する表の枠を越えた検索というものが必要
となった時、それぞれの属性について作成されている索
引は独立なので、表を問わないそのいずれかの属性に含
まれる属性値に対する検索は、検索条件式がかなり複雑
になり、検索速度の低下が著しくなっていた。
However, when it becomes necessary to search a plurality of tables of the same type beyond the table frame, the index created for each attribute is independent. In a search for an attribute value included in any of the attributes, a search condition expression is considerably complicated, and the search speed is significantly reduced.

【0006】また、前記バインダも飽く迄もバインダで
あってバインダ内の表の管理および表の内容はユーザの
自由であり、グループの管理はユーザに委ねられその形
式もバインダ名というものに限られていた。
Further, the binder is also a binder to the extent that it gets tired, and the management of the tables in the binder and the contents of the tables are free to the user. The management of the group is left to the user and the format is limited to the binder name. .

【0007】本発明はかかる点に鑑み、複数の表の対応
する属性について共通の索引を自動的に作成したり、共
通の索引が作成されていなくてもグループ化された表の
すべての索引を自動的に検索して、個々の表の枠を越え
た高速な検索を可能とする情報検索装置を提供すること
を目的とする。
In view of the above, the present invention automatically creates a common index for the corresponding attribute of a plurality of tables, or deletes all indexes of a grouped table even if a common index is not created. It is an object of the present invention to provide an information retrieval apparatus that automatically retrieves information and enables high-speed retrieval beyond the boundaries of individual tables.

【0008】[0008]

【課題を解決するための手段】本発明は、情報を複数の
属性から成るレコードの集合である表をグループ化して
管理する情報管理手段と、グループ内の各表の対応する
属性について共通の索引を作成する索引作成手段と、グ
ループ内の各表の対応する属性について共通に作成され
た索引をすべて参照して目的とするレコードを検索する
検索手段を備えた情報検索装置である。
According to the present invention, there is provided an information management means for managing information by grouping a table which is a set of records including a plurality of attributes, and a common index for a corresponding attribute of each table in the group. The information retrieval apparatus is provided with an index creating means for creating a target record and a search means for searching for a target record by referring to all indexes created in common for corresponding attributes of each table in the group.

【0009】[0009]

【発明の実施の形態】本発明は、上記した構成により、
索引作成手段は、情報管理手段によって管理されるグル
ープ化された表内の索引作成に関して対応する属性につ
いて共通の索引を自動的に作成し、検索手段は、情報管
理手段によって管理されるグループ化された表内の検索
に関して対応する属性に対する索引をすべて自動的に検
索することにより、複数の表にまたがる属性値の検索が
高速に行える。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention has the above-described structure,
The indexing means automatically creates a common index for corresponding attributes with respect to indexing in the grouped tables managed by the information managing means, and the searching means comprises a grouped index managed by the information managing means. By automatically retrieving all indices for the corresponding attributes for retrieval within a table, the retrieval of attribute values across a plurality of tables can be performed at high speed.

【0010】図1は、本発明の一実施の形態における情
報検索装置のブロック図を示すものである。図1におい
て1は情報管理手段、2は索引作成手段、3は検索手
段、4は索引である。
FIG. 1 is a block diagram showing an information retrieval apparatus according to an embodiment of the present invention. In FIG. 1, 1 is an information management unit, 2 is an index creation unit, 3 is a search unit, and 4 is an index.

【0011】情報管理手段1は、複数の属性の集まりか
ら成る情報をレコードという単位で管理し、レコードの
集合である表を主記憶上または二次記憶上に管理する。
いま、レコードを固定長とし二次記憶上にすべてのレコ
ードを保持する場合を考えると、その格納形態は図2の
ようになる。図2において、5は二次記憶、51〜5b
は表、511〜51aはレコードである。すべてのレコ
ードにはレコード通し番号が付与されており、表内にお
ける各レコードの格納位置は(レコード通し番号)×
(レコード長)で知ることができる。以下、表識別子と
して表番号、レコード識別子としてレコード通し番号を
考え、レコードポインタを#(表番号):(レコード通
し番号)で表わすことにする。レコードは複数の属性か
ら成り、レコードの形式つまり表の型は型定義情報で管
理される。その一例を図3に示す。図3において、6は
型定義情報、61は型番号、62は属性名、63は属性
の型(文字列、数値など)、64は属性の長さ(幅)、
65は索引番号である。表は型定義情報6に登録されて
いるいずれかの型で作成されており、その対応を表管理
情報で管理する。その一例を図4に示し、7は表管理情
報、71は表番号、72は型番号、73は表の索引共通
化フラグ、74表のグループ番号である。
The information management means 1 manages information consisting of a collection of a plurality of attributes in units of records, and manages a table, which is a set of records, in a main storage or a secondary storage.
Now, assuming that records are fixed length and all records are stored in the secondary storage, the storage form is as shown in FIG. In FIG. 2, 5 is a secondary storage, 51 to 5b
Is a table, and 511 to 51a are records. All records are given a record serial number, and the storage position of each record in the table is (record serial number) x
(Record length). Hereinafter, a table number is considered as a table identifier and a record serial number is considered as a record identifier, and a record pointer is represented by # (table number) :( record serial number). A record is composed of a plurality of attributes, and the format of the record, that is, the type of the table is managed by type definition information. An example is shown in FIG. In FIG. 3, 6 is type definition information, 61 is a type number, 62 is an attribute name, 63 is an attribute type (character string, numeric value, etc.), 64 is an attribute length (width),
65 is an index number. The table is created in one of the types registered in the type definition information 6, and the correspondence is managed by the table management information. An example is shown in FIG. 4, where 7 is table management information, 71 is a table number, 72 is a model number, 73 is a table index common flag, and 74 is a table group number.

【0012】索引作成手段2は、型がiである表T内の
ある属性ANijに関する索引を作成するように指示され
ると、まず表管理情報7内の索引共通化フラグ73の値
T(1:索引共通化の適用、0:非適用)を調べ、FT
=1ならば、型定義情報6によりレコード内の属性AN
ijの位置とその長さを知り、属性の値とレコードポイン
タとの対応情報である索引を索引番号Iijで示される索
引内に作成する(図5)。FT=0ならば索引共通化非
適用なので、表T専用の索引TIij内に同様に作成す
る。図5において、8は索引Iij、81は属性値、82
はその属性値を持つレコードのレコードポインタであ
る。
When the index creating means 2 is instructed to create an index for a certain attribute AN ij in the table T of type i, first, the value F T of the index common flag 73 in the table management information 7 (1: application of the index common, 0: not applicable) examined, F T
If = 1, the attribute AN in the record is determined by the type definition information 6.
The position and length of ij are known, and an index, which is information on the correspondence between attribute values and record pointers, is created in the index indicated by index number Iij (FIG. 5). If F T = 0, index commonalization is not applied, so that it is similarly created in the index TI ij dedicated to the table T. In FIG. 5, 8 is an index I ij , 81 is an attribute value, 82
Is the record pointer of the record having that attribute value.

【0013】検索手段3は、型によってグループ化され
ている一群の表内の属性ANijについて検索する場合、
型定義情報6により検索対象となる属性ANijに関する
索引番号Iijを知り、その索引内の属性値81と検索条
件として与えられた属性値とを比較し(一致、不一致、
大小、包含など)、条件に合う属性値81が見つかると
その属性値に対応するレコードポインタ42を求め、そ
のレコードポインタ82により目的とするレコードを二
次記憶5から取り出す。また、索引共通化によるグルー
プ化がなされていない表(索引共通化フラグ73の値=
0のもの)については、検索対象となる属性ANijに関
する索引TIijに対して同様の操作を行なう。
The search means 3 searches for an attribute AN ij in a group of tables grouped by type,
Know the index number I ij about attributes AN ij of the type definition information 6 to be searched, comparing the attribute values with the given attribute value 81 in that index as a search condition (matching, mismatch,
When an attribute value 81 that meets the condition is found, a record pointer 42 corresponding to the attribute value is obtained, and the target record is retrieved from the secondary storage 5 by the record pointer 82. Also, a table that is not grouped by index commonality (the value of index commonality flag 73 =
0), the same operation is performed on the index TI ij relating to the attribute AN ij to be searched.

【0014】以上のように構成された本実施の形態の情
報検索装置について以下その動作を説明する。
The operation of the information retrieval apparatus of the present embodiment configured as described above will be described below.

【0015】図6は本実施の形態における情報管理手段
1による索引の共通化でグループ化された場合の第1の
管理形態を表わしたものである。図6において、10は
表管理情報Aであり、1〜M、(M+1)〜(M+N)
は表である。ここで(M+1)〜(M+N)は、同じ型
iを持ち、共通の索引を持つ第1の表のグループとし、
M+1〜FM+Nはすべて1とする。
FIG. 6 shows a first management mode when the information management means 1 according to the present embodiment is grouped by sharing an index. 6, reference numeral 10 denotes table management information A, which is 1 to M, (M + 1) to (M + N).
Is a table. Here, (M + 1) to (M + N) are groups of the first table having the same type i and having a common index,
F M + 1 to F M + N are all set to 1.

【0016】異なる表T1、T2((M+1)≦Tp
(M+N),p=1,2)に属する2つのレコード#T
1:R1、#T2:R2に対して属性ANijについての索引
を作成するように指示がなされると、索引作成手段2
は、レコードポインタ#T1:R1より、表番号T1
得、表管理情報A10により型がiであることを知る。
次に、型定義情報6より型iの属性の構成を知るととも
に属性ANijに対する索引番号Iijを知り、上述の機能
によりレコード#T1:R1の属性ANijの属性値K1
レコードポインタ#T1:R1とを対応させて索引Iij
登録する。レコード#T2:R2についても同様の手順に
より、属性値K2とレコードポインタ#T2:R 2とを対
応させて索引Iijに登録する(図7)。
Different Tables T1, TTwo((M + 1) ≦ Tp
Two records #T belonging to (M + N), p = 1, 2)
1: R1, #TTwo: RTwoFor the attribute ANijIndex for
Is instructed to create the index, the index creating means 2
Is the record pointer #T1: R1Table number T1To
Then, it is known from the table management information A10 that the type is i.
Next, the configuration of the attribute of type i is known from the type definition information 6.
Attribute ANijIndex number I forijKnow the above function
Record #T1: R1Attribute ANijAttribute value K1When
Record pointer #T1: R1And index IijTo
register. Record #TTwo: RTwoFollow the same procedure for
From the attribute value KTwoAnd record pointer #TTwo: R TwoPair with
Index Iij(FIG. 7).

【0017】検索手段3は、型で索引が共通化されてい
る表についての検索時には、型定義情報6を参照するこ
とにより型i内の属性ANijが索引Iijを持つことを知
り、索引Iijを検索することにより、表という枠を越え
てレコード#T1:R1、#T 2:R2を捜し出すことが可
能になる。
The search means 3 has a common index by type.
When retrieving a table, refer to the type definition information 6.
And the attribute AN in type iijIs the index IijKnow that
Index IijGoing beyond the table by searching for
Record #T1: R1, #T Two: RTwoCan be found
It will work.

【0018】図8は本実施の形態における情報管理手段
1による索引の共通化でグループ化された場合の第2の
管理形態を表わしたものである。図8において、20は
表管理情報Bであり、1〜M、(M+1)〜(M+N)
は表である。ここで(M+1)〜(M+N)は、同じ型
を持つが共通の索引を持たない第2のグループSに属す
る表とし、FM+1〜FM+Nはすべて0とする。
FIG. 8 shows a second management mode when the information management means 1 in the present embodiment is grouped by sharing the index. In FIG. 8, reference numeral 20 denotes table management information B, 1 to M, (M + 1) to (M + N).
Is a table. Here, (M + 1) to (M + N) are tables belonging to the second group S having the same type but having no common index, and F M + 1 to F M + N are all set to 0.

【0019】異なる表T3、T4((M+1)≦Tp
(M+N),p=3,4)に属する2つのレコード#T
3:R3、#T4:R4に対して属性ANijについての索引
を作成するように指示がなされると、索引作成手段2
は、レコードポインタ#T3:R3より、表番号T3
得、表管理情報B20により表T3が専用の索引を持つ
ことを知り、属性ANKに対する索引TIK3に属性値K3
とレコードポインタ#T3:R3とを対応させて登録す
る。レコード#T4:R4についても同様の手順により、
属性値K4とレコードポインタ#T4:R4とを対応させ
て索引TIK4に登録する(図9)。
Different tables T 3 , T 4 ((M + 1) ≦ T p
Two records #T belonging to (M + N), p = 3, 4)
3 : R 3 , #T 4 : When an instruction to create an index for the attribute AN ij is given to R 4 , the index creating means 2
The record pointer #T 3: from R 3, to give the table number T 3, the table management information B20 know that the table T 3 has its own index, attribute values K 3 in the index TI K3 for the attribute AN K
And record pointer #T 3 : R 3 are registered in association with each other. Record #T 4 : For R 4 ,
The attribute value K 4 is associated with the record pointer #T 4 : R 4 and registered in the index TI K4 (FIG. 9).

【0020】検索手段3は、表管理情報B20を参照す
ることにより表T3、T4が同じグループSに属すること
を知り、属性ANKに対する索引TIK3、TIK4ならび
にその他の対応するすべての索引TIKSを検索すること
により、表という枠を越えてレコード#T3:R3、#T
4:R4を捜し出すことが可能になる。
The retrieval means 3 knows that the tables T 3 and T 4 belong to the same group S by referring to the table management information B20, and finds the indexes TI K3 and TI K4 for the attribute AN K and all other corresponding indexes. by searching the index TI KS, record #T 3 beyond the framework of Table: R 3, # T
4: it is possible to locate the R 4.

【0021】以上のように本実施の形態によれば、デー
タベース内の複数の表に対して、索引作成に関するグル
ープ化あるいは検索に関するグループ化というものを定
義することにより、表の枠を越えた検索が高速に行え
る。
As described above, according to the present embodiment, a grouping related to index creation or a grouping related to search is defined for a plurality of tables in a database, so that a search beyond a table frame is performed. Can be performed at high speed.

【0022】なお、索引の作成法については、ISA
M、B−TREE、HASH等のいくつかの手法があり
本実施の形態に限るものではなく、索引作成に関するグ
ループ化と検索に関するグループ化とはそれぞれ無関係
に定義できるのは言うまでもない。
The method of creating the index is described in ISA
There are several methods, such as M, B-TREE, and HASH, which are not limited to the present embodiment. It goes without saying that grouping related to index creation and grouping related to search can be defined independently of each other.

【0023】[0023]

【発明の効果】以上説明したように、本発明によれば、
同じ形式を持つ複数の表にまたがる属性値の検索も検索
条件式を複雑にすることなくしかも高速に検索すること
が期待でき、その実用的効果は大きい。
As described above, according to the present invention,
Searching for attribute values over a plurality of tables having the same format can be expected to be performed at high speed without complicating the search condition expression, and the practical effect is large.

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

【図1】本発明における一実施の形態の情報検索装置の
ブロック図
FIG. 1 is a block diagram of an information retrieval apparatus according to an embodiment of the present invention.

【図2】二次記憶内の表およびレコードの格納形態図FIG. 2 is a diagram showing a storage form of tables and records in a secondary storage;

【図3】型定義情報の構造図FIG. 3 is a structural diagram of type definition information.

【図4】表管理情報の構造図FIG. 4 is a structural diagram of table management information.

【図5】索引の構造図FIG. 5 is a structural diagram of an index.

【図6】実施の形態における第1の表管理形態図FIG. 6 is a diagram showing a first table management form according to the embodiment;

【図7】第1の表管理形態における索引への登録の説明
FIG. 7 is an explanatory diagram of registration in an index in the first table management mode.

【図8】実施の形態における第2の表管理形態図FIG. 8 is a diagram showing a second table management form according to the embodiment;

【図9】第2の表管理形態における索引への登録の説明
FIG. 9 is an explanatory diagram of registration to an index in a second table management mode.

【符号の説明】 1 情報管理手段 2 索引作成手段 3 検索手段 4 索引 5 二次記憶 51〜5b 表 511〜51a レコード 6 型定義情報 7 表管理情報 8 索引 10,20 表管理情報[Description of Signs] 1 Information management means 2 Index creation means 3 Search means 4 Index 5 Secondary storage 51-5b Tables 511-51a Records 6 Type definition information 7 Table management information 8 Index 10, 20 Table management information

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】表を構成するレコードに格納された属性値
を、表の枠を越えてレコードを特定できる値(レコード
ポインタ)と対応づけて、索引を作成することを特徴と
する索引作成方法。
1. An index creation method, wherein an index is created by associating an attribute value stored in a record constituting a table with a value (record pointer) capable of specifying the record beyond the table frame. .
【請求項2】レコードポインタが、少なくとも表識別子
とレコード識別子に基づいて生成した値であることを特
徴とする請求項1記載の索引作成方法。
2. The index creation method according to claim 1, wherein the record pointer is a value generated based on at least a table identifier and a record identifier.
【請求項3】請求項1記載の索引作成方法により作成さ
れた索引を検索条件に示された属性値と対比して検索
し、検索条件に合致する属性値に対応づけられたレコー
ドポインタを求める情報検索装置。
3. An index created by the index creation method according to claim 1 is searched by comparing it with an attribute value indicated in a search condition, and a record pointer associated with an attribute value matching the search condition is obtained. Information retrieval device.
【請求項4】請求項2記載の索引作成方法により作成さ
れた索引を検索条件に示された属性値と対比して検索
し、検索条件に合致する属性値に対応づけられたレコー
ドポインタから、少なくとも表識別子とレコード識別子
を求める情報検索装置。
4. An index created by the index creation method according to claim 2 is searched for by comparing with an attribute value indicated in the search condition, and a record pointer associated with an attribute value that matches the search condition is searched for. An information retrieval device for obtaining at least a table identifier and a record identifier.
JP9153340A 1997-06-11 1997-06-11 Index creation method and information retrieval device Expired - Fee Related JP2940522B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9153340A JP2940522B2 (en) 1997-06-11 1997-06-11 Index creation method and information retrieval device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9153340A JP2940522B2 (en) 1997-06-11 1997-06-11 Index creation method and information retrieval device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP5154760A Division JP2697559B2 (en) 1993-06-25 1993-06-25 Information retrieval device

Publications (2)

Publication Number Publication Date
JPH1055373A true JPH1055373A (en) 1998-02-24
JP2940522B2 JP2940522B2 (en) 1999-08-25

Family

ID=15560342

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9153340A Expired - Fee Related JP2940522B2 (en) 1997-06-11 1997-06-11 Index creation method and information retrieval device

Country Status (1)

Country Link
JP (1) JP2940522B2 (en)

Also Published As

Publication number Publication date
JP2940522B2 (en) 1999-08-25

Similar Documents

Publication Publication Date Title
US7769769B2 (en) Methods and transformations for transforming metadata model
US6886016B2 (en) Method and system for supporting multivalue attributes in a database system
EP1081610A2 (en) Methods for transforming metadata models
JP2001014329A (en) Database processing method and implementation device, and medium stored with the processing program
CN108280159A (en) A method of converting chart database to relational database
JPH04124774A (en) Data storage method for hierarchical construction in related data base
JPH1055373A (en) Index generating method and information retrieval device
JP2697559B2 (en) Information retrieval device
JP3558267B2 (en) Document search device
JPH01149127A (en) Information retrieving device
Carlis et al. A descriptive model of physical database design problems and solutions
JPH0644309A (en) Data base managing system
JPH0447350B2 (en)
JPH0193843A (en) System for coupling table
Soergel Data models for an integrated thesaurus database
JPH11232283A (en) Information retrieving method
JPH113354A (en) Data cube control system
JP2001067369A (en) Information retrieval system, information retrieval method and recording medium recording information retrieval probram
JP3498926B2 (en) Document database management system
JPH0658644B2 (en) Natural combination processing unit
JPH01241640A (en) Data base device and data base managing method
JPH035886A (en) Relational data base computing system
JPH04156624A (en) High speed accessing systme in knowledge base systme
JPH05313971A (en) Key word managing system in relational data base
JPS6136654B2 (en)

Legal Events

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