JPH04256210A - Data compression/storage system - Google Patents

Data compression/storage system

Info

Publication number
JPH04256210A
JPH04256210A JP1729291A JP1729291A JPH04256210A JP H04256210 A JPH04256210 A JP H04256210A JP 1729291 A JP1729291 A JP 1729291A JP 1729291 A JP1729291 A JP 1729291A JP H04256210 A JPH04256210 A JP H04256210A
Authority
JP
Japan
Prior art keywords
data
complete
node
difference
storage device
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.)
Withdrawn
Application number
JP1729291A
Other languages
Japanese (ja)
Inventor
Yuji Hotta
勇次 堀田
Itaru Ichikawa
市川 至
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1729291A priority Critical patent/JPH04256210A/en
Publication of JPH04256210A publication Critical patent/JPH04256210A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To supply a data compression/storage system which records a difference in a storage device and which can fetch it at high speed. CONSTITUTION:A depending relation table 2 expressed by hierarchy structure in which complete data is set to be a root node and the difference of other data to be a node and which registers a depending relation as to difference data of respective nodes is provided. Data on the node in the lowest layer of hierarchy structure 2 in which complete data is set to be the root node and the difference of the other data is set to be the node at the time of storing data is recorded in the storage device, the depending relation table 2 is referred to at the time of reading, all data being an object and data of the node depending on said objective data are fetched and they are restored to original data.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、データの差分を格納し
て圧縮するデータ圧縮格納方式であって、情報間の差分
をとって情報(データ)の圧縮を行うデータ圧縮格納方
式に関するものである。情報間の差分をとった情報(デ
ータ)を二次記憶に格納する場合、中間の情報にアクセ
スする場合、たとえ二次記憶にランダムアクセスの機能
があってもシーケンシャルに情報を読み進まなければな
らず、目的の情報を取り出すのが低速となる。このため
、何らかの方法でランダムアクセスに近い速度で目的の
情報を取り出すことが望まれている。
[Field of Industrial Application] The present invention relates to a data compression and storage method for storing and compressing data differences, and more particularly, relates to a data compression and storage method for compressing information (data) by taking the differences between pieces of information. be. When storing information (data) based on differences between pieces of information in secondary memory, and when accessing intermediate information, the information must be read sequentially even if the secondary memory has a random access function. First, it becomes slow to retrieve the desired information. For this reason, it is desired to use some method to retrieve target information at a speed close to random access.

【0002】0002

【従来の技術】従来のデータ圧縮格納方式は、最初、あ
るいは最後に完全な情報を格納し、その他の位置には差
分情報を格納することでデータ圧縮を図っていた。とこ
ろがこの方式では、途中にある情報を取り出す場合、最
初、あるいは最後の完全な情報を読み込んだ後、次々と
シーケンシャルに差分情報を読み込んで完全な情報を作
りながら、最終的に目標の情報を生成するようにしてい
た。
2. Description of the Related Art Conventional data compression and storage systems attempt to compress data by storing complete information at the beginning or end and storing differential information at other locations. However, with this method, when extracting information in the middle, after reading the first or last complete information, sequentially reading differential information one after another to create complete information, and finally generating the target information. I was trying to do that.

【0003】0003

【発明が解決しようとする課題】このため、差分情報を
読み込むために多くの時間が必要になってしまい、低速
にしか目標とする情報を読みだし得ないという問題があ
った。これにより、ランダムアクセスのできる二次記憶
装置であっても、この利点を活かすことができず、目的
のデータの取り出しに時間がかかっていた。
[Problems to be Solved by the Invention] Therefore, a lot of time is required to read the difference information, and there is a problem in that the target information can only be read out at a low speed. As a result, even if the secondary storage device is capable of random access, this advantage cannot be taken advantage of, and it takes time to retrieve the desired data.

【0004】本発明は、差分を記憶装置に記録しておき
、高速に取り出しを行うことができるデータ圧縮格納方
式を提供することを目的としている。
SUMMARY OF THE INVENTION An object of the present invention is to provide a data compression storage method that allows differences to be recorded in a storage device and retrieved at high speed.

【0005】[0005]

【課題を解決するための手段】図1および図3を参照し
て課題を解決するための手段を説明する。図1において
、階層構造1は、完全なデータをルートノードとし、各
ノードにその差分データを持たせた構造であって、最下
位層のノードのデータを記憶装置に記憶させるための構
造である。
[Means for Solving the Problems] Means for solving the problems will be explained with reference to FIGS. 1 and 3. In FIG. 1, hierarchical structure 1 is a structure in which complete data is the root node and each node has its differential data, and is a structure for storing the data of the lowest layer node in a storage device. .

