JPH0344746A - Data store system - Google Patents

Data store system

Info

Publication number
JPH0344746A
JPH0344746A JP1179977A JP17997789A JPH0344746A JP H0344746 A JPH0344746 A JP H0344746A JP 1179977 A JP1179977 A JP 1179977A JP 17997789 A JP17997789 A JP 17997789A JP H0344746 A JPH0344746 A JP H0344746A
Authority
JP
Japan
Prior art keywords
record
data
index
records
pointer
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
JP1179977A
Other languages
Japanese (ja)
Inventor
Masakazu Iwase
正和 岩瀬
Hisashi Ishizaki
石崎 久司
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 JP1179977A priority Critical patent/JPH0344746A/en
Publication of JPH0344746A publication Critical patent/JPH0344746A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To flexible cope with the addition of index records by forming a chain of index records via the record pointers. CONSTITUTION:An index record Mn consits of a key part, a pointer to the next index record, the data record head address, and the parameters of the data number, etc. A data record Dn consists of a pointer to the next record, the record length (data record length), the data, etc. That is, a pointer is added to the index record like the data record and a chain of index records is obtained. Thus both data and index records are treated equally to each other without fixing an index record store area. Then the processes for reinitialization, etc., can be omitted since the index record store area produces no shortage.

Description

【発明の詳細な説明】 技術分野 本発明はデータ格納方式に関し、特に情報をレコードと
してファイルやメモリ等の記憶手段に格納する際のデー
タ格納方式に関する。
TECHNICAL FIELD The present invention relates to a data storage system, and more particularly to a data storage system for storing information as a record in a storage means such as a file or memory.

従来技術 従来、この種のデータ格納方式としては、データレコー
ドの検索を容易とすべくインデックスレコードを用い、
このインデックスレコードをデータレコードと共に格納
するようになっている。この場合、記憶手段内において
、インデックスレコード格納領域とデータレコード格納
領域とを予め初期化時に定めておくのが一般的である。
Prior Art Conventionally, this type of data storage method uses index records to facilitate data record searches.
This index record is stored together with the data record. In this case, it is common to predetermine an index record storage area and a data record storage area within the storage means at the time of initialization.

第4図はかかる従来のデータ格納方式の一例を示すもの
である。(A)はインデックスレコード部とデータレコ
ード部とのイメージを示す図であり、インデックスレコ
ードMnを格納する領域と、データレコードDnを格納
する領域とがメモリ若しくはファイル内で予め区別され
て固定化されている。
FIG. 4 shows an example of such a conventional data storage system. (A) is a diagram showing an image of an index record section and a data record section, in which an area for storing index records Mn and an area for storing data records Dn are distinguished and fixed in advance in the memory or file. ing.

(B)はインデックスレコードのフォーマットを示し、
キ一部、データ部先頭アドレス、データ数等を含んでい
る。(C)はデータレコードのフォーマットを示し、次
レコードへのポインタ、レコード長、データ等からなっ
ている。
(B) shows the format of the index record,
It includes the key part, the data part start address, the number of data, etc. (C) shows the format of the data record, which consists of a pointer to the next record, record length, data, etc.

この様に、インデックス部の格納領域は初期に予め設定
されてしまっているので、運用途中でのインデックス部
の領域変更は容易ではない。仮に、運用途中でインデッ
クス部にインデックスデータが追加され、格納できなく
なった場合、インデックス部の領域を拡張する作業が必
要となるという欠点を有する。
As described above, since the storage area of the index section is preset at the initial stage, it is not easy to change the area of the index section during operation. If index data is added to the index section during operation and it can no longer be stored, this method has the disadvantage that it will be necessary to expand the area of the index section.

発明の目的 そこで、本発明はこの様な従来方式の欠点を解決すべく
なされたものであって、その目的とするところは、イン
デックスレコードの追加に対して柔軟に対応できるよう
にしたデータ格納方式を提供することにある。
Purpose of the Invention Therefore, the present invention has been made to solve the drawbacks of the conventional method, and its purpose is to provide a data storage method that can flexibly respond to the addition of index records. Our goal is to provide the following.

発明の構成 本発明によれば、格納すべきデータをインデックスレコ
ードとデータレコードとに分けて記憶手段に格納す−る
ようにしたデータ格納方式であって、前記インデックス
レコード相互間をレコードポインタによりチェイン化し
て作成し、前記インデックスレコードと前記データレコ
ードとの格納領域を予め区別することなくこれ等両デー
タを混在して格納自在としてなることを特徴とするデー
タ格納方式が得られる。
Structure of the Invention According to the present invention, there is provided a data storage method in which data to be stored is divided into index records and data records and stored in a storage means, and the index records are chained by record pointers. There is obtained a data storage method characterized in that the index record and the data record can be stored in a mixed manner without distinguishing the storage areas for the index record and the data record in advance.

