JPH03265969A - Document data control system - Google Patents

Document data control system

Info

Publication number
JPH03265969A
JPH03265969A JP2065297A JP6529790A JPH03265969A JP H03265969 A JPH03265969 A JP H03265969A JP 2065297 A JP2065297 A JP 2065297A JP 6529790 A JP6529790 A JP 6529790A JP H03265969 A JPH03265969 A JP H03265969A
Authority
JP
Japan
Prior art keywords
line
record
page
file
data
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
JP2065297A
Other languages
Japanese (ja)
Inventor
Yasuo Yamane
康男 山根
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 JP2065297A priority Critical patent/JPH03265969A/en
Publication of JPH03265969A publication Critical patent/JPH03265969A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the processing ability of a document data control system by attaining a constitution where each line code identifier has a direct access to a specific line record via a specific slot array included in a data block. CONSTITUTION:A data file 100 (S file) consisting of an assembly of plural data blocks D1-Dn is controlled so that the correspondence is secured between the line codes stored in the file 100 and the line record identifiers LID (B,S) stored in each page record in the order of line Nos. Then each of identifiers (B,S) has a direct access to a specific line record via a specific slot array included in a data block. Thus it is possible to give an access at a high speed to the line record forming a sentence in an optional page and to improve the processing ability of a document data control system.

Description

【発明の詳細な説明】 [概要] 複数行の文章に相当する文書データを行毎の行レコード
としてファイル管理するデータベースシステムの文書デ
ータ管理方式に関し、 データベースシステムへの文書データの格納、検索、整
理等の処理をダイレクトアクセスによって効率化を図る
ことを目的とし、 夫々適宜の数の行レコードを有する複数のデータブロッ
クの集合として構成されるデータファイルを備えると共
に、各データブロックには各データブロック中の行レコ
ードの位置を示すためのオフセットデータを格納するス
ロット配列を行レコ−ドの数分だけ備えるファイル編成
とし、データブロックを指定するブロック識別子とスロ
ット配列を指定するスロット識別子とから成る行レコー
ド識別子により、任意の行レコードをダイレクトアクセ
スするようにした。
[Detailed Description of the Invention] [Summary] This invention relates to a document data management method for a database system that manages document data corresponding to multiple lines of text as a line record for each line. The purpose of this system is to improve the efficiency of processing such as The file is organized in such a way that it has as many slot arrays as there are row records to store offset data for indicating the positions of row records, and each row record consists of a block identifier that specifies a data block and a slot identifier that specifies the slot array. Any row record can be directly accessed by identifier.

更に、各ページの順番を示すページ番号識別子と各ペー
ジ中の各行に対応する行レコードを指定するための行レ
コード識別子を行番号の順に配列して成るページレコー
ドの集合から成り且つB−tree構造を持つキーファ
イルを編集して、ページ番号識別子をB −tree構
造のキーとすることにより、任意ページの文書を構成す
る行レコードをデータファイルからダイレクトにアクセ
スするようにファイル管理する。
Furthermore, it consists of a set of page records in which a page number identifier indicating the order of each page and a line record identifier for specifying a line record corresponding to each line in each page are arranged in the order of line numbers, and has a B-tree structure. By editing a key file having a page number identifier and using the page number identifier as a key of a B-tree structure, file management is performed so that line records constituting a document of an arbitrary page can be directly accessed from a data file.

の分野では頻繁に処理されているが、近年になって、マ
ルチメディアデータとして、データベースの分野でも処
理されるようになってきており、特に、データベースシ
ステムとの間で文書データを高速且つ効率的にアクセス
するファイル管理方式%式% [従来の技術] 従来の文書データ管理方式は、例えば、1ページ当たり
複数行から成る複数ページ分の文書データを行単位の行
レコードとして処理し、それらの行レコードを行番号順
に先頭からデータベースシステムの主記憶メモリへ書き
込む所謂シーケンシャルファイル方式が採られていた。
However, in recent years, it has also begun to be processed as multimedia data in the database field. File management method for accessing % expression % [Prior art] Conventional document data management methods, for example, process document data for multiple pages consisting of multiple lines per page as line records for each line, and A so-called sequential file method was used in which records were written into the main memory of the database system in the order of line numbers from the beginning.

