JPH09311801A - Data base device and data base retrieval method - Google Patents

Data base device and data base retrieval method

Info

Publication number
JPH09311801A
JPH09311801A JP8129471A JP12947196A JPH09311801A JP H09311801 A JPH09311801 A JP H09311801A JP 8129471 A JP8129471 A JP 8129471A JP 12947196 A JP12947196 A JP 12947196A JP H09311801 A JPH09311801 A JP H09311801A
Authority
JP
Japan
Prior art keywords
data
pattern
read
storage means
search
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
JP8129471A
Other languages
Japanese (ja)
Other versions
JP3570082B2 (en
Inventor
Keiro Ito
圭郎 伊藤
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP12947196A priority Critical patent/JP3570082B2/en
Publication of JPH09311801A publication Critical patent/JPH09311801A/en
Application granted granted Critical
Publication of JP3570082B2 publication Critical patent/JP3570082B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To suppress the frequent occurrence of insufficient memory capacity and swap-out states and to effectively retrieve data, by reading and storing only the data that is specified by a recognized read pattern. SOLUTION: A secondary storage 3 stores the read patterns of plural data. When the desired one of these read patterns is designated, a control part 4a recognizes the designated pattern and reads only the data that is specified by the recognized pattern out of the storage 3 to store it in a memory part 4b. Thus, only the data that is specified by the read pattern recognized by the part 4a is stored in the part 4b. Then an arithmetic part 4c extracts the data accordant with the retrieval condition out of the data stored in the part 4b. As a result, the data retrieval response is improved.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、データベースを運
用するためのデータベース装置及びこのデータベース装
置を用いて行うデータベース検索方法に係わり、特にオ
ブジェクト指向型のデータベース装置とそのデータベー
ス検索方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database device for operating a database and a database search method performed using this database device, and more particularly to an object-oriented database device and its database search method.

【0002】[0002]

【従来の技術】データベース装置とは、データベースを
運用するためのハードウエア及びソフトウエアを有した
コンピュータシステムであり、体系的なデータ構造を有
するデータ群の蓄積や、蓄積されたデータに対する検索
等を行うものである。従来、データベース装置として
は、テーブル(表)形式のデータ構造を有するリレーシ
ョナル(関係型)データベース装置が広く知られてい
る。ただし、リレーショナルデータベース装置では、必
要とされる全ての業務に対応することができず、また高
速処理の実現が困難であるといった問題がある。そこ
で、近年では、リレーショナルデータベース装置に代わ
り、複雑なデータ構造であっても高速処理をすることが
可能であるオブジェクト指向型データベース装置が用い
られるようになってきている。
2. Description of the Related Art A database device is a computer system having hardware and software for operating a database, and stores data groups having a systematic data structure and searches the stored data. It is something to do. Conventionally, as a database device, a relational (relational) database device having a table (table) data structure is widely known. However, there is a problem that the relational database device cannot handle all the required jobs and it is difficult to realize high-speed processing. Therefore, in recent years, instead of the relational database device, an object-oriented database device that can perform high-speed processing even with a complicated data structure has been used.

【0003】オブジェクト指向型データベース装置は、
データとこれに関する手続きとを合わせたオブジェクト
データを、一つのモジュール(単位)としてデータベー
スを構築するものである。よって、オブジェクト指向型
データベース装置では、リレーショナルデータベース装
置が数値や文字だけしか蓄積できなかったのに対して、
グラフィックスや動画像など多様なデータを蓄積するこ
とができ、またデータ構造が関係型であろうと、階層
型、ネットワーク型であろうと疑似的にサポートするこ
とができ、さらにはデータの操作手続きを論理的データ
と一体にしてデータベースとして蓄積することができる
ようになっている。
The object-oriented database device is
A database is constructed by using object data, which is a combination of data and procedures related thereto, as one module (unit). Therefore, in the object-oriented database device, whereas the relational database device can store only numerical values and characters,
It can store a variety of data such as graphics and moving images, and can pseudo-support whether the data structure is a relational type, a hierarchical type, or a network type. It can be stored as a database together with logical data.

【0004】また、オブジェクト指向型データベース装
置は、その内部機能として、二次記憶管理機能、配列等
の構造体をもてる複合オブジェクト、オブジェクトID
によるデータ関連付け、「継承」等のオブジェクト指向
特有の機能サポート、等の特徴を備えているものであ
る。オブジェクトIDとは、オブジェクトデータの一つ
一つに付与された識別子(ID)のことであり、例えば
図5に示すように、各オブジェクトデータ間のデータ関
連付けを行うためのものである。
Further, the object-oriented database device has, as its internal functions, a secondary storage management function, a compound object having a structure such as an array, and an object ID.
It has features such as data association by, and object-specific function support such as "inheritance". The object ID is an identifier (ID) given to each piece of object data, and is used to perform data association between pieces of object data, as shown in FIG. 5, for example.

【0005】このようなオブジェクト指向型データベー
ス装置では、通常、磁気ディスクやMO(Magnet Optic
al Disk;光磁気ディスク)等の記憶部と、CPU(Cent
ralProcessing Unit )やRAM(Random Access Memor
y)等の組み合わせからなる検索処理部とを備えてお
り、データベースを構築するために記憶部に蓄積された
オブジェクトデータの中から、検索処理部が検索条件に
従ってデータ検索を行うようになっている。
In such an object-oriented database device, a magnetic disk or MO (Magnet Optic) is usually used.
A storage unit such as an al Disk (magneto-optical disk) and a CPU (Cent
ralProcessing Unit) and RAM (Random Access Memor)
y), etc., and a search processing unit that is a combination, and the search processing unit performs a data search according to the search condition from the object data accumulated in the storage unit to construct the database. .

