JPH06124219A - Data evaluation system - Google Patents

Data evaluation system

Info

Publication number
JPH06124219A
JPH06124219A JP4275615A JP27561592A JPH06124219A JP H06124219 A JPH06124219 A JP H06124219A JP 4275615 A JP4275615 A JP 4275615A JP 27561592 A JP27561592 A JP 27561592A JP H06124219 A JPH06124219 A JP H06124219A
Authority
JP
Japan
Prior art keywords
evaluation
expansion
expression
conditional expression
conditional
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
JP4275615A
Other languages
Japanese (ja)
Other versions
JP3574458B2 (en
Inventor
Takashi Kizuka
隆史 起塚
Kazuyoshi Kozai
一義 香西
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP27561592A priority Critical patent/JP3574458B2/en
Publication of JPH06124219A publication Critical patent/JPH06124219A/en
Application granted granted Critical
Publication of JP3574458B2 publication Critical patent/JP3574458B2/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

PURPOSE:To execute an evaluation processing at a high speed relating to a data evaluation system for generating an evaluation expansion expression by CNF expanding or DNF expanding an evaluation expression and performs a processing so as to evaluate whether the record of an evaluation object satisfies the conditions of the evaluation expansion expression or not. CONSTITUTION:Conditional expressions provided in the evaluation expansion expression are managed corresponding to a form for making them common for same ones and further, evaluated result storage areas 12 for storing sufficiency evaluated results for the conditional, expressions are provided. An evaluation mechanism 14 is provided with a storage means 141 for storing the sufficiency evaluated results for the conditional expressions provided in the evaluation expansion expression in the evaluated result storage areas 12 and a referring means 142 for referring to the corresponding evaluated result storage area 12 before starting the sufficiency evaluation of the conditional expressions and when the referring means 142 judges the storage of the sufficiency evaluated results, the evaluation processing is executed while utilizing the sufficiency evaluated results.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、評価式をCNF展開又
はDNF展開することで評価展開式を生成して、評価対
象のレコードがその評価展開式の条件を充足するか否か
を評価していくよう処理するデータ評価システムに関
し、特に、高速に評価処理を実行できるようにするデー
タ評価システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention generates an evaluation expansion expression by CNF expansion or DNF expansion of an evaluation expression and evaluates whether or not a record to be evaluated satisfies the condition of the evaluation expansion expression. BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data evaluation system that processes in a progressive manner, and particularly to a data evaluation system that enables high-speed evaluation processing.

【0002】リレーショナルデータベースでは、管理レ
コードの中から与えられた検索式を充足するレコードを
抽出していく検索処理を実行することになる。リレーシ
ョナルデータベースの有効利用を図るためにも、この検
索処理を高速で実行できるようにしていく必要がある。
In a relational database, a search process is executed to extract records satisfying a given search expression from the management records. In order to make effective use of the relational database, it is necessary to be able to execute this search processing at high speed.

【0003】[0003]

【従来の技術】リレーショナルデータベースは、図12
に示すように、表データT1を管理するときにあって、
ユーザから、C1項目の値が“20”を持ち、かつC2
項目の値が“30”を持つか、C3項目の値が“40”
を持ち、かつC4項目の値が“50”を持つレコードの
C5項目の値を検索せよという SELECT C5 FROM T1 WHERE (C1=20 AND C2=30) OR (C3=40 AND C4=50) という評価式が与えられると、表データT1から1つず
つレコードを読み出していって、その読み出したレコー
ドがこの評価式を充足しているか否かを評価して、この
評価式を充足するレコードの持つC5項目の値を検索結
果テーブルに格納していくという検索処理を実行する。
2. Description of the Related Art A relational database is shown in FIG.
As shown in, when managing the table data T1,
From the user, the value of the C1 item has "20" and C2
Item value has "30" or C3 item value is "40"
And the value of the C5 item of the record having the value of the C4 item is “50” SELECT C5 FROM T1 WHERE (C1 = 20 AND C2 = 30) OR (C3 = 40 AND C4 = 50) When an expression is given, records are read one by one from the table data T1, and it is evaluated whether or not the read record satisfies this evaluation expression, and C5 of the record that satisfies this evaluation expression is held. A search process of storing the item values in the search result table is executed.

【0004】この検索処理では、コンピュータで処理可
能とするために、AND結合/OR結合で記述されるW
HERE句部分の評価式を、CNF展開(括弧の中がO
R条件で記述されていて、それらの括弧がAND条件で
つながる条件展開形式)や、DNF展開(括弧の中がA
ND条件で記述されていて、それらの括弧がOR条件で
つながる条件展開形式)の展開形式に変換していく。
In this search processing, W is described by AND connection / OR connection so that it can be processed by a computer.
CNF expansion of the evaluation expression in the HERE clause (O in parentheses
It is described in R condition, and those parentheses are connected by AND condition. Conditional expansion format) or DNF expansion (A in parentheses is A.
It is described by the ND condition, and those parentheses are converted into the expansion form of the condition expansion form connected by the OR condition).

【0005】従来では、このCNF展開/DNF展開に
あって、評価展開式に記述される各条件式対応に条件式
内容を管理するという構成を採っていた。
Conventionally, in the CNF expansion / DNF expansion, the structure of managing the contents of the conditional expression corresponding to each conditional expression described in the evaluation expansion expression has been adopted.

【0006】[0006]

【発明が解決しようとする課題】CNF展開/DNF展
開は、評価式全体の条件を保持しながら一定の規則に従
った形式に変換するための展開方式であり、この展開方
式で生成される評価展開式は同一の条件式を複数持つ場
合がある。
The CNF expansion / DNF expansion is an expansion method for converting a format according to a certain rule while maintaining the conditions of the entire evaluation expression, and the evaluation generated by this expansion method. The expansion expression may have a plurality of the same conditional expressions.

【0007】しかしながら、このような従来技術に従っ
ていると、このようなときに、同一の条件式内容である
にもかかわらず、各条件式対応に別々に同一の条件式内
容が管理されるという構成が採られることになる。
However, according to such a conventional technique, in such a case, the same conditional expression content is managed separately for each conditional expression although the conditional expression content is the same. Will be taken.

【0008】これから、従来技術に従っていると、評価
展開式が同一の条件式を複数持つときに、読み出したレ
コードに対して、同一の条件式を何度も繰り返し評価し
ていくことになるという問題点があった。すなわち、従
来技術に従っていると、評価対象のレコードに対して検
索式を充足しているか否かを高速に評価できないという
問題点があったのである。
According to the conventional technique, when the evaluation expansion expression has a plurality of the same conditional expressions, the same conditional expression is repeatedly evaluated for the read record. There was a point. That is, according to the conventional technique, there is a problem that it is not possible to quickly evaluate whether or not the search expression is satisfied for the record to be evaluated.

【0009】本発明はかかる事情に鑑みてなされたもの
であって、評価式をCNF展開又はDNF展開すること
で評価展開式を生成して、評価対象のレコードがその評
価展開式の条件を充足するか否かを評価していくよう処
理するデータ評価システムにあって、この評価処理を高
速に実行できるようにする新たなデータ評価システムの
提供を目的とする。
The present invention has been made in view of such circumstances, and an evaluation expansion expression is generated by CNF expansion or DNF expansion of the evaluation expression, and the record to be evaluated satisfies the condition of the evaluation expansion expression. It is an object of the present invention to provide a new data evaluation system capable of executing this evaluation processing at high speed in a data evaluation system for performing processing to evaluate whether or not to perform.

【0010】[0010]

【課題を解決するための手段】図1に本発明の原理構成
を図示する。図中、1は本発明を具備するデータ処理装
置、2はデータ処理装置1の評価対象となるレコードを
管理するリレーショナルデータベース等のデータベース
である。
FIG. 1 shows the principle configuration of the present invention. In the figure, 1 is a data processing apparatus equipped with the present invention, and 2 is a database such as a relational database that manages records to be evaluated by the data processing apparatus 1.

【0011】データ処理装置1は、展開機構10と、評
価展開式管理域11と、評価結果格納域12と、読出機
構13と、評価機構14と、検索結果テーブル15とを
備える。
The data processing apparatus 1 comprises a development mechanism 10, an evaluation development formula management area 11, an evaluation result storage area 12, a reading mechanism 13, an evaluation mechanism 14, and a search result table 15.

【0012】展開機構10は、レコードに対しての評価
式をCNF展開又はDNF展開することで評価展開式を
生成する。評価展開式管理域11は、展開機構10の生
成した評価展開式を管理する。評価展開式管理域11
は、この管理処理を実行するために、生成された評価展
開式の持つ条件式を同一のものについては共通化する態
様に従いつつ管理する構成を採る条件式管理域110
と、評価展開式の持つ条件式の実行関係を条件式に対し
ての充足評価結果に応じて管理するとともに、その実行
関係から導出される評価展開式に対しての最終的な評価
結果を管理する構成を採る条件式評価ブロック111と
を備える。
The expansion mechanism 10 generates an evaluation expansion expression by CNF expansion or DNF expansion of the evaluation expression for the record. The evaluation expansion formula management area 11 manages the evaluation expansion formula generated by the expansion mechanism 10. Evaluation deployment management area 11
In order to execute this management process, the conditional expression management area 110 is configured to manage the conditional expressions of the generated evaluation expansion expressions according to a common mode for the same one.
And the execution relation of the conditional expression of the evaluation expansion expression is managed according to the satisfaction evaluation result for the conditional expression, and the final evaluation result for the evaluation expansion expression derived from the execution relationship is managed. And a conditional expression evaluation block 111 having the above configuration.

【0013】評価結果格納域12は、条件式管理域11
0に対応して備えられて、条件式管理域110に管理さ
れる条件式に対しての充足評価結果を格納する。読出機
構13は、データベース2から評価対象のレコードを読
み出す。
The evaluation result storage area 12 is a conditional expression management area 11
The condition evaluation management area 110 is provided corresponding to 0 and stores the satisfaction evaluation result for the conditional expression managed by the conditional expression management area 110. The reading mechanism 13 reads the record to be evaluated from the database 2.

【0014】評価機構14は、評価対象のレコードが評
価展開式の規定する条件を充足しているか否かを評価す
る。この評価機構14は、この評価処理を実行するため
に、条件式管理域110に管理される条件式を充足する
か否かを評価する構成を採る評価手段140と、評価手
段140の評価結果を対応の評価結果格納域12に格納
する構成を採る格納手段141と、評価結果格納域12
の評価結果を参照する構成を採る参照手段142とを備
える。
The evaluation mechanism 14 evaluates whether the record to be evaluated satisfies the condition defined by the evaluation expansion formula. In order to execute this evaluation processing, the evaluation mechanism 14 evaluates the evaluation means 140 configured to evaluate whether or not the conditional expression managed by the conditional expression management area 110 is satisfied, and the evaluation result of the evaluation means 140. A storage unit 141 having a configuration of storing in the corresponding evaluation result storage area 12, and an evaluation result storage area 12
And a reference unit 142 configured to refer to the evaluation result of 1.

【0015】検索結果テーブル15は、評価機構14の
評価結果を格納する。
The search result table 15 stores the evaluation result of the evaluation mechanism 14.

【0016】[0016]

【作用】本発明では、評価展開式管理域11は、展開機
構10が評価式をCNF展開又はDNF展開することで
評価展開式を生成すると、この生成された評価展開式に
対応する条件式管理域110/条件式評価ブロック11
1を生成することで、この生成された評価展開式を管理
する構成を採る。このとき、評価展開式管理域11は、
生成された評価展開式が同一の条件式を複数持つ場合に
は、その条件式を共通化して管理するように条件式管理
域110を生成する構成を採る。
In the present invention, when the expansion mechanism 10 generates an evaluation expansion expression by CNF expansion or DNF expansion of the evaluation expression, the evaluation expansion expression management area 11 manages the conditional expression corresponding to the generated evaluation expansion expression. Area 110 / conditional expression evaluation block 11
By generating 1, the configuration for managing the generated evaluation expansion formula is adopted. At this time, the evaluation expansion management area 11
When the generated evaluation expansion expressions have a plurality of the same conditional expressions, the conditional expression management area 110 is generated so that the conditional expressions are managed in common.

【0017】このようにして、評価展開式が評価展開式
管理域11に管理されると、評価機構14の評価手段1
40は、読出機構13の読み出す評価対象のレコードを
使って条件式評価ブロック111の管理データをトレー
スしていくことで、評価対象のレコードが評価展開式を
充足するか否かを判断していく。このとき、格納手段1
41は、評価展開式の持つ条件式に対しての充足評価結
果を対応の評価結果格納域12に格納していき、参照手
段142は、評価手段140が評価展開式の持つ条件式
の充足評価処理に入る前、対応の評価結果格納域12を
参照して、既に充足評価結果が格納されている場合に
は、その充足評価結果を評価手段140に通知するとと
もに、格納されていない場合には、その旨を評価手段1
40に通知していく。
When the evaluation expansion formula is managed in the evaluation expansion formula management area 11 in this way, the evaluation means 1 of the evaluation mechanism 14
The reference numeral 40 traces the management data of the conditional expression evaluation block 111 using the evaluation target record read by the reading mechanism 13 to determine whether or not the evaluation target record satisfies the evaluation expansion expression. . At this time, the storage means 1
41 stores the satisfaction evaluation result for the conditional expression of the evaluation expansion expression in the corresponding evaluation result storage area 12, and the reference means 142 evaluates the satisfaction of the conditional expression of the evaluation expansion expression of the evaluation means 140. Before entering the processing, the corresponding evaluation result storage area 12 is referred to, if the satisfaction evaluation result is already stored, the evaluation means 140 is notified of the satisfaction evaluation result, and if not stored. , That means evaluation means 1
40 will be notified.

【0018】そして、評価手段140は、この参照手段
142からの通知を受けて、既に条件式の充足評価処理
を終了しているものについては、その条件式についての
充足評価処理を省略して、参照手段142から通知され
る充足評価結果を利用しつつ、条件式評価ブロック11
1の管理データをトレースしていくことで評価展開式を
充足するか否かを判断していく。
When the evaluation means 140 receives the notification from the reference means 142 and omits the satisfaction evaluation processing of the conditional expression, the satisfaction evaluation processing for the conditional expression is omitted. The conditional expression evaluation block 11 is used while using the satisfaction evaluation result notified from the reference unit 142.
By tracing the management data of No. 1, it is judged whether or not the evaluation expansion formula is satisfied.

【0019】このように、本発明では、評価式をCNF
展開又はDNF展開することで評価展開式を生成して、
評価対象のレコードがその評価展開式の条件を充足する
か否かを評価していくときにあって、評価展開式が同一
の条件式を複数持つときには、その条件式に対しての充
足評価処理を1回のみ実行して、後はその充足評価処理
の結果を利用するように構成するものであることから、
従来よりも高速に評価対象のレコードが評価展開式の条
件を充足するか否かを評価できるようになる。
As described above, in the present invention, the evaluation formula is CNF.
Generate an evaluation expansion expression by expanding or DNF expansion,
When evaluating whether or not the record to be evaluated satisfies the condition of the evaluation expansion expression, and when the evaluation expansion expression has multiple identical conditional expressions, the satisfaction evaluation process for that conditional expression Is configured to be executed only once, and the result of the satisfaction evaluation process is used thereafter.
It becomes possible to evaluate whether or not the record to be evaluated satisfies the condition of the evaluation expansion formula faster than before.

【0020】[0020]

【実施例】以下、リレーショナルデータベースに適用し
た実施例に従って本発明を詳細に説明する。
EXAMPLES The present invention will be described in detail below with reference to examples applied to a relational database.

【0021】図1で説明した展開機構10は、検索式と
して表される評価式をCNF展開又はDNF展開するこ
とで評価展開式を生成する。図2に、展開機構10の実
行するCNF展開処理の処理フローを図示する。
The expansion mechanism 10 described with reference to FIG. 1 generates an evaluation expansion expression by CNF expansion or DNF expansion of the evaluation expression represented as a search expression. FIG. 2 illustrates a processing flow of the CNF expansion processing executed by the expansion mechanism 10.

【0022】この図2の処理フローに示すように、展開
機構10は、先ず最初に、ステップ1で、評価式を記述
形式で表現する。例えば、評価式が ((条件式 and 条件式) or (条件式 and (条件式 or 条件式 or 条件式))) and 条件式 である場合には、図3に示すようなAND結合ブロック
/OR結合ブロックのつながりの記述形式で表現するの
である。
As shown in the processing flow of FIG. 2, the expansion mechanism 10 first expresses the evaluation expression in a description format in step 1. For example, when the evaluation expression is ((conditional expression and conditional expression) or (conditional expression and (conditional expression or conditional expression or conditional expression))) and conditional expression, AND combination block / OR as shown in FIG. It is expressed in the form of a description of the connection of connected blocks.

【0023】次に、ステップ2で、記述形式中に現れる
AND結合ブロック/OR結合ブロックを単純な形式の
AND結合/OR結合に展開する。図4に、ANDブロ
ックの展開処理、図5に、ORブロックの展開処理を図
示する。このAND結合/OR結合への展開処理は、図
4及び図5の展開処理を再帰的に呼び出すことで実行す
ることになる。ここで、図4(a)は、「(条件式 a
nd 条件式)」を例にし、図4(b)は、「(条件式
or 条件式)and 条件式」を例にし、図5(a)
は、「(条件式 or 条件式)」を例にし、図5
(b)は、「(条件式 and 条件式)or(条件式
and 条件式)を例にしている。
Next, in step 2, the AND connection block / OR connection block appearing in the description format is expanded into a simple format AND connection / OR connection. FIG. 4 illustrates an AND block expansion process, and FIG. 5 illustrates an OR block expansion process. The expansion processing to the AND connection / OR connection is executed by recursively calling the expansion processing of FIGS. 4 and 5. Here, in FIG. 4A, “(conditional expression a
nd conditional expression) ”as an example, FIG. 4B shows“ (conditional expression)
or conditional expression) and conditional expression "as an example, and FIG.
Is an example of "(conditional expression or conditional expression)"
(B) is "(conditional expression and conditional expression) or (conditional expression
and conditional expression) is taken as an example.

