JPH0397027A - Data sorter - Google Patents

Data sorter

Info

Publication number
JPH0397027A
JPH0397027A JP23398889A JP23398889A JPH0397027A JP H0397027 A JPH0397027 A JP H0397027A JP 23398889 A JP23398889 A JP 23398889A JP 23398889 A JP23398889 A JP 23398889A JP H0397027 A JPH0397027 A JP H0397027A
Authority
JP
Japan
Prior art keywords
records
sorting
sort
keywords
word
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
JP23398889A
Other languages
Japanese (ja)
Inventor
Makoto Kimura
誠 木村
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP23398889A priority Critical patent/JPH0397027A/en
Publication of JPH0397027A publication Critical patent/JPH0397027A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To quickly sort a large quantity of records exceeding the capacity of an internal memory by successively reading out records from an external storage means and arranging designated keywords in the order of priority level related to designation and adding storage position information to convert records into sort records. CONSTITUTION:A designating means (b) arbitrarily designates plural keywords as the sort object and priority levels of respective sort processings of these keywords. A converting means (c) successively reads out records from an external storage means (a) to convert them into sort records where keywords designated by the designating means (b) are arranged in the order of priority level related to designation and storage position information in the external storage means (a) is added. Sort records converted by the converting means (c) are stored in an internal storage means (d). A sorting means (e) sorts records based on sort records in the internal storage means (d). Thus, the record form is changed to perform the sort processing, and records are quickly sorted.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、レコードデータを迅速にソートするのに好
適なデータ分類装置に関する.[従来の技術] 従来、磁気ディスク等の外部メモリに格納された大量の
レコードデータをレコード単位でソートする場合、ソー
ト対象のレコード群を内部メモリのメモリ容量に応じて
複数ブロックに分割し、内部メモリ上でブロック別にソ
ート処理を行い、そのブロック別のソート結果に基づい
てさらに各ブロック間で再ソート処理を行っていた。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data classification device suitable for quickly sorting record data. [Prior Art] Conventionally, when sorting a large amount of record data stored in an external memory such as a magnetic disk on a record-by-record basis, a group of records to be sorted is divided into multiple blocks according to the memory capacity of the internal memory, and Sorting is performed for each block in memory, and re-sorting is performed between each block based on the sorting results for each block.

また、複数のワードをキーワードとしてソート処理を行
う場合、ソート処理は、レコード上のキーワードの配置
順に従って各キーワード別のソート処理を順次実行して
いた。
Furthermore, when sorting is performed using a plurality of words as keywords, the sorting is performed for each keyword in sequence according to the order in which the keywords are arranged on the record.

[発明が解決しようとする課題] このように、大量のレコードについてソートするときは
再ソート処理を行わねばならず、ソート処理に長時間を
要していた.また、キーワードの配置順に従って各キー
ワード別のソート処理が順次実行されるので、例えば、
大分類を示すワードのように複数レコードに跨がって同
一ワードが存在する場合のように、キーワード別のソー
ト処理の実行順序を変更すれば迅速にソートできる場合
でも、ソート処理時間を短縮することができなかった. これは、常に元のレコード形態のままでソート処理が行
われることに起因するものと考えられる。
[Problems to be Solved by the Invention] As described above, when sorting a large number of records, re-sorting must be performed, and the sorting process takes a long time. Also, the sorting process for each keyword is performed sequentially according to the order in which the keywords are arranged, so for example,
Shorten the sort processing time even when the same word exists across multiple records, such as a word indicating a major classification, which can be sorted quickly by changing the execution order of sort processing by keyword. I couldn't do it. This is considered to be due to the fact that the sorting process is always performed with the original record format intact.

してみれば、レコード形態を変更してソート処理が出来
れば、迅速にソート処理を行えることは明らかである. この発明の課題は、レコード形態を変更してソート処理
を行えるようにすることである。
If you do this, it is clear that if you can change the record format and perform the sorting process, the sorting process can be done quickly. An object of this invention is to enable sorting processing by changing the record format.