【0006】例えば、図6に示すように、記憶部が、複
数のレコード(列)と複数のフィールド(行)とからな
るテーブル形式でオブジェクトデータを蓄積している場
合に、検索処理部では、図7のフローチャートに示すよ
うな手順によってデータ検索を行う。ただし、図6にお
いて、テーブル形式のオブジェクトデータは、1レコー
ド分(図中太線内)のデータ量が38バイトであるもの
とする。また、検索処理部が有するRAM等のメモリ
は、そのデータ領域の容量が300バイトであるものと
する。
For example, as shown in FIG. 6, when the storage unit stores object data in a table format including a plurality of records (columns) and a plurality of fields (rows), the search processing unit: Data retrieval is performed according to the procedure shown in the flowchart of FIG. However, in FIG. 6, it is assumed that the table-type object data has a data amount of 38 bytes for one record (inside the thick line in the figure). Further, it is assumed that the memory such as the RAM included in the search processing unit has a data area capacity of 300 bytes.

【0007】図7に示すように、このオブジェクト指向
型データベース装置の利用者(以下、ユーザと称す)等
によって検索条件が指示されると、検索処理部は、この
検索処理部が有するメモリに、記憶部に蓄積されている
全オブジェクトデータの読み込みを開始する(ステップ
201、以下ステップをSと略す)。このとき、検索処
理部では、記憶部に蓄積されているオブジェクトデータ
を、テーブル形式の各レコード毎に読み込むようになっ
ている(図6参照)。したがって、オブジェクトデータ
の1レコード分のデータ量が38バイトであり、メモリ
のデータ容量が300バイトであれば、検索処理部で
は、このメモリに格納可能な300バイト分のオブジェ
クトデータ、すなわち7レコード分のオブジェクトデー
タ(38バイト×7=266バイト)を、記憶部から読
み込んでメモリに格納する。
As shown in FIG. 7, when a user (hereinafter, referred to as a user) of this object-oriented database device specifies search conditions, the search processing unit causes the memory of the search processing unit to store The reading of all the object data accumulated in the storage unit is started (step 201, hereinafter step is abbreviated as S). At this time, the search processing unit reads the object data accumulated in the storage unit for each record in the table format (see FIG. 6). Therefore, if the data amount of one record of object data is 38 bytes and the data capacity of the memory is 300 bytes, the search processing unit will store 300 bytes of object data that can be stored in this memory, that is, 7 records. Object data (38 bytes × 7 = 266 bytes) is read from the storage unit and stored in the memory.

【0008】ここで、検索処理部は、この検索処理部が
有するCPU等によって、メモリに格納した7レコード
分のオブジェクトデータと、指示された検索条件とを比
較し、この検索条件との間で一致するオブジェクトデー
タがあるか否かを判断する(S202)。この判断の結
果、検索条件と一致するオブジェクトデータがあると、
検索処理部は、そのオブジェクトデータをメモリ内に残
留させ、また、検索条件と一致しないオブジェクトデー
タをスワップアウトする(S203)。スワップアウト
とは、例えば図8に示すように、記憶部から検索処理部
のメモリへ読み込んだオブジェクトデータを、再び記憶
部内のデータベースへ送出して記憶させることである。
Here, the search processing unit compares the object data of seven records stored in the memory with the specified search condition by the CPU or the like of the search processing unit, and compares the object data with the specified search condition. It is determined whether there is matching object data (S202). As a result of this judgment, if there is object data that matches the search condition,
The search processing unit leaves the object data in the memory and swaps out the object data that does not match the search condition (S203). Swap-out is, for example, as shown in FIG. 8, sending the object data read from the storage unit to the memory of the search processing unit to the database in the storage unit again for storage.

【0009】また図7において、検索条件と一致しない
オブジェクトデータをスワップアウトすると、検索処理
部は、スワップアウトしたデータ量分のオブジェクトデ
ータを新たに記憶部から読み込んで、再び検索処理部の
メモリに格納する。すなわち、検索処理部は、8レコー
ド目以降のオブジェクトデータを記憶部から読み込ん
で、そのオブジェクトデータについて上述の処理を繰り
返す(S201〜S203)。そして、記憶部に蓄積さ
れた全オブジェクトデータについて、検索条件との比較
と、この比較の結果によるオブジェクトデータの残留若
しくはスワップアウトとが終了したら、検索処理部は、
メモリ内に格納しているオブジェクトデータをデータ検
索結果として、この検索処理部と接続するCRT(Cath
ode Ray Tube)等に送出して、その画面に表示させる
(S204)。
Further, in FIG. 7, when object data that does not match the search condition is swapped out, the search processing unit newly reads the object data of the swapped-out data amount from the storage unit, and again loads it into the memory of the search processing unit. Store. That is, the search processing unit reads the object data of the eighth record and thereafter from the storage unit, and repeats the above processing for the object data (S201 to S203). Then, for all the object data accumulated in the storage unit, when the comparison with the search condition and the residual or swap-out of the object data as a result of this comparison are completed, the search processing unit
The object data stored in the memory is used as the data search result, and the CRT (Cath
ode Ray Tube) and display it on the screen (S204).

【0010】このように、オブジェクト指向型データベ
ース装置では、記憶部に蓄積されたオブジェクトデータ
の中から、指定された検索条件と一致するオブジェクト
データの検索を行うようになっている。このとき、オブ
ジェクト指向型データベース装置では、記憶部に蓄積さ
れているそれぞれのオブジェクトデータが、オブジェク
トIDにより互いに関連付けられているので、これら全
てのオブジェクトデータを記憶部から検索処理部のメモ
リに読み込むことによって、ナビゲーショナルな検索が
可能となっている。
As described above, in the object-oriented database device, the object data stored in the storage unit is searched for the object data that matches the specified search condition. At this time, in the object-oriented database device, since the respective object data accumulated in the storage unit are associated with each other by the object ID, all these object data are read from the storage unit into the memory of the search processing unit. Enables navigational search.

