JPH0423143A - Data storing system - Google Patents
Data storing systemInfo
- Publication number
- JPH0423143A JPH0423143A JP2128427A JP12842790A JPH0423143A JP H0423143 A JPH0423143 A JP H0423143A JP 2128427 A JP2128427 A JP 2128427A JP 12842790 A JP12842790 A JP 12842790A JP H0423143 A JPH0423143 A JP H0423143A
- Authority
- JP
- Japan
- Prior art keywords
- data
- block
- blocks
- stored
- address
- 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
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 for storing large-capacity variable-length data such as image information in a form that allows random access.
通常、CCDカメラ等の外部入力装置から入力される大
容量の画像データは、磁気ディスク装置にファイルとし
て蓄積される。第5図は一般的な計算器システムのハー
ド構成を示し、1は中央処理装置、2は主メモリ、3は
CCDカメラ等の外部入力装置、4は磁気ディスク装置
である。Usually, a large amount of image data input from an external input device such as a CCD camera is stored as a file in a magnetic disk device. FIG. 5 shows the hardware configuration of a general computer system, where 1 is a central processing unit, 2 is a main memory, 3 is an external input device such as a CCD camera, and 4 is a magnetic disk device.
従来の計算機システムでは、大容量の可変長ブタを磁気
ディスク装置4に蓄積する場合、第6図に示す手順で行
なっていた。In conventional computer systems, when storing large-capacity variable-length pigs in the magnetic disk device 4, the procedure shown in FIG. 6 is used.
まず、蓄積する各データ11の最大長に見合う大きさの
バッファ21を主メモリ装置2上に用意する。First, a buffer 21 of a size corresponding to the maximum length of each piece of data 11 to be stored is prepared on the main memory device 2.
次に、外部入力装置3から読み込んだデータ11をバッ
ファ21上に展開する。そして、バッファ21上のデー
タを磁気ディスク装置4の中に定義された可変長レコー
ド形式の直接編成ファイル22に蓄積する。このファイ
ル22はデータ11の最大長に合せて固定的な区画を定
義しである。その時の格納アドレス24 (レコード番
号)をデータID25とともに主メ7モリ2上の管理テ
ーブル23に格納する。データ検索時には、デ−タID
25からこの管理テーブル23を使って格納アドレス2
4 (レコード番号)を知り、磁気ディスク装置4から
データ11を呼び出すことができる。磁気ディスク装置
4内のファイル22を固定長の区画に定義すると、デー
タIl長のサイズに区画サイズをいちいち合せることが
なく便利である。Next, the data 11 read from the external input device 3 is expanded onto the buffer 21. The data on the buffer 21 is then stored in a direct organization file 22 in a variable length record format defined in the magnetic disk device 4. This file 22 defines fixed partitions according to the maximum length of the data 11. The storage address 24 (record number) at that time is stored in the management table 23 on the main memory 2 together with the data ID 25. When searching data, the data ID
25 to storage address 2 using this management table 23.
4 (record number), the data 11 can be called from the magnetic disk device 4. Defining the file 22 in the magnetic disk device 4 into fixed-length sections is convenient because the section size does not have to match the data Il length.
以上説明したように、従来のデータの蓄積方式では蓄積
するデータの最大長の大きさに見合うだけのバッファを
主メモリ装置上に用意しなければならず、又データが短
い場合はファイルの区画に空が生じてしまうことがあり
、大容量のデータ蓄積には向いていないなどの問題があ
った。As explained above, in conventional data storage methods, it is necessary to prepare a buffer on the main memory device corresponding to the maximum length of the data to be stored, and if the data is short, it is necessary to prepare a buffer in the main memory device. There were problems such as empty spaces sometimes occurring, making it unsuitable for storing large amounts of data.
この発明は上記のような問題点を解消する為になされた
もので、大容量のデータを固定長のブロックに分割して
主メモリのバッファや磁気ディスク装置に蓄積すること
により、可変長の大容量データを効率良く蓄積し、ラン
ダムアクセスが可能なデータの蓄積方式を得ることを目
的とする。This invention was made to solve the above-mentioned problems, and by dividing large amounts of data into fixed-length blocks and storing them in main memory buffers and magnetic disk drives, variable-length large amounts of data can be stored. The purpose of this invention is to obtain a data storage method that efficiently stores capacity data and allows random access.
この発明においては、外部入力装置lから入力された可
変長データ11をアドレス管理テーブル13に従って記
憶装置4に記憶させるデータの蓄積方式において、可変
長のデ〜り11を複数の固定長ブロック(A−D)に分
割し、これらブロックA〜Dに同一の識別子5を含むブ
ロック制御部12を付加し、先頭になるブロックAの識
別子5とアドレス13とをアドレス管理テーブル20に
記録し、複数のブロックA−Dを記憶装置4に格納した
。In this invention, in a data storage method in which variable-length data 11 input from an external input device 1 is stored in a storage device 4 according to an address management table 13, variable-length data 11 is stored in a plurality of fixed-length blocks (A -D), add a block control unit 12 containing the same identifier 5 to these blocks A to D, record the identifier 5 and address 13 of the first block A in the address management table 20, and Blocks A to D were stored in the storage device 4.
アドレス管理テーブル20より識別子5に基づき所望の
デ〜り11の先頭ブロックAのアドレス13を得る。こ
のアドレス13に従って記憶装置4からブロック制御部
12とデータ11のブロックAを得る。The address 13 of the first block A of the desired data 11 is obtained from the address management table 20 based on the identifier 5. According to this address 13, the block controller 12 and block A of data 11 are obtained from the storage device 4.
次にこのブロック制御部12に基づいて、次のブロック
Bについてのアドレス8を得て記jrf!装置4から次
のブロック制御部12と次のブロックBを得る。以下同
様にして全てのデータを得るようにした。Next, based on this block control unit 12, address 8 for the next block B is obtained and written jrf! The next block control unit 12 and the next block B are obtained from the device 4. All data were obtained in the same manner.
以下、この発明の一実施例を図について説明する。本発
明では、第5図の計算機システムに示す如く中央処理装
置(CPU)1.主メモリ装置2゜データを入力する外
部入力装置3.可変長のブタを蓄積する磁気ディスク装
置4は一般的な構成を使用する。An embodiment of the present invention will be described below with reference to the drawings. In the present invention, as shown in the computer system of FIG. 5, a central processing unit (CPU) 1. Main memory device 2. External input device for inputting data 3. The magnetic disk device 4 for storing variable length pigs uses a general configuration.
第2図において、外部入力装置3より得られる可変長の
大容量データ11は、主メモリ装置2上でCPUIによ
りデータIDが付された後に固定長のデータブロックA
、B、C,Dに細分化される。In FIG. 2, variable-length large-capacity data 11 obtained from an external input device 3 is assigned a data ID by the CPU on the main memory device 2, and then fixed-length data block A
, B, C, and D.
次に各ブロックA(B−D)は第1図に示すようなブロ
ック制御部12をCPUIにより付加される。第1図に
おいて、5は各デ〜り11のもつ識別子のデータIDを
、6は何番目のブロックかを示す通し番号を、7は次ブ
ロックの番号を、8は次ブロックの格納アドレスを、9
は各々のプロツク円データの大きさを、10は分割した
ブロックデータA〜Dを示している。Next, a block control section 12 as shown in FIG. 1 is added to each block A (B-D) by the CPU. In FIG. 1, 5 is the data ID of the identifier of each data block 11, 6 is the serial number indicating what block it is, 7 is the number of the next block, 8 is the storage address of the next block, 9
indicates the size of each block data, and 10 indicates the divided block data A to D.
第3図に示すように、同一のデータ11を分割してでき
たブロックA−Dは、同一のデータIDを有し、第1図
に示したブロック制御部12を夫々備えている。各ブロ
ックA−Dはブロック制御部12を夫々付加した固定長
の第1〜第4ブロツク19となり、固定長に設定したバ
ッファ2工に順次格納される。ここで次ブロック(A−
B−C−D等)へのポインタの役割をするのが次ブロツ
ク番号である。格納時にはブロックA、B、CDの順番
でバッファ21から読み出し、磁気ディスク装置4に蓄
積する。そして、最後に主メモリ装置2上に第4図に示
すようにアドレス管理テブル20を設け、データID5
とブロックA、B。As shown in FIG. 3, blocks A to D created by dividing the same data 11 have the same data ID, and are each equipped with the block control section 12 shown in FIG. Each block A to D becomes a fixed length first to fourth blocks 19 to which a block control section 12 is added, and are sequentially stored in two buffers set to a fixed length. Now the next block (A-
The next block number serves as a pointer to the next block (B-C-D, etc.). During storage, blocks A, B, and CD are read from the buffer 21 in this order and stored in the magnetic disk device 4. Finally, an address management table 20 is provided on the main memory device 2 as shown in FIG.
and blocks A and B.
C,Dに細分化した第1ブロツク16のアドレス13の
みを設定して蓄積を完了する。The storage is completed by setting only the address 13 of the first block 16 subdivided into C and D.
データを読み出す際は、まずアドレス管理テーブル20
より必要なデータのデータID5と第1ブロツク16の
格納アドレス13取得する。該当ブロック16を磁気デ
ィスク装置4から読み出してデータAを取得する。この
とき第1ブロツク16には第2ブロツク17の格納アド
レス8が設定されているので、その格納アドレス8より
第2ブロツク17を読み出す。これを順次繰り返し、芋
づる式に第4ブロツク19まで読み出すことができる。When reading data, first read the address management table 20.
The data ID 5 of the more necessary data and the storage address 13 of the first block 16 are obtained. The corresponding block 16 is read from the magnetic disk device 4 to obtain data A. At this time, since the storage address 8 of the second block 17 is set in the first block 16, the second block 17 is read from the storage address 8. By repeating this step by step, it is possible to read out up to the fourth block 19 in a step-by-step manner.
第4ブロツク19の次ブロツク番号にはnullデータ
が設定されている為、これによりcpuiはデータ11
のブロックの終わりを知ることができる。Since null data is set in the next block number of the fourth block 19, this causes CPUI to write data 11.
You can know the end of the block.
上記実施例では、外部入力装置から取得したデータを蓄
積する場合について示したが、他のプログラムで自動的
に生成した計算結果の大容量可変長データを蓄積する場
合においても同様な効果が得られる。Although the above example shows the case of accumulating data obtained from an external input device, the same effect can be obtained when accumulating large-capacity variable length data of calculation results automatically generated by another program. .
以上説明してきたように、この発明によれば、可変長の
データを複数の固定長ブロックに分割し、これらブロッ
クに同一の識別子を含むブロック制御部を付加し、先頭
になるブロックの識別子とアドレスとをアドレス管理テ
ーブルに記録し、複数のブロックを記憶装置に格納した
ので、画像情報などの大容量で可変長のデータを限られ
たリソースを使って効率良く蓄積、管理することができ
る。As explained above, according to the present invention, variable length data is divided into a plurality of fixed length blocks, a block control section containing the same identifier is added to these blocks, and the identifier and address of the first block are added. Since the data is recorded in the address management table and multiple blocks are stored in the storage device, large amounts of variable length data such as image information can be efficiently stored and managed using limited resources.
また、どのデータでも迅速に検索することができるとい
う効果がある。又主メモリの使用バッファの大きさを最
小限に抑えることができる。Another advantage is that any data can be quickly searched. Also, the size of the main memory buffer used can be minimized.
第1図はこの発明のデータを細分化したブロックの構成
図、第2図はデータをブロックに分割する様子を示す図
、第3図は分割したデータをブロックの順に関連づける
様子を示す図、第4図は本発明のデータの蓄積時のファ
イル構成を示す図、第5図は一般的な計算機システムの
構成図で、第6図は従来のデータ蓄積時のファイル構成
図であ・・外部入力装置、4・・・磁気ディスク装置、
5・・・データID、6・・・ブロック通し番号、7・
・・次ブロツク番号、8・・・次ブロック内データ先頭
アドレス、11・・・データ、12・・・ブロック管理
テーブル、13・・・ブロックアドレス、A、B、C,
D・・・ブロック。Fig. 1 is a diagram showing the configuration of blocks in which data of the present invention is subdivided; Fig. 2 is a diagram showing how data is divided into blocks; Fig. 3 is a diagram showing how divided data is related in the order of blocks; Figure 4 is a diagram showing the file structure when storing data according to the present invention, Figure 5 is a diagram showing the configuration of a general computer system, and Figure 6 is a diagram showing the file configuration when storing conventional data...External input Device, 4... magnetic disk device,
5...Data ID, 6...Block serial number, 7...
...Next block number, 8...Data start address in next block, 11...Data, 12...Block management table, 13...Block address, A, B, C,
D...Block.
Claims (1)
理テーブルに従って記憶装置に記憶させるデータの蓄積
方式において、前記可変長データを複数の固定長ブロッ
クに分割し、これらブロックに同一の識別子を含むブロ
ック制御部を付加し、先頭になる前記ブロックの識別子
とアドレスとを前記アドレス管理テーブルに記録し、前
記複数のブロックを前記記憶装置に格納したことを特徴
とするデータの蓄積方式。In a data storage method in which variable-length data input from an external input device is stored in a storage device according to an address management table, the variable-length data is divided into a plurality of fixed-length blocks, and each block has the same identifier. The data storage method is characterized in that the identifier and address of the first block are recorded in the address management table, and the plurality of blocks are stored in the storage device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2128427A JPH0423143A (en) | 1990-05-18 | 1990-05-18 | Data storing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2128427A JPH0423143A (en) | 1990-05-18 | 1990-05-18 | Data storing system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0423143A true JPH0423143A (en) | 1992-01-27 |
Family
ID=14984483
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2128427A Pending JPH0423143A (en) | 1990-05-18 | 1990-05-18 | Data storing system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0423143A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5613066A (en) * | 1993-10-01 | 1997-03-18 | Fujitsu Limited | Disk controlling method and apparatus for transferring a record from a disk to a host via an intermediate buffer |
JP2000032114A (en) * | 1998-07-09 | 2000-01-28 | Nec Mobile Commun Ltd | Portable telephone set |
JP2002207622A (en) * | 2001-01-10 | 2002-07-26 | Mitsubishi Heavy Ind Ltd | Electronic document data, recording medium recorded with the data, and data file management system |
-
1990
- 1990-05-18 JP JP2128427A patent/JPH0423143A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5613066A (en) * | 1993-10-01 | 1997-03-18 | Fujitsu Limited | Disk controlling method and apparatus for transferring a record from a disk to a host via an intermediate buffer |
US5878204A (en) * | 1993-10-01 | 1999-03-02 | Fujitsu Limited | Disk controlling method and apparatus for transferring a record from a disk to a host via an intermediate buffer |
US6092216A (en) * | 1993-10-01 | 2000-07-18 | Fujitsu Limited | Disk controlling apparatus |
JP2000032114A (en) * | 1998-07-09 | 2000-01-28 | Nec Mobile Commun Ltd | Portable telephone set |
JP2002207622A (en) * | 2001-01-10 | 2002-07-26 | Mitsubishi Heavy Ind Ltd | Electronic document data, recording medium recorded with the data, and data file management system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5586292A (en) | Data processing method using record division storing scheme and apparatus therefor | |
US10649967B2 (en) | Memory object pool use in a distributed index and query system | |
CA2013154C (en) | Apparatus and method for digital data management | |
JP2586219B2 (en) | High-speed media priority release exclusion method | |
JPH08129551A (en) | Hash method | |
JPH0423143A (en) | Data storing system | |
CN110765290A (en) | Picture storage method, reading method, device and access system | |
JP2002091806A (en) | Filing system | |
JPH0477938A (en) | Data storage method | |
JPS6058492B2 (en) | Database search method | |
JPH0383147A (en) | Semiconductor recorder | |
JPS62177642A (en) | File management system for postscript filing device | |
CN117251426A (en) | Data management device and method based on memory chained descriptive file system | |
JPH0721749B2 (en) | File storage method, file reading method and file editing method | |
JPS62257549A (en) | System for restoring data base file | |
JPH0310341A (en) | Disk space compaction system | |
JPH02191048A (en) | Method and device for data processing | |
JPS6358555A (en) | Control system for file space | |
JPH0256038A (en) | Access control system for memory | |
JPH03164839A (en) | Data storage system | |
JPH0338741A (en) | Working data managing system for main storage | |
JPH04236639A (en) | File space management system | |
JPH04112245A (en) | Method for making file structure virtual | |
JPH02245820A (en) | How to access auxiliary storage | |
JP2000209550A (en) | Picture recording and reproducing device and picture reproducing method |