JPH03259329A - Key relative address classifying system for bulk data - Google Patents
Key relative address classifying system for bulk dataInfo
- Publication number
- JPH03259329A JPH03259329A JP5863490A JP5863490A JPH03259329A JP H03259329 A JPH03259329 A JP H03259329A JP 5863490 A JP5863490 A JP 5863490A JP 5863490 A JP5863490 A JP 5863490A JP H03259329 A JPH03259329 A JP H03259329A
- Authority
- JP
- Japan
- Prior art keywords
- record
- classification
- file
- input
- key
- 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
- 238000009825 accumulation Methods 0.000 abstract description 2
- 238000000034 method Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 3
- 230000007423 decrease Effects 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、大容量データのキー相対アドレス分類方式、
特に、分類処理時に一時的装置として補助記憶装置を必
要とする大容量データのキー相対アドレス分類方式に関
する。[Detailed Description of the Invention] [Industrial Application Field] The present invention provides a key relative address classification method for large amounts of data;
In particular, the present invention relates to a key relative address classification method for large-capacity data that requires an auxiliary storage device as a temporary device during classification processing.
データ処理システムにpけるデータの分類とは、レコー
ド内のキーをある規則に従ってレコードを並び換えるこ
とであり、データを高速に検索する為に必要となる。そ
のことからデータ処理システム内では、よく使われてい
る。Data classification in a data processing system involves rearranging records according to certain rules using keys within the records, and is necessary for high-speed data retrieval. For this reason, it is often used in data processing systems.
例えば、ある学校の生徒を試験の結果で成績順に分類す
ることにより並び換えて、データを出力する等で使われ
ている。For example, it is used to sort students at a certain school based on their test results and output the data.
従来この種の分類方式では、レコード出力時の処理の容
易性から分類処理する分類レコードは、第6囚で示す様
にキーとレコードを合わせたり、第2図の様な入力レコ
ードを分類レコードとして、主記憶装置内の分類作業領
域に展開し分類する。Conventionally, in this type of classification method, for ease of processing when outputting records, classified records are classified by matching the key and record as shown in Prisoner 6, or input records as shown in Figure 2 as classified records. , expand to the classification work area in the main memory and classify.
その後補助記憶装置内の一時ファイルにストリングとし
て出力し、それらの補助記憶装置内の一時ファイル内に
ある複数のストリングを併合し、その後、出力ファイル
にレコードのみ出力する様になっていた。After that, it was output as a string to a temporary file in the auxiliary storage device, the multiple strings in the temporary files in the auxiliary storage device were merged, and then only the records were output to the output file.
上述した従来σ)分類方式は、分類レコードをキーとレ
コードを合わせたり、又は入力レコードを分類レコード
として分類し、補助に2憶装置内り一時ファイルへ出力
する様になっているので、−時ファイルの容量が、入力
ファイルと大きいか又は同等分必要となるという欠点が
ある。In the conventional σ) classification method described above, the classification record is matched with a key, or the input record is classified as a classification record, and is auxiliary outputted to a temporary file in the storage device. There is a drawback that the file capacity is required to be large or equivalent to the input file.
又、分類レコード内に分類する上で必要でない情報があ
る為、この分類レコードを主記憶装置内の分類作業領域
に展開する時に展開できる分類レコード件数が少なくな
ることから1ストリング内のレコード1t+数が少なく
なり、ストリング本数が増え、その後の併合時の併合回
数が増えることにより分類時間が長くなるという欠点が
ある。Also, since there is information in the classification record that is not necessary for classification, the number of classification records that can be expanded when this classification record is expanded to the classification work area in the main memory is reduced, so the number of records in one string is 1t + number. This method has the drawback that the number of strings decreases, the number of strings increases, and the number of times of merging increases during subsequent merging, which lengthens the classification time.
本発明の大容量データのキー相対アドレス分類方式は、
入力ファイルからレコードを入力するレコード入力部と
、キーと入力ファイル内のレコード相対アドレスを合わ
せた分類レコードを作成し、主記憶装置内の分類作業領
域に展開する分類レコード作成部と、分類作業領域内に
展開されている分類レコード群をキーに従って分類する
レコード分類部と、分類作業領域内の分類されたレコー
ド群を1ストリングとして補助記憶装置内の一時ファイ
ルに蓄積するストリング蓄積部と、補助記憶装置内の一
時ファイルに蓄積された複数のスlングを併合するスト
リング併合部と、分類レコード内のレコード相対アドレ
スに従って、入力ファイルから出力ファイルにレコード
を出力するレコード出力部と、以上の各部を制御する分
類制御部とから構成される装置
力ファイルと分類作業用の一時的なファイルである一時
ファイルを有する補助記憶装置と、分類作業の為に使わ
れる分類作業領域を有する主紀憶装情とを含んで構成さ
れる。The key relative address classification method for large volume data of the present invention is as follows:
A record input section that inputs records from an input file, a classification record creation section that creates a classification record that combines a key and a record relative address in the input file, and expands it to a classification work area in the main storage, and a classification work area. A record classification section that sorts the classified record group developed in the storage area according to the key, a string storage section that stores the classified record group in the classification work area as one string in a temporary file in the auxiliary storage device, and an auxiliary storage device. A string merging unit that merges multiple strings stored in a temporary file in the device, a record output unit that outputs records from an input file to an output file according to record relative addresses in a classification record, and each of the above units. A device power file consisting of a classification control unit for controlling a device, an auxiliary storage device having a temporary file for classification work, and a main memory storage device having a classification work area used for classification work. It consists of:
次に本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.
処理装置11は、レコード入力部111,分類レコード
作戊部112.レコード分類部113。The processing device 11 includes a record input section 111, a classification record creation section 112. Record classification section 113.
ストリング蓄積部114lストリング併合部115。String accumulation section 114l String merging section 115.
レコード部116,分類制御部1l7o)7つの部から
構成され、レコード入力部111は、補助記憶装置12
内の入力ファイル121から第2図に示す様な入力レコ
ードを入力する。The record input unit 111 is composed of seven units (record unit 116, classification control unit 1l7o),
An input record as shown in FIG. 2 is input from the input file 121 in the .
第2図に示す第1キー.第2キーは、分類する時のキー
であり、この実施例ではキーがレコード内に2箇所ある
。The first key shown in FIG. The second key is a key for classification, and in this embodiment there are two keys in the record.
分類レコード作或部112は、レコード入力部111で
入力されたレコードから第1キーと第2キーを取り出し
合わせてキ一部とし、1たレコード入力部111に釦い
てレコードを入力した時の入力ファイル内のレコード相
対アドレスをキ一部の後ろに付けた第3図に示す分類レ
コードを作成し、主記憶装ttla内の分類作業領域1
31にその分類レコードを展開する。The classification record creation section 112 takes out the first key and the second key from the record input in the record input section 111 to form a key part, and then inputs the input when a record is input by pressing a button in the record input section 111. Create the classification record shown in Figure 3 with the record relative address in the file appended to the key part, and classify work area 1 in the main memory ttla.
The classification record is developed in 31.
レコード分類部113は、分類作業領域131に展開さ
れている分類レコード群を分類レコードのキ一部に従っ
て分類し、整順に並び換える。ストリング蓄積部114
は、分類作業領域131内の分類され、整順に並び換え
られた分類レコード群を1本のストリングとして補助記
憶装[12内の一時ファイル123に蓄積していく。The record classification unit 113 classifies the classification record group developed in the classification work area 131 according to the key part of the classification records, and rearranges them in order. String storage section 114
stores the group of classified records in the classification work area 131 that have been sorted and sorted in order as one string in the temporary file 123 in the auxiliary storage device [12].
ストリング併合部115は、一時ファイル123に蓄積
されている複数のストリングのうち4本のストリングを
入力し、分類レコードのキ一部に従って1本のストリン
グに併合し、再び一時ファイル123に出力する。これ
を繰り返していき、最終的に複数本のストリングを4本
のストリングにする。The string merging unit 115 inputs four strings among the plurality of strings stored in the temporary file 123, merges them into one string according to the key part of the classification record, and outputs the string to the temporary file 123 again. This process is repeated until the multiple strings are turned into four strings.
レコード出力部は、−時ファイル123内の4本のスト
リングを分類レコードのキ一部に従って1本のストリン
グに併合しながら、分類レコード内の入力ファイル内レ
コード相対アドレスを使用して入力ファイル121から
レコード内相対アドレスで示されるレコードを入力し、
そのレコード全出力ファイル122に出力していく。The record output section merges the four strings in the file 123 into one string according to the key part of the classification record, while outputting from the input file 121 using the record relative address in the input file in the classification record. Enter the record indicated by the intra-record relative address,
The records are output to the entire output file 122.
分類制御部117は、第4図に制御フローを示す様にレ
コード入力部1111分類レコード作成部112を分類
作成領域展開終了1171のチエツクにより分類作業領
域131が満杯であるか、又は入力ファイル121から
のレコード入力が終了する筐で繰り返す。その後レコー
ド分類部113゜レコード蓄積部114に制御を渡す。As shown in the control flow in FIG. 4, the classification control unit 117 causes the record input unit 1111 and the classification record creation unit 112 to check whether the classification work area 131 is full or from the input file 121 by checking the classification creation area expansion end 1171. Repeat at the box where record input ends. Thereafter, control is passed to the record classification section 113 and the record storage section 114.
レコード入力終了1172のチエツクにより、前記の動
作を入力ファイル121からのレコード入力が終了する
筐で繰り返す。By checking the record input end 1172, the above operation is repeated in the case where record input from the input file 121 ends.
その後ストリング併合部115.レコード出力部116
に制御を渡す。前記の様にレコード入力部1119分類
レコード作成部112.レコード分類部113ストリン
グ蓄積部114.ストリング併合部115.レコード出
力部116各部を制御する。After that, the string merging section 115. Record output section 116
Pass control to. As described above, the record input unit 1119 and the classification record creation unit 112. Record classification unit 113 String storage unit 114 . String merging section 115. Controls each part of the record output unit 116.
補助記憶装置12は、入力ファイル121.出カファイ
ル122.−時ファイル123を有している。The auxiliary storage device 12 stores input files 121. Output file 122. - It has a time file 123.
補助記憶装置は通常、ディスク装置等である。The auxiliary storage device is usually a disk device or the like.
入力ファイル121は、分類前の入力レコードが存在す
るファイルである。出力ファイル122は分類後の出力
レコードを出力するファイルである。The input file 121 is a file containing input records before classification. The output file 122 is a file that outputs output records after classification.
−時ファイル123は、分類作業用の一時的に作成され
るファイルで、ストリングを蓄積していく為に使う。The -time file 123 is a file temporarily created for classification work, and is used to accumulate strings.
主記憶装置13は、分類作業領域131を有している。The main storage device 13 has a classification work area 131.
分類作業領域131は、分類レコードを展開し、分類す
る領域である。The classification work area 131 is an area for developing and classifying classification records.
第5図は、本発明の分類方式による分類を少目のデータ
に適用した一動作例である。FIG. 5 is an example of an operation in which classification according to the classification method of the present invention is applied to a small amount of data.
少量のデータである為に第1図のストリング蓄積部11
4.ストリング併合部115の動作は省略する。Since it is a small amount of data, the string storage section 11 in FIG.
4. The operation of the string merging unit 115 will be omitted.
入力ファイル61は、ある学校の試験の成績であり、現
在氏名の五十音順で並べられている。これを合計点の多
い順に並び排え、また同点の場合は、前回順位の良い順
に並び換え出力ファイル64に出力する事とする。The input file 61 is the results of a certain school's exam, which are currently arranged in alphabetical order of names. These are sorted and discarded in descending order of total points, and in the case of a tie, they are sorted in descending order of previous ranking and output to the output file 64.
壕ず入力ファイル61から第1キーとして合計と第2キ
ーとして前回順位を取り出し、ファイル内相対アドレス
を付加した分類レコード群62を第1図のレコード入力
部111と、分類レコード作成部112により作成し、
それケレコード分類部113により分類レコード群を分
類した分類レコード群63を作成する。その後レコード
出力部116により出力ファイル64に出力する。The total as the first key and the previous ranking as the second key are extracted from the trench input file 61, and a classification record group 62 with an in-file relative address is created by the record input unit 111 and the classification record creation unit 112 shown in FIG. death,
Then, the record classification unit 113 creates a classification record group 63 by classifying the classification record group. Thereafter, the record output unit 116 outputs to the output file 64.
以上説明したように本発明は、分類レコードをキーと入
力ファイル内のレコード相対アドレスを合わせたものと
することにより分類レコードの長さを必要最低限の長さ
に短縮できることから補助記憶装置内の一時ファイルを
従来より小容量にできる効果がある。As explained above, the present invention makes it possible to shorten the length of the classification record to the minimum necessary length by making the classification record a combination of the key and the record relative address in the input file. This has the effect of making the temporary file smaller than before.
又、主記憶装置内の分類作業領域に展開できる分類レコ
ード件数が、多くなることにより1ストリング内0分類
レコード件数が多くなり、ストリング本数を従来の方式
より少なくできるので、併合部での併合回数が減少し、
分類時間を短縮できる効果もある。In addition, as the number of classification records that can be developed in the classification work area in the main memory increases, the number of 0 classification records in one string increases, and the number of strings can be reduced compared to the conventional method, so the number of times of merging at the merging section is reduced. decreases,
It also has the effect of shortening the classification time.
第1図(註、本発明の一実施例のブロック図、第2図(
ま、本発明の一実施例における入力レコードを゛示す図
、第3図は本発明の一実施例にpけろ分類レコードを示
す図、第4図は、分類制御部の側割フローを示す図、第
5図は、本発明の一動作例を示す模式図、第6図は、従
来の一例における分類レコードを示す図である。
11・・・・・・処理装置、12・・・・・・補助記憶
装置、13・・・・・・主記憶装置、111・・・・・
・レコード入力部、112・・・・・・分類レコード作
成部、113・・・・・・レコード分類部、114・・
・・・・ストリング蓄積部、115・・・・・・ストリ
ング併合部、116.・・・・・・レコード出力部、1
17・・・・・・分類制御部、121・・・・・・入力
ファイル、122・・・・・・出力ファイル、123・
・・・・・−時ファイル、131・・・・・・分類作業
領域、1171・・・・・・分類作業領域展開終了、1
172・・・・・・レコード入力終了、61・・・・・
・入力ファイル例、62・・・・・・分類レコード例、
63・・・・・・分atの分類レコード例、64・・・
・・・出力ファイル例。Figure 1 (Note: A block diagram of an embodiment of the present invention, Figure 2 (Note)
Also, FIG. 3 is a diagram showing an input record in an embodiment of the present invention, FIG. 3 is a diagram showing a p-kero classification record in an embodiment of the present invention, and FIG. 4 is a diagram showing a side division flow of the classification control unit. , FIG. 5 is a schematic diagram showing an example of the operation of the present invention, and FIG. 6 is a diagram showing a classification record in a conventional example. 11...Processing device, 12...Auxiliary storage device, 13...Main storage device, 111...
-Record input section, 112... Classification record creation section, 113... Record classification section, 114...
. . . String storage section, 115 . . . String merging section, 116. ...Record output section, 1
17...Classification control unit, 121...Input file, 122...Output file, 123.
・・・・・・-Time file, 131...Classification work area, 1171...Classification work area expansion complete, 1
172...Record input completed, 61...
・Input file example, 62... Classification record example,
63...Example of classification record for minute at, 64...
...Output file example.
Claims (1)
、キーと入力ファイル内のレコード相対アドレスを合わ
せた分類レコードを作成し主記憶装置内の分類作業領域
に展開する分類レコード作成部と、前記分類作業領域内
に展開されている分類レコード群をキーに従って分類す
るレコード分類部と、前記分類作業領域内の分類された
レコード群を1ストリングとして補助記憶装置内の一時
ファイルに蓄積するストリング蓄積部と、前記補助記憶
装置内の一時ファイルに蓄積された複数のストリングを
併合するストリング併合部と、前記分類レコード内のレ
コード相対アドレスに従って入力ファイルから出力ファ
イルにレコードを出力するレコード出力部と、前記の各
部を制御する分類制御部と、入力ファイルと出力ファイ
ルと分類作業用の一時的なファイルである一時ファイル
を有する補助記憶装置と、分類作業の為に使われる分類
作業領域を有する主記憶装置を有する大容量データのキ
ー相対アドレス分類方式。a record input section that inputs records from an input file; a classification record creation section that creates a classification record that combines a key and a record relative address in the input file and deploys it in a classification work area in a main storage; and the classification work area. a record classification unit that classifies classified record groups developed in the storage area according to keys; a string storage unit that stores the classified record group in the classification work area as one string in a temporary file in an auxiliary storage device; a string merging unit that merges a plurality of strings stored in a temporary file in an auxiliary storage device; a record output unit that outputs a record from an input file to an output file according to a record relative address in the classification record; and each of the above units. A large storage device that has a classification control unit that controls the data, an auxiliary storage device that has input files, output files, and temporary files that are temporary files for classification work, and a main storage device that has a classification work area that is used for classification work. Key-relative address classification scheme for capacity data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5863490A JPH03259329A (en) | 1990-03-08 | 1990-03-08 | Key relative address classifying system for bulk data |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5863490A JPH03259329A (en) | 1990-03-08 | 1990-03-08 | Key relative address classifying system for bulk data |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03259329A true JPH03259329A (en) | 1991-11-19 |
Family
ID=13090017
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5863490A Pending JPH03259329A (en) | 1990-03-08 | 1990-03-08 | Key relative address classifying system for bulk data |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03259329A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7505165B2 (en) | 2001-05-18 | 2009-03-17 | Sanyo Electric Co., Ltd. | Image recording apparatus |
-
1990
- 1990-03-08 JP JP5863490A patent/JPH03259329A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7505165B2 (en) | 2001-05-18 | 2009-03-17 | Sanyo Electric Co., Ltd. | Image recording apparatus |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5117495A (en) | Method of sorting data records | |
| EP0066061B1 (en) | Relational algebra engine | |
| US5842208A (en) | High performance recover/build index system by unloading database files in parallel | |
| JPH02178730A (en) | Internal sorting system using dividing method | |
| US6424970B1 (en) | Sorting system and method executed by plural computers for sorting and distributing data to selected output nodes | |
| JPH03259329A (en) | Key relative address classifying system for bulk data | |
| JPH0666050B2 (en) | Sort processing method | |
| JPS5820072B2 (en) | information retrieval device | |
| JPH0581337A (en) | Data processing device | |
| JP3061486B2 (en) | Data sort processing system | |
| JPS6266326A (en) | Array processing system for japanese data | |
| JPH04115325A (en) | Character code sorting method | |
| JP2921045B2 (en) | Index generation method | |
| JPH04175873A (en) | Form allotment processing device | |
| JPH0199125A (en) | Link classifying system | |
| JPH03216729A (en) | Elctronic computer | |
| Files | A new approach to partition selection in Ashenhurst-Curtis functional decomposition | |
| JPH01112364A (en) | Data processor | |
| JPH0797311B2 (en) | Data sorter | |
| JPH03192437A (en) | String directory sort merging system | |
| JPH0397027A (en) | data classifier | |
| JPH0934899A (en) | Search route output method and device | |
| JPH0268663A (en) | string search device | |
| JPS6375928A (en) | Comprehensive type sorting system | |
| JPH01241677A (en) | Circuit converting system |