JPH07160552A - Bit map file access system - Google Patents

Bit map file access system

Info

Publication number
JPH07160552A
JPH07160552A JP5302483A JP30248393A JPH07160552A JP H07160552 A JPH07160552 A JP H07160552A JP 5302483 A JP5302483 A JP 5302483A JP 30248393 A JP30248393 A JP 30248393A JP H07160552 A JPH07160552 A JP H07160552A
Authority
JP
Japan
Prior art keywords
file
bit
record
access
relative
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.)
Granted
Application number
JP5302483A
Other languages
Japanese (ja)
Other versions
JP2669311B2 (en
Inventor
Tamotsu Maeda
保 真栄田
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 JP5302483A priority Critical patent/JP2669311B2/en
Publication of JPH07160552A publication Critical patent/JPH07160552A/en
Application granted granted Critical
Publication of JP2669311B2 publication Critical patent/JP2669311B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To improve processing efficiency of file access control by decreasing probability of generating the competition of access by distributing continuous bits to respective records in a relative file with the record of a bit map file as an exclusive control unit. CONSTITUTION:A bit map file access system 1 is composed of a file access means 5 defining the relative file for performing access with a relative record number in the file as a key as processing object, bit map file 2 of relative file structure for performing exclusive control by the unit of a records, bit sequential number 3 for accessing the bit information of the bit map file 2, bit access deciding means 7 for deciding which bits of which records a relative bit in one record and the bit sequential number 3 desired to be accessed are correspondent to, and area 6 able to be accessed from plural processes while storing the number of records in the bit map file 2.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、レコード単位のファイ
ル排他制御機能を備え、ファイル内の相対レコード番号
をキーとした相対編成ファイルへのアクセスメソッドを
備えるシステムに関し、特にビットマップファイルアク
セスシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system having a file exclusive control function for each record and an access method to a relative organization file using a relative record number in a file as a key, and more particularly to a bitmap file access system. .

【0002】[0002]

【従来の技術】従来は、特願昭63−158641号公
報に記載されているように、ファイルに格納されている
ビット情報をアクセスする場合、ファイル上にビット通
番を連続して配置することによって、ビット情報を基に
した処理を実行していた。
2. Description of the Related Art Conventionally, as described in Japanese Patent Application No. 63-158641, Japanese Patent Laid-Open No. 63-158641, when bit information stored in a file is accessed, a bit serial number is continuously arranged in the file. , Processing based on bit information was executed.

【0003】そのため通常は論理的に連続するビットは
単一のレコードに収容されていた。
Therefore, normally logically consecutive bits were contained in a single record.

【0004】[0004]

【発明が解決しようとする課題】上述した従来技術で
は、隣接したビット情報を複数プロセスからアクセスす
る場合、例えば、オンライントランザクション処理シス
テムにおいて、送受信する電文に連続した通番を付加
し、その通番をビットマップファイルを用いて管理する
ような場合、論理的に連続するビットが単一のレコード
に収容されることによって排他制御による処理効率が低
下を引き起こすという問題点があった。
In the above-mentioned conventional technique, when adjacent bit information is accessed from a plurality of processes, for example, in an online transaction processing system, consecutive serial numbers are added to transmitted and received telegrams, and the serial numbers are bit-serialized. In the case of management using a map file, there is a problem that logically consecutive bits are accommodated in a single record, which causes a decrease in processing efficiency due to exclusive control.

【0005】[0005]

【課題を解決するための手段】レコード単位のファイル
排他制御機能を備えファイル内の相対レコード番号をキ
ーとしてアクセスを行う相対編成ファイルを処理対象と
するファイルアクセス手段と、相対キーを持つレコード
が複数個存在し、前記ファイルアクセス手段が処理する
排他制御の単位が1レコードに対応する相対編成ファイ
ル構造のビットマップファイルと、アクセスしたいビッ
ト通番がどのレコードのどのビットに対応するかを決定
するビットアクセス決定手段と、前記ビットマップファ
イルのレコード数の情報を格納し複数プロセスからアク
セス可能な領域とから構成されている。
[Means for Solving the Problems] File access means for processing a relative organization file which has a file exclusive control function for each record and uses the relative record number in the file as a key, and a plurality of records having a relative key A bit map file having a relative organization file structure in which a unit of exclusive control processed by the file access means corresponds to one record, and a bit access for determining which bit of which record corresponds to the bit sequence number to be accessed It comprises a determining means and an area which stores information on the number of records in the bitmap file and which can be accessed by a plurality of processes.

【0006】ファイルアクセス手段ビットが通番Xにア
クセスする場合、前記ビットアクセス決定手段は、アク
セスしようとするビット通番Xを複数プロセスからアク
セス可能な領域に格納されているビットマップファイル
のレコード数Kで割った時の商Yと余りMを求めるステ
ップと、前記ビットマップファイルのレコードの相対キ
ーを余りMに対応させて該当のレコードの読み込み処理
を前記ファイルアクセス手段に依頼するステップと、こ
こで読み込まれたレコードのレコード内相対ビットのY
ビット目がアクセス対象のビット情報に対応するものと
してYビット目の情報をアクセスするステップを有して
いる。
When the file access means bit accesses the serial number X, the bit access determining means uses the number K of records of the bitmap file stored in the area accessible by a plurality of processes as the bit serial number X to be accessed. A step of obtaining a quotient Y and a remainder M when divided, a step of associating a relative key of a record of the bitmap file with the remainder M, and requesting the file access means to read the corresponding record; Of the relative bit in the record of the selected record
There is a step of accessing the Y-th bit information as the bit corresponding to the bit information to be accessed.

【0007】[0007]

【実施例】本発明について図面を参照して説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described with reference to the drawings.

【0008】図1は、本発明のビット情報にアクセスす
る処理の流れを示すブロック図であり、レコード単位の
ファイル排他制御機能を備えたビットマップファイルア
クセスシステム1の構成を示す。
FIG. 1 is a block diagram showing the flow of processing for accessing bit information according to the present invention, and shows the configuration of a bitmap file access system 1 having a file exclusive control function for each record.

【0009】ビットマップファイルアクセスシステム1
は、ファイル内の相対レコード番号をキーとしてアクセ
スを行う相対編成ファイルを処理対象とするファイルア
クセス手段5と、0から始まる相対キー4を持つレコー
ドがK個存在しファイルアクセス手段5が処理する排他
制御の単位が1レコードに対応する相対編成ファイル構
造のビットマップファイル2と、アクセスしたいビット
通番3がどのレコードのどの相対ビットに対応するかを
決定するビットアクセス決定手段7と、ビットマップフ
ァイル2のレコード数Kの情報を格納し複数プロセスか
らアクセス可能な領域6とから構成されている。
Bitmap file access system 1
Is a file access means 5 for processing a relative organization file that is accessed using the relative record number in the file, and there are K records having a relative key 4 starting from 0, and the file access means 5 is exclusive. Bit map file 2 having a relative organization file structure in which the unit of control corresponds to one record, bit access determining means 7 for determining which relative bit of which record the bit sequence number 3 to be accessed corresponds to, and bitmap file 2 And an area 6 which stores information on the number K of records and is accessible from a plurality of processes.

【0010】尚、ビットマップファイルのレコード数K
は、ビット情報にアクセスする前にファイルアクセス手
段5を経由してビットマップファイル2から取得し、ビ
ットアクセス決定手段7によって領域6に格納してお
く。こうして初めに一度だけレコード数Kを取得して領
域6に格納しておくことで、以後は、領域6の値をレコ
ード数としてビットマップファイル2のビット情報にア
クセスすることができるようにする。
The number of records in the bitmap file K
Is obtained from the bitmap file 2 via the file access means 5 before accessing the bit information, and stored in the area 6 by the bit access determination means 7. In this way, the number of records K is first obtained and stored in the area 6 at first, and thereafter, the bit information of the bitmap file 2 can be accessed using the value of the area 6 as the number of records.

【0011】図2は、ビットアクセス決定手段7のアル
ゴリズムのフローチャートであり、ビット通番Xにアク
セスする場合について図1を併用して説明する。
FIG. 2 is a flowchart of the algorithm of the bit access determining means 7, and the case of accessing the bit serial number X will be described with reference to FIG.

【0012】まずビットアクセス決定手段7は、アクセ
スしようとするビット通番Xを複数プロセスからアクセ
ス可能な領域6に格納されているビットマップファイル
2のレコード数Kで割った時の商Yと余りMを求める
(ステップ21)。
First, the bit access determining means 7 divides the bit serial number X to be accessed by the number K of records of the bitmap file 2 stored in the area 6 accessible by a plurality of processes, and the quotient Y and the remainder M. Is calculated (step 21).

【0013】次にビットマップファイル2のレコードの
相対キー4を余りMに対応させて、該当のレコードの読
み込み処理をファイルアクセス手段5に依頼する(ステ
ップ22)。ここで読み込まれたレコードのレコード内
相対ビットのYビット目がアクセス対象のビット情報に
対応するのでYビット目の情報をアクセスすることをビ
ットマップファイルアクセス要求手段8に要求する(ス
テップ23)。
Then, the relative key 4 of the record of the bit map file 2 is made to correspond to the remainder M, and the file access means 5 is requested to read the corresponding record (step 22). Since the Yth bit of the relative bit in the record of the record read here corresponds to the bit information to be accessed, the bitmap file access requesting means 8 is requested to access the information of the Yth bit (step 23).

【0014】図3では、レコード数Kが10個、アクセ
スしようとするビット通番が12の場合を例にとって具
体的に説明する。
In FIG. 3, a case where the number of records K is 10 and the bit sequence number to be accessed is 12 will be specifically described as an example.

【0015】まずビットアクセス決定手段7は、レコー
ド数を領域6から取得した後、アクセスするビット通番
=12をレコード数=10で割る。ここで商は1で余り
が2であるから、ファイルアクセス手段5により相対キ
ー=2のレコードをビットマップファイル2から読み込
む。さらに読み込んだレコードの相対ビット1ビット目
(図3の斜線部)がアクセス対象となる(最初を0ビッ
ト目とする)。
First, the bit access determining means 7 acquires the number of records from the area 6, and then divides the accessed bit serial number = 12 by the number of records = 10. Here, since the quotient is 1 and the remainder is 2, the file access means 5 reads the record of the relative key = 2 from the bitmap file 2. Further, the first relative bit (the hatched portion in FIG. 3) of the read record is the access target (the first is the 0th bit).

【0016】このようにビットマップファイルのアクセ
スを規定すれば、ビット通番=11のアクセスの場合は
同様の処理によってビット通番=12のレコードとは異
なる相対キー=1のレコードをアクセスすることになる
ので、隣合ったビットを複数プロセスからアクセスする
ような場合でも両方が同じレコードをアクセスして競合
するという状況を避けられる。
By thus defining the access to the bitmap file, in the case of the access of the bit sequence number = 11, the record having the relative key = 1 different from the record having the bit sequence number = 12 is accessed by the same process. Therefore, even when adjacent bits are accessed from multiple processes, it is possible to avoid the situation where both access the same record and conflict.

【0017】このように、論理的に連続するビット列を
排他制御単位であるレコードに図2で説明したように分
散して配置することにより、連続したビットに複数のプ
ロセスからアクセスを行う場合(例えば、オンライント
ランザクション処理システムにおいて、送受信する電文
に連続した通番を付加し、その通番をビットマップファ
イルを用いて管理する場合等)に生じるレコードのアク
セス競合を軽減させることができる。
In this way, when a logically continuous bit string is distributed and arranged in a record, which is an exclusive control unit, as described with reference to FIG. 2, continuous bits are accessed from a plurality of processes (for example, In the online transaction processing system, it is possible to reduce record access conflicts which occur when a serial number is added to a transmitted / received electronic message and the serial number is managed using a bitmap file.

【0018】[0018]

【発明の効果】以上説明したように、本発明では、ビッ
トマップファイルのレコードを排他制御単位とした相対
編成ファイルを基盤とし、各レコードに連続したビット
を分散させることによりアクセス競合が起きる確率を減
らし、ファイルアクセス制御による処理効率の向上を実
現できる。
As described above, the present invention is based on a relative organization file in which records of a bitmap file are used as exclusive control units, and the probability of access conflict occurring by dispersing consecutive bits in each record is increased. It is possible to reduce the number and improve the processing efficiency by controlling the file access.

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

【図1】本発明のビット情報にアクセスする処理の流れ
を示すブロック図である。
FIG. 1 is a block diagram showing a flow of processing for accessing bit information of the present invention.

【図2】本発明のビットアクセス決定手段のフローチャ
ートである。
FIG. 2 is a flowchart of bit access determining means of the present invention.

【図3】本発明のビット情報へのアクセスの具体的な一
実施例を示すブロック図である。
FIG. 3 is a block diagram showing a specific example of access to bit information of the present invention.

【符号の説明】[Explanation of symbols]

1 ビットマップファイルアクセスシステム 2 ビットマップファイル 3 ビット通番 4 相対キー 5 ファイルアクセス手段 6 レコード数格納領域 7 ビットアクセス決定手段 8 ビットマップファイルアクセス要求手段 21、22、23 ステップ 1 Bitmap file access system 2 Bitmap file 3 Bit serial number 4 Relative key 5 File access means 6 Record number storage area 7 Bit access decision means 8 Bitmap file access request means 21, 22, 23 steps

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 レコード単位のファイル排他制御機能を
備えファイル内の相対レコード番号をキーとしてアクセ
スを行う相対編成ファイルを処理対象とするファイルア
クセス手段と、 相対キーを持つレコードが複数個存在し、前記ファイル
アクセス手段が処理する排他制御の単位が1レコードに
対応する相対編成ファイル構造のビットマップファイル
と、 アクセスしたいビット通番がどのレコードのどの相対ビ
ットに対応するかを決定するビットアクセス決定手段
と、 前記ビットマップファイルのレコード数の情報を格納し
複数プロセスからアクセス可能な領域とを含むことを特
徴とするビットマップファイルアクセスシステム。
1. A file access means for processing a relative organization file which has a file exclusive control function for each record and is accessed by using a relative record number in the file as a key, and a plurality of records having a relative key are present. A bit map file having a relative organization file structure in which the unit of exclusive control processed by the file access means corresponds to one record, and a bit access determination means for determining which relative bit of which record corresponds to the bit sequence number to be accessed. A bitmap file access system including an area that stores information on the number of records of the bitmap file and that can be accessed by a plurality of processes.
【請求項2】 前記ファイルアクセス手段がビット通番
Xにアクセスする場合、前記ビットアクセス決定手段
が、 アクセスしようとするビット通番Xを複数プロセスから
アクセス可能な領域に格納されているビットマップファ
イルのレコード数Kで割った時の商Yと余りMを求める
ステップと、 前記ビットマップファイルのレコードの相対キーを余り
Mに対応させて該当のレコードの読み込み処理を前記フ
ァイルアクセス手段に依頼するステップと、ここで読み
込まれたレコードのレコード内相対ビットのYビット目
がアクセス対象のビット情報に対応するものとしてYビ
ット目の情報をアクセスするステップとを有している請
求項1に記載のビットマップファイルアクセスシステ
ム。
2. When the file access means accesses the bit sequence number X, the bit access determination means records a bit map file in which the bit sequence number X to be accessed is stored in an area accessible from a plurality of processes. A step of obtaining a quotient Y and a remainder M when divided by a number K; a step of requesting the file access means to read a corresponding record by associating a relative key of a record of the bitmap file with the remainder M; The bit map file according to claim 1, further comprising a step of accessing the information of the Y-th bit, assuming that the Y-th bit of the relative bit in the record of the record read corresponds to the bit information of the access target. Access system.
JP5302483A 1993-12-02 1993-12-02 Bitmap file access system Expired - Fee Related JP2669311B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5302483A JP2669311B2 (en) 1993-12-02 1993-12-02 Bitmap file access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5302483A JP2669311B2 (en) 1993-12-02 1993-12-02 Bitmap file access system

Publications (2)

Publication Number Publication Date
JPH07160552A true JPH07160552A (en) 1995-06-23
JP2669311B2 JP2669311B2 (en) 1997-10-27

Family

ID=17909503

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5302483A Expired - Fee Related JP2669311B2 (en) 1993-12-02 1993-12-02 Bitmap file access system

Country Status (1)

Country Link
JP (1) JP2669311B2 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5714957A (en) * 1980-06-30 1982-01-26 Toshiba Corp Memory device
JPS6019254A (en) * 1983-07-12 1985-01-31 Matsushita Electric Ind Co Ltd Data memory
JPS6069756A (en) * 1983-09-27 1985-04-20 Matsushita Electric Ind Co Ltd Data storage device
JPH02136978A (en) * 1988-11-17 1990-05-25 Sony Corp Picture data processor
JPH02156380A (en) * 1988-12-08 1990-06-15 Fujitsu Ltd Memory
JPH0477941A (en) * 1990-07-20 1992-03-12 Canon Inc Picture controller
JPH05113928A (en) * 1991-10-23 1993-05-07 Fuji Electric Co Ltd Image memory device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5714957A (en) * 1980-06-30 1982-01-26 Toshiba Corp Memory device
JPS6019254A (en) * 1983-07-12 1985-01-31 Matsushita Electric Ind Co Ltd Data memory
JPS6069756A (en) * 1983-09-27 1985-04-20 Matsushita Electric Ind Co Ltd Data storage device
JPH02136978A (en) * 1988-11-17 1990-05-25 Sony Corp Picture data processor
JPH02156380A (en) * 1988-12-08 1990-06-15 Fujitsu Ltd Memory
JPH0477941A (en) * 1990-07-20 1992-03-12 Canon Inc Picture controller
JPH05113928A (en) * 1991-10-23 1993-05-07 Fuji Electric Co Ltd Image memory device

Also Published As

Publication number Publication date
JP2669311B2 (en) 1997-10-27

Similar Documents

Publication Publication Date Title
JP3510042B2 (en) Database management method and system
JPH0553909A (en) Cache memory control system for image data processing
JPH07160552A (en) Bit map file access system
JPH0887433A (en) Block management system of file system
JP3129248B2 (en) Character string search method using two-dimensional array code
JPH07271958A (en) Image file device and image file access method
JPS63311450A (en) Exclusive control system for file access
JPS62182849A (en) Data control system
JPS62287350A (en) Index integrally updating system
JPH03282966A (en) Method for managing hash entry area
JP2689928B2 (en) Data storage device in database system
JP2817911B2 (en) Access control method for keyed files
JP2000339202A (en) Disk controller, control method therefor and disk storage medium
JPH04199338A (en) Data base management system
JPH0962696A (en) Data base managing system
JPH01181121A (en) Memory area allocating system
JPH06208502A (en) Memory control method
JP2507399B2 (en) Database equipment
JPH0727531B2 (en) File control method
JPH08272411A (en) Ladder instruction processor
JPS61100853A (en) Data processing system
CN111858603A (en) Data writing method and system for block chain
JPH09244958A (en) Paging method and system therefor
JPH10198525A (en) Method for outputting data of external storage device
JP2002073416A (en) Cache memory and image output device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970603

LAPS Cancellation because of no payment of annual fees