【0011】[0011]

【発明が解決しようとする課題】ところで、上述のオブ
ジェクト指向型データベース装置では、データ検索を行
う際に、記憶部に蓄積されている全てのオブジェクトデ
ータを、一旦検索処理部のメモリに読み込むようになっ
ている。したがって、記憶部に多くのオブジェクトデー
タが蓄積されていると、検索処理部のメモリ容量不足が
生じる可能性が高くなってしまい、そのためにスワップ
アウトが多発してしまう。これは、例えば記憶部に蓄積
された中から2〜3のオブジェクトデータのみを検索し
たい場合であっても同様である。
By the way, in the above-described object-oriented database device, when performing a data search, all the object data accumulated in the storage section is temporarily read into the memory of the search processing section. Has become. Therefore, if a large amount of object data is accumulated in the storage unit, there is a high possibility that the memory capacity of the search processing unit will become insufficient, and as a result, swap-out will occur frequently. This is the same even if, for example, it is desired to retrieve only a few object data stored in the storage unit.

【0012】すなわち、このオブジェクト指向型データ
ベース装置では、例えば2〜3のオブジェクトデータの
みが必要な場合であっても、記憶部内の全オブジェクト
データを一旦メモリに読み込むようになっているので、
メモリの容量不足及びスワップアウトの多発が生じてし
まい、結果としてデータ検索の効率(レスポンス)が低
下してしまう。
That is, in this object-oriented database device, even if only a few object data are required, for example, all the object data in the storage unit are read into the memory once.
Insufficient memory capacity and frequent swap-outs occur, and as a result, the efficiency (response) of data retrieval decreases.

【0013】そこで、本発明は、上記の問題点に鑑み
て、メモリ容量不足やスワップアウトの多発を抑えるこ
とができ、データ検索を効率良く行うことのできるデー
タベース装置を提供することを目的とする。また、本発
明は、上記の問題点に鑑みて、メモリ容量不足やスワッ
プアウトの多発を抑えることができ、データ検索を効率
良く行うことのできるデータベース検索方法を提供する
ことを目的とする。
In view of the above problems, it is an object of the present invention to provide a database device capable of suppressing insufficient memory capacity and frequent occurrence of swap-out, and efficiently performing data retrieval. . Further, in view of the above problems, it is another object of the present invention to provide a database search method capable of suppressing insufficient memory capacity and frequent occurrence of swap-out, and efficiently performing data search.

【0014】[0014]

【課題を解決するための手段】本発明は、上記目的を達
成するために案出されたデータベース装置で、複数のデ
ータを蓄積するデータ蓄積手段と、このデータ蓄積手段
から読み込まれるデータを格納する格納手段と、この格
納手段に格納されたデータの中から検索条件に合うデー
タを抽出する検索手段とを具備するものにおいて、さら
に、前記データ蓄積手段に蓄積された複数のデータの中
で予め設定されたデータの集合を読み込みパターンとし
て記憶するパターン記憶手段と、前記検索手段でのデー
タの抽出に先立って、前記パターン記憶手段に記憶され
た読み込みパターンの中から所望する読み込みパターン
が指定されると、これを認識する認識手段と、この認識
手段で読み込みパターンが認識されると、認識された読
み込みパターンによって特定されるデータのみを前記デ
ータ蓄積手段から読み込んで前記格納手段に格納させる
読み込み手段とを備えてなるものである。
DISCLOSURE OF THE INVENTION The present invention is a database device devised to achieve the above object, and stores data storage means for storing a plurality of data and data read from the data storage means. A storage means and a search means for extracting data matching the search condition from the data stored in the storage means, further comprising presetting among a plurality of data stored in the data storage means. A pattern storage means for storing a set of read data as a read pattern, and a desired read pattern is designated from the read patterns stored in the pattern storage means prior to the extraction of the data by the search means. , When the recognition pattern that recognizes this and the recognition pattern is recognized by this recognition mechanism, In which only the data specified comprising a reading means for storing in said storage means reads from said data storage means I.

【0015】上記構成のデータベース装置によれば、パ
ターン記憶手段は、データ蓄積手段内の複数のデータに
対する読み込みパターンを記憶している。ここで、その
読み込みパターンの中から所望する読み込みパターンが
指定されると、認識手段がこれを認識し、さらに、読み
込み手段がその読み込みパターンによって特定されるデ
ータのみを、データ蓄積手段から読み込んで格納手段に
格納させる。これにより、格納手段には、認識手段で認
識された読み込みパターンによって特定されるデータの
みが格納されるとともに、検索手段では、格納手段内の
データの中から検索条件に合うデータを抽出する。つま
り、このデータベース装置では、検索手段がデータの抽
出を行う検索条件に対応する読み込みパターンが指定さ
れれば、データ蓄積手段内の全データではなく、その読
み込みパターンによって特定されるデータの中から、前
記検索条件に合うデータの抽出を行う。
According to the database device having the above structure, the pattern storage means stores the read patterns for the plurality of data in the data storage means. Here, when a desired read pattern is specified from the read patterns, the recognition means recognizes this, and the read means reads only the data specified by the read pattern from the data storage means and stores it. Store in the means. As a result, only the data specified by the read pattern recognized by the recognition means is stored in the storage means, and the search means extracts the data satisfying the search condition from the data in the storage means. In other words, in this database device, if the reading pattern corresponding to the search condition for the search means to extract the data is specified, not all the data in the data accumulating means, but the data specified by the reading pattern, Data that meets the search conditions is extracted.

