JPH0736921A - Disk data retrieval system - Google Patents
Disk data retrieval systemInfo
- Publication number
- JPH0736921A JPH0736921A JP5182355A JP18235593A JPH0736921A JP H0736921 A JPH0736921 A JP H0736921A JP 5182355 A JP5182355 A JP 5182355A JP 18235593 A JP18235593 A JP 18235593A JP H0736921 A JPH0736921 A JP H0736921A
- Authority
- JP
- Japan
- Prior art keywords
- record
- bit
- relative
- registered
- 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.)
- Withdrawn
Links
- 239000002131 composite material Substances 0.000 claims abstract description 8
- 230000008520 organization Effects 0.000 claims description 28
- 238000000034 method Methods 0.000 claims description 13
- 230000010365 information processing Effects 0.000 claims description 2
- 239000000203 mixture Substances 0.000 abstract 5
- 150000001875 compounds Chemical class 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 238000013500 data storage Methods 0.000 description 3
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明はディスクデータ検索方
式、特にディスクに格納したデータの短時間検索レスポ
ンスと検索条件にヒットする全件数の通知とが得られる
ディスクデータ検索方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a disk data search method, and more particularly to a disk data search method that can obtain a short-time search response of data stored on a disk and a notification of the total number of hits of search conditions.
【0002】[0002]
【従来の技術】従来、ディスク上へのデータ格納方式お
よびそのデータの検索方式は数多く存在し、それぞれの
利適を生かして適用されている。しかしアプリケーショ
ンレベルにおいて検索レスポンスタイムの短さと、検索
条件にヒットするデータの全件数の把握とを兼ね備えた
方法は存在しない。2. Description of the Related Art Conventionally, there are many methods of storing data on a disk and methods of retrieving the data, and they are applied by making the best use of each method. However, at the application level, there is no method that combines a short search response time and the total number of data items that match the search conditions.
【0003】[0003]
【発明が解決しようとする課題】上述したように従来の
ディスクデータ検索方式では、検索を行なう際に同時に
検索条件にヒットする全件数の把握ができないので、検
索条件にヒットするデータの全件数を把握するために
は、新たにアプリケーションが必要となる。また、この
新たなアプリケーションは検索条件にヒットするデータ
の全件数の把握を行なうシステムごとに必要となるた
め、多大な開発工数がかかるという問題点があり、更
に、このアプリケーションを組込んだ場合に、検索レス
ポンスタイムが長くなるという欠点がある。As described above, in the conventional disk data search method, it is not possible to grasp the total number of hits for the search condition at the same time when the search is performed, so the total number of data hits for the search condition cannot be calculated. A new application is required to understand. In addition, this new application is required for each system that keeps track of the total number of data items that match the search conditions, which requires a great deal of development man-hours. However, there is a drawback that the search response time becomes long.
【0004】[0004]
【課題を解決するための手段】本発明のディスクデータ
検索方式は、ディスクシステムを利用した情報処理シス
テムのディスクデータ検索方式において、登録するレコ
ードを相対編成ファイルに登録すると共に、この相対編
成ファイルに登録したレコードに対する相対キーをビッ
トフィールドの相対位置で示すビットレコードとして、
登録したレコードのそれぞれのキーとビットレコードと
組合せて少なくとも1組の索引編成ファイルを作成する
レコード登録手段と、複合条件による検索時に、それぞ
れの検索条件に合うビットフィールドをそれぞれの前記
索引編成ファイルから索引部を介してランダムアクセス
により読出す読出し手段と、複合条件がANDである場
合は前記読出し手段から読出されたビットフィールドの
論理積をとり、複合条件がORである場合は前記読出し
手段から読出されたビットフィールドの論理和をとる演
算手段と、この演算手段により演算された結果のビット
フィールドのビット“1”の位置から前記相対編成ファ
イルを検索し、ビット“1”の数を検索条件にヒットす
るレコードの件数とする検索手段とを有することにより
構成される。According to the disk data search method of the present invention, in the disk data search method of an information processing system using a disk system, a record to be registered is registered in a relative organization file and the relative organization file is stored in the relative organization file. As a bit record that indicates the relative key to the registered record by the relative position of the bit field,
A record registration means for creating at least one set of index organization files by combining each key and bit record of the registered records, and a bit field matching each search condition from each of the index organization files at the time of searching by the compound condition. When the composite condition is AND, the bit field read from the read means is ANDed, and when the composite condition is OR, the read means is read from the read means. The relative organization file is searched from the arithmetic means for taking the logical sum of the generated bit fields and the position of bit "1" of the bit field of the result calculated by this arithmetic means, and the number of bits "1" is used as the search condition. It is constituted by having a search means for setting the number of hit records.
【0005】[0005]
【実施例】次に、本発明について図面を参照して説明す
る。DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.
【0006】図1は、本発明の一実施例に必要となるデ
ィスクデータ格納方式を説明するための図である。この
ディスクデータ格納方式は、ディスク上に最低2種類の
ファイルが準備される。一つは相対編成ファイルで、登
録されたレコードイメージを格納する。他の一つまたは
複数は索引編成ファイルで、レコードの1項目の値をキ
ーにし、データ部には相対編成ファイルの相対キーに相
当するビットフィールドを格納する。図1(a)はレコ
ードの一例を示す図で、三つのデータ項目でそのうちの
第1,第2の項目がキーとなる場合を示している。図1
(b)は相対編成ファイルの例を示す図で、図1(a)
と同形式のレコードを格納した場合を示している。図1
(c)および(d)は索引編成ファイルのデータ部の例
を示す図で、図1(c)では図1(b)のレコードのX
フィールドの値をキーとして、ビットフィールドには相
対編成ファイルの何番目に格納されているかをビットフ
ィールドの相対位置で表わしている。図1(d)では図
1(b)のレコードのYフィールドの値をキーとして、
Xフィールドと同様に構成する。なお、レコードの登録
・更新・削除などが発生した場合に、各ファイルのメン
テナンスは自動的に行なう。FIG. 1 is a diagram for explaining a disk data storage system required for an embodiment of the present invention. In this disc data storage method, at least two types of files are prepared on the disc. One is a relative organization file, which stores registered record images. The other one or a plurality is an index organization file, and the value of one item of the record is used as a key, and the data field stores a bit field corresponding to the relative key of the relative organization file. FIG. 1A is a diagram showing an example of a record, and shows a case where the first and second items of the three data items are the keys. Figure 1
FIG. 1B is a diagram showing an example of a relative organization file, and FIG.
The case where a record of the same format is stored is shown. Figure 1
(C) and (d) are diagrams showing an example of the data part of the index organization file. In FIG. 1 (c), X of the record of FIG. 1 (b) is shown.
The value of the field is used as a key, and in the bit field, the relative position of the relative organization file is represented by the relative position of the bit field. In FIG. 1D, the value of the Y field of the record of FIG.
It is constructed in the same way as the X field. When a record is registered / updated / deleted, each file is automatically maintained.
【0007】図2は本発明の一実施例を説明するための
図である。図2(a)は図1のファイルに対して、検索
条件が複合条件1(X=1かつY=ア)の場合の相対編
成ファイルの検索と、検索条件にヒットするレコードの
全件数の把握との処理を示している。図2(a)では、
まず複合条件1のX=1よりXフィールドの索引編成フ
ァイルを読込み、ヒットしたレコードをレコード1とす
る。次に複合条件1のY=アよりYフィールドの索引編
成ファイルを読込み、ヒットしたレコードをレコード2
とする。検索結果を求めるために、レコード1とレコー
ド2とのビットフィールドの部分の論理積を求め、この
論理積レコードをレコード3とする。レコード3のビッ
トフィールドの値1のビット位置に対応する相対編成フ
ァイルの相対キー位置からデータを検索でき、同時にレ
コード3のビットフィールドの値1のビット数を数える
ことにより、複合条件1にヒットする全件数を把握する
ことができる。FIG. 2 is a diagram for explaining one embodiment of the present invention. FIG. 2A is a search for a relative organization file when the search condition is the compound condition 1 (X = 1 and Y = A) with respect to the file of FIG. 1, and the total number of records hitting the search condition is grasped. And processing is shown. In FIG. 2 (a),
First, the index organization file of the X field is read from X = 1 of the compound condition 1, and the hit record is set as the record 1. Next, the index organization file of the Y field is read from Y = A of the compound condition 1, and the hit record is the record 2
And In order to obtain the search result, the logical product of the bit field portions of the record 1 and the record 2 is calculated, and this logical product record is set as the record 3. Data can be retrieved from the relative key position of the relative organization file corresponding to the bit position of the value 1 of the bit field of record 3, and at the same time, the composite condition 1 is hit by counting the number of bits of the value 1 of the bit field of record 3 You can grasp the total number of cases.
【0008】図2(b)は図1のファイルに対して、検
索条件が複合条件2(X=2またはY=サ)の場合の相
対編成ファイルの検索と、検索条件にヒットするレコー
ドの全件数の把握との処理を示している。図2(b)で
は、まず複合条件1と同様にXフィールドおよびYフィ
ールドの索引編成ファイルを読み、ヒットしたレコード
をそれぞれレコード4およびレコード5とする。検索結
果を示めるためにレコード4とレコード5との論理和を
求めてレコード6とする。レコード3と同様にレコード
6のビットフィールドの値1のビット位置に対応する相
対編成ファイルの相対キー位置からデータを検索でき、
同時にレコード6のビットフィールドの値1のビット数
を数えることにより、複合条件にヒットする全件数を把
握することができる。FIG. 2B shows a search for a relative organization file in the case where the search condition is a compound condition 2 (X = 2 or Y = service) for the file of FIG. 1 and all records hit by the search condition. It shows the process of grasping the number of cases. In FIG. 2B, first, the index organization file of the X field and the Y field is read as in the case of the compound condition 1, and the hit records are set as the record 4 and the record 5, respectively. In order to show the search result, the logical sum of the record 4 and the record 5 is obtained and it is set as the record 6. Similar to record 3, data can be retrieved from the relative key position of the relative organization file corresponding to the bit position of the value 1 of the bit field of record 6,
At the same time, by counting the number of bits of the value 1 of the bit field of the record 6, the total number of hits in the composite condition can be grasped.
【0009】[0009]
【発明の効果】以上説明したように本発明は、相対編成
ファイルおよび索引編成ファイルにレコードをシステム
により自動的に登録したおき、検索に際しては索引編成
ファイルの索引部を介して索引レコードをランダムアク
セスで読込み、読込んだ索引レコードのビットフィール
ドの相対位置から相対編成ファイルをランダムにアクセ
スして読込むことができ、複合条件による検索でも、各
々の検索条件に合う索引レコードのビットフィールドの
論理積または論理和をとり、結果として得られたビット
フィールドの“1”になったビット位置およびビット数
から、検索および検索条件にヒットするレコード件数が
容易に把握できるという効果がある。As described above, according to the present invention, the record is automatically registered in the relative organization file and the index organization file by the system, and the index record of the index organization file is randomly accessed at the time of retrieval. The relative organization file can be read at random from the relative position of the bit field of the read index record, and the logical product of the bit field of the index record that meets each search condition can be read even with the search by compound conditions. Alternatively, there is an effect that the number of records hitting the search and the search condition can be easily grasped from the bit position and the number of bits of the resultant bit field which become “1”, by taking the logical sum.
【図1】本発明の一実施例に使用されるディスクデータ
格納方式を説明するための図である。FIG. 1 is a diagram for explaining a disk data storage method used in an embodiment of the present invention.
【図2】本発明の一実施例を説明するための図である。FIG. 2 is a diagram for explaining an example of the present invention.
1,2,〜6 レコード 1, 2, 6 records
Claims (1)
ステムのディスクデータ検索方式において、登録するレ
コードを相対編成ファイルに登録すると共に、この相対
編成ファイルに登録したレコードに対する相対キーをビ
ットフィールドの相対位置で示すビットレコードとし
て、登録したレコードのそれぞれのキーとビットレコー
ドと組合せて少なくとも1組の索引編成ファイルを作成
するレコード登録手段と、複合条件による検索時に、そ
れぞれの検索条件に合うビットフィールドをそれぞれの
前記索引編成ファイルから索引部を介してランダムアク
セスにより読出す読出し手段と、複合条件がANDであ
る場合は前記読出し手段から読出されたビットフィール
ドの論理積をとり、複合条件がORである場合は前記読
出し手段から読出されたビットフィールドの論理和をと
る演算手段と、この演算手段により演算された結果のビ
ットフィールドのビット“1”の位置から前記相対編成
ファイルを検索し、ビット“1”の数を検索条件にヒッ
トするレコードの件数とする検索手段とを有することを
特徴とするディスクデータ検索方式。1. A disk data search method for an information processing system using a disk system, wherein a record to be registered is registered in a relative organization file, and a relative key to the record registered in this relative organization file is set in a relative position of a bit field. As the bit record to be shown, a record registration means for creating at least one set of index organization files by combining each key and bit record of the registered record, and a bit field matching each search condition at the time of searching by the composite condition When the composite condition is AND, the bit field read from the read means for logically reading from the index organization file through random access is ANDed, and when the composite condition is OR, Read from the reading means The relative organization file is searched from the calculating means for taking the logical sum of the bit fields and the position of the bit "1" of the bit field as a result of the calculation by this calculating means, and the number of the bit "1" is hit as the search condition. And a search means for setting the number of records to be recorded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5182355A JPH0736921A (en) | 1993-07-23 | 1993-07-23 | Disk data retrieval system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5182355A JPH0736921A (en) | 1993-07-23 | 1993-07-23 | Disk data retrieval system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0736921A true JPH0736921A (en) | 1995-02-07 |
Family
ID=16116869
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP5182355A Withdrawn JPH0736921A (en) | 1993-07-23 | 1993-07-23 | Disk data retrieval system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0736921A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003107352A1 (en) * | 2002-06-13 | 2003-12-24 | Intel Corporation | Method and system for performing inserts and lookups in memory |
-
1993
- 1993-07-23 JP JP5182355A patent/JPH0736921A/en not_active Withdrawn
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003107352A1 (en) * | 2002-06-13 | 2003-12-24 | Intel Corporation | Method and system for performing inserts and lookups in memory |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0736921A (en) | Disk data retrieval system | |
US6738771B2 (en) | Data processing method, computer readable recording medium, and data processing device | |
US7856443B2 (en) | Automatic identification of DVD title using internet technologies and fuzzy matching techniques | |
JPS63104284A (en) | Disk file access system | |
US4853921A (en) | Method for storing data in rotary type recording media | |
US20030028721A1 (en) | Method and apparatus for creating a media identifier and indexing a media products database | |
JPS62186361A (en) | Information retrieval device | |
JP4383649B2 (en) | Editing device | |
KR100304116B1 (en) | Misuse intrusion detecting apparatus and method in misuse intrusion detecting system | |
JPH0770194B2 (en) | Write-once data recording method on write-once recording medium | |
JPH0325636A (en) | How to manage data records | |
JPH06215044A (en) | Information retrieval processor | |
JP3145727B2 (en) | Data retrieval device | |
JPS60160062A (en) | Picture information memory retriever | |
JPS61103242A (en) | High-speed retrieval system | |
JPH0675254B2 (en) | Kaiko database operation system | |
JPH0279118A (en) | Data management system | |
JPH1011338A (en) | Relational database system, method of storing / reading data in / from the system, and recording medium recording program for the same | |
JPH11306183A (en) | Data base retrieval system | |
JPS58199412A (en) | Data recording system | |
JPS6029990A (en) | Index recording system of magnetic tape | |
JPH03268172A (en) | Method for retrieving data | |
JPH0327457A (en) | Definition system for multi-media data item attribute | |
JPH02118880A (en) | Data control device | |
JPH02158985A (en) | Optical disk reproducing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20001003 |