[課題を解決するための千段] この発明の手段は次の通りである. 外部記憶手段a(第1図の機能ブロック図を参照、以下
同じ)は、複数のワードからなるレコードを複数記憶す
る。
[A thousand steps to solve the problem] The means of this invention are as follows. The external storage means a (see the functional block diagram of FIG. 1, the same applies hereinafter) stores a plurality of records each consisting of a plurality of words.

指定手段bは、ソート対象の複数のキーワード、及びそ
れらキーワード別のソート処理の優先順位を任意に指定
する。
The specifying means b arbitrarily specifies a plurality of keywords to be sorted and a priority order of sorting processing for each keyword.

変換手段Cは、外部記憶手段aからレコードを順次読出
し、指定手段bにて指定されたキーワードを指定に係る
優先順位で配置し、かつ外部記憶手段aにおける記憶位
置情報を付加したソート用レコードに変換する。
The converting means C sequentially reads records from the external storage means a, arranges the keywords specified by the specifying means b in priority order according to the specification, and adds storage position information in the external storage means a to the sorting record. Convert.

内部記憶手段dは、変換手段Cにより変換されたソート
用レコードを記憶する。
The internal storage means d stores the sorting records converted by the conversion means C.

ソート手段eは、内部記憶手段d内のソート用レコード
を上記指定に係るキーワード、及び優先順位に基づいて
ソートする. 逆変換手段fは、ソート手段eにてソートされたソート
用レコードを記憶位置情報に基づいて元のレコード形態
に逆変換する. [作用] この発明の手段の作用は次の通りである.今、外部記憶
手段aは、50本のレコードを記憶し、各レコード上に
はりワードが存在し、この内の1ワードは大分類を示す
ワードであり、複数レコードに跨がってこのワードが存
在しており、レコードの総データ量は、内部記憶手段C
のメモリ容量の3倍弱であるものとする. また、指定手段bにより、ソート対象のキーワードとし
て、上記大分類を示すワード(A,B、C、・・・)と
、他の数値で表現された戒績順を示すワードが指定され
、ソート処理の優先順位は、大分類を示すワードは優先
順位1位、戒績順を示すワードは優先順位2位と指定さ
れたとする.そうすると、変換手段Cは、外部記憶手段
aからレコードを順次読出し、指定手段bにて指定され
た大分類を示すワード、戒績順を示すワードを指定に係
る優先順位で配置し、かつ外部記憶手段aにおける位置
情報を付加したソート用レコードに変換する. そして、内部記憶手段dは、変換手段Cにより変換され
たソート用レコードを記憶するが、記憶位置情報が1ワ
ードのデータ量に相当するとすると、ソート用レコード
は3ワード分のデータ量となり、元の9ワードから17
3に圧縮されているので、内部記憶手段dには、外部記
憶手段a内の50本のレコードに対応する50本のソー
ト用レコードの全てが一度に記憶される。
The sorting means e sorts the sorting records in the internal storage means d based on the specified keyword and priority order. The inverse conversion means f inversely converts the sorting records sorted by the sorting means e into the original record format based on the storage location information. [Operation] The operation of the means of this invention is as follows. Now, the external storage means a stores 50 records, each record has a word, one of which is a word indicating a major classification, and this word is stored across multiple records. exists, and the total data amount of the record is stored in the internal storage means C.
It is assumed that the memory capacity is slightly less than three times the memory capacity of . In addition, the specifying means b specifies the words (A, B, C, ...) indicating the above-mentioned major categories and the words indicating the order of precepts expressed in numerical values as keywords to be sorted. As for the processing priority, it is assumed that the word indicating the major classification is specified as the first priority, and the word indicating the order of precepts is specified as the second priority. Then, the converting means C sequentially reads the records from the external storage means a, arranges the words indicating the major classification specified by the specifying means b and the words indicating the order of precepts in the priority order according to the specification, and stores the records in the external storage. Convert to a sorting record with position information added in method a. Then, the internal storage means d stores the sorting record converted by the converting means C, but if the storage location information corresponds to the data amount of 1 word, the sorting record has a data amount of 3 words, and the original 17 words from 9 words of
3, all 50 sorting records corresponding to the 50 records in the external storage unit a are stored at once in the internal storage unit d.

