JPS63317823A - Data access system by index - Google Patents

Data access system by index

Info

Publication number
JPS63317823A
JPS63317823A JP62152434A JP15243487A JPS63317823A JP S63317823 A JPS63317823 A JP S63317823A JP 62152434 A JP62152434 A JP 62152434A JP 15243487 A JP15243487 A JP 15243487A JP S63317823 A JPS63317823 A JP S63317823A
Authority
JP
Japan
Prior art keywords
index
data
address
access mechanism
access
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.)
Pending
Application number
JP62152434A
Other languages
Japanese (ja)
Inventor
Tamotsu Makino
牧野 保
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP62152434A priority Critical patent/JPS63317823A/en
Publication of JPS63317823A publication Critical patent/JPS63317823A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To reduce the area size of an index in case of many data records and a small number of types of value secured for an index key, by obtaining the address of the data corresponding to a supplied index key via a bit map access mechanism. CONSTITUTION:A data processing system has a request for return of the address of the data record having the value (b) of an index field 20 out of those data records stored in a data file 10. Thus the control is shifted to a data access mechanism 1 and an index access mechanism 2. Then an access is supplied to an index 30 so that the address of a bit map 70 having the address information on the data record having the value (b) of the field 20 is obtained. Then the control is shifted to a bit map access mechanism 3 and an access is given to the map 70. Thus the address of the data record having the value (b) of the field 20 is obtained and sent back to the data processing system.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は索引によるデータのアクセス方式に関し、特に
、データ件数が大量のファイルやデータベースに対する
索引によるデータのアクセス方式〔従来の技術〕 従来、この種の索引によるデータのアクセス方への4イ
ンタ100とから成る索引80を索引アクセス機構7で
アクセスすることにより、与えられた索引キー90を持
つデータのアドレスをデータアクセス機構6で求める方
式となっていた。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a method for accessing data using an index, and in particular, a method for accessing data using an index for files and databases containing a large number of data items. By accessing the index 80 consisting of four interfaces 100 using the index access mechanism 7, the data access mechanism 6 obtains the address of data having a given index key 90. was.

索引キーが同一であるデータが複数存在する場合には、
その数だけデータへのポインタ100を持たせる方式と
なっていた。
If there are multiple pieces of data with the same index key,
The method was to have as many pointers 100 to the data.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の索引によるデータのアクセス方式では、
索引キーが同一であるデータが複数存在する場合に、そ
の数だけデータへのポインタを持たせる方式となりてい
るので、データ件数が多く索引がとる値の種類が極く少
ない場合には、同一の索引キーを持つデータの数が増大
し、与えられた索引キーを持つデータのアドレスを求め
るためにアクセスする索引の領域も増大し、与えられた
索引キーを持つデータのアドレスを求めるのに時間がか
かるという問題点がある。
In the conventional index-based data access method described above,
When there are multiple pieces of data with the same index key, the method is to have pointers to that number of data, so if the number of data items is large and the types of values taken by the index are extremely small, As the number of data with index keys increases, the area of the index that is accessed to find the address of data with a given index key also increases, and the time required to find the address of data with a given index key increases. There is a problem that it takes.

本発明は従来のもののこのような問題点を解決し、与え
られた索引キーを持つデータのアドレスを短時間に求め
ることができる索引によるデータのアクセス方式を提供
するものである。
The present invention solves the above-mentioned problems of the conventional methods and provides an index-based data access method that allows the address of data having a given index key to be found in a short time.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の索引によるデータのアクセス方式は索引キーが
与えられたときに索引をアクセスすることにより前記索
引キーに対応したピットマッグのアドレスを求める索引
アクセス機構と、前記索引キーに対応したピットマツプ
をアクセスすることによりデータのアドレスを求めるピ
ットマツプアクセス機構と、前記データのアドレスより
データのアクセスを行うデータアクセス機構とを含んで
構成される。
The data access method using an index according to the present invention includes an index access mechanism that obtains the address of a pit map corresponding to the index key by accessing the index when an index key is given, and accesses the pit map corresponding to the index key. The data access mechanism includes a pit map access mechanism that obtains the address of data, and a data access mechanism that accesses data from the address of the data.

〔実施例〕〔Example〕

次に2本発明について図面を参照して説明する。 Next, two aspects of the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例の構成概要図、第2図はその
動作の流れを示す図である。
FIG. 1 is a schematic diagram of the configuration of an embodiment of the present invention, and FIG. 2 is a diagram showing the flow of its operation.

データ処理システムからデータファイル10のデータレ
コードのうち索引フィールド20の値がbであるデータ
レコードのアドレスを返すように要求が出されたとする
Assume that a request is issued from the data processing system to return the address of a data record whose index field 20 has a value of b among the data records of the data file 10.