[産業上の利用分野] 本発明は、複数行の文章に相当する文書データを行毎の
行レコードとしてファイル管理するデータベースシステ
ムの文書データ管理方式に関する。
[Industrial Application Field] The present invention relates to a document data management method for a database system that manages document data corresponding to multiple lines of text as a line record for each line.

文書データは、所謂ワードプロセッサシステム[発明が
解決しようとする課題] しかしながら、このような従来の文書データ管理方式に
あっては、データベースシステムの主記憶メモリに一旦
保管した行レコードを先頭から読出す等の単純な処理に
は都合が良いが、任意のデータファイル中の任意の文書
データをアクセスして検索処理を行ったり、任意の行レ
コードを追加、変更、削除するなどの編集処理を行う場
合には、直接所望の行データをアクセスすることができ
ないことから、先頭の行レコードから順番にアクセスし
ていくこととなり、多大の時間を要して不効率であると
いう問題があった。
Document data is stored in a so-called word processor system [Problem to be solved by the invention] However, in such conventional document data management methods, line records that are once stored in the main memory of a database system are read from the beginning, etc. Although it is convenient for simple processing, it is useful when accessing arbitrary document data in arbitrary data files to perform search processing, or when performing editing processing such as adding, changing, or deleting arbitrary line records. Since it is not possible to directly access the desired row data, accesses are made sequentially starting from the first row record, which takes a lot of time and is inefficient.

本発明は、このような従来の課題に鑑みて成されたもの
であり、各行単位に区分けされた行データに対し、任意
のページ毎にダイレクト且つランダムにアクセスするた
めの文書データ管理方式を提供することを目的とする。
The present invention has been made in view of such conventional problems, and provides a document data management method for directly and randomly accessing line data divided into individual lines for each arbitrary page. The purpose is to

[課題を解決するための手段] 第1図は本発明の原理説明図である。[Means to solve the problem] FIG. 1 is a diagram explaining the principle of the present invention.

まず本発明は、複数ページにわたる文書データを行単位
の行レコードとしてファイル管理する文書データの管理
方式を対象とする。
First, the present invention is directed to a document data management method in which document data spanning multiple pages is managed in a file as line records on a line-by-line basis.

このような文書データ管理方式において、複数のデータ
ブロックD1〜Dnの集合から成るデータファイル10
0(以下、Sファイルという)を構成すると共に、デー
タブロックD1〜Dnを夫々適宜の数の行レコードLD
ATA (0311)〜LDATA(O5li)、LD
ATA (032+)〜LDAT^(O32j)、・・
・・・・・・・LDATA (OSnl) 〜LDAT
^(O3nk)の集合とし、更に、夫々のデータブロッ
クD1〜Dnには、各行レコードの配列位置を示すため
のオフセットデータを記憶するスロット配列0511〜
031i、0821〜032j。
In such a document data management system, a data file 10 consisting of a set of a plurality of data blocks D1 to Dn
0 (hereinafter referred to as S file), and data blocks D1 to Dn are each configured as an appropriate number of row records LD.
ATA (0311) ~ LDATA (O5li), LD
ATA (032+) ~ LDAT^ (O32j),...
......LDATA (OSnl) ~LDAT
^(O3nk), and each data block D1 to Dn has slot arrays 0511 to 0511 to store offset data for indicating the array position of each row record.
031i, 0821-032j.

・・・・・・・・・、03nl〜03nkを設けたファ
イル編成とする。
. . . The file organization includes 03nl to 03nk.

