JPH0325636A - Managing method for data record - Google Patents

Managing method for data record

Info

Publication number
JPH0325636A
JPH0325636A JP1159774A JP15977489A JPH0325636A JP H0325636 A JPH0325636 A JP H0325636A JP 1159774 A JP1159774 A JP 1159774A JP 15977489 A JP15977489 A JP 15977489A JP H0325636 A JPH0325636 A JP H0325636A
Authority
JP
Japan
Prior art keywords
record
volume
data
data record
index
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
JP1159774A
Other languages
Japanese (ja)
Inventor
Yoshio Shimada
島田 恵夫
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP1159774A priority Critical patent/JPH0325636A/en
Publication of JPH0325636A publication Critical patent/JPH0325636A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To generate an index record and to accelerate the access to an arbitrary data record by adding the volume identification record of a volume, where the data record exists, and position information from the leading volume. CONSTITUTION:When a data file 3 composed of plural data records 5 exists over plural volumes 14, 15 and 16, the volume identification information of the volumes 14, 15 and 16, where the data record 5 exists, and the position information from the leading volume are added and the index record is generated. When retrieval is executed, the volumes 14, 15 and 16 are selected based on the volume identification information of the index record. Thus, when the data file 3 spreads over the plural volumes the access to the arbitrary data record can be accelerated.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、追記型の光ディスク装置等のデータレコー
ドの管理方法に関するものである.特に、キーを用いて
ランダムに検索できるデータレコードの管理方法に関す
るものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for managing data records in write-once optical disc devices and the like. In particular, it relates to a method of managing data records that can be searched randomly using keys.

し従来の技術] 従来のファイルシステムの構成を第2図及び第3図を参
照しながら説明する. 第2図は従来のデータレコードの管理方法で使用する索
引ファイルとデータファイルを示す説明図、第3図は従
来のデータレコードの管理方法で使用する索引レコード
を示す説明図である。
[Prior Art] The configuration of a conventional file system will be explained with reference to Figs. 2 and 3. FIG. 2 is an explanatory diagram showing an index file and a data file used in a conventional data record management method, and FIG. 3 is an explanatory diagram showing an index record used in a conventional data record management method.

第2図において、索引ファイル(1)は、多数の索引レ
コード(2)から楕或され、磁気ディスク上に作成され
ている。
In FIG. 2, an index file (1) is created from a large number of index records (2) and created on a magnetic disk.

また、データファイル〈3〉及び(4)は、多数のデー
タレコード(5)から構成され、かつデータレコード(
5)はキ一部(6)とデータ部〈7)とから構成されて
いる.なお、データファイル〈3〉及び〈4)は、それ
ぞれ異なるボリューム(光ディスク)上に作成されてい
る。
Furthermore, data files <3> and (4) are composed of a large number of data records (5), and data records (
5) consists of a key part (6) and a data part (7). Note that the data files <3> and <4) are created on different volumes (optical disks).

第3図において、索引レコード(2)は、該当データレ
コード(5)のキ一部(6)に対し前後のレコードのキ
ーの関係から前方、後方の圧縮処理を行った後のキー(
8)と、前方圧縮のバイl・数(9)と、圧縮処理後の
キーの長さ(10)と、該当ボリュームのデータファイ
ル先頭からの相対アドレス(11〉とから構成されてい
る.なお、この索引レコード(2)は、各データレコー
ド(5)に対応している. つぎに、上述した従来例の動作を説明する。
In FIG. 3, the index record (2) is the key after performing forward and backward compression processing on the key part (6) of the corresponding data record (5) based on the relationship between the keys of the preceding and succeeding records.
8), the number of bytes for forward compression (9), the key length after compression processing (10), and the relative address from the beginning of the data file of the volume (11>). , this index record (2) corresponds to each data record (5).Next, the operation of the above-mentioned conventional example will be explained.