【0024】この図4(a)に示すように、AND結合
ブロックの展開は、AND結合の条件式を縦方向のポイ
ンタで接続することで実行するものであり、また、図4
(b)に示すように、条件式ブロックの代わりにOR結
合ブロックがポイントされている場合には、OR結合の
展開処理を呼び出し、OR結合を展開した後にAND結
合の条件式を縦方向のポインタで接続することで実行す
る。
As shown in FIG. 4A, the expansion of the AND connection block is executed by connecting the conditional expressions of the AND connection with vertical pointers.
As shown in (b), when the OR join block is pointed instead of the conditional expression block, the OR join expansion process is called, the OR join is expanded, and then the AND join conditional expression is set to the vertical pointer. Run by connecting with.

【0025】そして、この図5(a)に示すように、O
Rブロックの展開は、OR結合の条件式を横方向のポイ
ンタで接続することで実行するものであり、また、図5
(b)に示すように、AND結合がポイントされている
場合には、AND結合の条件式の直積を求めて横方向の
ポインタで接続することで実行する。但し、条件式ブロ
ックの代わりにAND結合ブロックがポイントされてい
る場合には、AND結合の展開処理を呼び出し、AND
結合を展開した後に条件式の直積を求めて横方向のポイ
ンタで接続することで実行する。
Then, as shown in FIG.
The expansion of the R block is executed by connecting the conditional expressions of the OR connection with a horizontal pointer, and FIG.
As shown in (b), when the AND connection is pointed, the Cartesian product of the conditional expressions of the AND connection is obtained and connected by a horizontal pointer. However, if the AND connection block is pointed instead of the conditional expression block, the AND connection expansion process is called to
It is executed by expanding the join, obtaining the direct product of the conditional expressions, and connecting with the horizontal pointer.