【0016】また、本発明は、上記目的を達成するため
に案出されたデータベース検索方法で、複数のデータを
蓄積するデータ蓄積手段と、このデータ蓄積手段から読
み込まれるデータを格納する格納手段と、この格納手段
に格納されたデータの中から検索条件に合うデータを抽
出する検索手段とを具備するデータベース装置を用いて
行う方法であって、前記データ蓄積手段に蓄積された複
数のデータの中における任意のデータの集合を読み込み
パターンとして設定する処理と、設定した読み込みパタ
ーンを前記複数のデータとともに前記データ蓄積手段に
記憶させる処理と、前記データ蓄積手段に記憶させた読
み込みパターンの中から所望する読み込みパターンを指
定する処理と、指定した読み込みパターンによって特定
されるデータのみを前記データ蓄積手段から読み込んで
前記格納手段に格納させる処理と、前記格納手段に格納
したデータに対して前記検索条件に合うか否かを判断す
る処理とからなることを特徴とする。
Further, the present invention is a database search method devised to achieve the above object, and data storage means for storing a plurality of data, and storage means for storing the data read from the data storage means. A method of using a database device having a search means for extracting data satisfying a search condition from the data stored in the storage means, the method including: a plurality of data stored in the data storage means; A process of setting a set of arbitrary data as a read pattern, a process of storing the set read pattern together with the plurality of data in the data accumulating unit, and a read pattern stored in the data accumulating unit. Only the process that specifies the read pattern and the data specified by the specified read pattern Wherein a process of storing in said storage means reads from the data storage means, characterized by comprising the said storage means and said determining whether match the search with respect to the data stored in the processing.

【0017】上記手順のデータベース検索方法によれ
ば、データ蓄積手段と格納手段と検索手段とを具備する
データベース装置を用いて、先ず、データ蓄積手段内の
複数のデータに対する読み込みパターンを設定して、こ
れをデータ蓄積手段に記憶させる。次に、データ蓄積手
段に記憶させた読み込みパターンの中から所望する読み
込みパターンを指定する。読み込みパターンが指定され
ると、その読み込みパターンによって特定されるデータ
のみを、データ蓄積手段から読み込んで格納手段に格納
させるとともに、検索手段が格納手段内のデータの中か
ら検索条件に合うデータを抽出する。つまり、データベ
ース検索方法によれば、データ蓄積手段内の全データで
はなく、指定した読み込みパターンによって特定される
データのみの中から、検索手段によるデータの抽出が行
われる。
According to the database search method of the above procedure, first, by using the database device having the data storage means, the storage means, and the search means, first, a read pattern for a plurality of data in the data storage means is set, This is stored in the data storage means. Next, a desired read pattern is designated from the read patterns stored in the data storage means. When the reading pattern is specified, only the data specified by the reading pattern is read from the data accumulating means and stored in the storing means, and the searching means extracts the data satisfying the search condition from the data in the storing means. To do. That is, according to the database search method, the data is extracted by the search means from only the data specified by the specified read pattern, not all the data in the data storage means.

【0018】[0018]

【発明の実施の形態】以下、図面に基づき本発明に係わ
るデータベース装置と、このデータベース装置における
データベース検索方法について説明する。
BEST MODE FOR CARRYING OUT THE INVENTION A database apparatus according to the present invention and a database search method in this database apparatus will be described below with reference to the drawings.

【0019】本実施の形態のデータベース装置は、図1
に示すように、入力部1と、出力部2と、二次記憶部3
と、検索処理部4とから構成されているものである。た
だし、このデータベース装置は、データベースを構築す
るそれぞれのデータがオブジェクトIDにより互いに関
連付けられている(図5参照)オブジェクト指向型デー
タベース装置であるものとする。
The database device of this embodiment is shown in FIG.
As shown in FIG. 1, the input unit 1, the output unit 2, and the secondary storage unit 3
And a search processing unit 4. However, it is assumed that this database device is an object-oriented database device in which the respective data making up the database are associated with each other by the object ID (see FIG. 5).

【0020】入力部1は、例えばキーボードやマウスか
らなるものであり、ユーザの操作により、データベース
を構築するオブジェクトデータの入力や、データ検索を
行う際の検索条件の指示や、後述する読み込みパターン
の指定あるいは設定等を行うためのものである。出力部
2と、例えばCRTやプリンタからなるものであり、デ
ータ検索の結果をユーザに対して表示(出力)するため
のものである。
The input unit 1 is composed of, for example, a keyboard and a mouse, and is operated by a user to input object data for constructing a database, an instruction of a search condition when performing a data search, and a reading pattern described later. It is for specifying or setting. The output unit 2 is composed of, for example, a CRT and a printer, and is for displaying (outputting) the result of the data search to the user.

【0021】二次記憶部3は、例えば磁気ディスクやM
Oからなるものであり、データベースを構築する複数の
オブジェクトデータを蓄積するものである。すなわち、
二次記憶部3は、本発明におけるデータ蓄積手段として
機能するものである。また、この二次記憶部3では、本
発明におけるパターン記憶手段としての機能も有してお
り、複数のオブジェクトデータと共に入力部1等からユ
ーザによって設定された、複数の読み込みパターンを記
憶するようになっている。
The secondary storage unit 3 is, for example, a magnetic disk or M
It is composed of O and accumulates a plurality of object data which constructs a database. That is,
The secondary storage unit 3 functions as data storage means in the present invention. The secondary storage unit 3 also has a function as a pattern storage unit in the present invention, and stores a plurality of read patterns set by the user from the input unit 1 and the like together with a plurality of object data. Has become.