実施例 以下、図面を用いて本発明の詳細な説明する。Example Hereinafter, the present invention will be explained in detail using the drawings.

第1図は本発明の実施例のシステムブロック図である。FIG. 1 is a system block diagram of an embodiment of the present invention.

図において、入出力装置1はデータの入出力処理を行う
ものであり、演算処理装置2は人力データに対して必要
な処理を施すものである。
In the figure, an input/output device 1 performs data input/output processing, and an arithmetic processing device 2 performs necessary processing on human data.

また、データ記憶装置3は処理されたデータを一時格納
するためのメモリである。
Further, the data storage device 3 is a memory for temporarily storing processed data.

データ格納機構4は格納データをファイル/メモリ5へ
格納するための必要な処理を施す機能を有し、ハードウ
ェア若しくはソフトウェアにて実現される。データ格納
機構4は実行モードチエツク部4と、フォーマツティン
グ処理部42と、インデックスレコード作成部43と、
データレコード作成部44とからなっている。
The data storage mechanism 4 has a function of performing necessary processing to store stored data in the file/memory 5, and is realized by hardware or software. The data storage mechanism 4 includes an execution mode check section 4, a formatting processing section 42, an index record creation section 43,
It consists of a data record creation section 44.

第2図はデータ格納機構4の動作処理フローチャートで
あり、第3図はインデックスレコード及びデータレコー
ドの格納態様及びフォーマットを示している。第3図に
おいて、(A)はソイイル/メモリ5内のインデックス
レコードMnと、データレコードDnと、更には空レコ
ード用インデックスレコード(空にて示す)との格納イ
メージ図である。
FIG. 2 is a flowchart of the operation processing of the data storage mechanism 4, and FIG. 3 shows the storage manner and format of index records and data records. In FIG. 3, (A) is a storage image diagram of an index record Mn, a data record Dn, and an empty record index record (shown as empty) in the soil/memory 5.

インデックスレコードMnのレコード形式は、第3図(
B)に示すように、キ一部、次のインデックスレコード
へのポインタ、データレコード先頭アドレス、データ数
等のパラメータにより構成されているものとする。また
、データレコードは(C)に示すように、次のレコード
へのポインタと、レコード長(データレコードの長さ)
、データ等からなっている。
The record format of index record Mn is shown in Figure 3 (
As shown in B), it is assumed that the index consists of parameters such as a key part, a pointer to the next index record, a data record start address, and the number of data. Also, as shown in (C), the data record contains a pointer to the next record and a record length (length of the data record).
, data, etc.

第3図(A)〜(C)から判るように、インデックスレ
コード部の格納領域を固定化しないで、データレコード
と同様にインデックスレコードにポインタを付してチェ
イン化するような型式として、インデックスレコードの
追加等に対して自由度を大幅に増大させるようにしたも
のである。
As can be seen from Figures 3 (A) to (C), the index record is stored in a format in which the storage area of the index record section is not fixed, and a pointer is attached to the index record in the same way as the data record and chained. This greatly increases the degree of freedom when adding .

次に、第2図を参照して本発明の実施例の動作手順につ
いて説明する。入出力装置1から格納データが人力され
、演算処理装置2にて必要な処理が施されてその結果が
データ記憶装置3に格納される(ステップ20)。
Next, the operating procedure of the embodiment of the present invention will be explained with reference to FIG. Stored data is input manually from the input/output device 1, subjected to necessary processing by the arithmetic processing device 2, and the results are stored in the data storage device 3 (step 20).

データ格納機構4では、先ず実行モードのチエツクが行
われる(ステップ21)。このとき、初期化モードであ
れば、ファイル/メモリ5のフォーマツティングが行わ
れ(ステップ22)、次に空レコードのチェイン化が行
われる(ステップ23)。
In the data storage mechanism 4, first, the execution mode is checked (step 21). At this time, if it is the initialization mode, formatting of the file/memory 5 is performed (step 22), and then empty records are chained (step 23).

一方、実行モードがデータ格納モードであれば、既に格
納されているインデックスのキーと今回人力されたデー
タとの重複がないかどうかチエツクされる(ステップ2
4)。重複がなければ、インデックスレコード用の空レ
コードの確保が行われる(ステップ25)。空レコード
の確保が行われれば、インデックスレコードの作成が第
3図(B)に示すフォーマットに従ってなされる(ステ
ップ26)。
On the other hand, if the execution mode is data storage mode, a check is made to see if there is any overlap between the already stored index key and the manually entered data (step 2).
4). If there is no duplication, an empty record for the index record is secured (step 25). Once an empty record is secured, an index record is created according to the format shown in FIG. 3(B) (step 26).