そして、データブロックD1〜Dnを指定するためのブ
ロック識別子Bとスロット配列の位置を指定するための
スロット識別子Sから成る行レコード識別子LID (
B、 S)の夫々の識別子B、  Sを設定することに
より、任意のブロック中に格納されている行レコードを
ランダム且つダイレクトにアクセスするようにファイル
処理する。
Then, a row record identifier LID (
By setting the identifiers B and S, respectively, file processing is performed so that row records stored in an arbitrary block are accessed randomly and directly.

そして、1ページ当たり複数行にわたる複数ページ分の
文書データをファイル処理するために、各ページ1〜X
の順番を示すページ番号識別子と各ページ1〜X中の各
行番号に対応する行レフードを指定するための行レコー
ド識別子LIDII (B、 S)〜LID1a (B
、 S)、LID21 (B、 S)〜LID2b (
B、 S)、LID31(B、 S) 〜LID3c 
(B、 S)、 、、、、、、−、LIDXI(B、S
) 〜LIDXy (B、 S) [但し、添字Xはペ
ージ番号、yは行番号を示す]とから成る複数のページ
レコードP1〜PXの集合であり且っB −tree構
造を持つキーファイル200(以下、Sファイルという
)で対応させ、ページ番号識別子をB −jtee構造
のキーとすることにより、任意ページの文書を構成する
行レコードをSファイル100からダイレクトにアクセ
スするようにファイル管理する。
Then, in order to file process document data for multiple pages with multiple lines per page, each page 1 to
A page number identifier indicating the order of pages 1 to X, and a line record identifier LIDII (B, S) to LID1a (B
, S), LID21 (B, S) ~ LID2b (
B, S), LID31 (B, S) ~ LID3c
(B, S), ,,,,,,-,LIDXI(B,S
) ~ LIDXy (B, S) [However, the subscript X is a page number, and y is a line number] A key file 200 ( By using the page number identifier as a key of the B-jtee structure, file management is performed so that the line records constituting the document of any page can be directly accessed from the S file 100.

[作用] このような本発明の文書データ管理方式によれば、Sフ
ァイルに格納した行レコードに対し、各ページレコード
中に行番号順で格納された行レコード識別子LID (
B、 S)が対応するようにファイル管理され、夫々の
行レコード識別子LID (B、 S)がデータブロッ
ク中の特定のスロット配列を介して特定の行レコードを
ダイレクトにアクセスするので、任意のページ中の文章
を構成する行レコードを高速にアクセスすることができ
、処理能力を向上させることができる。
[Operation] According to the document data management method of the present invention, the line record identifier LID (
B, S) are managed in a corresponding manner, and each row record identifier LID (B, S) directly accesses a specific row record through a specific slot arrangement in the data block, so any page The line records that make up the text can be accessed quickly, improving processing performance.

[実施例] 以下、本発明による一実施例・を図面と共に説明する。[Example] Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

まず、本発明の文書データ管理方式を適用するデータベ
ースシステムの構成を第2図と共に説明する。
First, the configuration of a database system to which the document data management method of the present invention is applied will be explained with reference to FIG.

第2図において、システム全体の動作を制御する中央制
御部(CPU)2から延設されるパスラインに、磁気デ
ィスク等で構成される記憶装置4、ランダムアクセスメ
モリ等で構成されるワークエリア6.1フレ一ム分の画
像データを一時的に格納するビデオラム(VRAM)8
を接続すると共に、キーボード等の入力装置10、画像
表示装置(CRT)12がデイスプレィコントローラ1
4を介して接続している。
In FIG. 2, a storage device 4 consisting of a magnetic disk, etc., and a work area 6 consisting of a random access memory, etc. are connected to a path line extending from a central control unit (CPU) 2 that controls the operation of the entire system. .Video RAM (VRAM) 8 that temporarily stores image data for one frame
At the same time, an input device 10 such as a keyboard, and an image display device (CRT) 12 are connected to the display controller 1.
Connected via 4.

そして、記憶装置4に、本発明に関するSファイルとS
ファイルが編集されるように成っている。
Then, the S file related to the present invention and the S file are stored in the storage device 4.
The file is configured to be edited.

即ち、第2図に示す入力装置10によって文書をキー人
力すると、入力された文書データを各行単位の行レコー
ドとしてSファイル中の適宜のデータブロックに格納す
ると共に、その行レコードが格納された位置を示すオフ
セットデータをスロット配列に格納する。更に、オフセ
ット配列の配列順を示すスロット識別子Sと行レコード
を格納したデータブロックを示すブロック識別子Bから
成る行レコード識別子LID(B、!i)のデータを、
Sファイル中の作成ページに対応するページレコードに
格納する。そして、入力装置10から入力される文書デ
ータを行単位の行データとして同様の処理を繰り返すこ
とにより、SファイルとSファイルが順次に編集される
That is, when a document is entered manually using the input device 10 shown in FIG. 2, the input document data is stored in an appropriate data block in the S file as a line record for each line, and the position where the line record is stored is stored. Store offset data indicating this in the slot array. Furthermore, the data of the row record identifier LID (B, !i) consisting of the slot identifier S indicating the arrangement order of the offset array and the block identifier B indicating the data block storing the row record,
Stored in the page record corresponding to the created page in the S file. Then, by repeating the same process using the document data inputted from the input device 10 as line data, the S file and the S file are sequentially edited.

又、文書作成中のページ内の文書に対応する行レコード
をSファイルからDMAコントローラ(図示せず)を介
してビデオラム8を転送し、デイスプレィコントローラ
14がビデオラム8中のデータに基づいてNTSC方式
等に準拠した所定の走査タイミングに同期したビデオ信
号を形成して画像表示装置12に供給することにより、
作成中の文書を画像表示装置12で見ることができる。
Also, the line records corresponding to the document in the page being created are transferred from the S file to the video RAM 8 via the DMA controller (not shown), and the display controller 14 transfers them based on the data in the video RAM 8. By forming a video signal synchronized with a predetermined scanning timing based on the NTSC system etc. and supplying it to the image display device 12,
The document being created can be viewed on the image display device 12.

尚、Sファイル中の行データはページ番号識別子によっ
て表示すべきページレコードを指定し、更に、指定した
ページレコード中の行レコード識別子によってダイレク
トにアクセスすることによって読み出される。
Note that the line data in the S file is read by specifying a page record to be displayed using a page number identifier, and then directly accessing the page record using the line record identifier in the specified page record.

一例として、第3図に示す3ペ一ジ分の文章を入力装置
10から入力した場合のSファイルとSファイルの物理
的な構造を第4図に従って説明する。
As an example, the S file and the physical structure of the S file when three pages of text shown in FIG. 3 are input from the input device 10 will be described with reference to FIG. 4.

まず、第3図に示す1ページ目の文書データは行単位に
区切られて7個の行レコードとなり、Sファイルの適宜
のブロックの適宜の記憶領域に格納される。第4図では
、第1. 2. 4. 5. 6゜7行目の文書に相当
する行レコードを第1ブロツクD1に格納し、第3行目
の文書に相当する行レコードを第2ブロツクD2に格納
した場合を示す。
First, the document data of the first page shown in FIG. 3 is divided into seven line records, which are stored in appropriate storage areas in appropriate blocks of the S file. In FIG. 4, 1. 2. 4. 5. 6. A case is shown in which the line record corresponding to the document on the seventh line is stored in the first block D1, and the line record corresponding to the document on the third line is stored in the second block D2.

そして、第1ブロツクD1の行レコードを代表して説明
すると、夫々の行レコードの格納位置を示すオフセット
データ0511〜031iをスロット配列に格納する。
To explain the row records of the first block D1 as a representative, offset data 0511 to 031i indicating the storage position of each row record is stored in the slot array.

例えば、第1番目のスロット中のオフセットデータ03
11を参照すると、osi+に対応する格納位置の行デ
ータLDATA (0311)即ち、「1.テーマ名」
のデータをアクセスすることができる。
For example, offset data 03 in the first slot
11, the row data LDATA (0311) of the storage location corresponding to osi+, that is, "1. Theme name"
data can be accessed.

一方、Sファイルの例えば第1ページに相当するページ
レコードP1には、第3図に示す文書の付順に、各行に
対応する行レコードの格納位置を示すブロック識別子B
とスロット識別子Sから成る行レコード識別子が格納さ
れる。例えば、第1ページの第1行目に対応する行レコ
ードLDATA (O311)は第1のブロックD1中
の第1番目のスロットを参照することによってアクセス
が可能となるので、一般式で示す行レコード識別子LI
DXy (B、 S)はLIDII C1,1)となる
。尚、一般式において、Xはページ番号、yは行番号を
示す。
On the other hand, page record P1 corresponding to, for example, the first page of the S file has a block identifier B indicating the storage position of the line record corresponding to each line in the order of document attachment shown in FIG.
A row record identifier consisting of a slot identifier S and a slot identifier S is stored. For example, the row record LDATA (O311) corresponding to the first row of the first page can be accessed by referring to the first slot in the first block D1, so the row record indicated by the general formula Identifier LI
DXy (B, S) becomes LIDII C1,1). Note that in the general formula, X represents a page number and y represents a line number.