【0022】読み込みパターンとは、ユーザ等により設
定されるオブジェクトデータの集合からなるものであ
り、例えばテーブル形式で蓄積されたオブジェクトデー
タの中で、特定フィールド内にあるオブジェクトデータ
の集合からなるものである。この読み込みパターンは、
特定フィールドに対応したフラグ等によって表されるも
のであり、このフラグの相違によって、互いに異なる読
み込みパターンが識別されるようになっている。具体的
には、二次記憶部3では、図2に示すように、テーブル
形式のデータ構造を二次元ではなく三次元的に考えて、
その三次元方向にそれぞれ異なる読み込みパターンを、
特定フィールドに対応するフラグによって識別可能に記
憶するようになっている。
The read pattern is composed of a set of object data set by a user or the like, and is composed of a set of object data in a specific field among the object data accumulated in the table format, for example. is there. This read pattern is
It is represented by a flag or the like corresponding to a specific field, and different read patterns are identified by the difference in this flag. Specifically, in the secondary storage unit 3, as shown in FIG. 2, the table-type data structure is considered three-dimensionally instead of two-dimensionally,
Different reading patterns in the three-dimensional direction,
The flag is stored so that it can be identified by the flag corresponding to the specific field.

【0023】なお、二次記憶部3では、オブジェクトデ
ータを必ずしも三次元的なテーブル形式で蓄積する必要
はなく、例えばオブジェクトデータと読み込みパターン
との対応を表すマトリックスを、オブジェクトデータと
は別に記憶することにより、パターン記憶手段としての
機能を果たすものであってもよい。また、読み込みパタ
ーンは、特定のフィールド内にあるオブジェクトデータ
の集合でなくとも、例えば、特定のレコード内にあるオ
ブジェクトデータの集合や、テーブル形式内の任意のオ
ブジェクトデータの集合であってもよい。
In the secondary storage unit 3, it is not always necessary to store the object data in a three-dimensional table format. For example, a matrix showing the correspondence between the object data and the read pattern is stored separately from the object data. As a result, it may function as a pattern storage means. Further, the read pattern may be, for example, a set of object data in a specific record or a set of arbitrary object data in a table format, instead of a set of object data in a specific field.

【0024】また図1において、検索処理部4は、この
データベース装置全体の制御や、二次記憶部3に蓄積さ
れたオブジェクトデータに対するデータ検索を行うもの
である。そのために、検索処理部4では、制御部4a
と、メモリ部4bと、演算部4cとを備えている。
In FIG. 1, the search processing unit 4 controls the entire database device and performs a data search for the object data stored in the secondary storage unit 3. Therefore, in the search processing unit 4, the control unit 4a
And a memory unit 4b and a calculation unit 4c.

【0025】制御部4aは、例えばCPUからなるもの
であり、入力部1等から受け取った命令語を解釈すると
ともに、入力部1、出力部2、二次記憶部3、メモリ部
4b、及び演算部4cに対して制御信号を与えることに
より、これらにおける動作を制御するものである。ま
た、制御部4aは、データ検索を行う際に、入力部1か
ら読み込みパターンの指定があると、その読み込みパタ
ーンを認識するものである。さらに、制御部4aは、デ
ータ検索を行う際に、認識した読み込みパターンに従っ
て、その読み込みパターンによって特定されるオブジェ
クトデータのみを、二次記憶部3から読み込むものであ
る。すなわち、制御部4aは、本発明における認識手段
及び読み込み手段としての機能とを有しているものであ
る。
The control unit 4a is composed of, for example, a CPU, interprets the command word received from the input unit 1 and the like, and also inputs the input unit 1, the output unit 2, the secondary storage unit 3, the memory unit 4b, and the arithmetic unit. By giving a control signal to the section 4c, the operation of these is controlled. Further, the control unit 4a recognizes the read pattern when the input unit 1 specifies the read pattern when performing the data search. Furthermore, the control unit 4a reads only the object data specified by the read pattern from the secondary storage unit 3 in accordance with the read pattern that has been recognized when performing the data search. That is, the control unit 4a has a function as a recognition unit and a reading unit in the present invention.

【0026】メモリ部4bは、例えばRAM等の半導体
メモリからなるものであり、制御部4aが二次記憶部3
から読み込んだオブジェクトデータを格納するものであ
る。すなわち、メモリ部4bは、本発明における格納手
段として機能するものである。演算部4cは、例えばC
PUからなるものであり、メモリ部4bに格納されたオ
ブジェクトデータの中から、入力部1で指示された検索
条件に合うオブジェクトデータを、四則演算や論理演算
等の実行によって抽出するものである。すなわち、演算
部4cは、本発明における検索手段として機能するもの
である。
The memory unit 4b is composed of a semiconductor memory such as a RAM, and the control unit 4a has a secondary storage unit 3.
The object data read from is stored. That is, the memory section 4b functions as a storage means in the present invention. The calculation unit 4c is, for example, C
It is composed of a PU and extracts the object data that matches the search condition specified by the input unit 1 from the object data stored in the memory unit 4b by executing four arithmetic operations or logical operations. That is, the calculation unit 4c functions as the search means in the present invention.

【0027】次に、以上のように構成されたデータベー
ス装置を用いて行うデータベース検索方法について説明
する。ただし、ここでは、図3に示すようなテーブル形
式の「社員」に関するオブジェクトデータが二次記憶部
3に蓄積されており、さらにこのテーブル形式のオブジ
ェクトデータは、1レコード分のデータ量が38バイト
であり、全データのデータ量が532バイトであるもの
とする。また、ここでは、検索処理部4のメモリ部4b
のデータ領域の容量が300バイトであるものとする。
Next, a database search method performed using the database device configured as described above will be described. However, here, the object data relating to “employee” in the table format as shown in FIG. 3 is accumulated in the secondary storage unit 3, and the object data in this table format has a data amount of one record of 38 bytes. And the data amount of all data is 532 bytes. Further, here, the memory unit 4b of the search processing unit 4
It is assumed that the data area has a capacity of 300 bytes.