続いて、データレコード用の空レコードの確保が行われ
(ステップ27)、確保ができたならば、第3図(C)
に示すフォーマットに従ってデータレコードの作成がな
される(ステップ28)。
Next, an empty record for the data record is secured (step 27), and if it is secured, the process shown in FIG. 3(C)
A data record is created according to the format shown in (step 28).

以上の結果として、第3図(A)に示す様な格納がなさ
れることになるのである。
As a result of the above, storage is performed as shown in FIG. 3(A).

発明の効果 叙上の如く、本発明によればインデックスレコードのチ
ェイン化を図ることにより、インデックスレコード格納
領域を固定化せずに、データレコードとインデックスレ
コードとを同等に扱うことができるので、インデックス
レコードの格納領域の不足が生じないために、再初期化
等の処理は不要となり、データ更新の多いファイル等に
有効となるという効果がある。
Effects of the Invention As described above, according to the present invention, by chaining index records, data records and index records can be treated equally without fixing the index record storage area. Since there is no shortage of record storage area, processing such as reinitialization is not necessary, which is effective for files where data is frequently updated.

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

第1図は本発明の実施例のシステムブロック図、第2図
は本発明の実施例の動作を示すフローチャート、第3図
(A)は本発明の実施例によるデータ格納例を示す図、
第3図(B)は本発明の実施例によるインデックス部の
フォーマット図、第3図(C)は本発明の実施例による
データ部のフォーマット図、第4図(A)は従来のデー
タ格納例を示す図、第4図CB)は従来のインデックス
部のフォーマット図、第4図(C)は従来のデータ部の
フォーマット図である。 主要部分の符号の説明 4・・・・・・データ格納機構 5・・・・・・ファイル/メモリ
FIG. 1 is a system block diagram of an embodiment of the present invention, FIG. 2 is a flowchart showing the operation of the embodiment of the present invention, and FIG. 3(A) is a diagram showing an example of data storage according to the embodiment of the present invention.
FIG. 3(B) is a format diagram of the index section according to the embodiment of the present invention, FIG. 3(C) is a format diagram of the data section according to the embodiment of the present invention, and FIG. 4(A) is a conventional data storage example. FIG. 4 (CB) is a format diagram of a conventional index section, and FIG. 4 (C) is a format diagram of a conventional data section. Explanation of symbols of main parts 4...Data storage mechanism 5...File/memory

Claims (1)

【特許請求の範囲】[Claims] (1)格納すべきデータをインデックスレコードとデー
タレコードとに分けて記憶手段に格納するようにしたデ
ータ格納方式であって、前記インデックスレコード相互
間をレコードポインタによりチェイン化して作成し、前
記インデックスレコードと前記データレコードとの格納
領域を予め区別することなくこれ等両データを混在して
格納自在としてなることを特徴とするデータ格納方式。
(1) A data storage method in which data to be stored is divided into index records and data records and stored in a storage means, in which the index records are created by chaining each other using record pointers, and the index records are created by chaining each other using record pointers. A data storage method characterized in that the data record and the data record can be stored in a mixed manner without distinguishing between storage areas in advance.
JP1179977A 1989-07-12 1989-07-12 Data store system Pending JPH0344746A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1179977A JPH0344746A (en) 1989-07-12 1989-07-12 Data store system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1179977A JPH0344746A (en) 1989-07-12 1989-07-12 Data store system

Publications (1)

Publication Number Publication Date
JPH0344746A true JPH0344746A (en) 1991-02-26

Family

ID=16075297

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1179977A Pending JPH0344746A (en) 1989-07-12 1989-07-12 Data store system

Country Status (1)

Country Link
JP (1) JPH0344746A (en)

Similar Documents

Publication Publication Date Title
JP2000357115A (en) Device and method for file retrieval
JPH0344746A (en) Data store system
JP2624170B2 (en) Logical deletion data physical deletion method
JPH0651989A (en) Fast loading system of operating system in computer system
JPS61199151A (en) Logging system of line
JPS63204434A (en) Electronic document retrieving device
JP2604548B2 (en) Information processing device
JP2891815B2 (en) Media name management method for loosely coupled systems
JP3019104B2 (en) File processing device
JPH06231021A (en) Data managing system provided with data generation information
JPH05257775A (en) Data processor
JPS62276626A (en) File control system
JPH04116721A (en) System definition directive analysis system
JPS62281030A (en) Document retrieving and processing system
JPH03282841A (en) Direct input/output processing system for variable length record
JPS6359672A (en) Storage and retrieval device for picture information
JPH0341532A (en) Data base accessing system
JPH05274334A (en) System of grasping customer information for each person in charge in banking business
JPH02222028A (en) Open system for designation of file label address of optical disk file
JPH08329095A (en) Data retrieval system for relational data base
JPH04137035A (en) Software design structure storage device
JPH02263265A (en) Tabulation processor
JPH0573395A (en) File controller
JPH04304559A (en) Data retrieving system
JPH0719208B2 (en) Message text assembly edit information load method