まず、例えばデータファイル(3)内の任意のデータレ
コード(5)を検索する場合、データレコード(5)を
代表するキー値をパラメータとして指定する. これにより、ファイルシステムは、磁気ディスク上の索
引ファイル(1)を検索し、該当するキーをもつ索引レ
コード(2)を選択する.この索引レコード(2)内の
相対アドレス〈11〉に基づいて、目的のデータレコー
ド(5)のデータファイル(3)の先頭からの物理アド
レスを算出して、データファイル(3)上のデニタレコ
ード(5)を該当ボリュームがら主記憶装置内に読み込
み、プログラムに引き渡す. ところで、データファイル(3)が複数のボリュームに
またがっている場合は、索引レコード(2)にはデータ
レコード(5)がどのボリュームに存在しているかを表
す情報がないために、一度、全てのボリュームをマウン
トし、ラベルより各ボリューム上の相対アドレスを調べ
、これを主記憶装置内で管理しなければ、任意のデータ
レコード(5)をアクセスすることができない. [発明が解決しようとする課題] 上述したような従来のデータレコードの管理方法では、
データファイルが複数のボリュームにまたがっている場
合、任意のデータレコードをアクセスするのに時間がか
かるという問題点があった.この発明は、上述した問題
点を解決するためになされたもので、データファイルが
複数のボリュームにまたがっている場合、任意のデータ
レコードのアクセスを高速化することができるデータレ
コードの管理方法を得ることを目的とする.[課題を解
決するための手段] この発明に係るデータレコードの管理方法は、以下に述
べるようなステップから成り立つものである. (i)、複数のデータレコードから構成されるデータフ
ァイルが複数のボリュームにまたがって存在する場合に
、データレコードが存在するボリュームのボリューム識
別情報と、先頭ボリュームからの位置情報とを付加して
索引レコードを生成するステップ. (ii).上記データレコードを検索するとき、上記索
引レコードのボリューム識別情報に基づいて上記ボリュ
ームを選択し、上記索引レコードの位置情報に基づいて
物理アドレスを算出して上記データレコードの読み取り
を行うステップ.[作用] この発明においては、最初のステップによって、複数の
データレコードから構成されるデータファイルが複数の
ボリュームにまたがって存在する場合に、データレコー
ドが存在するボリュームのボリューム識別情報と、先頭
ボリュームからの位置情報とが付加されて、索引レコー
ドが生成される.また、次のステップによって、上記デ
ータレコードを検索するとき、上記索引レコードのボリ
ューム識別情報に基づいて上記ボリュームが選択され、
上記索引レコードの位置情報に基づいて物理アドレスが
算出されて、上記データレコードの読み取りが行われる
. [実施例] この発明の実施例を使用するファイルシステムの構成を
第1図を参照しながら説明する。
First, for example, when searching for an arbitrary data record (5) in a data file (3), a key value representing the data record (5) is specified as a parameter. As a result, the file system searches the index file (1) on the magnetic disk and selects the index record (2) having the corresponding key. Based on the relative address <11> in this index record (2), the physical address of the target data record (5) from the beginning of the data file (3) is calculated, and the deniter record ( 5) is read from the corresponding volume into the main storage and handed over to the program. By the way, if the data file (3) spans multiple volumes, the index record (2) does not have information indicating in which volume the data record (5) exists, so all Any data record (5) cannot be accessed unless the volumes are mounted, the relative address on each volume is checked from the label, and this is managed in the main memory. [Problem to be solved by the invention] In the conventional data record management method as described above,
When a data file spans multiple volumes, there is a problem in that it takes time to access any data record. This invention was made to solve the above-mentioned problems, and provides a data record management method that can speed up access to any data record when a data file spans multiple volumes. The purpose is to [Means for Solving the Problems] The data record management method according to the present invention consists of the steps described below. (i) When a data file consisting of multiple data records exists across multiple volumes, the index is added by adding the volume identification information of the volume where the data record exists and the position information from the first volume. Step to generate records. (ii). When searching for the data record, selecting the volume based on the volume identification information of the index record, calculating a physical address based on the position information of the index record, and reading the data record. [Operation] In the present invention, in the first step, when a data file consisting of multiple data records exists across multiple volumes, the volume identification information of the volume in which the data record exists and from the first volume are The location information is added to generate an index record. Further, in the next step, when searching the data record, the volume is selected based on the volume identification information of the index record;
A physical address is calculated based on the position information of the index record, and the data record is read. [Embodiment] The configuration of a file system using an embodiment of the present invention will be described with reference to FIG.