【0028】このデータベース装置では、データ検索を
行う前に、予め読み込みパターンを設定しておく。すな
わち、ユーザは、入力部1を操作して、二次記憶部3に
蓄積されているオブジェクトデータの中から、任意のオ
ブジェクトデータの集合を読み込みパターンとして設定
する。そして、二次記憶部3は、設定された読み込みパ
ターンをオブジェクトデータと共に記憶する。例えば、
二次記憶部3内のオブジェクトデータの中で「社員No.
」、「社員名」、「入社年月日」、「住所」といった
フィールドに該当するオブジェクトデータからなる集合
を、一つの読み込みパターンとして設定した場合に、こ
の二次記憶部3では、これらのオブジェクトデータの集
合を各フィールド(項目)に対応するフラグによって識
別可能にするとともに、その読み込みパターンを例えば
「Aパターン」として登録する。
In this database device, a read pattern is set in advance before data retrieval. That is, the user operates the input unit 1 to set a set of arbitrary object data among the object data accumulated in the secondary storage unit 3 as a read pattern. Then, the secondary storage unit 3 stores the set read pattern together with the object data. For example,
In the object data in the secondary storage unit 3, "Employee No.
, “Employee name”, “hire date”, “address”, etc., when a set of object data corresponding to fields such as “address” is set as one read pattern, the secondary storage unit 3 stores these objects. A set of data is made identifiable by a flag corresponding to each field (item), and its read pattern is registered as, for example, “A pattern”.

【0029】ここで、ユーザが入力部1を操作して検索
条件の指示及び読み込みパターンの指定を行うと、デー
タベース装置では、検索処理部4がこの指示及び指定に
従って、図4のフローチャートに示すようにデータ検索
を行う。例えば、ユーザが「入社年月日が1990年4
月1日以降の社員No. と社員名と住所」という検索条件
を指示し、さらにこの検索条件に対応する読み込みパタ
ーンとして「Aパターン」を指定すると、検索処理部4
の制御部4aでは、指定された「Aパターン」という読
み込みパターンを認識し(S101)、その読み込みパ
ターンによって特定されるデータ、すなわち「社員No.
」、「社員名」、「入社年月日」、「住所」といった
フィールドに該当するオブジェクトデータを、二次記憶
部3から読み込んでメモリ部4bに格納する(S10
2)。
Here, when the user operates the input unit 1 to instruct a search condition and specify a read pattern, the search processing unit 4 in the database device follows the instruction and the specification, as shown in the flowchart of FIG. Search for data. For example, the user may say, “The date of joining the company is 4
If the search conditions such as “Employee No., employee name and address after the 1st of the month” are specified and “A pattern” is specified as the read pattern corresponding to these search conditions, the search processing unit 4
The control section 4a recognizes the specified read pattern "A pattern" (S101), and the data specified by the read pattern, that is, "employee No.
, “Employee name”, “hire date”, and “address” are read from the secondary storage unit 3 and stored in the memory unit 4b (S10).
2).

【0030】このとき、これらのオブジェクトデータの
データ量は、「社員No. 」が2バイト、「社員名」が4
バイト、「入社年月日」が8バイト、「住所」が6バイ
トとなっている。したがって、制御部4aは、全レコー
ド分のオブジェクトデータ((2バイト+4バイト+8
バイト+6バイト)×14=280バイト)を、二次記
憶部3から読み込んでメモリ部4bに格納することがで
きる。
At this time, the data amount of these object data is 2 bytes for "employee No." and 4 for "employee name".
Bytes, "hire date" is 8 bytes, and "address" is 6 bytes. Therefore, the control unit 4a controls the object data ((2 bytes + 4 bytes + 8
(Byte + 6 bytes) × 14 = 280 bytes) can be read from the secondary storage unit 3 and stored in the memory unit 4b.

【0031】全レコード分のオブジェクトデータがメモ
リ部4bに格納されると、続いて、演算部4cは、この
メモリ部4bに格納されたオブジェクトデータを、「入
社年月日が1990年4月1日以降の社員No. と社員名
と住所」という検索条件と比較し、この検索条件に一致
するオブジェクトデータがあるか否かを判断する(S1
03)。この判断の結果、検索条件と一致するオブジェ
クトデータがあると、検索処理部は、そのオブジェクト
データをメモリ内に残留させ、また、検索条件と一致し
ないオブジェクトデータをスワップアウトする。そし
て、メモリ部4b内の全てのオブジェクトデータについ
て、残留あるいはスワップアウトの判断が行われると、
制御部4aは、メモリ内に残留しているオブジェクトデ
ータをデータ検索結果とし、出力部2に送出してユーザ
に対する表示を行わせる(S104)。
When the object data for all the records is stored in the memory unit 4b, the arithmetic unit 4c subsequently changes the object data stored in the memory unit 4b to "the date of joining the company is April 1, 1990. It is determined whether or not there is object data that matches the search conditions by comparing the search conditions such as “Employee No. after day and employee name and address” (S1).
03). As a result of this determination, if there is object data that matches the search condition, the search processing unit causes the object data to remain in the memory and swaps out object data that does not match the search condition. Then, when it is determined that all the object data in the memory unit 4b remain or are swapped out,
The control unit 4a sends the object data remaining in the memory as a data search result, and sends it to the output unit 2 for display to the user (S104).

【0032】このように、本実施の形態のデータベース
装置、及びこのデータベース装置を用いたデータ検索方
法では、データ検索を行う際に、読み込みパターンによ
って特定されるオブジェクトデータのみを二次記憶部3
からメモリ部4bに読み込むようになっている。したが
って、二次記憶部3に多くのオブジェクトデータが蓄積
されている場合であっても、読み込みパターンを予め記
憶させておき、かつ、データ検索時にその読み込みパタ
ーンを指定すれば、二次記憶部3内の全データではな
く、その読み込みパターンによって特定されるデータ、
すなわち必要なデータだけを読み込むようになる。これ
により、メモリ部4bでのメモリ容量不足やスワップア
ウトの多発を抑えることが可能となるとともに、メモリ
部4bのメモリ容量の節約を実現することができ、結果
としてデータ検索のレスポンスの向上を図ることができ
る。
As described above, in the database device of this embodiment and the data search method using this database device, only the object data specified by the read pattern is searched for in the secondary storage unit 3 when performing the data search.
From the memory unit 4b. Therefore, even if a large amount of object data is stored in the secondary storage unit 3, if the reading pattern is stored in advance and the reading pattern is designated at the time of data retrieval, the secondary storage unit 3 The data identified by the read pattern, not all the data in
That is, only necessary data will be read. As a result, it is possible to suppress the shortage of memory capacity in the memory unit 4b and frequent occurrence of swap-out, and it is possible to realize the saving of the memory capacity of the memory unit 4b, and as a result, improve the response of data search. be able to.