【0006】依存関係テーブル2は、階層構造1の最下
位層のノードの差分データの依存関係を登録するテーブ
ルである。図3において、完全なデータ3は、差分デー
タに挿入した完全なデータである。
[0006] The dependency relationship table 2 is a table in which dependency relationships of differential data of nodes at the lowest layer of the hierarchical structure 1 are registered. In FIG. 3, complete data 3 is complete data inserted into the differential data.

【0007】[0007]

【作用】本発明は、図1に示すように、データ格納時に
完全なデータをルートノードとして他のデータの差分を
ノードとした階層構造1で表現し、その最下位層のノー
ドのデータを記憶装置に記録すると共にこの記録した差
分データの依存関係を依存関係テーブル2に登録してお
き、データの読み出し時にこの依存関係テーブル2を参
照して依存関係のある全てのデータを取り出し、これら
をもとに元のデータを復元するようにしている。また、
図3に示すように、完全なデータ3から開始してその差
分データをシーケンシャルに記憶装置に記録することを
繰り返し行っておき、読み出し時に近傍の完全なデータ
3からシーケンシャルに読み出した差分データをもとに
元のデータを復元するようにしている。
[Operation] As shown in FIG. 1, when storing data, the present invention expresses complete data in a hierarchical structure 1 with the root node and differences in other data as nodes, and stores the data in the lowest layer node. At the same time as recording the difference data in the device, the dependency relationships of the recorded difference data are registered in the dependency relationship table 2, and when reading data, this dependency relationship table 2 is referred to and all data with dependency relationships are extracted and these are also I am trying to restore the original data. Also,
As shown in FIG. 3, starting from complete data 3 and sequentially recording the difference data in the storage device is repeatedly performed, and when reading, the difference data sequentially read from the neighboring complete data 3 is also recorded. I am trying to restore the original data.

【0008】従って、差分データを記憶装置に記録して
おき、依存関係テーブル1をもとに依存するデータを取
り出して元のデータを復元したり、あるいは近傍の完全
なデータ3をもとにシーケンシャルに差分データを取り
出して元のデータを復元したりすることにより、データ
の取り出しを高速に行って元のデータを復元することが
可能となる。
Therefore, it is possible to record the difference data in a storage device and restore the original data by extracting the dependent data based on the dependency relationship table 1, or to restore the original data sequentially based on the complete data 3 in the vicinity. By extracting the difference data and restoring the original data, it becomes possible to extract the data at high speed and restore the original data.

【0009】[0009]

【実施例】次に、図1および図2を用いて本発明の1実
施例の構成および動作を詳細に説明する。図1の(イ)
は、階層構造1の例を示す。図1の(イ)において、階
層構造1は、完全なデータをルートノードとし、各ノー
ドにその差分データを例えば図示のように持たせ、最下
位層のノードのデータを記憶装置に記録し、これら記録
したデータから元のデータを復元し得るようにしたもの
である。
Embodiment Next, the configuration and operation of an embodiment of the present invention will be explained in detail using FIGS. 1 and 2. Figure 1 (a)
shows an example of hierarchical structure 1. In (a) of FIG. 1, the hierarchical structure 1 has complete data as the root node, each node has its differential data as shown in the figure, and the data of the lowest layer node is recorded in the storage device, The original data can be restored from these recorded data.

【0010】図1の(ロ)は、依存関係テーブル2の例
を示す。この依存関係テーブル2は、図1の(イ)の階
層構造1の最下位層のノードの差分データがいずれのデ
ータに依存しているかを登録するテーブルである。例え
ば図示のように、データ番号“4”は依存する番号“3
”、更にこの依存するデータ番号“3”は依存する番号
“1”となり、更にこの依存するデータ番号“1”に依
存する番号がないので、結果として、データ番号“4”
はデータ番号“3”、“1”の2つの差分から作成され
ているので、この逆の操作によって元のデータ番号“4
”の値を復元できる。具体的に言えば、データ番号“1
”の記憶装置の位置の完全なデータに、データ番号“3
”の記憶装置の位置のデータを加え、更に、データ番号
“4”の記憶装置の位置のデータを加えて元のデータを
復元できる。データ位置は、記憶装置上におけるデータ
番号のデータが記録されている位置(アドレス)である
FIG. 1B shows an example of the dependency relationship table 2. This dependency relationship table 2 is a table for registering on which data the difference data of the lowest layer node of the hierarchical structure 1 in FIG. 1(A) depends. For example, as shown in the figure, the data number "4" is the dependent number "3".
”, and this dependent data number “3” becomes the dependent number “1”, and since there is no number that depends on this dependent data number “1”, as a result, the data number “4”
is created from the difference between two data numbers “3” and “1”, so by reversing this operation, the original data number “4” is created.
” can be restored. Specifically, data number “1” can be restored.
”, data number “3” is added to the complete data of the storage device location.
The original data can be restored by adding the data at the location of the storage device with data number "4" and then adding the data at the location of the storage device with data number "4". This is the location (address) where the