第1図は、この発明の一実施例の概念を示す説明図であ
り、データレコード(5)の橿或は上記従来例のものと
全く同一である. 第1図において、この発明の一実施例で使用する索引レ
コード(2^)は、該当データレコード(5)のキ一部
〈6)に対し前後のレコードのキーの関係から前方、後
方の圧縮処理を行った後のキー〈8〉と、前方圧縮.の
バイト数(9〉と、圧縮処理後のキーの長さ(10)と
、先頭ボリューム(14)からの相対変位を表す相対ボ
リューム番号〈12)と、先頭ボリヱーム(14)のデ
ータファイル先頭からの相対変位を表す相対アドレス(
13)とから横戒されている.なお、この索引レコード
(2^)は、各データレコード(5)に対応している。
FIG. 1 is an explanatory diagram showing the concept of an embodiment of the present invention, and the structure of the data record (5) is exactly the same as that of the conventional example described above. In FIG. 1, the index record (2^) used in one embodiment of the present invention is compressed forward and backward with respect to the key part <6) of the corresponding data record (5) due to the relationship between the keys of the records before and after it. Key <8> after processing and forward compression. The number of bytes (9), the key length after compression processing (10), the relative volume number (12) representing the relative displacement from the first volume (14), and the number of bytes of the first volume (14) from the beginning of the data file. A relative address representing the relative displacement of (
13) and has been sidelined. Note that this index record (2^) corresponds to each data record (5).

図示していない索引ファイル(l^)は、多数の索引レ
コード(2^)から横成され、磁気ディスク2Lに作成
されている. また、データファイル(3〉は、3つのボリューム(1
4)、(15)及び(16)、すなわち3つの光ディス
ク(14) 、(15)及び(16)にまたがっている
. つぎに、上述した実施例の動作を第1図を参照しながら
説明する. まず、キー(8〉が“o■oto=の索引レコード(2
八〉を生成するとき、キ一部(6)が“01010”の
データレコード(5〉が存在するボリューム(16)の
先頭ボリューム(14)からの相対変位“3”を相対ボ
リューム番号(12)として、索引レコード(2^)に
付加する. また2先頭ボリエーム(14)のデータファイル先頭か
らの相対変位を相対アドレス〈13)として、索引レコ
ード〈2^〉に付加する. そして、キ一部(6)が“01010”であるデータレ
コード(5)を検索する場合、プログラムは、“010
10”というキーをパラメータとして設定する. これにより、ファイルシステムは、磁気ディスク上に作
成された索引ファイル(1^)を検索し、このキーをも
つ索引レコード(2^〉を得る。
An index file (l^), not shown, is composed of a large number of index records (2^) and is created on the magnetic disk 2L. In addition, the data file (3) has three volumes (1
4), (15) and (16), that is, it spans three optical disks (14), (15) and (16). Next, the operation of the above-mentioned embodiment will be explained with reference to FIG. First, the index record (2
When generating 8〉, the relative displacement “3” from the first volume (14) of the volume (16) in which the key part (6) is “01010” (5〉) exists is expressed as the relative volume number (12). The relative displacement of the second first volume (14) from the beginning of the data file is added as a relative address <13) to the index record <2^>. Then, when searching for data record (5) whose key part (6) is “01010”, the program searches for “01010”.
The key ``10'' is set as a parameter. This causes the file system to search the index file (1^) created on the magnetic disk and obtain the index record (2^) having this key.

この後、得られた索引レコード(2^)の相対ボリュー
ム番号(12)である゛3”に基づいて、該当データレ
コード(5)が存在するボリューlいく1B〉を選択し
、図示しない駆動装置にマウントする. 次に、得られた索引レコード(2^)の相対アドレス(
13〉から、先頭ボリューム(14)内のデータファイ
ル先頭からの相対変位を得て、該当データレコード(5
)の物理アドレスを算出する,そして、該当ボリューム
(光ディスク>(16)から該当データレコード(5)
の読み取りを行う。
After that, based on the relative volume number (12) "3" of the obtained index record (2^), select the volume "1B" in which the corresponding data record (5) exists, and select the drive device (not shown). Next, the relative address (
13>, the relative displacement from the beginning of the data file in the first volume (14) is obtained, and the corresponding data record (5
), and calculate the physical address of the corresponding volume (optical disk>(16) to the corresponding data record (5)
Perform reading.

この発明の一実施例は、L述したように、全てのボリュ
ームをマウントしてデータレコードの相対変位を調べる
ことなく、目的のデータレコードの存在するボリューム
及び目的のデータレコードの相対変位を無駄なレコード
検索を行わずに、直接目的のデータレコードの検索を行
うことができる. したがって、複数のボリエームにまたがったデータファ
イルの各レコードのアクセス時間を均一化することがで
きる効果を奏する. なお、上記実施例では追記型の光ディスクの場合を示し
ているため、索引ファイルは書き換え可能な磁気ディス
ク上に記録しているが、書き換え可能な記録媒体上にデ
ータレコードを記録する場合には索引ファイルもデータ
レコードと同一の記録媒体に記録しても同様の動作を期
待できる.[発明の効果] この発明は、以上説明したとおり、複数のデータレコー
ドから構成されるデータファイルが複数のボリュームに
またがって存在する場合に、データレコードが存在する
ボリエームのボリューム識別情報と、先頭ボリヱームか
らの位置情報とを付加して索引レコードを生成するステ
ップと、上記データレコードを検索するとき、上記索引
レコードのボリューム識別情報に基づいて上記ボリュー
ムを選択し、上記索引レコードの位置情報に基づいて物
理アドレスを算出して上記データレコードの読み取りを
行うステップとから成り立つので、データファイルが複
数のボリュームにまたがっている場合、任意のデータレ
コードのアクセスを高速化することができるという効果
を奏する。
One embodiment of the present invention, as described above, is capable of measuring the volume where the target data record exists and the relative displacement of the target data record without mounting all the volumes and checking the relative displacement of the data record. You can directly search for the desired data record without performing a record search. Therefore, it is possible to equalize the access time for each record of a data file spanning multiple volumemes. Note that the above example shows the case of a write-once optical disk, so the index file is recorded on a rewritable magnetic disk. However, when recording data records on a rewritable recording medium, the index file is Similar behavior can be expected even if the file is recorded on the same recording medium as the data record. [Effects of the Invention] As explained above, when a data file consisting of a plurality of data records exists across a plurality of volumes, the present invention provides volume identification information of the volume in which the data record exists and the volume identification information of the first volume. a step of generating an index record by adding location information from the index record; when searching the data record, selecting the volume based on the volume identification information of the index record; Since this method consists of the steps of calculating a physical address and reading the data record, it is possible to speed up access to any data record when the data file spans multiple volumes.

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

第1図はこの発明の一実施例の概念を示す説明図、第2
図は従来のデータレコードの管理方法で使用した索引フ
ァイルとデータファイルを示す説明図、第3図は従来の
データレコードの管理方法で使用した索引レコードを示
す説明図である。 図において、 (2^〉 ・・・ 索引レコード、 (3) ・・・ データファイル、 (5) ・・・ データレコード、 (6) ・・・ キ一部、 (7) ・・・ データ部、 (12)  ・・・ 相対ボリューム番号、(13) 
 ・・・ 相対アドレス、 (14) 、(15)、(16)  ・・・ 光ディス
ク(ボリューム)である. なお、各図中、同一符号は同一、又は相当部分乙1(7
)Lnの
FIG. 1 is an explanatory diagram showing the concept of one embodiment of the present invention, and FIG.
The figure is an explanatory diagram showing an index file and a data file used in the conventional data record management method, and FIG. 3 is an explanatory diagram showing the index record used in the conventional data record management method. In the figure, (2^> ... index record, (3) ... data file, (5) ... data record, (6) ... key part, (7) ... data section, (12) ... Relative volume number, (13)
... Relative address, (14), (15), (16) ... Optical disk (volume). In each figure, the same reference numerals indicate the same or corresponding parts Otsu 1 (7
)Ln's

Claims (1)

【特許請求の範囲】[Claims]  複数のデータレコードから構成されるデータファイル
が複数のボリュームにまたがって存在する場合に、デー
タレコードが存在するボリュームのボリューム識別情報
と、先頭ボリュームからの位置情報とを付加して索引レ
コードを生成するステップ、及び上記データレコードを
検索するとき、上記索引レコードのボリューム識別情報
に基づいて上記ボリュームを選択し、上記索引レコード
の位置情報に基づいて物理アドレスを算出して上記デー
タレコードの読み取りを行うステップから成り立つこと
を特徴とするデータレコードの管理方法。
When a data file consisting of multiple data records exists across multiple volumes, an index record is generated by adding the volume identification information of the volume where the data record exists and the position information from the first volume. and when searching the data record, selecting the volume based on the volume identification information of the index record, calculating a physical address based on the position information of the index record, and reading the data record. A data record management method characterized by comprising:
JP1159774A 1989-06-23 1989-06-23 Managing method for data record Pending JPH0325636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1159774A JPH0325636A (en) 1989-06-23 1989-06-23 Managing method for data record

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1159774A JPH0325636A (en) 1989-06-23 1989-06-23 Managing method for data record

Publications (1)

Publication Number Publication Date
JPH0325636A true JPH0325636A (en) 1991-02-04

Family

ID=15700971

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1159774A Pending JPH0325636A (en) 1989-06-23 1989-06-23 Managing method for data record

Country Status (1)

Country Link
JP (1) JPH0325636A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100411107B1 (en) * 2001-07-12 2003-12-12 현대자동차주식회사 Safety fence

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100411107B1 (en) * 2001-07-12 2003-12-12 현대자동차주식회사 Safety fence

Similar Documents

Publication Publication Date Title
US5819290A (en) Data recording and management system and method for detecting data file division based on quantitative number of blocks
KR20030011100A (en) Methods and devices for recording or reading files on/from a sequential medium and sequential medium
JPH0543135B2 (en)
JP3421898B2 (en) Data recording device and data management method
JPH0330034A (en) Optical disk file management method
JPH0325636A (en) Managing method for data record
JPS63104284A (en) Disk file access system
JP4027726B2 (en) Information recording / reproducing apparatus, information recording / reproducing method, program, recording medium, and information recording / reproducing system
JPH09115246A (en) Information recording method, information recording apparatus, and recording medium
JPH03217972A (en) File search device
JPH0770194B2 (en) Write-once data recording method on write-once recording medium
JPH11175380A (en) Information reproduction method
JP2612589B2 (en) Directory search method
JPS62245574A (en) Data storing system to rotating type recording medium
JP3936839B2 (en) Data storage system
JP3114399B2 (en) Recording medium management apparatus and method
JPH02132516A (en) Writable optical disc management system and method
JPH0317752A (en) Access method using index
JPS61103242A (en) High-speed retrieval system
JP2671298B2 (en) File management method
US7634172B1 (en) Methods for recording multiple sessions on a rewritable DVD disc
JPS59183450A (en) File management method
KR20080069071A (en) Improved file system and file management method using it
JPS62177642A (en) File management system for postscript filing device
JPH064384A (en) Image data managing system