【0033】[0033]

【発明の効果】以上に説明したように、本発明のデータ
ベース装置は、データ検索を行う際に、読み込みパター
ンによって特定されるデータのみをデータ蓄積手段から
格納手段に読み込むようになっている。したがって、デ
ータ蓄積手段に多くのデータが蓄積されている場合であ
っても、読み込みパターンを予め記憶させておき、か
つ、データ検索時にその読み込みパターンを指定すれ
ば、データ蓄積手段内の全データではなく、その読み込
みパターンによって特定されるデータだけを読み込むよ
うになる。これにより、このデータベース装置では、メ
モリ容量不足やスワップアウトの多発を抑えることが可
能となり、結果としてデータ検索のレスポンスの向上を
実現できる。
As described above, the database device of the present invention reads only the data specified by the read pattern from the data storage means to the storage means when performing a data search. Therefore, even if a large amount of data is accumulated in the data accumulating means, if the reading pattern is stored in advance and the reading pattern is specified at the time of data retrieval, all the data in the data accumulating means will be stored. Instead, only the data specified by the read pattern will be read. As a result, in this database device, it is possible to suppress insufficient memory capacity and frequent occurrence of swap-out, and as a result, it is possible to improve the response of data search.

【0034】また、本発明のデータベース検索方法によ
れば、データ検索を行う際に、読み込みパターンによっ
て特定されるデータのみをデータ蓄積手段から格納手段
に読み込むようになっている。よって、データ蓄積手段
に多くのデータが蓄積されている場合であっても、読み
込みパターンを予め記憶させておき、かつ、データ検索
時にその読み込みパターンを指定するので、データ蓄積
手段内の全データではなく、その読み込みパターンによ
って特定されるデータだけを読み込むようになる。した
がって、このデータベース検索方法によりデータ検索を
行えば、上述と同様の効果を得ることができる。
Further, according to the database search method of the present invention, when performing data search, only the data specified by the read pattern is read from the data storage means to the storage means. Therefore, even when a large amount of data is accumulated in the data accumulating means, the reading pattern is stored in advance and the reading pattern is specified at the time of data retrieval. Instead, only the data specified by the read pattern will be read. Therefore, if the data is searched by this database searching method, the same effect as described above can be obtained.

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

【図1】本発明に係わるデータベース装置の実施の形態
の一例の概略構成を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of an example of an embodiment of a database device according to the present invention.

【図2】図1のデータベース装置に蓄積されたデータ構
造を示す説明図である。
FIG. 2 is an explanatory diagram showing a data structure accumulated in the database device of FIG.

【図3】図1のデータベース装置に蓄積されたデータの
具体例を示す説明図である。
FIG. 3 is an explanatory diagram showing a specific example of data accumulated in the database device of FIG.

【図4】図1のデータベース装置を用いて行うデータ検
索方法の手順を示すフローチャートである。
FIG. 4 is a flowchart showing the procedure of a data search method performed using the database device of FIG.

【図5】オブジェクト指向型データベース装置でのオブ
ジェクトIDによるデータ関連付けを示す説明図であ
る。
FIG. 5 is an explanatory diagram showing data association by object ID in the object-oriented database device.

【図6】従来のデータベース装置に蓄積されたデータ構
造の一例を示す説明図である。
FIG. 6 is an explanatory diagram showing an example of a data structure accumulated in a conventional database device.

【図7】従来のデータベース装置におけるデータ検索の
手順を示すフローチャートである。
FIG. 7 is a flowchart showing a procedure of data search in a conventional database device.

【図8】スワップアウトを説明する説明図である。FIG. 8 is an explanatory diagram illustrating swap-out.

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