又、上述したように、ページレコード中の行レコード識
別子群に対応する全ての行レコードが同一のブロック中
に格納される必要はなく、図示するように、第1ページ
の第3行目に対応する行レコード識別子LID13 (
2,1)のように、他のブロック(ここでは、第2ブロ
ツクD2)の適宜の格納位置に格納してもよい。この場
合には、LID13(2,1)で示すように、ブロック
D2の第1番目のスロットに格納されるオフセットデー
タ0S21で示される位置に、対応する行レコードLD
ATA (O321)即ち、「2.最近の動向」という
データが格納される。
Furthermore, as mentioned above, it is not necessary that all the row records corresponding to the row record identifier group in the page record are stored in the same block; row record identifier LID13 (
2, 1), it may be stored in an appropriate storage position in another block (here, the second block D2). In this case, as indicated by LID13 (2, 1), the corresponding row record LD is placed at the position indicated by offset data 0S21 stored in the first slot of block D2.
ATA (O321), that is, the data "2. Recent trends" is stored.

同様に、第2ページ中の文書に対応する各行単位の行レ
コードも適宜のブロック中のスロット配列で対応する格
納位置に格納されると共に、該ブロックとスロットの順
番を指定する行レコード識別子が行番号順に格納され、
第3ページ目に対しても同様のファイルが編集される。
Similarly, the line record for each line corresponding to the document in the second page is stored in the corresponding storage position in the slot arrangement in the appropriate block, and the line record identifier that specifies the order of the block and slot is stored in numerical order,
A similar file is edited for the third page as well.