【0011】図1の(ハ)は、データの形式の例を示す
。ここで、データは、データ番号、依存する番号、差分
データから構成されており、図1の(ロ)のデータ番号
、依存する番号、データ位置に格納された差分データに
対応している。次に、図2の(イ)のフローチャートに
示す順序に従い、図1の構成の動作を詳細に説明する。 ここで、図2の(ロ)は、図1の(イ)のデータ番号4
のデータを復元する様子を具体的に示したものである。
FIG. 1C shows an example of the data format. Here, the data is composed of a data number, a dependent number, and differential data, and corresponds to the data number, dependent number, and differential data stored in the data position in (b) of FIG. Next, the operation of the configuration of FIG. 1 will be explained in detail in accordance with the order shown in the flowchart of FIG. 2(a). Here, (b) in FIG. 2 is data number 4 in (b) of FIG.
This figure specifically shows how to restore the data.

【0012】図2の(イ)において、S1は、i=目標
番号とする。これは、例えば右側の図2の(ロ)にi=
4として示すように、図1の(イ)のデータ番号“4”
をデータ復元の目標の番号とする。S2は、依存する番
号があるか否かを判別する。YESの場合には、S3で
番号iをスタック4に入れ、S4でi=依存する番号に
し、S2を繰り返し行い、依存する全ての番号をスタッ
ク4に入れる。一方、依存する番号がなくなり、NOと
なった場合には、S5に進み、S6ないしS8を繰り返
し行い、データを復元する。
In FIG. 2A, S1 is assumed to be i=target number. For example, in (b) of Figure 2 on the right side, i=
As shown as 4, the data number “4” in (a) of FIG.
Let be the target number of data recovery. S2 determines whether there is a dependent number. If YES, put the number i into the stack 4 in S3, set i=dependent number in S4, repeat S2, and put all the dependent numbers into the stack 4. On the other hand, if there are no more dependent numbers and the answer is NO, the process advances to S5 and repeats S6 to S8 to restore the data.

【0013】S1ないしS4について、具体的に説明す
ると、図2の(ロ)の上段に示すように、第1回目:i
=4をもとに図1の(ロ)依存関係テーブル2を参照し
て依存する番号“3”を見付けたので、スタック4にこ
の4を入れると共にi=3とする(S2のYES、S3
、S4)。
[0013] To specifically explain S1 to S4, as shown in the upper part of (b) of FIG.
Based on = 4, we found the dependent number "3" by referring to (b) dependency table 2 in Figure 1, so we put this 4 in stack 4 and set i = 3 (YES in S2, S3
, S4).

【0014】第2回目:i=3をもとに図1の(ロ)依
存関係テーブル3を参照して依存する番号“1”を見付
けたので、スタック4にこの3を入れると共にi=1と
する(S2のYES、S3、S4)。第3回目:i=1
をもとに図1の(ロ)依存関係テーブル3を参照して依
存する番号がなしであるので(S2のNO)、S5ない
しS8に進み、データ復元を開始する。この状態では、
スタック4には、4、3が図示のように入れられている
Second time: Based on i=3, we looked up the dependency table 3 in Figure 1 (b) and found the dependent number "1", so we put this 3 in the stack 4 and set i=1. (YES in S2, S3, S4). 3rd time: i=1
Since there is no dependent number based on (b) dependency table 3 in FIG. 1 (NO in S2), the process proceeds to S5 to S8 and data restoration is started. In this state,
In the stack 4, 4 and 3 are placed as shown.

【0015】S5は、1番を読み込む。これは、記憶装
置から1番のデータ(完全なデータ)の値を読み込む。 S6は、スタック4が空か否かを判別する。NOの場合
には、S7でスタック4の先頭のデータ(ここでは例え
ば記憶装置から3番のデータ)を読み込んで、データを
復元(例えば1番号のデータと、この3番号のデータと
を加算して元の3番のデータを復元)し、S8でスタッ
クをポップして先頭の値を取り除き、S6以降を繰り返
し、スタック4から順次取り出した番号のデータを記憶
装置から読み込んで、差分データの復元を行う。そして
、スタック4が空となり、S6のYESとなったとき、
復元を終了する。
[0015] S5 reads number 1. This reads the value of the first data (complete data) from the storage device. S6 determines whether the stack 4 is empty. If NO, the data at the head of stack 4 (here, for example, data number 3 from the storage device) is read in in S7, and the data is restored (for example, the data numbered 1 and the data numbered 3 are added together). (restore the original number 3 data), pop the stack in S8 and remove the first value, repeat S6 and subsequent steps, read the data of the number sequentially taken out from stack 4 from the storage device, and restore the differential data. I do. Then, when stack 4 becomes empty and S6 becomes YES,
Finish the restoration.