3 二次記憶部(データ蓄積手段、パターン記憶手段) 4a 制御部(認識手段、読み込み手段) 4b メ
モリ部(格納手段) 4c 演算部(検索手段)
3 Secondary Storage Unit (Data Accumulation Means, Pattern Storage Means) 4a Control Unit (Identification Means, Reading Means) 4b Memory Unit (Storage Means) 4c Computing Unit (Search Means)

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 複数のデータを蓄積するデータ蓄積手段
と、 該データ蓄積手段から読み込まれるデータを格納する格
納手段と、 該格納手段に格納されたデータの中から検索条件に合う
データを抽出する検索手段とを具備するデータベース装
置において、 前記データ蓄積手段に蓄積された複数のデータの中で予
め設定されたデータの集合を読み込みパターンとして記
憶するパターン記憶手段と、 前記検索手段でのデータの抽出に先立って、前記パター
ン記憶手段に記憶された読み込みパターンの中から所望
する読み込みパターンが指定されると、これを認識する
認識手段と、 該認識手段で読み込みパターンが認識されると、認識さ
れた読み込みパターンによって特定されるデータのみを
前記データ蓄積手段から読み込んで前記格納手段に格納
させる読み込み手段とを備えてなることを特徴とするデ
ータベース装置。
1. A data storage means for storing a plurality of data, a storage means for storing the data read from the data storage means, and a data which meets a search condition from the data stored in the storage means. In a database device including a search unit, a pattern storage unit that stores a preset data set among a plurality of data stored in the data storage unit as a read pattern, and data extraction by the search unit Prior to the above, when a desired reading pattern is designated from the reading patterns stored in the pattern storing means, the recognizing means for recognizing the designated reading pattern and the recognizing means for recognizing the reading pattern are recognized. Only the data specified by the read pattern is read from the data storage means and stored in the storage means Database device characterized by comprising a reading means for.
【請求項2】 複数のデータを蓄積するデータ蓄積手段
と、 該データ蓄積手段から読み込まれるデータを格納する格
納手段と、 該格納手段に格納されたデータの中から検索条件に合う
データを抽出する検索手段とを具備するデータベース装
置を用いて行うデータベース検索方法であって、 前記データ蓄積手段に蓄積された複数のデータの中にお
ける任意のデータの集合を読み込みパターンとして設定
する処理と、 設定した読み込みパターンを前記複数のデータとともに
前記データ蓄積手段に記憶させる処理と、 前記データ蓄積手段に記憶させた読み込みパターンの中
から所望する読み込みパターンを指定する処理と、 指定した読み込みパターンによって特定されるデータの
みを前記データ蓄積手段から読み込んで前記格納手段に
格納させる処理と、 前記格納手段に格納したデータに対して前記検索条件に
合うか否かを判断する処理とからなることを特徴とする
データベース検索方法。
2. A data storage means for storing a plurality of data, a storage means for storing the data read from the data storage means, and a data matching the search condition from the data stored in the storage means. A database search method using a database device comprising a search means, comprising: setting a set of arbitrary data among a plurality of data stored in the data storage means as a read pattern; A process of storing a pattern in the data storage unit together with the plurality of data, a process of designating a desired read pattern from the read patterns stored in the data storage unit, and only data specified by the designated read pattern. Is read from the data storage means and stored in the storage means A database search method comprising: a process; and a process of determining whether or not the data stored in the storage means meets the search condition.
JP12947196A 1996-05-24 1996-05-24 Database device and database search method Expired - Fee Related JP3570082B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12947196A JP3570082B2 (en) 1996-05-24 1996-05-24 Database device and database search method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12947196A JP3570082B2 (en) 1996-05-24 1996-05-24 Database device and database search method

Publications (2)

Publication Number Publication Date
JPH09311801A true JPH09311801A (en) 1997-12-02
JP3570082B2 JP3570082B2 (en) 2004-09-29

Family

ID=15010319

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12947196A Expired - Fee Related JP3570082B2 (en) 1996-05-24 1996-05-24 Database device and database search method

Country Status (1)

Country Link
JP (1) JP3570082B2 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5856031A (en) * 1981-09-29 1983-04-02 Fujitsu Ltd Decision system for minimum working relation
JPH0259964A (en) * 1988-08-26 1990-02-28 Sony Corp Method for retrieving data base
JPH02236778A (en) * 1989-03-10 1990-09-19 Fujitsu Ltd Inquiry optimumization processing system
JPH04112253A (en) * 1990-08-31 1992-04-14 Nec Corp Data accessing method using multilayer buffer
JPH07230405A (en) * 1994-02-21 1995-08-29 Fuji Xerox Co Ltd Object-oriented data base management device
JPH08235218A (en) * 1995-02-24 1996-09-13 Nec Corp Division processing system for inquiry in object-oriented database management systm
JPH0962560A (en) * 1995-08-30 1997-03-07 Fuji Xerox Co Ltd Database device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5856031A (en) * 1981-09-29 1983-04-02 Fujitsu Ltd Decision system for minimum working relation
JPH0259964A (en) * 1988-08-26 1990-02-28 Sony Corp Method for retrieving data base
JPH02236778A (en) * 1989-03-10 1990-09-19 Fujitsu Ltd Inquiry optimumization processing system
JPH04112253A (en) * 1990-08-31 1992-04-14 Nec Corp Data accessing method using multilayer buffer
JPH07230405A (en) * 1994-02-21 1995-08-29 Fuji Xerox Co Ltd Object-oriented data base management device
JPH08235218A (en) * 1995-02-24 1996-09-13 Nec Corp Division processing system for inquiry in object-oriented database management systm
JPH0962560A (en) * 1995-08-30 1997-03-07 Fuji Xerox Co Ltd Database device

Also Published As

Publication number Publication date
JP3570082B2 (en) 2004-09-29

Similar Documents

Publication Publication Date Title
USRE39326E1 (en) Method and apparatus for suggesting completions for a partially entered data item based on previously-entered, associated data items
US6678687B2 (en) Method for creating an index and method for searching an index
US20040167917A1 (en) Database processing method and system
US5513348A (en) System for relational database retrieval through a link file built to access components of relational tables
JPH11224258A (en) Device and method for image retrieval and computer-readable memory
JPH09311801A (en) Data base device and data base retrieval method
JPH07146880A (en) Document retrieval device and method therefor
JP3016799B2 (en) Database query processing unit
JPH07334402A (en) Data base as main memory
JP2604787B2 (en) Two-dimensional data storage method
JP2938047B1 (en) Data buffering system
CN118312517A (en) Iceberg table structure management method, electronic equipment and storage medium
JPS63204434A (en) Electronic document retrieving device
CN115905326A (en) Meteorological grid data storage method and query method
JPH11161666A (en) Method and device for document data retrieval and document editing device
JPS633351A (en) Buffer retrieving control system
JPH1196050A (en) Data base management system
JP2000020527A (en) Retrieving system in data base
JPH11143749A (en) Relational database management system and data management method
JPH0388069A (en) Device for connecting storage medium
JP2003330957A (en) Set attribute retrieval system, method, and program
JPS6365572A (en) Image information storing and retrieving device
JPH11265375A (en) User's definition character managing device and storage medium
JPH08297571A (en) Method and device for software management
JPH05165891A (en) Data registration/retrieval system of data base

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040601

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040614

LAPS Cancellation because of no payment of annual fees