そして、例えば−旦格納した行レコードをページ単位で
画像表示装置112に表示しようとする場合には、入力
装置10から中央制御部2に対してページを指定すると
、中央制御部2はSファイルに対してページ番号識別子
で表示すべきページを指示し、Sファイル中の指示され
たページレコドの行レコード識別子を行番号順に処理す
ることによって、Sファイル中の行レコードをアクセス
する。そして、行レコードをビデオラム8へ転送するこ
とによって表示が可能となる。
For example, if you want to display the line records that have been stored page by page on the image display device 112, when you specify the page from the input device 10 to the central control unit 2, the central control unit 2 saves it to the S file. The page to be displayed is specified using a page number identifier, and the line records in the S file are accessed by processing the line record identifiers of the specified page records in the S file in the order of line numbers. Then, by transferring the line record to the video ram 8, display becomes possible.

尚、文書を表示する場合を一例として説明したが、Sフ
ァイルの検索や行レコードの更新等の編集処理を行う場
合にも同様の処理によって所望の行レコードをダイレク
トにアクセスすることができる。
Although the case of displaying a document has been described as an example, a desired line record can be directly accessed by similar processing when performing editing processing such as searching an S file or updating a line record.

次に、−例として、通常ファイル編集で行われる新文書
の挿入、文書の削除、文書の移動、文書の複写、ページ
の挿入、ページの削除、文字列の挿入、文字列の削除を
行うための処理を説明する。
- For example, to insert a new document, delete a document, move a document, copy a document, insert a page, delete a page, insert a string, or delete a string, all of which are normally performed in file editing. The process will be explained.