制御はデータアクセス機構1.索引アクセス機構2と移
され、索引30をアクセスすることにより、索引フィー
ルド20の値がbであるデータレコードのアドレス情報
を有するビットマツプ70のアドレスが求められる。
Control is by data access mechanism 1. By accessing the index 30 with the index access mechanism 2, the address of the bitmap 70 having the address information of the data record whose index field 20 has the value b is determined.

次に、ピットマツプアクセス機構3に制御が移され、ビ
ットマツf70fアクセスすることにより、索引フィー
ルl−”20の値がbであるデータレコードのアドレス
が求められて返される。
Next, control is transferred to the pit map access mechanism 3, and by accessing the bit map f70f, the address of the data record whose index field l-"20 has the value b is determined and returned.

ここで、第2図、第4図において次のように定データフ
ァイル10のデータレコード件数をn件索引キー40.
90のバイト長をにバイト索引キー40.90がとる値
の種類数をm種類ピットマツプへのポインタ50のバイ
ト長t−pバイトデータレコードへのポインタ100の
バイト長をqバイト第1図の本発明の一実施例の場合の
索引の領域サイズ(ビットマツプの領域も含む)は。
Here, in FIGS. 2 and 4, the number of data records in the constant data file 10 is calculated using the index key 40.
The byte length of 90 is the byte index key 40. The number of values that 90 takes is m types Pointer to the pit map Byte length of 50 t - p bytes Pointer to the data record The byte length of 100 is q bytes The book in Figure 1 The size of the index area (including the bitmap area) in one embodiment of the invention is as follows.

第2図の従来の方式の場合の索引の領域サイズは。The area size of the index in the case of the conventional method shown in FIG.

(k+q)・n バイト強      −(2)式であ
シ、索引の階層数が増せばもつと大きくなる。
(k+q)·n strong bytes - Equation (2) is acceptable; it becomes larger as the number of index layers increases.

データレコード件数nが多く、索引キーがとる値の種類
数mが極く小さい場合には。
When the number of data records n is large and the number m of types of values taken by the index key is extremely small.

8・(k十q) (2)式/(1)式中□    ・・・(3)弐となシ
、従来の方式の場合の索引の領域サイズは。
8. (k + q) (2) formula / (1) formula □ ... (3) Second, the area size of the index in the case of the conventional method is.

本発明の場合の8°(k+q)倍になる。This is 8° (k+q) times that in the case of the present invention.

ここで仮シに。Here's a temporary one.

索引キーのバイト長kilバイト データレコードへのポインタのバイト長qt−4バイト
とし、索引キーがとる値の種類数mt2.4.8種類と
すると、(3)式より、従来の方式の場合の索引の領域
サイズは1本発明の場合のそれぞれ20゜10.5倍と
なる。
Assuming that the byte length of the index key is kil bytes and the byte length of the pointer to the data record is qt - 4 bytes, and the number of types of values that the index key can take is mt2.4.8, then from equation (3), in the case of the conventional method, The area size of the index is 20°10.5 times that in the case of the present invention.

以上のことより、データレコード件数が多く索引キーが
とる値の種類式が極く小さい場合には。
From the above, if the number of data records is large and the value type expression taken by the index key is extremely small.

索引の領域サイズが本発明の場合の方が少なくてすむこ
とが分る。
It can be seen that the area size of the index is smaller in the case of the present invention.

与えられた索引キーを持つデータのアドレスを求める場
合にも、アクセスする索引の領域サイズが本発明の場合
の方が少なくてすみ、与えられた索引キーを持つデータ
のアドレスを高速に求めることができる。
Even when finding the address of data with a given index key, the area size of the index to be accessed is smaller in the case of the present invention, and the address of data having the given index key can be found quickly. can.

また、従来の方式の場合には、索引は階層構造になって
おり、索引はブロック単位で分割されて 。
In addition, in the case of the conventional method, the index has a hierarchical structure, and the index is divided into blocks.

おり、入出力回数が増加する問題があるが2本発明の場
合には索引が小さくてすむためそのような問題も少ない
といえる。
However, in the case of the present invention, since the index can be small, such a problem is less likely to occur.

〔発明の効果〕 以上説明したように本発明では与えられた索引キーに対
応するビットマツプのアドレスを索引アクセス機構によ
り求め、与えられた索引キーに対応するデータのアドレ
スをビットマツプアクセス機構により求める方式により
、データ件数が多く索引がとる値の種類が極く少ない場
合には、従来の方式に較べ索引の領域(ビットマツプの
領域も含む)が少なくてすむ効果がある。
[Effects of the Invention] As explained above, in the present invention, the address of a bitmap corresponding to a given index key is found by an index access mechanism, and the address of data corresponding to the given index key is found by a bitmap access mechanism. Therefore, when the number of data items is large and the types of values taken by the index are extremely small, the index area (including the bitmap area) can be reduced compared to the conventional method.