次に、ソート手段eは、内部記憶手段d内のソート用レ
コードを、大分類を示すワード、成績順を示すワードの
順に、ワード別にソートする。この場合、大分類を示す
ワードA,B,C、・・・は、複数レコードに跨がって
存在しており、例えば、各レコードをA,B,Cの順に
ソートした後、成績順を示すワードをソートするときは
、夫々、ワードA.B.C−・・を含むレコード群のグ
ループ別に行えば良く、各グループ内でのソート対象レ
コード数が減り、成績順位データのトータル比較回数が
少なくなるので、成績順を示すワードの次に大分類を示
すワードについてソートを行った場合に比べ、ソート時
間を短縮できる. また、内部記憶手段dには、外部記憶手段a内の50本
のレコードに対応する50本のソート用レコードの全て
が一度に記憶されているので、外部記憶手段a内の50
本のレコードについて、ブロックに分割することなく、
内部記憶手段d上で一度にソート処理を行う.従って、
ブロック間での再ソートの必要はなくなる. 次に、逆変換手段fは、ソート手段eにてソートされた
50本の各ソート用レコードを、記憶位置情報に基づい
て元のレコード形態に逆変換する。
Next, the sorting means e sorts the sorting records in the internal storage means d by word, in the order of the word indicating the major classification and the word indicating the order of performance. In this case, words A, B, C, etc. indicating major classifications exist across multiple records. For example, after sorting each record in the order of A, B, C, When sorting the words shown, sort the words A. B. This can be done for each group of records containing C-..., which reduces the number of records to be sorted within each group and reduces the total number of comparisons of grade ranking data. Sorting time can be reduced compared to when sorting is performed on the indicated words. Furthermore, since all 50 sorting records corresponding to the 50 records in the external storage unit a are stored in the internal storage unit d at once, the 50 records in the external storage unit a are stored at once.
For book records, without dividing them into blocks,
Sort processing is performed at once on the internal storage means d. Therefore,
There is no need to resort between blocks. Next, the inverse conversion means f inversely converts each of the 50 sorting records sorted by the sorting means e into the original record format based on the storage position information.