まず、新文書の挿入では、入力装置10等から入力され
た行単位の行レコードを適宜のブロックの空いた格納領
域に格納し、更に、文書を挿入したページの挿入行に対
応するページレコードに行レコード識別子を格納する。
First, when inserting a new document, a line record inputted from the input device 10 or the like is stored in an empty storage area of an appropriate block, and then a page record corresponding to the inserted line of the page into which the document is inserted is stored. Stores the row record identifier.

そして、挿入によってずれた行単位の文書に応じて行レ
コード識別子は順次に繰り下がる。この際、予め決めら
れたページの行数を超えた場合には、最後の行レコード
識別子は次のページレコードの最初の行番号に対応する
位置に格納され、複数行の文書が予め決められたページ
の行数を超えた場合には、その超えた分の複数の行レコ
ード識別子は次のページレコードの最初の行番号に対応
する位置から格納される。
Then, the line record identifier is sequentially decremented in accordance with the line-by-line document that is shifted due to the insertion. At this time, if the predetermined number of lines on a page is exceeded, the last line record identifier is stored in the position corresponding to the first line number of the next page record, and the multi-line document is When the number of rows on a page is exceeded, the plurality of row record identifiers corresponding to the number of rows exceeding the number of rows are stored starting from the position corresponding to the first row number of the next page record.

このように、Sファイル中の行レコード識別子の配列を
挿入行に応じてずらしても、Sファイル中の行レコード
の格納位置は各データブロックのスロット配列で関係が
対応付けられているので、行レコードの格納位置を変更
する必要がない。
In this way, even if the array of row record identifiers in the S file is shifted according to the inserted row, the storage positions of row records in the S file are associated with each other in the slot array of each data block, so There is no need to change the storage location of records.

次に、文書の削除では、入力装置!10等から入力され
た行単位の削除範囲を指定すると、まず、削除範囲に対
応するページレコード中の行レコード識別子を消去する
と共に、Sファイル中の対応する行レコードを消去する
。この結果、消去された行レコードの格納領域は空とな
り、新文書の挿入のための領域となる。また、1ペ一ジ
分の文書を全て削除する場合には、そのページレコード
が消去され、その消去されたページレコードの後に続く
ページレコードの番号が繰り上がる。
Next, when deleting the document, use the input device! 10 or the like, first, the line record identifier in the page record corresponding to the deletion range is deleted, and the corresponding line record in the S file is also deleted. As a result, the storage area for the deleted line record becomes empty and becomes an area for inserting a new document. Furthermore, when deleting all of one page of a document, that page record is deleted, and the number of the page record following the deleted page record is incremented.

次に、文書の移動では、入力装置10等から行単位の移
動範囲及び移動先を指定すると、まず、指定された文書
に対応する行レコード識別子を所定のレジスタに格納す
ると共に、指定されたページレコードから対応する行レ
コード識別子を消去する。次に、消去された分だけ後続
の行レコード識別子を繰り上げて詰める。そして、レジ
スタに格納しておいた行レコード識別子を指定された行
に挿入し、挿入された行に後続する行データ識別子は繰
り下げられる。
Next, when moving a document, when a line-by-line movement range and movement destination are specified from the input device 10 or the like, the line record identifier corresponding to the specified document is stored in a predetermined register, and the specified page Clears the corresponding row record identifier from the record. Next, subsequent row record identifiers are incremented by the amount that has been deleted. Then, the row record identifier stored in the register is inserted into the designated row, and the row data identifiers subsequent to the inserted row are incremented.

次に、新たなページを挿入する場合には、新たなページ
レコードをSファイルに作成し、適当な位置に挿入する
。そして、挿入された位置に継続するページレコードの
ページ番号は順次に繰り下げられる。
Next, when inserting a new page, a new page record is created in the S file and inserted at an appropriate position. Then, the page numbers of page records following the inserted position are sequentially decreased.

次に、ページを削除する場合には、指定されたページレ
コードをSファイルから消去する。そして、消去された
ページレコードに後続するページレコードのページ番号
を順次に繰り上げる。
Next, when deleting a page, the designated page record is deleted from the S file. Then, the page numbers of the page records following the erased page record are sequentially incremented.

次に、−行中の適宜の位置に文字列等を挿入する場合に
は、挿入位置に継続する文書に相当するSファイル中の
行レコードを文字数分だけ全体的に繰り下げた新たな行
レコードに変更する。
Next, when inserting a character string, etc. at an appropriate position in a line, create a new line record by moving the line record in the S file corresponding to the document that continues at the insertion position by the number of characters. change.

次に、−行中の適宜の文字列等を削除する場合には、も
し仮にその行中の改行データが存在すればその行に対応
する行レコードだけを削除した行文書に相当する行レコ
ードに変更してSファイル中の元の位置に格納する。そ
の行中に改行データが存在しない場合は、削除した文字
数分だけ後続の文字を繰り上げて詰めた状態の新たな行
レコードに変更する。
Next, when deleting appropriate character strings etc. in the - line, if there is line feed data in that line, the line record corresponding to the line document from which only the line record corresponding to that line has been deleted is Change it and store it in the original location in the S file. If line feed data does not exist in that line, the line record is changed to a new line record in which the following characters are incremented by the number of deleted characters.

このように、この実施例によれば、Sファイル中に格納
した行レコードを、文書の行番号順に格納した行レコー
ド識別子によって参照するファイル構成としたので、行
レコードを高速且つダイレクトにアクセスすることがで
きると共に、各種のファイル編集を簡素且つ高速に行う
ことができる。
As described above, according to this embodiment, the file structure is such that the line records stored in the S file are referenced by line record identifiers stored in the order of line numbers of the document, so line records can be accessed quickly and directly. In addition, various file editing operations can be performed simply and quickly.

[発明の名称] 以上説明したように本発明によれば、データファイル(
Sファイル)に格納した行レコードに対し、各ページレ
コード中に行番号順で格納された行レコード識別子が対
応するようにファイル編集され、夫々の行レコード識別
子がデータブロック中の特定のスロット配列を介して特
定の行レコードをダイレクトにアクセスするので、任意
のへ一ジ中の文章を構成する行レコードを高速にアクセ
スすることができ、処理能力を向上させることができる
[Name of the Invention] As explained above, according to the present invention, the data file (
The file is edited so that the row record identifiers stored in the order of row numbers in each page record correspond to the row records stored in the S file), and each row record identifier corresponds to a specific slot arrangement in the data block. Since a specific line record is directly accessed through the page, the line records constituting the text in any given page can be accessed at high speed, and processing capacity can be improved.

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

第1図は本発明の原理説明図、 第2図は本発明を適用したデータベースシステムの実施
例構成図、 第3図は実施例のファイル管理を説明する為に示した文
書例、 第4図は第3図に対応してファイルの物理的構成を示し
た説明図である。 図中の符号: 2;中央制御部 4;主記憶部 6;ワークエリア 8;ビデオラム 10;入力装置 12;画像表示装置 14:デイスプレィコントローラ P1〜Px;ページレコード
Fig. 1 is a diagram explaining the principle of the present invention, Fig. 2 is a configuration diagram of an embodiment of a database system to which the present invention is applied, Fig. 3 is a document example shown to explain file management in the embodiment, Fig. 4 3 is an explanatory diagram showing the physical structure of a file corresponding to FIG. 3. FIG. Codes in the figure: 2; central control unit 4; main memory unit 6; work area 8; video ram 10; input device 12; image display device 14: display controllers P1 to Px; page record

Claims (1)

【特許請求の範囲】[Claims] (1)複数行の文書に相当する文書データを行毎の行レ
コードとしてファイル管理するデータベースシステムの
文書データ管理方式において、夫々が適宜の数の行レコ
ードを格納する格納領域と、夫々の行レコードの格納位
置を示すオフセットデータを格納するスロット配列を有
する複数のデータブロック(D1〜Dn)の集合として
構成され、データブロックを指定するブロック識別子と
スロット配列を指定するスロット識別子とから成る行レ
コード識別子により、任意の行レコードをダイレクトア
クセスするファイル構造から成るデータファイル(10
0)と、 文書の各ページの順番を示すページ番号識別子と各ペー
ジ中の各行に対応する行レコードを指定するための行レ
コード識別子を行番号の順に配列して成るページレコー
ドの集合から成り且つB−tree構造を持つキーファ
イル(200)とを備え、上記ページ番号識別子をB−
tree構造のキーとすることにより、任意ページの文
書を構成する行レコードをデータファイル(100)か
らアクセスすることを特徴とする文書データ管理方式。
(1) In a document data management method of a database system in which document data corresponding to a multi-line document is managed as a file record for each line, there is a storage area for storing an appropriate number of line records, and a storage area for each line record. A row record identifier configured as a set of a plurality of data blocks (D1 to Dn) having a slot arrangement for storing offset data indicating the storage position of the data block, and consisting of a block identifier specifying the data block and a slot identifier specifying the slot arrangement. creates a data file (10
0), and a set of page records consisting of a page number identifier indicating the order of each page of the document and a line record identifier for specifying the line record corresponding to each line in each page, arranged in the order of the line number, and A key file (200) having a B-tree structure is provided, and the page number identifier is
A document data management method characterized in that line records constituting a document of an arbitrary page are accessed from a data file (100) by using keys of a tree structure.
JP2065297A 1990-03-15 1990-03-15 Document data control system Pending JPH03265969A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2065297A JPH03265969A (en) 1990-03-15 1990-03-15 Document data control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2065297A JPH03265969A (en) 1990-03-15 1990-03-15 Document data control system

Publications (1)

Publication Number Publication Date
JPH03265969A true JPH03265969A (en) 1991-11-27

Family

ID=13282847

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2065297A Pending JPH03265969A (en) 1990-03-15 1990-03-15 Document data control system

Country Status (1)

Country Link
JP (1) JPH03265969A (en)

Similar Documents

Publication Publication Date Title
US5586292A (en) Data processing method using record division storing scheme and apparatus therefor
JPS5892035A (en) Data base processing system
JPH03265969A (en) Document data control system
JPS62287350A (en) Index integrally updating system
JPS58114149A (en) Electronic filing system
JPH02116936A (en) Reorganizing system
JPH03265944A (en) File control system
JPH02257282A (en) Table preparation processor
JP2618029B2 (en) How to divide an indexed file
JPH0833900B2 (en) Content retrieval device
JPS6167155A (en) Ramdom file system
JPH04287140A (en) File managing system for dividing into plural physical files
JPH0145648B2 (en)
JPS62177642A (en) File management system for postscript filing device
JPS61134843A (en) Program structure processing system
JPH0827800B2 (en) Information retrieval device
JPS62239249A (en) File managing device
JPH04314144A (en) Dara block accesssing system for sequential file
JPH08328946A (en) Managing method for secondary storage area
JPS62134718A (en) Data access control system
JPS62194554A (en) Memory contents control system
JPH02138645A (en) Processing system for input order file
JPS61141030A (en) System for controlling edition and printing of document
JPH01106137A (en) Information retrieving device
JPH02302869A (en) File edition system