【0016】S5ないしS8について、具体的に説明す
ると、図2の(ロ)の下段に示すように、第1回目:ス
タックの先頭の3のデータを記憶装置から読込んで3を
復元(1の完全なデータと、3の差分データとを加算し
て3のデータを復元)し、スタック4をポップして3を
取り除く。
To explain S5 to S8 in detail, as shown in the lower part of FIG. Add the complete data and the differential data of 3 to restore the data of 3), pop the stack 4 and remove 3.

【0017】第2回目:スタックの先頭の4のデータを
記憶装置から読込んで4を復元(3の復元したデータと
、4の差分データとを加算して4のデータを復元)し、
スタック4をポップして4を取り除く。第3回目:スタ
ックが空となり、S6のNOとなったので、この時点で
目標の4のデータが復元されたこととなる。
Second time: Read data 4 at the top of the stack from the storage device and restore 4 (add the restored data 3 and the differential data 4 to restore data 4),
Pop stack 4 and remove 4. Third time: Since the stack is empty and the answer to S6 is NO, the target data of 4 has been restored at this point.

【0018】以上のように、目標とする番号(例えばi
=4)について、図1の(ロ)依存関係テーブル2を参
照して依存する番号を全てスタック4に完全なデータに
行き着くまで入れ(S1ないしS4)、次に、このスタ
ック4に入れられた番号をもとに完全なデータから順次
復元して目標とする番号のデータを復元することが可能
となる。
As described above, the target number (for example, i
= 4), refer to (b) dependency table 2 in Figure 1 and put all the dependent numbers into stack 4 until complete data is reached (S1 to S4), and then It becomes possible to restore data of a target number by sequentially restoring complete data based on the number.

【0019】次に、図3を用いて本発明の他の実施例の
構成および動作を順次詳細に説明する。図3の(イ)は
、データ構造の例を示す。ここで、完全なデータ3は、
差分データでないデータそのものである。このように完
全なデータを各所に挿入することにより、目標とする番
号iの最も近い完全なデータ3からシーケンシャルにそ
の差分データを順次読み出して元のデータを復元するこ
とが可能となる。
Next, the structure and operation of another embodiment of the present invention will be explained in detail using FIG. 3. FIG. 3(A) shows an example of the data structure. Here, complete data 3 is
This is data itself that is not differential data. By inserting complete data at various locations in this manner, it becomes possible to sequentially read the differential data starting from the closest complete data 3 with the target number i and restore the original data.

【0020】図3の(ロ)は、図3の(イ)の完全なデ
ータ3を複数、設けた場合に、これら完全なデータ3を
図示のように各所に挿入した様子を模式的に示す。この
ように完全なデータ3を記憶装置の各所に記録すること
により、目標とする差分データの番号の最も近傍の完全
なデータ3の位置(アドレス)からシーケンシャルに読
み出し、例えば順次加算してその値を復元することがで
きる。
FIG. 3(b) schematically shows how, when a plurality of complete data 3 of FIG. 3(a) are provided, these complete data 3 are inserted at various locations as shown in the figure. . By recording the complete data 3 in various places in the storage device in this way, it is read out sequentially from the position (address) of the complete data 3 closest to the target difference data number, and for example, the value is added sequentially. can be restored.

【0021】[0021]

【発明の効果】以上説明したように、本発明によれば、
差分データを記憶装置に記録しておき、依存関係テーブ
ル2をもとに依存するデータを取り出して元のデータを
復元したり、あるいは近傍の完全なデータ3をもとにシ
ーケンシャルに差分データを取り出して元のデータを復
元したりする構成を採用しているため、データの取り出
しを高速に行って元のデータを迅速に復元することがで
きる。これにより、従来のように完全にシーケンシャル
に差分データを順次読み込んで元のデータを復元する必
要がなくなり、多くの部分についてランダムにデータを
取り込むため、データの取り出しを飛躍的に早くし、結
果としてデータの読み出しを高速化することが可能とな
る。
[Effects of the Invention] As explained above, according to the present invention,
Record the differential data in a storage device, and restore the original data by extracting the dependent data based on the dependency table 2, or sequentially extract the differential data based on the neighboring complete data 3. Since the system employs a configuration in which the original data can be restored using the system, data can be retrieved at high speed and the original data can be quickly restored. This eliminates the need to read the differential data in a completely sequential manner to restore the original data as in the past, and because the data is imported randomly for many parts, data retrieval is dramatically faster, and as a result, It becomes possible to speed up data reading.

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

