JPH0296850A - Deletion/restoration processing system for variable length data - Google Patents

Deletion/restoration processing system for variable length data

Info

Publication number
JPH0296850A
JPH0296850A JP63249693A JP24969388A JPH0296850A JP H0296850 A JPH0296850 A JP H0296850A JP 63249693 A JP63249693 A JP 63249693A JP 24969388 A JP24969388 A JP 24969388A JP H0296850 A JPH0296850 A JP H0296850A
Authority
JP
Japan
Prior art keywords
length data
variable length
data
file
registration flag
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
JP63249693A
Other languages
Japanese (ja)
Inventor
Makoto Mitsui
信 三井
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 JP63249693A priority Critical patent/JPH0296850A/en
Publication of JPH0296850A publication Critical patent/JPH0296850A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To efficiently delete and restore variable length data without the necessity of an excess area for saving by deleting and restoring variable length data by means of the operation of a registration flag. CONSTITUTION:A variable length data file 18 in which variable length data is stored, an index file 17 in which position information of the registration flag showing whether respective variable length data are registered or not and position information of respective variable length data are stored and a registration processing part 13 which stores position information of variable length data in the index file 17 at the time of storing variable length data and sets the registration flag concerned to a registered state are given. Furthermore, a deletion processing part 14 which sets the registration flag concerned to an unregistered state with respect to the deletion indication of variable length data and a restoration processing part 15 which resets the registration flag concerned to the registered state with respect to the restoration indication of deleted variable length data are provided. Then, variable length data are deleted and restored by the operation of the registration flag. Thus, variable length data can efficiently be deleted and restored.

Description

【発明の詳細な説明】 〔概要〕 可変長、有限個で順序性のあるデータを管理しそのデー
タの削除および復元を行う処理i能を有するデータ処理
システムにおける可変長データの削除・復元処理方式に
関し 可変長データの削除・復元を効率的に行うことができる
手段を提供することを目的とし可変長データが格納され
る可変長データファイルと、各可変長データが登録され
ているか否かを示す登録フラグおよび各可変長データの
位置情報が格納されるインデックスファイルと、可変長
データの格納時に、インデックスファイルにその可変長
データの位置情報を格納し、該当する登録フラグを登録
状態に設定する登録処理部と、可変長データの削除指示
に対して、該当する登録フラグを、未登録状態にする削
除処理部と、削除した可変長データの復元指示に対しで
4該当する登録フラグを、登録状態に再設定する復元処
理部とを0mえ、可変長データの削除・復元を登録フラ
グの操作により行うように構成する。
[Detailed Description of the Invention] [Summary] Variable-length data deletion/restoration processing method in a data processing system that has the processing capability of managing variable-length, finite, ordered data and deleting and restoring that data. The purpose of this document is to provide a means for efficiently deleting and restoring variable-length data regarding variable-length data, and indicates the variable-length data file in which variable-length data is stored and whether each variable-length data is registered or not. An index file that stores registration flags and position information for each variable-length data, and a registration that stores the position information of the variable-length data in the index file when storing variable-length data, and sets the corresponding registration flag to the registered state. A processing unit changes the corresponding registration flag to an unregistered state in response to an instruction to delete variable-length data, and a deletion processing unit that changes the corresponding registration flag to an unregistered state in response to an instruction to restore deleted variable-length data. The configuration is such that the variable-length data is deleted and restored by operating the registration flag.

〔産業上の利用分野〕[Industrial application field]

本発明は、可変長、有限個で順序性のあるデータを管理
し、そのデータの削除および復元を行う処理機能を有す
るデータ処理システムにおける可変長データの削除・復
元処理方式に関する。
The present invention relates to a variable-length data deletion/restoration processing method in a data processing system having a processing function for managing variable-length, finite, ordered data, and for deleting and restoring the data.

〔従来の技術〕[Conventional technology]