【0026】このステップ2の展開処理を実行すると、
図3に示した記述形式は図6に示すようなものに展開さ
れることになる。続いて、ステップ3で、ステップ2の
処理に従って展開された各レベルのAND結合を切断す
ることでCNF展開形式に変換する。この切断処理は、
「(条件式 or (条件式 and 条件式)」を例に
する図7に示すように、MレベルのAND結合を切断す
る場合には、1レベル上位の条件式ブロックを複写して
Mレベルの条件式ブロックとOR結合で接続することで
実行する。
When the expansion process of step 2 is executed,
The description format shown in FIG. 3 is expanded to that shown in FIG. Then, in step 3, the AND connection of each level expanded according to the process of step 2 is cut to convert it into the CNF expansion format. This disconnection process
As shown in FIG. 7, which takes “(conditional expression or (conditional expression and conditional expression)” as an example, when disconnecting an M level AND connection, a conditional expression block one level higher is copied to obtain an M level logical block. It is executed by connecting the conditional expression block with an OR connection.

【0027】このようにして、展開機構10は、図2の
処理フローを実行することで、評価式をCNF展開する
ことで評価展開式を生成するのである。図8に、展開機
構10により生成される ((条件式 and 条件式) or (条件式 and (条件式 or 条件式 or 条件式))) and 条件式 という評価式に対しての評価展開式である (条件式 or 条件式) and (条件式 or 条件式 or 条件式 or 条件式) and (条件式 or 条件式) and (条件式 or 条件式 or 条件式 or 条件式) and (条件式) を図示する。
In this way, the expansion mechanism 10 executes the processing flow of FIG. 2 to perform CNF expansion of the evaluation expression to generate the evaluation expansion expression. FIG. 8 shows an evaluation expansion expression for an evaluation expression ((conditional expression and conditional expression) or (conditional expression and (conditional expression or conditional expression or conditional expression))) and conditional expression generated by the expansion mechanism 10. And (conditional expression or conditional expression) and (conditional expression or conditional expression or conditional expression or conditional expression) and (conditional expression or conditional expression) and (conditional expression or conditional expression or conditional expression or conditional expression) and (conditional expression) Illustrate.

【0028】図1で説明したように、評価展開式管理域
11は、展開機構10が評価展開式を生成すると、この
生成された評価展開式に対応する条件式管理域110/
条件式評価ブロック111を生成することで、この生成
された評価展開式を管理する構成を採る。このとき、評
価展開式管理域11は、生成された評価展開式が同一の
条件式を複数持つ場合には、その条件式を共通化して管
理するように条件式管理域110を生成する構成を採
る。そして、この条件式管理域110に対応して、評価
結果格納域12が生成されることになる。
As described with reference to FIG. 1, when the expansion mechanism 10 generates an evaluation expansion expression, the evaluation expansion expression management area 11 has a conditional expression management area 110 / which corresponds to the generated evaluation expansion expression.
By generating the conditional expression evaluation block 111, a configuration for managing the generated evaluation expansion expression is adopted. At this time, the evaluation expansion expression management area 11 is configured to generate the conditional expression management area 110 so as to manage the conditional expressions in common when the generated evaluation expansion expressions have a plurality of identical conditional expressions. take. Then, the evaluation result storage area 12 is generated corresponding to the conditional expression management area 110.

【0029】図9に、図8の評価展開式により生成され
る条件式管理域110、条件式評価ブロック111及び
評価結果格納域12の一実施例を図示する。ここで、条
件式評価ブロック111の「真」欄は、評価対象のレコ
ードがその条件式に対して真値を示すときに次に実行す
る条件式のエントリー番号を表しており、「偽」欄は、
評価対象のレコードがその条件式に対して偽値を示すと
きに次に実行する条件式のエントリー番号を表してい
る。また、「真」欄に「ー」が登録されているときに
は、評価対象のレコードが評価展開式の条件を充足する
ことを表しており、「偽」欄に「ー」が登録されている
ときには、評価対象のレコードが評価展開式の条件を充
足しないことを表している。
FIG. 9 shows an embodiment of the conditional expression management area 110, the conditional expression evaluation block 111 and the evaluation result storage area 12 generated by the evaluation expansion expression of FIG. Here, the “true” column of the conditional expression evaluation block 111 represents the entry number of the conditional expression to be executed next when the record to be evaluated shows a true value for the conditional expression, and the “false” field. Is
It represents the entry number of the conditional expression to be executed next when the record to be evaluated shows a false value for that conditional expression. When "-" is registered in the "true" column, it means that the record to be evaluated satisfies the condition of the evaluation expansion formula, and when "-" is registered in the "false" column, it means that the record is evaluated. , The record to be evaluated does not satisfy the condition of the evaluation expansion formula.

【0030】図1で説明したように、評価機構14は、
評価対象のレコードを使って条件式評価ブロック111
の管理データをトレースしていくことで、評価対象のレ
コードが評価展開式を充足するか否かを判断していくよ
う処理することになる。
As described with reference to FIG. 1, the evaluation mechanism 14 is
Conditional expression evaluation block 111 using the record to be evaluated
By tracing the management data of, it is determined whether or not the record to be evaluated satisfies the evaluation expansion formula.

【0031】図10に、この評価機構14の実行する処
理フローの一実施例を図示する。次に、この処理フロー
に従って、本発明の実行する評価処理の一実施例につい
て詳細に説明する。
FIG. 10 illustrates an example of a processing flow executed by the evaluation mechanism 14. Next, according to this processing flow, one embodiment of the evaluation processing executed by the present invention will be described in detail.

【0032】評価機構14は、読出機構13から評価対
象のレコードを受け取ると、図10の処理フローに示す
ように、先ず最初に、ステップ1で、評価結果格納域1
2を初期化する。次に、ステップ2で、条件式評価ブロ
ック111のエントリー番号を表示することになる変数
Nに“1”を設定する。続いて、ステップ3で、N番目
のエントリーの条件式に対応付けられる評価結果格納域
12に充足評価結果が格納されているか否かを判断す
る。
When the evaluation mechanism 14 receives the record to be evaluated from the reading mechanism 13, as shown in the processing flow of FIG. 10, first, in step 1, the evaluation result storage area 1
Initialize 2. Next, at step 2, "1" is set to the variable N which displays the entry number of the conditional expression evaluation block 111. Subsequently, in step 3, it is determined whether or not a satisfactory evaluation result is stored in the evaluation result storage area 12 associated with the conditional expression of the Nth entry.

【0033】このステップ3の判断で、評価済でない条
件式であると判断するときには、ステップ4に進んで、
評価対象のレコードがN番目のエントリーの条件式を充
足するか否かを評価して、続くステップ5で、その評価
結果を対応の評価結果格納域12に格納する。一方、ス
テップ3の判断で、評価済の条件式であると判断すると
きには、ステップ6に進んで、N番目のエントリーの条
件式に対応付けられる評価結果格納域12から評価結果
を取得する。
When it is determined in step 3 that the conditional expression has not been evaluated, the process proceeds to step 4,
It is evaluated whether or not the record to be evaluated satisfies the conditional expression of the Nth entry, and in the subsequent step 5, the evaluation result is stored in the corresponding evaluation result storage area 12. On the other hand, when it is determined in step 3 that the conditional expression has been evaluated, the process proceeds to step 6 and the evaluation result is acquired from the evaluation result storage area 12 associated with the conditional expression of the Nth entry.

【0034】ステップ5/ステップ6の処理を終了する
と、続いて、ステップ7で、得られた評価結果が「真」
を表示しているのか、「偽」を表示しているかを判断し
て、「真」を表示していると判断するときには、ステッ
プ8に進んで、条件式評価ブロック111の「真」欄に
登録されているエントリー番号を変数Nに設定し、
「偽」表示していると判断するときには、ステップ9に
進んで、条件式評価ブロック111の「偽」欄に登録さ
れているエントリー番号を変数Nに設定する。
When the processing of step 5 / step 6 is completed, subsequently, in step 7, the obtained evaluation result is "true".
Is displayed or "false" is displayed, and when it is determined that "true" is displayed, the process proceeds to step 8 and the "true" column of the conditional expression evaluation block 111 is displayed. Set the registered entry number to the variable N,
When it is determined that "false" is displayed, the process proceeds to step 9, and the entry number registered in the "false" column of the conditional expression evaluation block 111 is set in the variable N.

【0035】このステップ8/ステップ9の処理で、
「真」/「偽」欄にエントリー番号が登録されておらず
に「ー」が登録されていることがあるので、続くステッ
プ10で、この「ー」が登録されているか否かを判断し
て、「ー」が登録されていないとき、すなわちエントリ
ー番号が登録されているときには、ステップ3に戻って
いく。
In the processing of step 8 / step 9,
In some cases, the entry number is not registered in the "true" / "false" column but "-" is registered, so in step 10 that follows, it is determined whether or not this "-" is registered. If "-" is not registered, that is, if the entry number is registered, the process returns to step 3.

【0036】一方、「ー」が登録されていると判断する
ときには、ステップ11に進んで、その「ー」が「真」
欄に登録されているのか、「偽」欄に登録されているの
かを判断して、「真」欄に登録されていると判断すると
きには、ステップ12に進んで、評価対象のレコードが
評価展開式の条件を充足することを判断し、「偽」欄に
登録されていると判断するときには、ステップ13に進
んで、評価対象のレコードが評価展開式の条件を充足し
ないことを判断して処理を終了する。
On the other hand, when it is judged that "-" is registered, the process proceeds to step 11 and the "-" is "true".
If it is registered in the "false" column and if it is registered in the "true" column, the process proceeds to step 12, and the record to be evaluated is developed. When it is determined that the condition of the expression is satisfied and it is determined that the condition is registered in the “false” column, the process proceeds to step 13 and it is determined that the record of the evaluation target does not satisfy the condition of the evaluation expansion formula To finish.

【0037】このようにして、評価機構14は、評価展
開式が同一の条件式を複数持つときには、その条件式に
対しての充足評価処理については1回のみ実行して、後
はその充足評価処理の結果を利用するように処理してい
くことで、評価対象のレコードが評価展開式の条件を充
足するか否かを判断していくよう処理する。これに対し
て、従来技術では、図11に示すように、評価展開式に
複数の同一の条件式が記述されるときにあっても、これ
を共通化して管理する構成を採らないことから、同一の
条件式に対して充足評価処理を繰り返していくという構
成を採っていた。これから、本発明に従うことで、従来
技術よりも高速に評価展開式の条件を充足するか否かを
評価できるようになる。
In this way, when the evaluation expansion expression has a plurality of conditional expressions that are the same, the evaluation mechanism 14 executes the satisfaction evaluation processing for the conditional expression only once, and then performs the satisfaction evaluation. By performing the processing so as to use the processing result, it is determined whether or not the evaluation target record satisfies the condition of the evaluation expansion expression. On the other hand, in the conventional technique, as shown in FIG. 11, even when a plurality of the same conditional expressions are described in the evaluation expansion expression, the common management of these expressions is not adopted. The configuration has been adopted in which the satisfaction evaluation process is repeated for the same conditional expression. From this, according to the present invention, it becomes possible to evaluate whether or not the condition of the evaluation expansion formula is satisfied, faster than in the conventional technique.

【0038】図示実施例について説明したが、本発明は
これに限定されるものではない。例えば、実施例ではC
NF展開された評価展開式に従って本発明を開示した
が、DNF展開された評価展開式に対してもそのまま適
用できる。また、実施例ではリレーショナルデータベー
スの検索処理に適用した実施例に従って本発明を開示し
たが、データベースの検索処理に限られることなく、あ
らゆるデータの評価システムにそのまま適用できる。
Although the illustrated embodiment has been described, the present invention is not limited to this. For example, in the embodiment, C
Although the present invention has been disclosed according to the NF-expanded evaluation expansion formula, the present invention is also applicable to the DNF-expanded evaluation expansion formula. Further, although the present invention has been disclosed according to the embodiment applied to the search processing of the relational database in the embodiment, the present invention is not limited to the search processing of the database, and can be applied as it is to an evaluation system for all data.

【0039】[0039]

【発明の効果】以上説明したように、本発明によれば、
評価式をCNF展開又はDNF展開することで評価展開
式を生成して、評価対象のレコードがその評価展開式の
条件を充足するか否かを評価していくよう処理するデー
タ評価システムにあって、この評価処理を高速に実行で
きるようになる。
As described above, according to the present invention,
A data evaluation system that processes an evaluation expansion expression by CNF expansion or DNF expansion of the evaluation expression and evaluates whether or not the record to be evaluated satisfies the condition of the evaluation expansion expression. , This evaluation process can be executed at high speed.

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

【図1】本発明の原理構成図である。FIG. 1 is a principle configuration diagram of the present invention.

【図2】展開機構の実行する処理フローである。FIG. 2 is a processing flow executed by a deployment mechanism.

【図3】CNF展開処理の説明図である。FIG. 3 is an explanatory diagram of CNF expansion processing.

【図4】CNF展開処理の説明図である。FIG. 4 is an explanatory diagram of CNF expansion processing.

【図5】CNF展開処理の説明図である。FIG. 5 is an explanatory diagram of CNF expansion processing.

【図6】CNF展開処理の説明図である。FIG. 6 is an explanatory diagram of CNF expansion processing.

【図7】CNF展開処理の説明図である。FIG. 7 is an explanatory diagram of CNF expansion processing.

【図8】CNF展開処理の説明図である。FIG. 8 is an explanatory diagram of CNF expansion processing.

【図9】評価展開式管理域の一実施例である。FIG. 9 is an example of an evaluation expansion management area.

【図10】評価機構の実行する処理フローの一実施例で
ある。
FIG. 10 is an example of a processing flow executed by the evaluation mechanism.

【図11】従来技術の説明図である。FIG. 11 is an explanatory diagram of a conventional technique.

【図12】検索処理の説明図である。FIG. 12 is an explanatory diagram of a search process.

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

1 データ処理装置 2 データベース 10 展開機構 11 評価展開式管理域 12 評価結果格納域 13 読出機構 14 評価機構 15 検索結果テーブル 110 条件式管理域 111 条件式評価ブロック 140 評価手段 141 格納手段 142 参照手段 1 Data Processing Device 2 Database 10 Expansion Mechanism 11 Evaluation Expansion Expression Management Area 12 Evaluation Result Storage Area 13 Reading Mechanism 14 Evaluation Mechanism 15 Search Result Table 110 Conditional Expression Management Area 111 Conditional Expression Evaluation Block 140 Evaluation Means 141 Storage Means 142 Reference Means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 評価式をCNF展開又はDNF展開する
ことで評価展開式を生成する展開機構(10)と、評価対象
のレコードが該評価展開式の条件を充足するか否かを評
価する評価機構(14)とを備えるデータ評価システムにお
いて、 上記評価展開式に記述される条件式を同一のものについ
ては共通化する態様に従いつつ管理する構成を採り、更
に、該条件式に対応付けて、該条件式に対しての充足評
価結果を格納する評価結果格納域(12)を備える構成を採
り、 かつ、上記評価機構(14)は、上記評価展開式の持つ条件
式に対しての充足評価結果を対応の上記評価結果格納域
(12)に格納する格納手段(141) と、条件式の充足評価処
理に入る前に、対応の上記評価結果格納域(12)を参照す
る参照手段(142) とを備えて、該参照手段(142) が充足
評価結果の格納を判断するときには、その充足評価結果
を利用しつつ評価処理を実行していくよう処理すること
を、 特徴とするデータ評価システム。
1. An expansion mechanism (10) for generating an evaluation expansion expression by CNF expansion or DNF expansion of the evaluation expression, and an evaluation for evaluating whether or not a record to be evaluated satisfies a condition of the evaluation expansion expression. In the data evaluation system including the mechanism (14), the conditional expression described in the evaluation expansion expression is managed while following the common mode for the same conditional expression, and further, in association with the conditional expression, The evaluation result storage area (12) for storing the satisfied evaluation result for the conditional expression is adopted, and the evaluation mechanism (14) is configured to satisfy the conditional expression of the evaluation expansion expression. Storage area for the above evaluation results corresponding to the results
A storage means (141) for storing in (12) and a reference means (142) for referring to the corresponding evaluation result storage area (12) before starting the satisfaction evaluation processing of the conditional expression are provided. A data evaluation system characterized in that, when (142) decides to store the satisfaction evaluation result, the evaluation process is executed while utilizing the satisfaction evaluation result.
JP27561592A 1992-10-14 1992-10-14 Data evaluation system Expired - Fee Related JP3574458B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27561592A JP3574458B2 (en) 1992-10-14 1992-10-14 Data evaluation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27561592A JP3574458B2 (en) 1992-10-14 1992-10-14 Data evaluation system

Publications (2)

Publication Number Publication Date
JPH06124219A true JPH06124219A (en) 1994-05-06
JP3574458B2 JP3574458B2 (en) 2004-10-06

Family

ID=17557925

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27561592A Expired - Fee Related JP3574458B2 (en) 1992-10-14 1992-10-14 Data evaluation system

Country Status (1)

Country Link
JP (1) JP3574458B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01244528A (en) * 1988-03-25 1989-09-28 Fujitsu Ltd Data base inquiry expression processing system
JPH02130673A (en) * 1988-11-10 1990-05-18 Chubu Nippon Denki Software Kk Data retrieving system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01244528A (en) * 1988-03-25 1989-09-28 Fujitsu Ltd Data base inquiry expression processing system
JPH02130673A (en) * 1988-11-10 1990-05-18 Chubu Nippon Denki Software Kk Data retrieving system

Also Published As

Publication number Publication date
JP3574458B2 (en) 2004-10-06

Similar Documents

Publication Publication Date Title
CN115328894A (en) Data processing method based on data blood margin
CN112507133A (en) Method, device, processor and storage medium for realizing association search based on financial product knowledge graph
Franciscatto et al. Querying multidimensional big data through a chatbot system
JPH06124219A (en) Data evaluation system
JPH06215037A (en) Automatic updating device for index
JPH07306862A (en) Information retrieving method
KR100412964B1 (en) Method and apparatus for preparing a logic simulation model and recording medium for storing the same
CN113064588B (en) Command arranging method, device and computer readable medium
JP2639804B2 (en) Database search device
JP4298333B2 (en) Satisfiable solution enumeration system
JPH04163671A (en) Drawing retrieving system
JP3305782B2 (en) Software standardization method and software product analysis method
JP2605402B2 (en) Data derivation method in dictionary system
JP2000122855A (en) Method and device for giving data name and recording medium
JP2001034634A (en) Data base retrieval system and program recording medium for the system
JPH0749880A (en) Data base access request device
JPH07105223A (en) Data base retrieval device
JPH1031603A (en) Information processing system, client-server system and database access method
JP2724235B2 (en) Variable name inference device
CN117112559A (en) Method, apparatus, device and medium for managing vector data sets
JPH1074208A (en) Document processor and system, and method therefor
JP2001154890A (en) Rdb data caching system and recording medium
JPH06274332A (en) Registration/retrieval method for program parts
JPH04276828A (en) Hypothesis management method for knowledge processing system
JPH1063661A (en) Thesaurus data managing method

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20030715

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: 20040629

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040702

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080709

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090709

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees