JPH05181726A - File access system - Google Patents
File access systemInfo
- Publication number
- JPH05181726A JPH05181726A JP3358084A JP35808491A JPH05181726A JP H05181726 A JPH05181726 A JP H05181726A JP 3358084 A JP3358084 A JP 3358084A JP 35808491 A JP35808491 A JP 35808491A JP H05181726 A JPH05181726 A JP H05181726A
- Authority
- JP
- Japan
- Prior art keywords
- record
- program
- file
- key
- file 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
Links
- 238000000034 method Methods 0.000 claims description 9
- 230000003068 static effect Effects 0.000 abstract description 32
- 238000010586 diagram Methods 0.000 description 7
- 238000012217 deletion Methods 0.000 description 4
- 230000037430 deletion Effects 0.000 description 4
- 230000001174 ascending effect Effects 0.000 description 1
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 file access, and more particularly to file access by continuous operation.
【0002】[0002]
【従来の技術】従来のファイルアクセス方式は、図2に
示すようにデータ部230に格納されているレコードa
(240)やレコードb(250)のアドレスを管理し
ているレコードアドレス220とプログラムよりレコー
ドa(240)やレコードb(250)をアクセスする
ためのアクセスキーを管理しているレコードアクセスキ
ー210からなる索引部200を利用してプログラムよ
り要求があったレコードをアクセスするファイルアクセ
ス部260を有している。2. Description of the Related Art A conventional file access method is a record a stored in a data section 230 as shown in FIG.
From the record address 220 that manages the address of (240) and the record b (250) and the record access key 210 that manages the access key for accessing the record a (240) and the record b (250) from the program. The file access unit 260 uses the index unit 200 to access the record requested by the program.
【0003】次に動作について説明する。Next, the operation will be described.
【0004】プログラムよりレコードアクセスキーK1
を指定されると、ファイルアクセス部260は、索引部
200のレコードアクセスキー210より同じ値を持つ
レコードアクセスキーを検索し、レコードa(240)
をプログラムに返却する。From the program, the record access key K 1
Is specified, the file access unit 260 searches the record access key 210 of the index unit 200 for a record access key having the same value, and the record a (240)
Will be returned to the program.
【0005】プログラムよりレコードa(240)の更
新要求があると、ファイルアクセス部260は、指定さ
れたイメージでレコードa(240)の内容を変更す
る。When the program requests update of the record a (240), the file access unit 260 changes the contents of the record a (240) with the designated image.
【0006】このようにレコードa(240)は、プロ
グラムより更新要求がある毎に内容が変更されていた。As described above, the content of the record a (240) is changed every time there is an update request from the program.
【0007】[0007]
【発明が解決しようとする課題】従来、この種のファイ
ルアクセス方式では、ある時点の状態のファイルをアク
セスする場合、その時点で当該ファイルを更新している
プログラムを全て停止させる必要があり、連続してファ
イルを利用できないという問題があった。Conventionally, in this type of file access method, when accessing a file in a state at a certain time point, it is necessary to stop all programs updating the file at that time point. Then there was a problem that the file could not be used.
【0008】本発明の目的は連続運転によるファイルア
クセスにおいてある時点の状態のファイルをアクセスす
る場合更新しているプログラムを停止させずにある静止
点の状態のファイルをアクセスすることを可能にするフ
ァイルアクセス方式を提供することにある。An object of the present invention is a file which, when accessing a file in a state at a certain point in file access by continuous operation, makes it possible to access a file in a certain quiescent state without stopping the program being updated. To provide an access method.
【0009】[0009]
【課題を解決するための手段】本発明のファイルアクセ
ス方式は、プログラムが設定した時点(以降静止点と呼
ぶ)でのファイルをアクセスするファイルアクセス手段
と、レコードをアクセスするために必要なアクセスキー
情報が格納されている索引情報と、静止点のレコードを
管理する静止管理情報と、静止点のレコードを格納する
データとを備えている。According to the file access method of the present invention, a file access means for accessing a file at a time point (hereinafter referred to as a quiescent point) set by a program, and an access key required for accessing a record. It is provided with index information in which information is stored, stationary management information for managing the record of the stationary point, and data for storing the record of the stationary point.
【0010】[0010]
【実施例】次に本発明について図面を参照して説明す
る。The present invention will be described below with reference to the drawings.
【0011】図1は、本発明の一実施例の構造を示すブ
ロック図である。FIG. 1 is a block diagram showing the structure of an embodiment of the present invention.
【0012】本発明のファイルアクセス方式は、索引部
121とレコード122からなるファイル120と、静
止情報部123とデータ部124からなるレコード12
2と、ファイルアクセス部110とプログラム100か
ら構成される。According to the file access method of the present invention, a file 120 including an index section 121 and a record 122, and a record 12 including a static information section 123 and a data section 124.
2, a file access unit 110 and a program 100.
【0013】図3は、レコード122の構成を示す図で
ある。FIG. 3 is a diagram showing the structure of the record 122.
【0014】静止情報部123は、静止キー130とN
EXTアドレス131と削除フラグ132からなる。静
止キー130は、静止点を判定するためのキー情報(静
止キーは昇順に設定する)が格納されている。NEXT
アドレス131は、静止点毎に更新されたデータを格納
したレコードのアドレスを示しており、最終の静止点で
更新されたデータには、その時点で最終の旨を示す値が
入る。削除フラグ132は、静止点でプログラムよりレ
コードが削除されたか否かを示す値が入る。The stationary information section 123 includes a stationary key 130 and an N key.
It comprises an EXT address 131 and a delete flag 132. The static key 130 stores key information for determining a static point (static keys are set in ascending order). NEXT
The address 131 indicates the address of the record that stores the data updated for each stationary point, and the data updated at the final stationary point has a value indicating the final point at that time. The deletion flag 132 has a value indicating whether or not the record is deleted by the program at the stationary point.
【0015】索引部121の構成は、図2の索引部20
0と同じである。The structure of the index unit 121 is similar to that of the index unit 20 shown in FIG.
Same as 0.
【0016】プログラム100より参照したいレコード
のアクセスキーと静止キーが指定されると、ファイルア
クセス部110は、索引部121より同じレコードアク
セスキー210を検索し、アクセスすべきレコードアド
レス220を得て、該当するレコードを読込む。静止キ
ー130とプログラム100より指定された静止キー
(以降、指定静止キーと呼ぶ)が等しければ、そのレコ
ードのデータをプログラム100へ渡す。もし、静止キ
ー130が指定静止キーより小さければ、NEXTアド
レス131で差すレコードを読込む。読込んだレコード
の静止キー130が指定静止キーより小さければ前回読
込んだレコードのデータをプログラム100へ渡す。When the access key and the static key of the record to be referred to are specified by the program 100, the file access unit 110 searches the same record access key 210 from the index unit 121 to obtain the record address 220 to be accessed, Read the corresponding record. If the static key 130 and the static key designated by the program 100 (hereinafter referred to as the designated static key) are the same, the data of the record is passed to the program 100. If the static key 130 is smaller than the designated static key, the record pointed to by the NEXT address 131 is read. If the still key 130 of the read record is smaller than the designated still key, the data of the previously read record is passed to the program 100.
【0017】また、NEXTアドレス131をたどって
最終レコードまで達した場合、プログラム100へ該当
レコードがない旨の応答を返す。When the NEXT address 131 is reached and the final record is reached, a response indicating that there is no corresponding record is returned to the program 100.
【0018】ただし、該当レコードの削除フラグ132
に削除の旨が入っていた場合もプログラム100へ該当
レコードがない旨の応答を返す。However, the deletion flag 132 of the corresponding record
Even if the message “Delete” is entered, a response indicating that there is no corresponding record is returned to the program 100.
【0019】プログラム100より更新要求があると、
ファイルアクセス部110は、該当するレコードの静止
キー130と指定静止キーが等しければ、データを変更
するのみである。When there is an update request from the program 100,
The file access unit 110 only changes the data if the static key 130 of the corresponding record and the designated static key are the same.
【0020】もし、指定静止キーが静止キー130より
大きければ、NEXTアドレス131に新たに追加する
レコードのアドレスを格納し、追加するレコードのデー
タをプログラム100より指定されたデータにして格納
する。If the designated static key is larger than the static key 130, the address of the record to be newly added is stored in the NEXT address 131, and the data of the record to be added is stored as the data designated by the program 100.
【0021】次に、このように構成された本実施例のフ
ァイルアクセス方式の動作について説明する。Next, the operation of the file access method of this embodiment having the above configuration will be described.
【0022】図4は、レコード#1とレコード#2がフ
ァイルに格納されており、それぞれのレコードアクセス
キー210は、K1 とK2 となっている。また、静止キ
ー130は1である。In FIG. 4, record # 1 and record # 2 are stored in the file, and the respective record access keys 210 are K 1 and K 2 . The stationary key 130 is 1.
【0023】このようなファイル120の状態で、ある
静止点でプログラム100より静止キー130が2で指
定され、レコード#1をデータ#3で更新要求がある
と、ファイルアクセス部110は、レコードアクセスキ
ー210よりK1 を検索し、レコード#1のレコードア
ドレスを得て、レコード#1を読込む。レコード#1の
静止キー130と指定静止キーを比較し、静止キー13
0が小さいため、NEXTアドレス131を参照する。
最終レコードの旨を示す値が格納されているため、NE
XTアドレス131に新たに追加するレコード#3のア
ドレスをセットする。追加するレコード#3のデータに
データ#3をセットし、NEXTアドレス131に最終
レコードを示す旨の値をセットし、削除フラグ132に
存在する旨を示す値を入れ、ファイル120に格納す
る。In such a state of the file 120, when the quiesce key 130 is designated by the program 100 by 2 at a certain quiesce point and an update request is made for the record # 1 with the data # 3, the file access unit 110 causes the record access. The key 210 is searched for K 1 , the record address of the record # 1 is obtained, and the record # 1 is read. The static key 130 of record # 1 is compared with the designated static key, and the static key 13
Since 0 is small, the NEXT address 131 is referenced.
Since the value indicating the last record is stored, NE
The address of the record # 3 to be newly added is set in the XT address 131. Data # 3 is set in the data of the record # 3 to be added, a value indicating the final record is set in the NEXT address 131, a value indicating that the deletion flag 132 exists is stored in the file 120.
【0024】次に静止点で、プログラム100より静止
キー130が3で指定されレコード#2をデータ#4で
更新要求があると、ファイルアクセス部110はレコー
ドアクセスキー210よりK2 を検索し、レコード#2
のレコードアドレスを得て、レコード#2を読込む。レ
コード#2の静止キー130と指定静止キーを比較し、
静止キー130が小さいため、NEXTアドレス131
を参照する。最終レコードの旨を示す値が格納されてい
るため、NEXTアドレス131に新たに追加するレコ
ード#4のアドレスをセットする。追加するレコード#
4のデータにデータ#4をセットし、NEXTアドレス
131に最終レコードを示す旨の値をセットし、削除フ
ラグ132に存在する旨を示す値を入れ、ファイル12
0に格納する。このような状態を図5に示す。At the quiesce point, when the quiesce key 130 is designated by 3 from the program 100 and an update request is made for record # 2 with data # 4, the file access unit 110 retrieves K 2 from the record access key 210, Record # 2
Get the record address of and read record # 2. Compare the static key 130 of record # 2 with the designated static key,
Since the static key 130 is small, the NEXT address 131
Refer to. Since the value indicating the last record is stored, the address of the record # 4 to be newly added is set in the NEXT address 131. Record to add #
The data # 4 is set to the data of No. 4, the value indicating the final record is set to the NEXT address 131, the value indicating that the deletion flag 132 exists is entered, and the file 12
Store in 0. Such a state is shown in FIG.
【0025】図5の状態で、プログラム100より静止
キー130が2を持ち、レコードアクセスキー210が
K2 を持つレコードの参照要求があると、ファイルアク
セス部110は、まずレコード#2を検索する。レコー
ド#2の静止キー130の値が指定静止キーの値より小
さいため、NEXTアドレス131を参照し、レコード
#4のレコードアドレスを得て、レコード#4を読込
む。レコード#4の静止キーの値が指定静止キーの値よ
り大きいため、前回読込んだレコード#2のデータをプ
ログラム100へ渡すことになる。In the state shown in FIG. 5, when there is a request from the program 100 for a record in which the quiescent key 130 has 2 and the record access key 210 has K 2 , the file access unit 110 first searches for record # 2. .. Since the value of the static key 130 of the record # 2 is smaller than the value of the designated static key, the NEXT address 131 is referred to, the record address of the record # 4 is obtained, and the record # 4 is read. Since the value of the static key of the record # 4 is larger than the value of the designated static key, the data of the record # 2 read last time is passed to the program 100.
【0026】[0026]
【発明の効果】以上説明したように本発明は、静止点で
プログラムで指定された静止キ−をレコ−ド毎に持たせ
たのでプログラムを停止させずにある静止点の状態のフ
ァイルをアクセスすることを可能にしたという結果を有
する。As described above, according to the present invention, since the static key designated by the program at the static point is provided for each record, the file at the static point is accessed without stopping the program. Has the result that it was possible to do.
【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.
【図2】従来のファイルアクセスの例を示した図であ
る。FIG. 2 is a diagram showing an example of conventional file access.
【図3】図1に示したレコ−ド122の構成図である。FIG. 3 is a configuration diagram of a record 122 shown in FIG.
【図4】実施例におけるファイルアクセス方式の動作を
説明するための図である。FIG. 4 is a diagram for explaining the operation of the file access method according to the embodiment.
【図5】実施例におけるファイルアクセス方式の別の状
態での動作を説明するための図である。FIG. 5 is a diagram for explaining an operation in another state of the file access method according to the embodiment.
100 プログラム 110 ファイルアクセス部 120 ファイル 121 索引部 122 レコード 123 静止情報部 124 データ部 130 静止キー 131 NEXTアドレス 132 削除フラグ 200 索引部 210 レコードアクセスキー 220 レコードアドレス 230 データ部 240 レコードa 250 レコードb 260 ファイルアクセス部 100 program 110 file access part 120 file 121 index part 122 record 123 static information part 124 data part 130 static key 131 NEXT address 132 delete flag 200 index part 210 record access key 220 record address 230 data part 240 record a 250 record b 260 file Access section
Claims (1)
と呼ぶ)でのファイルをアクセスするファイルアクセス
手段と、 レコードをアクセスするために必要なアクセスキー情報
が格納されている索引情報と、 静止点のレコードを管理する静止管理情報と、 静止点のレコードを格納するデータとを備えることを特
徴とする、ファイルアクセス方式。1. A file access means for accessing a file at a time set by a program (hereinafter referred to as a quiesce point), index information in which access key information necessary for accessing a record is stored, and a quiesce point. A file access method characterized by comprising stationary management information for managing the records of the above, and data for storing the records of the stationary points.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3358084A JPH05181726A (en) | 1991-12-27 | 1991-12-27 | File access system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3358084A JPH05181726A (en) | 1991-12-27 | 1991-12-27 | File access system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH05181726A true JPH05181726A (en) | 1993-07-23 |
Family
ID=18457460
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3358084A Pending JPH05181726A (en) | 1991-12-27 | 1991-12-27 | File access system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH05181726A (en) |
-
1991
- 1991-12-27 JP JP3358084A patent/JPH05181726A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7860907B2 (en) | Data processing | |
| US8555018B1 (en) | Techniques for storing data | |
| US20040122849A1 (en) | Assignment of documents to a user domain | |
| US8862624B2 (en) | Access control to resource content | |
| CN112131200A (en) | Distributed mass file query system and method based on cifs sharing | |
| US7526469B2 (en) | Method and system of database management with shared area | |
| US7269589B2 (en) | Database managing method and system having data backup function and associated programs | |
| JP2925042B2 (en) | Information link generation method | |
| JP3769775B2 (en) | Distributed link information maintenance method | |
| JPH08314780A (en) | File management system | |
| JPH0934758A (en) | Relational data base access control system | |
| JPH1115708A (en) | Directory information management method and record medium recording program for execution of processing of the method | |
| JPH11184889A (en) | Image data management device | |
| JPH0198020A (en) | Index management system | |
| JPS62131349A (en) | Data base processing system | |
| JPH02157949A (en) | Electronic file management method | |
| JP2871755B2 (en) | Split control method in dynamic hash | |
| JPH06214850A (en) | File retrieving device | |
| JP2000259476A (en) | File management system and server computer | |
| JPH0744426A (en) | File system file management method | |
| JP2003271626A (en) | Storage device with retrieval function | |
| JPS6327927A (en) | Index generation system in reserved information retrieval system | |
| JPH03214335A (en) | Computer system | |
| JP2007156844A (en) | Data registration / retrieval system and data registration / retrieval method | |
| JPH06259293A (en) | Useless document batch deleting device |