計算機システムで2例えば漢字などの文字パターンを扱
う場合5決められた数のドツトの集合でパターンを表現
するCG文字パターンによる方式や、線分の集合でパタ
ーンを表現するストローク文字パターンによる方式が用
いられている。後者のストローク文字パターンによる方
式は1文字の拡大、縮小1回転などが比較的簡単に実現
できるので1図形処理システム等で多く利用されている
When dealing with character patterns such as kanji (kanji) in a computer system, 5 methods are used, such as CG character patterns, which express the pattern with a set of a predetermined number of dots, and stroke character patterns, which express the pattern with a set of line segments. It is being The latter method using stroke character patterns is often used in single-figure processing systems because it is relatively easy to enlarge or reduce one character in one rotation.

ストローク文字パターンのデータ長は1文字を構成する
線分の数に応じて可変であるが1文字パターンの作成や
変更に応して、そのデータの削除または復元などの処理
が必要になる。
The data length of a stroke character pattern is variable depending on the number of line segments constituting one character, but when creating or changing a single character pattern, processing such as deletion or restoration of the data is required.

従来、このような可変長、有限個で順序性のあるデータ
を削除した後で、そのデータを復元する場合、復元する
ためのデータをあらかじめ所定のRJT域に退避するよ
うにしていた。すなわち、後で復元を行うか行わないか
に関係なく、復元のために余分な領域を確保し5削除し
ようとしているデータをその領域に退避するようにして
いた。
Conventionally, when restoring such variable-length, finite, ordered data after deletion, the data to be restored has been saved in a predetermined RJT area in advance. That is, regardless of whether or not restoration is to be performed later, an extra area is secured for restoration and the data to be deleted is saved to that area.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

削除したデータを復元することができる機能を提供する
ため、従来方式では、あらかじめ削除するデータの内容
を退避するようにしていたので。
In order to provide a function that allows you to restore deleted data, the conventional method required you to save the contents of the data to be deleted in advance.

その退避のための領域が必要になり、また削除復元の処
理に時間がかかるという問題があった。
There is a problem in that an area is required to save the data, and it takes time to delete and restore the data.

さらに、従来方式では、データを作成または編集する一
連のプロセスの終了時に、削除したデータの内容を記憶
しておく退避領域などが解放されるので、そのプロセス
終了時以降は、復元できなくなってしまうという問題が
あった。
Furthermore, in the conventional method, when a series of processes that create or edit data ends, the backup area that stores the contents of the deleted data is released, so it is no longer possible to restore the data after that process ends. There was a problem.

本発明番よ上記問題点の解決を図り、退避のための余分
な領域を必要とせず、可変長データの削除・復元を効率
的に行うことができる手段を提供することを目的として
いる。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems and to provide a means for efficiently deleting and restoring variable length data without requiring an extra area for saving.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明の原理説明図である。 FIG. 1 is a diagram explaining the principle of the present invention.

第1図において、10はCPUおよびメモリなどからな
る処理装置、11はデイスプレィやキーボードなどの入
出力装置、12はデータの編集に関する制御を行う主制
御部、13はデータの登録を行う登録処理部、14はデ
ータの削除を行う削除処理部、15は削除したデータの
復元を行う復元処理部、16ば磁気ディスク装置等の外
部記憶装置、17はインデックスファイル、18は可変
長データファイルを表す。
In FIG. 1, 10 is a processing unit including a CPU and memory, 11 is an input/output device such as a display and a keyboard, 12 is a main control unit that controls data editing, and 13 is a registration processing unit that registers data. , 14 represents a deletion processing unit that deletes data, 15 represents a restoration processing unit that restores deleted data, 16 represents an external storage device such as a magnetic disk device, 17 represents an index file, and 18 represents a variable length data file.