与えられた索引キーを持つデータのアドレスを求めるた
めにアクセスする索引の領域(ビットマツプの領域も含
む)が従来の方式に較べ少なくてすみ、索引の分割によ
る入出力回数増加の問題もごく少なく、与えられた索引
キー金持つデータのアドレスを高速に求めることができ
る効果がある。
The index area (including the bitmap area) that is accessed to find the address of data with a given index key is smaller than in the conventional method, and there is very little problem of increased input/output due to index division. This has the effect of quickly finding the address of data with a given index key.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例の構成概要図、第2図はその
動作の流れを示す図、第3図は従来の方式での一例の構
成概要図、第4図はその動作の流れを示す図である0 1.6・・・データアクセス機構、2,7・・・索引ア
クセス機構、3・・・ビットマップアクセス機構。 10・・・データファイル、20・・・索引フィールド
。 30.80・・・索引、40・・・索引キー、50・・
・ビットマツプへのポインタ、60.70・・・ビット
マツf、90・−*引キー、100・・・データレコー
ドへのポインタ。 第2図 第3図 第4図
Fig. 1 is a schematic diagram of the configuration of an embodiment of the present invention, Fig. 2 is a diagram showing the flow of its operation, Fig. 3 is a schematic diagram of the configuration of an example of the conventional method, and Fig. 4 is the flow of its operation. 0 1.6...Data access mechanism, 2,7... Index access mechanism, 3... Bitmap access mechanism. 10...Data file, 20...Index field. 30.80...index, 40...index key, 50...
- Pointer to bitmap, 60.70...Bitmap f, 90...-* pull key, 100... Pointer to data record. Figure 2 Figure 3 Figure 4

Claims (1)

【特許請求の範囲】 1、磁気ディスク装置等のファイル装置を有するデータ
処理装置において、索引キーが与えられたときに索引を
アクセスすることにより前記索引キーに対応したビット
マップのアドレスを求める索引アクセス機構と、 前記索引キーに対応したビットマップをアクセスするこ
とによりデータのアドレスを求めるビットマップアクセ
ス機構と、 前記データのアドレスよりデータのアクセスを行うデー
タアクセス機構とを含むことを特徴とする索引によるデ
ータのアクセス方式。
[Claims] 1. In a data processing device having a file device such as a magnetic disk device, index access for obtaining the address of a bitmap corresponding to the index key by accessing the index when an index key is given. a bitmap access mechanism that obtains an address of data by accessing a bitmap corresponding to the index key; and a data access mechanism that accesses data from the address of the data. Data access method.
JP62152434A 1987-06-20 1987-06-20 Data access system by index Pending JPS63317823A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62152434A JPS63317823A (en) 1987-06-20 1987-06-20 Data access system by index

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62152434A JPS63317823A (en) 1987-06-20 1987-06-20 Data access system by index

Publications (1)

Publication Number Publication Date
JPS63317823A true JPS63317823A (en) 1988-12-26

Family

ID=15540447

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62152434A Pending JPS63317823A (en) 1987-06-20 1987-06-20 Data access system by index

Country Status (1)

Country Link
JP (1) JPS63317823A (en)

Similar Documents

Publication Publication Date Title
JPS60218142A (en) Dynamic format conversion system of data
Han et al. TeksDB: weaving data structures for a high-performance key-value store
JPS63317823A (en) Data access system by index
JPH04112253A (en) Data accessing method using multilayer buffer
JPS62287350A (en) Index integrally updating system
JPH0193843A (en) System for coupling table
JP3145727B2 (en) Data retrieval device
JPH02222044A (en) Data processor
JPS63138442A (en) Restoring and processing system for deleted file
JPH04336340A (en) Disk cache access control system
JP2507399B2 (en) Database equipment
JPH04174071A (en) Hash processor
JPH04156624A (en) High speed accessing systme in knowledge base systme
JPS61251941A (en) Data base management system
Singhania A multiple associative-memory system for pipelining a directory to a very large data base.
JPH04250568A (en) Record retrieval device
JPS63206837A (en) System for accessing partitioned data set
JPS61276040A (en) File access system
JPS63150724A (en) Data access processing system
JPH0231425B2 (en)
JPS63285631A (en) Updating and processing system for index file
JPH02271438A (en) Virtually filing system by access frequency of index file
JPS61165146A (en) Dynamic changing and processing system of data item in record type data
JPH0764835A (en) Data storage system for relational data base
JPH0324618A (en) Record ascending order adder