【図1】本発明の1実施例構成図である。FIG. 1 is a configuration diagram of one embodiment of the present invention.

【図2】本発明の1実施例構成説明図である。FIG. 2 is an explanatory diagram of the configuration of one embodiment of the present invention.

【図3】本発明の他の実施例構成図である。FIG. 3 is a configuration diagram of another embodiment of the present invention.

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

1:階層構造 2:依存関係テーブル 3:完全なデータ 4:スタック 1: Hierarchical structure 2: Dependency table 3: Complete data 4: Stack

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  データの差分を格納して圧縮するデー
タ圧縮格納方式において、完全なデータをルートノード
として他のデータの差分をノードとした階層構造(1)
で表現し、これら各ノードの差分データについてその依
存関係を登録する依存関係テーブル(2)を設け、デー
タ格納時に完全なデータをルートノードとして他のデー
タの差分をノードとした上記階層構造(2)の最下位層
のノードのデータを記憶装置に記録し、読み出し時に上
記依存関係テーブル(2)を参照して対象のデータおよ
びこれに依存するノードのデータを全て取り出して元の
データに復元するように構成したことを特徴とするデー
タ圧縮格納方式。
Claim 1: In a data compression storage method that stores and compresses differences in data, a hierarchical structure (1) in which complete data is the root node and differences in other data are nodes.
A dependency table (2) is provided to register the dependencies of the difference data of each node, and when data is stored, the above hierarchical structure (2) is created in which the complete data is the root node and the differences of other data are nodes. ) is recorded in the storage device, and when reading it, the above dependency table (2) is referred to, the target data and all the data of the nodes that depend on it are retrieved, and the data is restored to the original data. A data compression storage method characterized by being configured as follows.
【請求項2】  データの差分を格納して圧縮するデー
タ圧縮格納方式において、完全なデータ(3)から開始
してその差分データをシーケンシャルに記憶装置に記録
することを繰り返し行っておき、読み出し時に近傍の完
全なデータ(3)からシーケンシャルに読み出した差分
データをもとに元のデータを復元するように構成したこ
とを特徴とするデータ圧縮格納方式。
Claim 2: In a data compression storage method that stores and compresses data differences, starting from complete data (3), the difference data is repeatedly recorded in a storage device sequentially, and when read out, A data compression storage method characterized in that the original data is restored based on differential data sequentially read from neighboring complete data (3).
JP1729291A 1991-02-08 1991-02-08 Data compression/storage system Withdrawn JPH04256210A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1729291A JPH04256210A (en) 1991-02-08 1991-02-08 Data compression/storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1729291A JPH04256210A (en) 1991-02-08 1991-02-08 Data compression/storage system

Publications (1)

Publication Number Publication Date
JPH04256210A true JPH04256210A (en) 1992-09-10

Family

ID=11939920

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1729291A Withdrawn JPH04256210A (en) 1991-02-08 1991-02-08 Data compression/storage system

Country Status (1)

Country Link
JP (1) JPH04256210A (en)

Similar Documents

Publication Publication Date Title
KR920001374A (en) Method and device for managing status identifier for effective recovery
JP3251138B2 (en) Hash method
JPH04256210A (en) Data compression/storage system
KR100295392B1 (en) How to Configure a Dynamic File System
JP2679602B2 (en) Evacuation medium creation system
JP2822869B2 (en) Library file management device
JP2596332B2 (en) Data combination extraction method and apparatus
JP2002140218A (en) Data processing method, computer-readable recording medium and data processing device
JPS59188766A (en) Processing device of data base retrieval
JP3361832B2 (en) Data recovery method
JPH0430632B2 (en)
JPH0447344A (en) History journal recording system
JPS6020253A (en) Memory control system
JPH048816B2 (en)
JPH07120303B2 (en) Data base file restoration method
JP2619944B2 (en) Image data management processor
JP3019104B2 (en) File processing device
JPH02220151A (en) Variable length data access system
JPH04297956A (en) Multimedium retrieval and processing system
JPS5827240A (en) File storing system
Adamson et al. Storing in Multiway Trees
JPH03102439A (en) File control system
JPH02208751A (en) Data preservation system
JPH0512090A (en) Saving system of data base
JPH0535563A (en) Method for managing image information

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980514