JPH0228846A - Data storing system - Google Patents
Data storing systemInfo
- Publication number
- JPH0228846A JPH0228846A JP63179755A JP17975588A JPH0228846A JP H0228846 A JPH0228846 A JP H0228846A JP 63179755 A JP63179755 A JP 63179755A JP 17975588 A JP17975588 A JP 17975588A JP H0228846 A JPH0228846 A JP H0228846A
- Authority
- JP
- Japan
- Prior art keywords
- data
- storage area
- area
- index key
- data storage
- 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
Links
- 238000013500 data storage Methods 0.000 claims abstract description 74
- 238000000034 method Methods 0.000 claims description 12
- 238000010586 diagram Methods 0.000 description 2
- 241000282887 Suidae Species 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は電子計算機システムにおける記憶装置へのデー
タ格納方式に関し、特に索引キーを有するデータを記憶
領域に格納するデータ格納方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data storage method in a storage device in an electronic computer system, and more particularly to a data storage method for storing data having an index key in a storage area.
従来、この種の索引キーを有するデータの格納方式とし
ては、索引順編成ファイル方式が広く知られている。こ
の索引順編成ファイル方式は、索引キー毎にレコードと
呼ばれる一定量のデータ格納領域を用意する方式で、レ
コードの大きさ(レコード長)を設定する場合には格納
するデータのうちの最大のものに合わせる必要があった
。Conventionally, an index sequential file system is widely known as a storage system for data having this type of index key. This indexed sequential file system prepares a fixed amount of data storage area called a record for each index key, and when setting the record size (record length), the largest amount of data to be stored is It was necessary to match.
〔発明が解決しようとする!IME
上述した従来の索引順編成ファイル方式では、各索引キ
ーに対応するデータ格納領域が一定量でかつデータ格納
領域の大きさは最大データに合わせて設定する必要があ
るので、索引キーに対応する格納データ量にばらつきが
あると、データ量の少ない索引キーについてはデータ格
納領域の未使用状態が多くなり、記憶領域全体のデータ
格納効率が低下する・という欠点がある。[Invention tries to solve! IME In the conventional indexed sequential file system described above, it is necessary to set a fixed amount of data storage area corresponding to each index key and the size of the data storage area to match the maximum data. If there are variations in the amount of stored data, there is a disadvantage that for index keys with a small amount of data, the data storage area is often unused, and the data storage efficiency of the entire storage area is reduced.
本発明の目的は、上述の点に鑑み、従来の索弓順編成フ
ァイル方式に共通格納領域の概念を付加することにより
、索引キーを有するデータの高速な格納および検索機能
と記憶領域の有効利用とを両立させるようにしたデータ
格納方式を提供することにある。In view of the above-mentioned points, an object of the present invention is to provide a high-speed storage and retrieval function for data having index keys and effective use of storage space by adding the concept of a common storage area to the conventional indexed file system. An object of the present invention is to provide a data storage method that achieves both of the following.
本発明のデータ格納方式は、索引キーを有するデータを
記憶領域に格納するデータ格納方式において、索引キー
毎に一定量のデータを格納できるデータ格納領域が設け
られた索引キー対応格納領域と、この索引キー対応格納
領域の索引4−一に対応するデータ格納領域に格納しき
れなかったブタを格納するデータ格納領域が設りられた
共通格納領域と、前記索引キー対応格納領域の索引キー
に対応するデータ格納領域に空領域があるときにこのデ
ータ格納領域にデータを格納し前記索引キー対応格納領
域の索引キーに対応するデータ格納領域に空領域がない
ときに前記共通格納領域のデータ格納領域の空領域にデ
ータを格納するデータ格納処理手段とを有する。The data storage method of the present invention is a data storage method in which data having an index key is stored in a storage area. A common storage area provided with a data storage area for storing pigs that could not be stored in the data storage area corresponding to index 4-1 of the index key corresponding storage area, and a common storage area corresponding to the index key of the index key corresponding storage area. When there is empty space in the data storage area to store data, data is stored in this data storage area, and when there is no empty space in the data storage area corresponding to the index key in the index key corresponding storage area, the data storage area in the common storage area is stored. and data storage processing means for storing data in the empty area of the computer.
本発明のデータ格納方式では、索引キー対応格納領域に
索引キー毎に一定量のデータを格納できるデータ格納領
域が設けられ、共通格納領域に索引キー対応格納領域の
索引キーに対応するデータ格納領域に格納しきれなかっ
たデータを格納するデータ格納領域が設けられ、データ
格納処理手段が索引キー対応格納領域の索引キーに対応
するデータ格納領域に空領域があるときにこのデータ格
納領域にデータを格納し索引キー対応格納領域の索引キ
ーに対応するデータ格納領域に空領域がないときに共通
格納領域のデータ格納領域の空領域にデータを格納する
。In the data storage method of the present invention, a data storage area that can store a certain amount of data for each index key is provided in the index key corresponding storage area, and a data storage area corresponding to the index key of the index key corresponding storage area is provided in the common storage area. A data storage area is provided to store data that cannot be stored in the storage area, and the data storage processing means stores data in this data storage area when there is empty space in the data storage area corresponding to the index key in the index key corresponding storage area. When there is no empty area in the data storage area corresponding to the index key in the index key corresponding storage area, data is stored in the empty area in the data storage area of the common storage area.
次に、本発明について図面を参照して説明する。′第1
図は、本発明の一実施例のデータ格納方式の構成を示す
ブロック図である。本実施例の’f −夕格納方式は、
索引キー対応格納領域1と、共通格納領域2と、データ
格納処理手段3とから、その主要部が構成されている。Next, the present invention will be explained with reference to the drawings. '1st
FIG. 1 is a block diagram showing the configuration of a data storage method according to an embodiment of the present invention. The 'f-evening storage method of this embodiment is as follows:
Its main parts are composed of an index key corresponding storage area 1, a common storage area 2, and a data storage processing means 3.
索引キー対応格納領域1は、索引キー毎に一定量のデー
タ格納領域(レコード)12が設定されている。詳しく
は、索引キー対応格納領域1は、複数の索引キー部11
と、索引キー部11毎に設けられた一定量のデータ格納
領域12と、索引キー部11毎に設けられた共通格納領
域へのポインタ13とから構成されている。In the index key storage area 1, a fixed amount of data storage area (record) 12 is set for each index key. Specifically, the index key corresponding storage area 1 includes a plurality of index key units 11.
, a fixed amount of data storage area 12 provided for each index key section 11 , and a pointer 13 to a common storage area provided for each index key section 11 .
共通格納領域2は、特定の索引キーに対応する領域では
なく、各索引キーに共通の格納領域であり、すべての索
引キーに対応するデータが格納される。詳しくは、共通
格納領域2は、字曲域のポインタ21と、複数の索引キ
ー部22と、複数のデータ格納領域23と、複数の共通
格納領域内のポインタ24とから構成されている。The common storage area 2 is not an area corresponding to a specific index key, but a storage area common to each index key, and stores data corresponding to all index keys. Specifically, the common storage area 2 includes a pointer 21 of the curvature area, a plurality of index key sections 22, a plurality of data storage areas 23, and a plurality of pointers 24 within the common storage area.
索引キー部11および22は、格納データを分類および
識別するための索引キーを格納する領域であ共通格納領
域へのポインタ13は、索引キー対応格納領域1の索引
キーに対応する複数のデータ格納領域12にデータを格
納しきれなくなった場合に、共通格納領域2のデータ格
納領域23にデータを格納するが、そのときに索引キー
毎に共通格納領域2内に格納された先頭データのデータ
格納領域23の格納位置を示すポインタである。The index key sections 11 and 22 are areas for storing index keys for classifying and identifying stored data, and the pointer 13 to the common storage area is for storing a plurality of data corresponding to the index keys in the index key corresponding storage area 1. When the data cannot be stored in the area 12, the data is stored in the data storage area 23 of the common storage area 2, but at that time, the first data stored in the common storage area 2 for each index key is stored. This is a pointer indicating the storage position of the area 23.
空領域のポインタ21は、共通格納領域2にデータを格
納する際にどの位置のデータ格納領域23に格納すれば
よいか(先頭の空領域のデータ格納領域23がどれであ
るか)を示すポインタである。The empty area pointer 21 is a pointer that indicates in which data storage area 23 the data should be stored when storing it in the common storage area 2 (which data storage area 23 is the first empty area). It is.
共通格納領域内のポインタ24は、共通格納領域2内に
同一の索引キーを有するデータを格納する場合に、それ
らが格納されているデータ格納領域23を論理的に連結
するためのポインタである。空領域のデータ格納領域2
3も、共通格納領域内のポ・rフタ24によって論理的
に連結されている。The pointer 24 in the common storage area is a pointer for logically connecting the data storage areas 23 in which data having the same index key is stored in the common storage area 2. Empty data storage area 2
3 are also logically connected by a port lid 24 in the common storage area.
なお、第1図中、符号に、%KX (Xは正整数)は索
引キー、dll〜dX(11421(nは正整数)はデ
ータ、P11〜P、、、、、(eは空領域を示す添字、
mは正整数)はポインタをそれぞれ示す。In Fig. 1, %KX (X is a positive integer) is an index key, dll~dX (11421 (n is a positive integer) is data, P11~P, , , (e is an empty area) subscript indicating,
m is a positive integer) indicates a pointer.
第2図を参照すると、データ格納処理手段3における処
理は、索引キー対応のデータ格納領域のチエツクステッ
プ31と、空領域有無判定ステップ32と、索引キー対
応のデータ格納領域へのデータ格納ステップ33と、共
通格納領域へのデータ格納ステップ34と、同一索引キ
ーでの共通格納領域使用有無判定ステップ35と、共通
格納領域へのポインタ設定ステップ36と、共通格納領
域内のポインタ設定ステップ37と、空領域のポインタ
更新ステップ38とからなる。Referring to FIG. 2, the processing in the data storage processing means 3 includes a step 31 of checking the data storage area corresponding to the index key, a step 32 of determining the presence or absence of an empty area, and a step 33 of storing data in the data storage area corresponding to the index key. , a step 34 of storing data in the common storage area, a step 35 of determining whether the common storage area is used with the same index key, a step 36 of setting a pointer to the common storage area, a step 37 of setting a pointer in the common storage area, and an empty area pointer update step 38.
次に、このように構成された本実施例のデータ格納方式
の動作について説明する。Next, the operation of the data storage system of this embodiment configured as described above will be explained.
まず、あるデータの格納要求が発生ずると、デク格納処
理手段3は、データに含まれる索引キで索引キー対応格
納領域1の索引キー部11を検索して対応するデータ格
納領域12をチエツクしくステップ31)、索引キーに
対応するデータ格納領域I2に空領域があるか否かを調
べる(ステップ32索引キーに対応するデータ格納領域
12に空領域があれば、データ格納処理手段3は、索引
キー対応格納領域1の該当する空領域のデータ格納領域
12にデータを格納して(ステップ33)1、処理を終
了する。First, when a request to store certain data occurs, the disk storage processing means 3 searches the index key part 11 of the index key corresponding storage area 1 using the index key included in the data and checks the corresponding data storage area 12. Step 31) Checks whether there is an empty area in the data storage area I2 corresponding to the index key (Step 32) If there is an empty area in the data storage area 12 corresponding to the index key, the data storage processing means 3 The data is stored in the corresponding empty data storage area 12 of the key correspondence storage area 1 (step 33), and the process is ended.
ステップ32で、索引キーに対応するデータ格納領域1
2に空領域が無い場合には、データ格納処理手段3は、
共通格納領域2の空領域のポインタ21を参照して空領
域のデータ格納領域23にデータの格納を行う (ステ
ップ34)。In step 32, data storage area 1 corresponding to the index key is
If there is no free space in 2, the data storage processing means 3
Data is stored in the empty data storage area 23 with reference to the empty area pointer 21 of the common storage area 2 (step 34).
次に、データ格納処理手段3は、同一の索引キーでの共
通格納領域2の使用の有無を判断して(ステップ35)
、同一の索引キーに対応するデータとして共通格納領域
2のデータ格納領域23への最初の格納であれば、索引
キー対応格納領域1の共通格納領域へのポインタ13に
当該データ格納領域23の位置を設定することにより索
引キー対応格納領域1から共通格納領域2への論理的な
関連付けを行う (ステップ36)。Next, the data storage processing means 3 determines whether or not the common storage area 2 is used with the same index key (step 35).
, if it is the first storage in the data storage area 23 of the common storage area 2 as data corresponding to the same index key, the position of the data storage area 23 is set in the pointer 13 to the common storage area of the index key corresponding storage area 1. By setting , the index key corresponding storage area 1 is logically associated with the common storage area 2 (step 36).
続いて、またはステップ35で同一の索引キーのデータ
がすでに共通格納領域2内のデータ格納領域23に格納
されていると判断された場合には、データ格納処理手段
3は、共通格納領域内のポインタ24に当該データ格納
領域23の位置を設定することにより、新たに格納され
たデータとすでに格納されているデータとの論理的な関
連付けを行う(ステップ37)。Subsequently, or if it is determined in step 35 that the data with the same index key is already stored in the data storage area 23 in the common storage area 2, the data storage processing means 3 stores the data in the common storage area 23. By setting the position of the data storage area 23 in the pointer 24, the newly stored data is logically associated with the already stored data (step 37).
最後に、データ格納処理手段3は、空領域のポインタ2
1を共通格納領域2内の先頭の空領域のデータ格納領域
23を指すように更新することにより次のデータ格納に
備え(ステップ38)、処理を終了する。Finally, the data storage processing means 3 stores the empty area pointer 2.
1 to point to the first empty data storage area 23 in the common storage area 2 in preparation for the next data storage (step 38), and the process ends.
以上説明したように本発明は、従来の索引順編成ファイ
ル方式に共通格納領域の概念を(=J加することにより
、同一索引キーの一定量のデータについては高速な格納
および検索を可能とし、あるしきい値を越える同一索引
キーのデータの格納および検索については格納容量を優
先させて、記憶領域全体の効率的利用を図ることができ
るという効果がある。As explained above, the present invention enables high-speed storage and retrieval of a certain amount of data with the same index key by adding the concept of a common storage area (=J) to the conventional index sequential file system. For storage and retrieval of data with the same index key that exceeds a certain threshold, storage capacity is given priority, and the entire storage area can be used efficiently.
第1図は本発明の一実施例のデータ格納方式の構成を示
すブロック図、
第2図は第1図中のデータ格納処理手段における処理を
示す流れ図である。
図において、
1・・・索引キー対応格納領域、
2・・・共通格納領域、
3・・・データ格納処理手段、
11・・・索引キー部、
12・・・データ格納領域(レコード)、13・・・共
通格納領域へのポインタ、21・・・空領域のポインタ
、
22・・・索引キー部、
23・・・データ格納領域(レコード)、24・・・共
通格納領域内のポインタである。FIG. 1 is a block diagram showing the configuration of a data storage system according to an embodiment of the present invention, and FIG. 2 is a flowchart showing processing in the data storage processing means in FIG. In the figure, 1... Index key corresponding storage area, 2... Common storage area, 3... Data storage processing means, 11... Index key section, 12... Data storage area (record), 13 . . . Pointer to common storage area, 21 . . . Pointer to empty area, 22 . . . Index key section, 23 . .
Claims (1)
納方式において、 索引キー毎に一定量のデータを格納できるデータ格納領
域が設けられた索引キー対応格納領域と、この索引キー
対応格納領域の索引キーに対応するデータ格納領域に格
納しきれなかったデータを格納するデータ格納領域が設
けられた共通格納領域と、 前記索引キー対応格納領域の索引キーに対応するデータ
格納領域に空領域があるときにこのデータ格納領域にデ
ータを格納し前記索引キー対応格納領域の索引キーに対
応するデータ格納領域に空領域がないときに前記共通格
納領域のデータ格納領域の空領域にデータを格納するデ
ータ格納処理手段と を有することを特徴とするデータ格納方式。[Claims] A data storage method in which data having an index key is stored in a storage area, comprising: an index key corresponding storage area provided with a data storage area capable of storing a certain amount of data for each index key; a common storage area provided with a data storage area for storing data that could not be stored in the data storage area corresponding to the index key in the corresponding storage area; and a data storage area in the data storage area corresponding to the index key in the index key corresponding storage area. When there is an empty area, data is stored in this data storage area, and when there is no empty area in the data storage area corresponding to the index key in the index key corresponding storage area, data is stored in the empty area in the data storage area of the common storage area. 1. A data storage method comprising: a data storage processing means for storing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63179755A JPH0228846A (en) | 1988-07-19 | 1988-07-19 | Data storing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63179755A JPH0228846A (en) | 1988-07-19 | 1988-07-19 | Data storing system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0228846A true JPH0228846A (en) | 1990-01-30 |
Family
ID=16071315
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP63179755A Pending JPH0228846A (en) | 1988-07-19 | 1988-07-19 | Data storing system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0228846A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11272691A (en) * | 1998-03-20 | 1999-10-08 | Fujitsu Ltd | Index management device, index updating method and managing method, computer-readable recording medium with index updating program, and with index managing program |
JP2008217122A (en) * | 2007-02-28 | 2008-09-18 | Hitachi Ltd | Transposition index preparation device and method capable of successively adding retrieval object document |
-
1988
- 1988-07-19 JP JP63179755A patent/JPH0228846A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11272691A (en) * | 1998-03-20 | 1999-10-08 | Fujitsu Ltd | Index management device, index updating method and managing method, computer-readable recording medium with index updating program, and with index managing program |
US6314418B1 (en) | 1998-03-20 | 2001-11-06 | Fujitsu Limited | Index managing unit, index updating method, index managing method, computer-readable recording medium retaining an index updating program, and computer-readable recording medium retaining an index managing program |
JP2008217122A (en) * | 2007-02-28 | 2008-09-18 | Hitachi Ltd | Transposition index preparation device and method capable of successively adding retrieval object document |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0461046B1 (en) | File access processing system | |
JPH0228846A (en) | Data storing system | |
JPS61256442A (en) | Method for increasing record retrieving speed | |
JPH02151944A (en) | Data processor | |
JPS62121532A (en) | Data retrieving method | |
JPH0456344B2 (en) | ||
JPH0239225A (en) | Filing system | |
JPH04112253A (en) | Data accessing method using multilayer buffer | |
JP2912657B2 (en) | File access processor | |
JP2615046B2 (en) | Record addition processing method | |
US7107336B2 (en) | Method and apparatus for enhanced server page execution | |
JP2817911B2 (en) | Access control method for keyed files | |
JPH03179539A (en) | Method and device for storage of file | |
JPH01253024A (en) | Buffer control method for data base management | |
JPS62282341A (en) | Data managing system | |
JP2508607B2 (en) | File system management method | |
JP3585264B2 (en) | Database system and data retrieval method | |
JP2747009B2 (en) | Record addition method for indexed sequential files | |
JP2735400B2 (en) | Asynchronous I / O control method | |
JPH02118859A (en) | Index retrieving buffer control system | |
JPH03113626A (en) | System and device for controlling buffer | |
JPH01191240A (en) | Cyclic organization file processing system | |
JPH05257610A (en) | Device and method for reading file | |
JPH03296835A (en) | Data base input/output buffer control system | |
JPH0682334B2 (en) | Management processing device for management table |