本発明は、可変長、有限個でll[17序性のあるデー
タを管理するデータ処理システムに適用される。
The present invention is applied to a data processing system that manages variable-length, finite, and ordered data.

可変長データファイル18は、その管理対象となる可変
長データが格納されるファイルである。
The variable length data file 18 is a file in which variable length data to be managed is stored.

可変長データファイル18内の各可変長データを管理す
るために、インデックスファイル17が設けられる。イ
ンデックスファイル17には9例えば第1図(ロ)に示
すように、各可変長データに関する登録フラグと相対オ
フセット情報が設定されるようになっている。
An index file 17 is provided to manage each variable length data in the variable length data file 18. In the index file 17, for example, as shown in FIG. 1(b), registration flags and relative offset information regarding each variable length data are set.

インデックスファイル17における登録フラグは、登録
可能な可変長データの個数分だけあらがじめ用意され、
各登録フラグの順序は、可変長データの種類または内容
に応じて定まる順序に対応するようになっている。この
登録フラグは、対応する可変長データが登録されている
か否かを示す。
Registration flags in the index file 17 are prepared in advance for the number of variable length data that can be registered,
The order of each registration flag corresponds to the order determined depending on the type or content of variable-length data. This registration flag indicates whether or not the corresponding variable length data is registered.

インデックスファイル17における相対オフセットは、
各可変長データの存在する位置を示す情報であり、登録
フラグと同様に、可変長データの順序に従って、その格
納領域が設けられるようになっている。
The relative offset in the index file 17 is
This information indicates the position where each piece of variable length data exists, and like the registration flag, the storage area is provided according to the order of the variable length data.

登録処理部13は、主制御部12からの登録指示に対し
、可変長データファイル18に指定された可変長データ
を格納するとともに、インデックスファイル17にその
可変長データの位置情報を格納し、該当する登録フラグ
を登録状態に設定する処理を行う。
In response to the registration instruction from the main control unit 12, the registration processing unit 13 stores the specified variable length data in the variable length data file 18, stores the position information of the variable length data in the index file 17, and stores the specified variable length data in the index file 17. Performs processing to set the registration flag to the registered state.

削除処理部14は、可変長データの削除指示に対して、
インデックスファイル17におけるその可変長データに
対応する登録フラグを、未登録状態にする処理を行う。
In response to an instruction to delete variable-length data, the deletion processing unit 14
Processing is performed to set the registration flag corresponding to the variable length data in the index file 17 to an unregistered state.

復元処理部15は、削除した可変長データの復元指示に
対して、インデックスファイル17における該当する登
録フラグを、登録状態に再設定する処理を行う。
The restoration processing unit 15 performs a process of resetting the corresponding registration flag in the index file 17 to the registered state in response to an instruction to restore the deleted variable length data.

(作用〕 インデックスファイル17における登録フラグは、g4
えば1″ (ON)のときに、対応する可変長データが
可変長データファイル18に登録されていることを示し
、“0” (OF F)のときに。
(Operation) The registration flag in the index file 17 is g4.
For example, when it is 1" (ON), it indicates that the corresponding variable length data is registered in the variable length data file 18, and when it is "0" (OFF).

対応する可変長データが登録されていないことを示す。Indicates that the corresponding variable length data is not registered.

相対オフセットは、対応する可変長データが。Relative offsets have corresponding variable length data.

例えば可変長データファイル18の先頭から何バイト目
にあるかを意味するオフセント値を示す。
For example, an offset value indicating the number of bytes from the beginning of the variable-length data file 18 is shown.

最初から未登録のデータに対するオフセント値は。Offcent value for data that is not registered from the beginning.

オフセント値として実際にはとり得ない値1例えば「−
1」を入れておく。
A value 1 that cannot actually be taken as an offset value. For example, "-
Enter "1".

可変長データの削除時には、可変長データファイル18
の内容はそのままにして8 インデックスファイル17
における登録フラグをOFFにする処理だけを行う、そ
うすると、相対オフセットの値と可変長データ自体は残
っているので、復元時には、登録フラグをONに戻すだ
けで節単に復元することができることになる。なお、削
除されたデータと、最初から未登録のデータとは、相対
オフセットの値が「−1」であるか、それ以外であるか
により判断することができる。
When deleting variable length data, the variable length data file 18
Leave the contents as is 8 Index file 17
If only the process of turning off the registration flag is performed, the value of the relative offset and the variable length data itself remain, so when restoring, it is possible to simply turn the registration flag back on. Note that deleted data and unregistered data from the beginning can be determined based on whether the value of the relative offset is "-1" or something else.

可変長データファイル18における可変長データの置き
換えまたは圧縮を行わない限り、削除・復元にかかわら
ず元のデータは残っているので。
Unless the variable length data in the variable length data file 18 is replaced or compressed, the original data will remain regardless of deletion or restoration.

プロセス終了後も復元が可能であり、誤った削除に対し
て、復元を保証できる期間が長くなる。
Restoration is possible even after the process ends, and the period during which restoration can be guaranteed against accidental deletion is extended.

〔実施例〕 第2図は本発明の一実施例処理構成、第3図は本発明の
一実施例に係る漢字ストロークテーブルの構成例、第4
図は本発明の一実施例に係る登録処理部の処理フロー、
第5図は本発明の一実施例に係る削除処理部の処理フロ
ー、第6図は本発明の一実施例に係る復元処理部の処理
フロー、第7図は本発明の一実施例に係る圧縮処理部の
処理フローを示す。
[Example] FIG. 2 shows a processing configuration of an embodiment of the present invention, FIG. 3 shows an example of the configuration of a kanji stroke table according to an embodiment of the present invention, and FIG.
The figure shows a processing flow of a registration processing unit according to an embodiment of the present invention.
FIG. 5 is a processing flow of a deletion processing section according to an embodiment of the present invention, FIG. 6 is a processing flow of a restoration processing section according to an embodiment of the present invention, and FIG. 7 is a processing flow of a deletion processing section according to an embodiment of the present invention. The processing flow of the compression processing unit is shown.

第2図は、漢字ストロークテーブルに対する削除・更新
機能を持つ処理システムの処理構成を示している。第2
図において、第1図と同符号のものは、第1図に示すも
のに対応し、20は文字作成処理部、21は圧縮処理部
を表す。
FIG. 2 shows the processing configuration of a processing system having functions for deleting and updating a kanji stroke table. Second
In the figure, the same reference numerals as in FIG. 1 correspond to those shown in FIG. 1, 20 represents a character creation processing section, and 21 represents a compression processing section.

漢字ストロークテーブルは、各文字コードごとに、スト
ローク文字(線分文字)を書くために必要な座標データ
を格納しであるテーブルである。
The kanji stroke table is a table that stores coordinate data necessary for writing stroke characters (line segment characters) for each character code.

従って、漢字ストロークテーブルに格納されるデータは
、各文字ごとにデータ長が異なり、定義できる文字数は
有限個で、コードの昇順に順序性がある。
Therefore, the data stored in the kanji stroke table has a different data length for each character, the number of characters that can be defined is limited, and there is order in ascending code order.

文字作成処理部20は、ユーザとの会話により。The character creation processing unit 20 uses conversation with the user.

ストローク文字のパターンを作成し、登録指示に対して
、登録処理部13を呼び出して1作成したストローク文
字パターンのデータを、漢字ストロークテーブルに登録
する処理を行う。
A stroke character pattern is created, and in response to a registration instruction, the registration processing section 13 is called to register data of the created stroke character pattern in a kanji stroke table.

圧縮処理部21は、漢字ストロークテーブル用の領域が
少なくなった場合、または復元が不必要になった場合に
9削除されたデータを廃棄して。
The compression processing unit 21 discards the deleted data when the area for the kanji stroke table becomes insufficient or when restoration becomes unnecessary.

データの整理を行うものである。It organizes data.

本実施例では、漢字ストロークテーブルの構成が、第3
図に示すようになっている。
In this example, the configuration of the kanji stroke table is
It is as shown in the figure.

漢字ストロークテーブルは、インデックスファイル17
と、ストローク文字パターンファイル30とからなる。
Kanji stroke table is in index file 17
and a stroke character pattern file 30.

ストローク文字パターンファイル30は、第1図に示す
可変長データファイル18に相当する。
The stroke character pattern file 30 corresponds to the variable length data file 18 shown in FIG.

インデックスファイル17の登録フラグは、ストローク
文字パターンファイル30における文字パターンデータ
がアクセス可能か否か、すなわち登録状態か否かをON
10 F Fで示す。また、相対オフセントは、対応す
る文字パターンデータが。
The registration flag of the index file 17 turns on whether the character pattern data in the stroke character pattern file 30 is accessible, that is, whether it is in the registered state.
Indicated by 10 F F. Additionally, relative offsets have corresponding character pattern data.

ストローク文字パターンファイル30の先頭から何パイ
トロにあるかを示す。もし、相対オフセントに対応する
文字パターンデータが存在しない場合には、相対オフセ
ット値を「−1」とする。登録フラグおよび相対オフセ
ットは、ストローク文字コードの昇順に並べられる。
It shows how many digits there are from the beginning of the stroke character pattern file 30. If character pattern data corresponding to the relative offset does not exist, the relative offset value is set to "-1". Registration flags and relative offsets are arranged in ascending order of stroke character code.

ストローク文字パターンファイル30に格納される文字
パターンデータは2文字コードと、データ長と1文字を
構成する線分の座標データ等の組からなる。ストローク
文字パターンファイル30には2文字コードの順序に関
係なく、パターンの作成・登録順序に応じて、先頭から
順にデータが格納されるようになっている。
The character pattern data stored in the stroke character pattern file 30 consists of a set of a two-character code, a data length, and coordinate data of line segments constituting one character. Data is stored in the stroke character pattern file 30 in order from the beginning in accordance with the order of pattern creation and registration, regardless of the order of the two-character codes.

第3図に示す例では5第1番目の文字コードの文字パタ
ーンデータは、ストローク文字パターンファイル30の
先頭から12バイト目以降に格納されている。第2番目
の文字コードの文字パターンデータは、先頭から28バ
イト目以降に格納されている。これに対し、第4番目の
文字コードは登録フラグがOFFであり、また相対オフ
セント値が「−1」であるので、未登録である。
In the example shown in FIG. 3, the character pattern data of the first character code of 5 is stored from the 12th byte onwards from the beginning of the stroke character pattern file 30. The character pattern data of the second character code is stored after the 28th byte from the beginning. On the other hand, the fourth character code is unregistered because the registration flag is OFF and the relative offset value is "-1".

漢字ストロークテーブルが、このようなデータ構造にな
っているので、あるコードの文字パターンデータを削除
する場合には、そのコードに対応する登録フラグをOF
Fにするだけでよい。これにより、削除を実行しても1
相対オフセント値と文字パターンデータは元のまま残存
する。
The kanji stroke table has this data structure, so if you want to delete character pattern data for a certain code, set the registration flag corresponding to that code to OFF.
Just set it to F. As a result, even if you execute the deletion, 1
Relative offset values and character pattern data remain as they were.

従って、削除を行った後の復元処理は、対応する登録フ
ラグをONに戻すだけでよく、もしユーザが誤って削除
を行っても、復元処理を容易に行うことができる。
Therefore, restoration processing after deletion only requires turning the corresponding registration flag back on, and even if the user deletes by mistake, restoration processing can be easily performed.

本実施例の場合1文字パターンは約26,000種あり
、ストローク文字パターンファイル30の大きさは、約
1.5Mバイトである。このとき、インデックスファイ
ル17の大きさは、約150にバイトであり、全体の大
きさと比較すると、わずかな63y域である。
In this embodiment, there are approximately 26,000 types of single character patterns, and the size of the stroke character pattern file 30 is approximately 1.5 Mbytes. At this time, the size of the index file 17 is about 150 bytes, which is a small 63y area compared to the entire size.

第4図は、第2図に示す登録処理部13の処理フローを
示している。以下の説明における■〜■は、第4図に示
す処理■〜■に対応する。
FIG. 4 shows a processing flow of the registration processing section 13 shown in FIG. ■ to ■ in the following description correspond to processes ■ to ■ shown in FIG.

■ 第2図に示す文字作成処理部20によって作成した
文字パターンの登録が指示されると、ストローク文字パ
ターンファイル30の最終格納位置(E OF : E
nd Of File)の後に、登録する文字コードと
データ長と座標データ等のストローク文字パターンデー
タを追加する。
■ When registration of a character pattern created by the character creation processing section 20 shown in FIG. 2 is instructed, the final storage position (E OF: E
nd Of File), add stroke character pattern data such as the character code, data length, and coordinate data to be registered.

■ 次に、インデックスファイル17において追加した
文字コードに対応する相対オフセットを登録する。
(2) Next, register the relative offset corresponding to the added character code in the index file 17.

■ また、インデックスファイル17において追加した
文字コードに対応する登録フラグをONにする。以上で
登録処理を終了する。
(2) Also, turn on the registration flag corresponding to the added character code in the index file 17. This completes the registration process.

第5図は、第2図に示す削除処理部14の処理フローを
示している。
FIG. 5 shows a processing flow of the deletion processing unit 14 shown in FIG.

削除処理部14は、主制御部12から起動されて、デー
タの削除が指示されると、インデックスファイル17に
おいて、削除する文字コードに対応する登録フラグをO
FFにする。そして、削除処理を終了する。
When activated by the main control unit 12 and instructed to delete data, the deletion processing unit 14 sets a registration flag corresponding to the character code to be deleted in the index file 17.
Make it FF. Then, the deletion process ends.

°第6図は、第2図に示す復元処理部15の処理フロー
を示している。以下の説明における■〜■は、第6図に
示す処理■〜■に対応する。
6 shows a processing flow of the restoration processing section 15 shown in FIG. 2. ■ to ■ in the following description correspond to processes ■ to ■ shown in FIG.

■ インデックスファイル17を参照し、復元する文字
のコードに対応する相対オフセットが。
■ Refer to index file 17 and find the relative offset corresponding to the code of the character to be restored.

「−1」であるかどうかを判定する。それが「−1」で
ある場合、復元指示された文字コードのデータは、最初
から一度も登録されていないか1圧縮によって廃棄され
たことになるので。
Determine whether it is "-1". If it is "-1", it means that the data of the character code for which restoration was instructed has never been registered from the beginning or was discarded by 1 compression.

必要に応じてエラーメツセージを出力し、復元処理を終
了する。
Output an error message if necessary and end the restoration process.

■ 相対オフセントが「−1」でない場合、インデック
スファイル17における復元するコードに対応する登録
フラグをONにし、復元処理を終了する。
(2) If the relative offset is not "-1", the registration flag corresponding to the code to be restored in the index file 17 is turned ON, and the restoration process is ended.

第7図は、第2図に示す圧縮処理部21の処理フローを
示している。以下の説明における■〜■は、第7図に示
す処理■〜■に対応する。
FIG. 7 shows a processing flow of the compression processing section 21 shown in FIG. ■ to ■ in the following description correspond to processes ■ to ■ shown in FIG.

■ データの削除や置き換えなどが顧繁に繰り返されて
、ストローク文字パターンファイル30が大きくなり過
ぎた場合などに、圧縮処理部21が起動される。圧縮処
理部21は、まず作業用のワーク領域を準備する。
(2) When the stroke character pattern file 30 becomes too large due to frequent deletion or replacement of data, the compression processing unit 21 is activated. The compression processing unit 21 first prepares a work area for work.

■ インデックスファイル17を参照し、登録フラグが
ONとなっているコードの文字パターンデータだけを5
ストロ一ク文字パターンファイル30から抽出し、先頭
のコードから最終のコードまで、順番にワーク領域に書
き出す、同時にインデックスファイルエフにおける相対
オフセント値も更新する。
■ Refer to index file 17 and select only the character pattern data of the codes whose registration flag is ON.
It is extracted from the stroke character pattern file 30 and sequentially written to the work area from the first code to the last code.At the same time, the relative offset value in the index file F is updated.

■ 最後に、ワーク領域の内容を、ストローク文字パタ
ーンファイル30上に複写し、圧縮処理を終了する。
(2) Finally, the contents of the work area are copied onto the stroke character pattern file 30, and the compression process is completed.

圧縮処理によって、それ以前に削除したデータの復元が
できなくなるが、ストローク文字パターンファイル30
における不要な領域が解放されることになる。圧縮処理
後も、以前のデータの復元が必要になりそうな場合には
0例えば圧縮前のインデックスファイル17およびスト
ローク文字パターンファイル30のバンクアンプファイ
ルを作っておくことで対処可能である。
Due to the compression process, previously deleted data cannot be restored, but the stroke character pattern file 30
This will free up unnecessary space in . Even after the compression process, if it is likely that the previous data will need to be restored, this can be done by creating bank amplifier files for the index file 17 and stroke character pattern file 30 before compression, for example.

(発明の効果) 以上説明したように2本発明によれば、削除処理を、復
元を意識することなく簡単な操作だけで実現することが
できる。復元処理も、可変長データファイルにアクセス
することなく、簡単な操作で実現することができる。ユ
ーザが意識してデータの置き換えや圧縮を行わない限り
、いつまでも復元が可能であるため、誤操作によるデー
タロスを防ぐことができる。
(Effects of the Invention) As explained above, according to the two aspects of the present invention, deletion processing can be realized by simple operations without being conscious of restoration. Restoration processing can also be accomplished with simple operations without accessing variable-length data files. As long as the user does not consciously replace or compress data, it is possible to restore the data forever, which prevents data loss due to erroneous operations.

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

第1図は本発明の原理説明図 第2図は本発明の一実施例処理構成。 第3図は本発明の一実施例に係る漢字ストロークテーブ
ルの構成例 第4図は本発明の一実施例に係る登録処理部の処理フロ
ー 第5図は本発明の一実施例に係る削除処理部の処理フロ
ー 第6図は本発明の一実施例に係る復元処理部の処理フロ
ー 第7図は本発明の一実施例に係る圧縮処理部の処理フロ
ーを示す。 図中、10は処理装置、11は入出力装置、12は主f
iq御部、13は登録処理部、14は削除処理部、15
は復元処理部、16は外部記憶装置。 17はインデックスファイル118は可変長データファ
イルを表す。
FIG. 1 is an explanatory diagram of the principle of the present invention. FIG. 2 is a processing configuration of an embodiment of the present invention. FIG. 3 is an example of the configuration of a kanji stroke table according to an embodiment of the present invention. FIG. 4 is a processing flow of the registration processing unit according to an embodiment of the present invention. FIG. 5 is a deletion process according to an embodiment of the present invention. FIG. 6 shows a processing flow of a restoration processing section according to an embodiment of the present invention.FIG. 7 shows a processing flow of a compression processing section according to an embodiment of the present invention. In the figure, 10 is a processing device, 11 is an input/output device, and 12 is a main f
iq control section, 13 is a registration processing section, 14 is a deletion processing section, 15
1 is a restoration processing unit, and 16 is an external storage device. 17 represents an index file 118 that is a variable length data file.

Claims (1)

【特許請求の範囲】 可変長、有限個で順序性のあるデータを管理し、そのデ
ータの削除および復元を行う処理機能を有するデータ処
理システムにおいて、 可変長データが格納される可変長データファイル(18
)と、 可変長データの所定の順序に従って、各可変長データが
登録されているか否かを示す登録フラグおよび上記可変
長データファイルにおける各可変長データの存在する位
置を示す情報が格納されるインデックスファイル(17
)と、 上記可変長データファイルに指定された可変長データを
格納するとともに、上記インデックスファイルにその可
変長データの位置情報を格納し、該当する登録フラグを
登録状態に設定する登録処理部(13)と、 可変長データの削除指示に対して、上記インデックスフ
ァイルにおける該当する登録フラグを、未登録状態にす
る削除処理部(14)と、 削除した可変長データの復元指示に対して、上記インデ
ックスファイルにおける該当する登録フラグを、登録状
態に再設定する復元処理部(15)とを備え、 可変長データの削除・復元を登録フラグの操作により行
うようにしたことを特徴とする可変長データの削除・復
元処理方式。
[Claims] In a data processing system having a processing function for managing variable length, finite, ordered data, and deleting and restoring the data, a variable length data file in which variable length data is stored ( 18
), and a registration flag indicating whether each variable length data is registered or not according to a predetermined order of the variable length data, and an index storing information indicating the position of each variable length data in the variable length data file. File (17
), and a registration processing unit (13) that stores the specified variable length data in the variable length data file, stores the position information of the variable length data in the index file, and sets the corresponding registration flag to the registered state. ), a deletion processing unit (14) that sets the corresponding registration flag in the index file to an unregistered state in response to an instruction to delete variable-length data; A restoration processing unit (15) for resetting a corresponding registration flag in a file to a registered state, the variable-length data being deleted and restored by manipulating the registration flag. Deletion/restore processing method.
JP63249693A 1988-10-03 1988-10-03 Deletion/restoration processing system for variable length data Pending JPH0296850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63249693A JPH0296850A (en) 1988-10-03 1988-10-03 Deletion/restoration processing system for variable length data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63249693A JPH0296850A (en) 1988-10-03 1988-10-03 Deletion/restoration processing system for variable length data

Publications (1)

Publication Number Publication Date
JPH0296850A true JPH0296850A (en) 1990-04-09

Family

ID=17196798

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63249693A Pending JPH0296850A (en) 1988-10-03 1988-10-03 Deletion/restoration processing system for variable length data

Country Status (1)

Country Link
JP (1) JPH0296850A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05181719A (en) * 1991-12-27 1993-07-23 Nippon Steel Corp Variable length data storage and reference system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05181719A (en) * 1991-12-27 1993-07-23 Nippon Steel Corp Variable length data storage and reference system

Similar Documents

Publication Publication Date Title
US5761676A (en) Method of removing unneeded data from DB2 logs and other data sets having displacement-dependent data
JPS63273961A (en) Management system for plural versions
JPH0296850A (en) Deletion/restoration processing system for variable length data
JPH04360246A (en) Device for compressing file
JP3957464B2 (en) Data update device
JPH05113920A (en) Method and device for managing file
JPH08202603A (en) Document preparing device and document file compiling method
JPH05233404A (en) File control system
JPH0318224B2 (en)
JPH0322152A (en) File restoring system
JPH0385650A (en) Disk volume restoration system
JPS63138442A (en) Restoring and processing system for deleted file
JPH05324555A (en) Already executed operation canceller
JP2647044B2 (en) History management method
JPH06324925A (en) File system with data compressing function
JPH04165543A (en) Electronic filing device
JPH0375942A (en) Editing history control system for file
JPH0635779A (en) File control system
JPH03214335A (en) Computer system
JPH05181729A (en) File managing system
JP2579941B2 (en) Saving / Restoring DASD Volume
JPH04195559A (en) Subfile management system
JPH0384674A (en) Cad device
JPH05250243A (en) Data processing system for extended storage device
JP2943900B2 (en) Data compression processing device, data decompression processing device, data compression processing method, and data decompression processing method for data file