従って、レコード形態を変更してソート処理を行え、ソ
ート処理が短時間で完了する.[実施例1 以下、一実施例を第2図ないし第6図を参照しながら説
明する。
Therefore, you can change the record format and perform sorting, and the sorting process can be completed in a short time. [Embodiment 1] An embodiment will be described below with reference to FIGS. 2 to 6.

第2図は、データ分類装置のブロック構成図であり、外
部磁気ディスク1、内部メモリ2、ソート処理部3、変
換部4、ソート形式指定部5、デリミタ検出部6、カウ
ンタ7、指定ワード検出部8,及び逆変換部9を有して
いる。
FIG. 2 is a block diagram of the data classification device, which includes an external magnetic disk 1, an internal memory 2, a sort processing section 3, a conversion section 4, a sort format specification section 5, a delimiter detection section 6, a counter 7, and a designated word detection section. It has a section 8 and an inverse transform section 9.

外部磁気ディスク1には、内部メモリ2のメモリ容量を
越える大量の可変長レコードが格納されている. 内部メモリ2は、外部磁気ディスク1に格納された可変
長レコードをソート処理するためのワークメモリとして
活用される。
The external magnetic disk 1 stores a large number of variable length records that exceed the memory capacity of the internal memory 2. The internal memory 2 is utilized as a work memory for sorting variable length records stored on the external magnetic disk 1.

ソート処理部3は、変換部4から内部メモリ2に転送さ
れたレコードを、キーワードに基づいてソートする。
The sort processing unit 3 sorts the records transferred from the conversion unit 4 to the internal memory 2 based on keywords.

変換部4は、外部磁気ディスクl内の可変長レコードを
順次読出し、ソート形式指定部5により指定されたキー
ワード以外のワードを削除し、所定の再変換用の情報を
付加したソート用レコードに圧縮変換し、内部メモリ2
に転送する.この際、変換部4は、ソート形式指定部5
により指定された順位で、ソート用レコード上に指定に
係るキーワードを配置する.このようなレコート圧縮処
理を行う際、変換部4は、デリミタ検出部6、カウンタ
7、及び指定ワード検出部8を活用する。
The conversion unit 4 sequentially reads the variable length records in the external magnetic disk l, deletes words other than the keyword specified by the sort format specification unit 5, and compresses them into sorting records with predetermined reconversion information added. Convert and internal memory 2
Transfer to. At this time, the conversion unit 4 converts the sort format specification unit 5
Place the specified keywords on the sorting records in the order specified by . When performing such record compression processing, the conversion section 4 utilizes the delimiter detection section 6, the counter 7, and the specified word detection section 8.

逆変換部9は、ソート処理部3にて内部メモリ2上でソ
ートされたソート用レコードを、キーワードに付加され
た逆変換用の情報に基づいて元のレコード形態に逆変換
し、外部磁気ディスク1に格納する. 次に、ソート処理を第3図ないし第6図を参照しながら
説明する. 今、外部磁気ディスク1には、第3図(a)に示したよ
うな可変長レコード群からなるファイルが記憶され、こ
のファイルに基づいて第4図に示したような帳票を作成
するため、ソート形式指定部5により第5図に示したよ
うなソート形式が指定されたものとする.すなわち、フ
ァイル内の各レコードは担当者を表すワードwa、売上
数を表すワードwb、地区を表すワードwdを含んでお
り、第5図に示したように、ソート対象のワードを示す
キーワードとして売上数を表すワードwbと地区を表す
ワードwdとが指定され、それらの優先順位は夫々2位
、1位と指定され、それらのデータ形式は夫々文字型、
数値型と指定され、ソート順は夫々昇順、降順と指定さ
れたものとする。
The inverse conversion section 9 inversely converts the sorting records sorted on the internal memory 2 by the sorting processing section 3 into the original record format based on the inverse conversion information added to the keyword, and stores the sorted records on the external magnetic disk. Store in 1. Next, the sorting process will be explained with reference to FIGS. 3 to 6. Now, a file consisting of a group of variable length records as shown in FIG. 3(a) is stored on the external magnetic disk 1, and in order to create a form as shown in FIG. 4 based on this file, It is assumed that the sort format shown in FIG. 5 is specified by the sort format specification section 5. That is, each record in the file includes the word wa representing the person in charge, the word wb representing the number of sales, and the word wd representing the district.As shown in Figure 5, sales is used as a keyword representing the word to be sorted. A word wb representing a number and a word wd representing a district are designated, their priorities are designated as 2nd and 1st, respectively, and their data formats are character type and character type, respectively.
Assume that it is specified as a numeric type, and the sort order is specified as ascending order and descending order, respectively.

このような指定データのうち、優先順位は変換部4に入
力され、ソート対象のキーワードとデータ形態は指定ワ
ード検出部8に入力され、ソート形式はソート処理部3
に入力される。
Among such specified data, the priority order is input to the conversion unit 4, the keywords and data format to be sorted are input to the specified word detection unit 8, and the sort format is input to the sort processing unit 3.
is input.

次に、このような指定に基づく変換部4によるレコード
圧縮処理を説明するが、このレコード圧縮処理を第6図
に概念的に示したので、第6図を適時参照されたい. 変換部4は、先ず、カウンタ7をリセットして、クロッ
クパルスに同期して外部磁気ディスク1にリードアドレ
スを出力し可変長レコード上のデータを読出す。この際
、デリミタ検出部6は、読出されたデータを監視してデ
リミタの読出しを検出している.また、指定ワード検出
部8は、読出されたデータを監視して、ソート形式指定
部5により指定されたソート対象のキーワード、すなわ
ち、売上数を表すワードwbと地区を表すワードwdを
検出する. そして、変換部4は、デリミタ検出M5により、レコー
ドのスタートを示すデリミタ“(′゜が検出されたとき
は、その時点のリードアドレスをラッチする.また、変
換部4は、指定ワード検出部8により指定に係る売上数
を表すワードwb、或いは地区を表すワードwdが検出
されると、そのワードをラッチする. そして、次のレコードスタート用デリミタ゛(゜゛が読
出されたときは、変換部4は、その時点でのカウンタ7
の内容を、前のレコードのデータ数(レングス)として
ラッチし、それまでのラッチ内容である売上数を表すワ
ードwb、或いは地区を表すワードwd、レコードスタ
ートアドレス、レングスからなるソート用レコードを作
戒して、内部メモリ2にロードする.この際、ソート形
式指定部5により指定された優先順位に従って、ワード
は、地区を表すワードwd→売上数を表すワードwbの
順に配置する. 次に、カウンタ7をリセットして、その時点のリードア
ドレスをラッチする等の同様の処理を繰り返していく。
Next, record compression processing by the conversion unit 4 based on such specifications will be explained. This record compression processing is conceptually shown in FIG. 6, so please refer to FIG. 6 from time to time. The conversion unit 4 first resets the counter 7, outputs a read address to the external magnetic disk 1 in synchronization with a clock pulse, and reads data on the variable length record. At this time, the delimiter detection unit 6 monitors the read data and detects the read of the delimiter. Further, the specified word detection section 8 monitors the read data and detects the keywords to be sorted specified by the sort format specification section 5, that is, the word wb representing the number of sales and the word wd representing the district. Then, when the delimiter detection M5 detects a delimiter "('゜) indicating the start of a record, the converter 4 latches the read address at that time. Also, the converter 4 latches the read address at that time. When the word wb representing the number of sales related to the specification or the word wd representing the district is detected, that word is latched. Then, when the next record start delimiter ゛ (゜, counter 7 at that point
Latch the contents as the data number (length) of the previous record, and create a sorting record consisting of the word wb representing the number of sales, or the word wd representing the district, the record start address, and the length. and load it into internal memory 2. At this time, according to the priority order specified by the sorting format specifying unit 5, the words are arranged in the order of the word wd representing the district → the word wb representing the number of sales. Next, the counter 7 is reset and similar processing such as latching the read address at that point is repeated.

このようにして、変換部4は、外部磁気ディスク1から
の可変長レコードを指定に応じて圧縮し、指定に応じた
優先順位で指定ワードを配置したソート用レコードを作
成し、内部メモリ2に転送する。
In this way, the conversion unit 4 compresses the variable length records from the external magnetic disk 1 according to the specifications, creates a sorting record in which the specified words are arranged in the priority order according to the specifications, and stores it in the internal memory 2. Forward.

ソート処理部3は、内部メモリ2内の複数のソート用レ
コードに対し、各レコード上の指定ワードに基づいて、
ソート形式指定部5により指定されたソート形式でソー
ト処理を行う。この際、ソート用レコード上には、指定
された優先順で指定に係る地区を表すワードwd、売上
数を表すワードwbが配置されているので、ソート処理
部3は、従来通り、配置された順にワード別のソート処
理を実行すれば、自ずからソート形式指定部5により指
定された優先順でワード別のソート処理が行われること
となる. 逆変換部9は、内部メモリ2上でソートされたソート用
レコードを先頭から順に読出し、そのレコード上のレコ
ードスタートアドレスから始まるレングス分の各アドレ
スをリードアドレスとして外部磁気ディスク1をアクセ
スして、ソート用レコードに対応する元のレコードを読
出し、その元のレコードを外部磁気ディスクの所定領域
に順次格納していく. 上述の一連のソート処理を第3図を参照しながら補足説
明すると、外部磁気ディスク1の各レコードは、先頭か
ら順に読出され、変換部4により、第3図(b)に示し
たように、地区を表すワードwd→売上数を表すワード
wb→レコードスタート用デリミタ“(゛′の外部磁気
ディスク1上での格納位置を示すアドレス(St1、s
t2、・・・)→当該レコードのレングス(N1112
,・・・〉の順にデータ配置された各ソート用レコード
に変換される. この場合、アドレス、レングスは共にl〜2バイトで表
現できるので、アドレスとレングスからなる記憶位置情
報のデータ量は、通常、1ワード分のデータ量を越える
ことはない.従って、ソート用レコードは、少なくとも
元のレコードの3/5以下に圧縮されていることになる
. このように圧縮されたソート用レコードは、内部メモリ
2に展開され、ソート処理部3により、第3図(c〉に
示したように、ワード別にソートされる。この際、地区
を表すワードwd→売上数を表すワードwbの順にワー
ド別のソートが実行されるが、地区を表すワードwdに
基づくソートの後に、売上数を表すワードwbに基づく
ソートを行うときは、第3図(C)に示したように、既
に地区別のソートが終了しているので、売上数のソート
は同一地区毎に行えば良く、トータルのデータ比較回数
が減少するので、ソートを高速に実行できる. そして、ソートされたソート用レコードは、逆変換部9
により、第3図(d)に示したように、元のレコード形
態に逆変換され、ソートされた状態で外部磁気ディスク
1の所定エリアに格納される.なお、第4図のような帳
票を出力するときは、第3図(d)のように既にソート
されているので、出力ワードおよびその出力順序を指定
するだけで良い. このように圧縮されたソート用レコードによりソート処
理が行われるので、上記のように、3/5以下に圧縮し
た場合には、内部メモリ2の約5/3倍の外部磁気ディ
スクl上のレコード群を、複数ブロックに分割すること
なく、一度にソートできる.従って、ブロック間での再
ソートの必要がなくなり、内部メモリ2のメモリ容量を
越える大量のレコードを迅速にソートできる。また、例
え、圧縮したソート用レコードの全てを内部メモリ2に
一度に展開出来ない場合であっても、分割ブロック数を
減らすことができ、ブロック間での再ソート処理の時間
を大幅に短縮できる.また、上述したように、ソート用
レコードをワード別にソートする際のソート時間も短縮
でき、ソートの高速化がより促進される。
The sorting processing unit 3 performs sorting on a plurality of sorting records in the internal memory 2 based on specified words on each record.
Sorting processing is performed in the sorting format specified by the sorting format specifying section 5. At this time, the word wd representing the designated district and the word wb representing the number of sales are arranged in the specified priority order on the sorting record, so the sorting processing unit 3 If the word-by-word sorting process is executed in order, the word-by-word sorting process will automatically be performed in the priority order specified by the sort format specifying unit 5. The inverse converter 9 sequentially reads out the sorting records sorted on the internal memory 2 from the beginning, and accesses the external magnetic disk 1 by using each address of the length starting from the record start address on the record as a read address. The original record corresponding to the sorting record is read, and the original record is sequentially stored in a predetermined area of the external magnetic disk. To further explain the series of sorting processes mentioned above with reference to FIG. 3, each record of the external magnetic disk 1 is read out in order from the beginning, and the converter 4 reads the records as shown in FIG. 3(b). Word wd representing the district → word wb representing the number of sales → address (St1, s
t2,...) → Length of the record (N1112
,...> is converted into each sorting record in which the data is arranged in the order. In this case, since both the address and length can be expressed in 1 to 2 bytes, the amount of data of the storage location information consisting of the address and length usually does not exceed the amount of data for one word. Therefore, the sorting record is compressed to at least 3/5 of the original record. The sorting records compressed in this way are expanded into the internal memory 2, and sorted by word by the sort processing unit 3 as shown in FIG. → Sorting by word is performed in the order of the word wb representing the number of sales, but when sorting based on the word wb representing the number of sales is performed after sorting based on the word wd representing the district, as shown in Figure 3 (C) As shown in , since the sorting by district has already been completed, the number of sales can be sorted by the same district, and the total number of data comparisons is reduced, so the sorting can be performed at high speed. The sorted records are sent to the inverse converter 9
As shown in FIG. 3(d), the records are converted back to the original record format and stored in a predetermined area of the external magnetic disk 1 in a sorted state. Note that when outputting a form like the one shown in Figure 4, since it has already been sorted as shown in Figure 3(d), it is only necessary to specify the output word and its output order. Since the sorting process is performed using sorting records compressed in this way, when compressed to 3/5 or less as described above, the records on the external magnetic disk l, which is approximately 5/3 times larger than the internal memory 2, Groups can be sorted at once without dividing them into multiple blocks. Therefore, there is no need for re-sorting between blocks, and a large number of records exceeding the memory capacity of the internal memory 2 can be quickly sorted. Furthermore, even if all compressed sorting records cannot be expanded to internal memory 2 at once, the number of divided blocks can be reduced, and the time required for re-sorting between blocks can be significantly shortened. .. Furthermore, as described above, the sorting time when sorting the sorting records by word can also be shortened, and the speed of sorting can be further promoted.

なお、この発明は、上述の実施例に限定されることなく
、例えば、ソート対象のレコードは固定長レコードであ
っても良い。この場合はカウンタ6によりレコードのレ
ングスを監視する必要はないゆ [発明の効果コ この発明によれば、レコード形態を変更してソート処理
ができ、内部メモリのメモリ容量を越える大量のレコー
ドを高速にソートできる。
Note that the present invention is not limited to the above-described embodiment; for example, the records to be sorted may be fixed-length records. In this case, it is not necessary to monitor the record length by the counter 6. [Advantageous Effects of the Invention] According to the present invention, the record format can be changed to perform sort processing, and a large number of records exceeding the memory capacity of the internal memory can be processed at high speed. It can be sorted into

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

第■図はこの発明の機能ブロック図、第2図は実施例の
ブロック横戒図、第3図はソート対象のファイルの内容
例、及びこのファイルに対する一連のソート処理の流れ
を示す系統図を示す図、第4図は第3図のファイル内容
をソートした形で帳票出力した例を示す図、第5図は第
4図の帳票に対応してソートす′るためのソート形式の
指定内容例を示す図、第6図は第5図の指定に応じて行
うレコード圧縮処理を概念的に示す図である。 1・・・外部磁気ディスク、2・・・内部メモリ、3−
・・ソート処理部、4・・・変換部、5・・−ンート形
式指定部、9−・・逆変換部.
Fig. 2 is a functional block diagram of the present invention, Fig. 2 is a block diagram of the embodiment, and Fig. 3 is a system diagram showing an example of the contents of a file to be sorted and the flow of a series of sorting processes for this file. Figure 4 shows an example of outputting a form in a sorted form from the file contents in Figure 3, and Figure 5 shows the specified contents of the sort format for sorting in accordance with the form in Figure 4. FIG. 6, a diagram showing an example, is a diagram conceptually showing the record compression processing performed in accordance with the specifications shown in FIG. 5. 1... External magnetic disk, 2... Internal memory, 3-
. . . Sort processing section, 4. . . . Conversion section, 5. . . - Count format specification section, 9-. . . Inverse conversion section.

Claims (1)

【特許請求の範囲】 複数のワードからなるレコードを複数記憶する外部記憶
手段と、 ソート対象の複数のキーワード、及びそれらキーワード
別のソート処理の優先順位を任意に指定する指定手段と
、 上記外部記憶手段からレコードを順次読出し、上記指定
手段にて指定されたキーワードを指定に係る優先順位で
配置し、かつ上記外部記憶手段における記憶位置情報を
付加したソート用レコードに変換する変換手段と、 この変換手段により変換されたソート用レコードを記憶
する内部記憶手段と、 この内部記憶手段内のソート用レコードを上記指定に係
るキーワード、及び優先順位に基づいてソートするソー
ト手段と、 このソート手段にてソートされたソート用レコードを記
憶位置情報に基づいて元のレコード形態に逆変換する逆
変換手段と、 を備えることを特徴とするデータ分類装置。
[Scope of Claims] External storage means for storing a plurality of records each consisting of a plurality of words; a specification means for arbitrarily specifying a plurality of keywords to be sorted and a priority order of sorting processing for each keyword; a converting means for sequentially reading records from the means, arranging the keywords specified by the specifying means in the priority order according to the specification, and converting the records into sorting records to which storage position information in the external storage means is added; an internal storage means for storing the sorting records converted by the means; a sorting means for sorting the sorting records in the internal storage means based on the keywords and priorities specified above; and sorting by the sorting means. A data classification device comprising: inverse conversion means for inversely converting the sorted records into the original record format based on storage location information.
JP23398889A 1989-09-08 1989-09-08 Data sorter Pending JPH0397027A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23398889A JPH0397027A (en) 1989-09-08 1989-09-08 Data sorter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23398889A JPH0397027A (en) 1989-09-08 1989-09-08 Data sorter

Publications (1)

Publication Number Publication Date
JPH0397027A true JPH0397027A (en) 1991-04-23

Family

ID=16963786

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23398889A Pending JPH0397027A (en) 1989-09-08 1989-09-08 Data sorter

Country Status (1)

Country Link
JP (1) JPH0397027A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06161709A (en) * 1992-09-22 1994-06-10 Mitsubishi Electric Corp Device and method for key extraction, sorting processor, and data base processor
JP2007293743A (en) * 2006-04-27 2007-11-08 Yokogawa Electric Corp Multiple sorting device and traffic statistic system using the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06161709A (en) * 1992-09-22 1994-06-10 Mitsubishi Electric Corp Device and method for key extraction, sorting processor, and data base processor
JP2007293743A (en) * 2006-04-27 2007-11-08 Yokogawa Electric Corp Multiple sorting device and traffic statistic system using the same

Similar Documents

Publication Publication Date Title
US6424970B1 (en) Sorting system and method executed by plural computers for sorting and distributing data to selected output nodes
EP0961966B1 (en) N-way processing of bit strings in a dataflow architecture
US5873001A (en) Method for rapid expansion of multi-byte sorting weights table to include user supplied sorting weights
JPH01297723A (en) Control data regenerating device for sort processor
JPH0397027A (en) Data sorter
JPH0855013A (en) Method and device for sorting processing
JPH0397026A (en) Data sorter
Fossum et al. Optimization and standardization of information retrieval language and systems
JPS62121532A (en) Data retrieving method
JP2923952B2 (en) Merge processing method
JPH03259329A (en) Key relative address classifying system for bulk data
JPH05108717A (en) Index file structure and data base retrieving system
JPH0267648A (en) Record adding system for data base with tree structure
JP3265993B2 (en) Sorting device
JPH048816B2 (en)
JPH0199125A (en) Link classifying system
JPH0436415B2 (en)
JPH0423143A (en) Data storing system
JPS6375928A (en) Comprehensive type sorting system
JPS58146935A (en) Processor for sort
JPH0926872A (en) Pipeline merge sorter
JPH05225273A (en) Conversion device for semiconductor integrated circuit logical connection data
JPH0467660B2 (en)
JPS6325725A (en) Address table sorting system
JPH03216730A (en) Electronic computer