JPH01201722A - Sort processor - Google Patents

Sort processor

Info

Publication number
JPH01201722A
JPH01201722A JP2676588A JP2676588A JPH01201722A JP H01201722 A JPH01201722 A JP H01201722A JP 2676588 A JP2676588 A JP 2676588A JP 2676588 A JP2676588 A JP 2676588A JP H01201722 A JPH01201722 A JP H01201722A
Authority
JP
Japan
Prior art keywords
comparison
records
sort
record
sorting
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
JP2676588A
Other languages
Japanese (ja)
Inventor
Tetsuji Sato
哲司 佐藤
Toshio Nakamura
敏夫 中村
Haruo Hayamizu
速水 治夫
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.)
NTT Inc
Original Assignee
Nippon Telegraph and Telephone Corp
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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2676588A priority Critical patent/JPH01201722A/en
Publication of JPH01201722A publication Critical patent/JPH01201722A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To attain a sort in ascending sequence or descending sequence to a column designated to the object of comparison by dividing a record, comparing them and invalidating the comparison result or inverting and accumulating it by designated sort conditions. CONSTITUTION:Signals I and II are timing signals to synchronously operate the title sort processor. Signals A and B shows a data input at the time of dividing the record and comparing and transferring them. An END signal is a signal to show the partitions of the record to be compared successively and the comparison result is accumulated until the END signal becomes a logical value 1. A CMP signal and an A/D signal is signals to designate the sort conditions. When the CMP signal is the logical value 1, the colum inputted to a comparator shows that it is the comparative object at the time of sorting, shows the sort in ascending sequence when the A/D is the logical value 1 and shows the sort in descending sequence when it is 0.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はソート処理装置の構成に関し、より詳細には、
ソート対象とするレコードを複数のデータに分割して1
分割した各データに対して、ソート対象であるか否かの
指定と、昇順あるいは降順のソート順を指定できるよう
に構成したことを特徴とするソート処理装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to the configuration of a sorting processing device, and more specifically,
Divide the records to be sorted into multiple pieces of data and
The present invention relates to a sort processing device characterized in that it is configured such that it is possible to specify whether or not each divided data is to be sorted, and to specify an ascending or descending sort order.

〔従来の技術〕[Conventional technology]

一般に、データベース処理で扱う個々のデータをレコー
ドという、レコードの件数が極めて大きい場合や、複数
のデータベースを処理対象とする場合には、汎用の電子
計算機で処理すると膨大な時間を必要とする。このため
、データベース処理の一部あるいは全体を直接ハードウ
ェアで実行して高速化するソート処理装置が3例えば特
開昭60−81640号公報に開示されている。
Generally, when the number of records (individual data handled in database processing is called a record) is extremely large, or when multiple databases are to be processed, processing on a general-purpose computer requires an enormous amount of time. For this reason, a sort processing apparatus that speeds up database processing by directly executing part or all of the database processing on hardware is disclosed in, for example, Japanese Patent Laid-Open No. 60-81640.

第3図は、上述の特開昭60−81640号公報に開示
されているソート処理装置の構成を示すものである0図
において、1は比較ユニット、2はユニット間データ転
送路、3は第1のメモリ、4は第2のメモリ、5は比較
器、6は第1のフラグレジスタ、7は第2のフラグレジ
スタを示している。
FIG. 3 shows the configuration of the sort processing device disclosed in the above-mentioned Japanese Patent Application Laid-Open No. 60-81640. In FIG. 0, 1 is a comparison unit, 2 is an inter-unit data transfer path, and 3 is a 1 is a memory, 4 is a second memory, 5 is a comparator, 6 is a first flag register, and 7 is a second flag register.

ソート対象とするレコードは、ユニット間データ転送路
2および比較器5で一度に転送あるいは比較できる単位
のデータに分割して、比較ユニットlの1次元アレイか
ら成るソート処理装置に入力する。各比較ユニッ)1で
は、入力されるデータと自ユニット内の第1あるいは第
2のメモリに格納されたレコードの対応するデータとを
比較して、その結果を第1のフラグレジスタに累積する
Records to be sorted are divided into units of data that can be transferred or compared at once by the inter-unit data transfer path 2 and the comparator 5, and are input to a sort processing device consisting of a one-dimensional array of comparison units 1. Each comparison unit) 1 compares input data with corresponding data of a record stored in the first or second memory within its own unit, and accumulates the result in a first flag register.

自ユニット内の第1あるいは第2のメモリの何れに格納
されたレコードと入力レコードとを比較するかは、第2
のフラグレジスタの値によって決まり、第1及び第2の
メモリに格納された2つのレコードのうち、一方が入力
レコードとの比較対象となり、他方が隣接する比較ユニ
ットへの転送対象となる。転送対象となるレコードは分
割したデータとして隣接する比較ユニットに出力され、
隣接する比較ユニットにおける入力データとして該比較
ユニットで比較される。
Whether to compare the record stored in the first or second memory in the own unit with the input record is determined by the second memory.
Of the two records stored in the first and second memories, one is to be compared with the input record, and the other is to be transferred to the adjacent comparison unit. The record to be transferred is output as divided data to the adjacent comparison unit,
It is compared in the adjacent comparison unit as input data in the comparison unit.

以上示したように1本従来法に示すソート処理装置は、
複数の1次元アレイ状に接続された比較ユニット1の各
々で、ソート対象とするレコードを複数の分割したデー
タとしてパイプライン的に入力し並列比較によって、高
速にソートできる様に構成されたものである。また、ソ
ート可能なレコード長の上限は、比較ユニット内の第1
および第2のメモリ容量にのみ依存し、ソート対象とす
るレコードの長さに関係なく比較器およびユニット間デ
ータ転送路を構成できる。
As shown above, one conventional sorting processing device is
It is configured so that each of the comparison units 1 connected in a plurality of one-dimensional arrays inputs records to be sorted as a plurality of divided data in a pipeline manner and performs parallel comparison to perform high-speed sorting. be. Also, the upper limit of the record length that can be sorted is the first record length in the comparison unit.
The comparator and the inter-unit data transfer path can be configured depending only on the second memory capacity and regardless of the length of records to be sorted.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記従来技術においては、ソート処理装置に入力するレ
コードを複数のデータに分割して比較と転送処理を行う
ことから、ソート対象とするレコード長に関係なく比較
器やデータ転送路を構成することができる。しかし1本
従来法では、レコード全体を比較して、昇順あるいは降
順にソートすることを目的としていたことから、レコー
ド長が長いソートはできるが、複数のカラムからなるレ
コードの特定カラムだけを比較の対象に指定したり、特
定カラムを昇順にソートし、他のカラムを降順にソート
するような複雑な条件によるソートが行えない問題があ
った。
In the above-mentioned conventional technology, since the record input to the sort processing device is divided into multiple pieces of data and the comparison and transfer processing is performed, it is possible to configure the comparator and the data transfer path regardless of the record length to be sorted. can. However, with this conventional method, the purpose was to compare the entire record and sort it in ascending or descending order, so although it is possible to sort long records, it is not possible to compare only a specific column of a record consisting of multiple columns. There was a problem that it was not possible to sort by specifying a target or by complex conditions such as sorting a specific column in ascending order and other columns in descending order.

このため、レコードから比較の対象とする部分だけを取
り出す前処理を必要としたり、レコードを構成する一部
カラムについて昇順にソートした後に、他のカラムにつ
いて降順にソートする等の処理を必要とし、ソート処理
時間の増大や装置の複雑化を招く要因となっていた。
For this reason, it is necessary to perform preprocessing to extract only the part to be compared from a record, or to sort some columns that make up the record in ascending order, and then to sort other columns in descending order. This was a factor leading to an increase in sorting processing time and complexity of the device.

本発明は、上記従来技術の問題点を解決することを目的
として、複雑なソート条件に基づいてソートすることが
できるソート処理装置を提供することにある。
SUMMARY OF THE INVENTION The present invention aims to solve the above-mentioned problems of the prior art and provides a sorting device that can sort based on complicated sorting conditions.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の上記目的は、2個のレコードを入力して格納す
る記憶手段と、格納された該2個のレコードを複数個の
データに分割して該レコード記憶手段から読みだして比
較する比較手段と、該分割されたデータの内で比較の対
象であると指定されたデータに限定して、昇順あるいは
降順に指定されたソート条件に基づいて、前記比較手段
の出力に反転あるいは非反転操作を加えてルコード分の
比較結果を累積して7前記レコードの大小関係を判定す
る比較結果累積手段とを少なくとも具備した比較ユニッ
トの1次元アレイからなり。
The above object of the present invention is to provide a storage means for inputting and storing two records, and a comparison means for dividing the stored two records into a plurality of pieces of data, reading them from the record storage means, and comparing them. Then, inverting or non-inverting the output of the comparing means based on the sorting condition specified in ascending or descending order, limited to the data specified as the subject of comparison among the divided data. and a comparison result accumulating means for accumulating the comparison results of the records and determining the magnitude relationship of the seven records.

該比較結果累積手段の出力によって、前記2個の格納し
たレコードの何れかを隣接する比較ユニットに出力し、
同時に、他方の隣接する比較ユニットからレコードを入
力することによって、入力レコードを指定されたソート
条件に基づいてソートすることを特徴としたソート処理
装置によって達成される。
Outputting either of the two stored records to an adjacent comparison unit by the output of the comparison result accumulation means;
At the same time, this is achieved by a sort processing device characterized in that it sorts input records based on specified sort conditions by inputting records from the other adjacent comparison unit.

〔作用〕[Effect]

本発明のソート処理装置では、レコードを分割して比較
し、得られた比較結果をルコード分累積する際に、指定
されたソート条件によって比較結果を無効としたり、比
較結果を反転して累積することによって、複雑なソート
条件でソートするように構成したことを特徴とし、この
結果、比較結果累積回路にわずかな回路を付加すること
によって、複数カラムからなるレコードの特定カラムを
比較の対象に指定し、更に、比較の対象に指定されたカ
ラムに対して昇順あるいは降順にソートするように指定
できるソート処理装置を容易に実現できる。
In the sort processing device of the present invention, when records are divided and compared and the obtained comparison results are accumulated for the number of codes, the comparison results are invalidated according to the specified sorting conditions, or the comparison results are reversed and accumulated. As a result, by adding a small circuit to the comparison result accumulation circuit, it is possible to specify a specific column of a record consisting of multiple columns as a comparison target. Furthermore, it is possible to easily realize a sort processing device that can specify sorting in ascending order or descending order for a column designated as a comparison target.

〔実施例〕〔Example〕

以下1本発明の実施例を図面に基づいて詳細に説明する
EMBODIMENT OF THE INVENTION Below, one embodiment of the present invention will be described in detail based on the drawings.

第1図は2本発明のソート処理装置の一実施例を示す構
成図であり、第3図に示した従来のソート処理装置に於
ける比較器5以降に設ける比較結果累積回路について、
その構成を詳細に示している。ここでは1本発明の複雑
なソート条件の指定を可能とした比較結果累積回路の構
成及びその動作を詳細に説明し、従来技術の項で説明し
たソート処理装置の動作原理については簡略な説明にと
どめる。
FIG. 1 is a block diagram showing an embodiment of the sorting device of the present invention. Regarding the comparison result accumulation circuit provided after the comparator 5 in the conventional sorting device shown in FIG.
Its configuration is shown in detail. Here, we will explain in detail the configuration and operation of the comparison result accumulation circuit that enables the specification of complex sorting conditions according to the present invention, and will provide a brief explanation of the operating principle of the sorting processing device explained in the prior art section. stay.

図において、10はフリップフロップ回路、llはアン
ド回路、12はオア回路、13はインバータ回路、14
はイクスクルーシプオア回路を示す論理シンボルであり
、いずれもTTL等の既知な回路で容易に実現できる。
In the figure, 10 is a flip-flop circuit, 11 is an AND circuit, 12 is an OR circuit, 13 is an inverter circuit, 14
are logical symbols indicating exclusive OR circuits, and both can be easily realized using known circuits such as TTL.

また5図中の5は第3図に示した比較器と同一な回路構
成であり、実現は容易である。
Further, 5 in FIG. 5 has the same circuit configuration as the comparator shown in FIG. 3, and implementation is easy.

第2図は、第1図に示した比較結果累積回路の動作を説
明するタイミング図であり、第2図の例では、2つの4
桁の整数1234.1125を1桁ずつ比較し、比較の
結果を4桁分累積する動作を示している。したがって、
第2図の例では、4桁の整数からなるレコードは、各桁
毎にカラムを形成し、4つのカラムから構成されている
こととする。
FIG. 2 is a timing diagram explaining the operation of the comparison result accumulation circuit shown in FIG. 1. In the example of FIG.
It shows the operation of comparing integers 1234.1125 digits one by one and accumulating the comparison results for four digits. therefore,
In the example shown in FIG. 2, it is assumed that a record consisting of a four-digit integer is composed of four columns, with each digit forming a column.

図中の信号名は第1図に対応したものであり。The signal names in the figure correspond to those in FIG.

以下に、各信号の役割を示す、信号■および■はソート
処理装置を同期して動作させるためのタイミング信号で
ある。信号AおよびBは、レコードを分割して比較・転
送する際のデータ入力を示している。END信号は、連
続して比較するレコードの区切りを示す信号であり、E
ND信号が論理値1になるまで比較結果を累積する。C
MPおよびA/D信号は、ソート条件を指定する信号で
ある。CMP信号が論理値lの時、比較器に入力されて
いるカラム(信号AおよびBの入力データ)は、ソート
する際の比較対象であることを示し。
In the following, the roles of each signal will be shown. Signals ① and ② are timing signals for operating the sorting processing device in synchronization. Signals A and B indicate data input when records are divided and compared and transferred. The END signal is a signal that indicates a break between records to be compared continuously, and the E
The comparison results are accumulated until the ND signal becomes a logical value of 1. C
The MP and A/D signals are signals that specify sorting conditions. When the CMP signal has a logical value 1, it indicates that the column input to the comparator (input data of signals A and B) is a comparison target during sorting.

A/Dが論理値lの時は昇順ソートを、論理値0の時は
降順ソートを示している。第2図の例では。
When A/D has a logical value 1, it indicates ascending sorting, and when it has a logical value 0, it indicates descending sorting. In the example in Figure 2.

4桁の整数を比較するのに。To compare 4-digit integers.

i)千の位は降順ソート。i) Thousands place is sorted in descending order.

■)百の位は比較の対象外 (即ちCMP信号が論理値O)。■) Hundreds place is not subject to comparison (That is, the CMP signal has a logic value of O).

ii)十の位は昇順ソ゛−ト。ii) The tens place is sorted in ascending order.

1v)−の位は降順ソート となるように指定した場合を示しており、比較結果の累
積は上位の桁はど優先度が高くなるように行っている。
1v) The minus digit indicates a case where descending sorting is specified, and the comparison results are accumulated so that the higher-order digits have higher priority.

比較器の出力であるEQおよびGTは、タイミングIに
同期して入力されるAとBの比較結果であり、EQは両
者が一致していることを、GTはAの方がBより大きい
ことを現している。実際には、タイミング■で入力され
るデータから比較に必要な時間だけ遅延して出力される
が1図では簡略にタイミングIで出力されるように表示
している0以上が比較結果累積回路の外部から与えられ
る信号であり、これらの信号によって、比較結果累積回
路の′動作が規定される。
EQ and GT, which are the outputs of the comparator, are the comparison results of A and B that are input in synchronization with timing I. EQ indicates that the two match, and GT indicates that A is larger than B. is expressed. In reality, the data input at timing ■ is output with a delay of the time required for comparison, but in Figure 1, it is simply shown that the data is output at timing I. These signals are externally applied, and these signals define the operation of the comparison result accumulation circuit.

FEおよびFGは、第3図に示した従来のソート処理装
置における第1のフラグレジスタ6に相当するフリップ
フロップであり、ルーコード分の比較結果を累積するた
めのフラグである。初期状態では、フリップフロツプF
Eを論理値1に、フリップフロップFCを論理値0に設
定する。フリップフロップFEが論理値1の時は、レコ
ードの先頭(上位桁)から行った比較の結果、2つのレ
コードが一致していることを示している。フリップフロ
ップFGが論理値0の時は、レコードの先頭から現時点
までで比較器のA側から入力したデータ群の方がB側か
ら入力したデータ群より大きいことを示し、FGが論理
値1の時は逆を示している。但し、FGの値は、FEが
論理値0の場合に有効であり、初期状態では、FB−1
かつFC−〇であるから、レコードの先頭位置(当該レ
コードの比較を行う前)では1両者は等しいことを示し
ている。
FE and FG are flip-flops corresponding to the first flag register 6 in the conventional sort processing device shown in FIG. 3, and are flags for accumulating the comparison results for the Lou codes. In the initial state, the flip-flop F
Set E to logic 1 and flip-flop FC to logic 0. When the flip-flop FE has a logical value of 1, it indicates that the two records match as a result of comparison performed from the beginning (higher digits) of the records. When the flip-flop FG has a logic value of 0, it indicates that the data group input from the A side of the comparator is larger than the data group input from the B side from the beginning of the record to the current time, and when the FG has a logic value of 1. Time shows the opposite. However, the value of FG is valid when FE is a logical value of 0, and in the initial state, FB-1
And since FC-0, 1 indicates that both are equal at the beginning position of the record (before comparing the records).

第2図に於けるFEおよびFCの値を時間を追って説明
する。この例では、2つのレコードの千の位は共に1で
等しく、比較を行った後でもFB−1,FC−0である
。2つのレコードの百の位は2と1で異なっているが、
百の位は比較の対象外(CMP−0)となっていること
から、FE。
The values of FE and FC in FIG. 2 will be explained over time. In this example, the thousands digits of the two records are both equal to 1, and even after the comparison, they are FB-1 and FC-0. The hundreds digits of the two records are different, 2 and 1, but
FE because the hundreds place is not subject to comparison (CMP-0).

FGの値は保存されている。十の位は、A偏入力が3.
B個入力が2で比較の対象(CMP=1)であるから9
本来ではA側から入力されるレコードが大きい(FG=
0)と判定されるべきであるが、この例では、十の位は
昇順になるように指定されているため、FC=1となっ
ている。−の位は、4と5でA偏入力が小さいが、既に
十の位の比較でレコード間の大小関係が決定しているた
め。
The value of FG is saved. In the tens place, the A bias input is 3.
Since B input is 2 and is the target of comparison (CMP=1), 9
Normally, the records input from the A side are large (FG=
However, in this example, the tens digit is specified to be in ascending order, so FC=1. In the - digit, the A bias input is small for 4 and 5, but this is because the magnitude relationship between records has already been determined by comparing the tens digit.

−の位の比較結果は累積されない。以上をまとめると2
次表になる。
- comparison results are not accumulated. To summarize the above, 2
The following table appears.

以上示したように、比較結果の累積はフリップフロップ
FGによってなされ、フリップフロップFBはそれ以前
が一致しているかを示す補助をしている。ルーコード分
の累積が完了したFGの値は、レコードの区切りすなわ
ちEND−1の時に。
As shown above, the comparison results are accumulated by the flip-flop FG, and the flip-flop FB assists in indicating whether or not the previous results match. The value of FG for which the accumulation of the roux code is completed is at the end of the record, that is, at END-1.

第2のフリップフロップFSに移される。FSの出力F
LGが比較ユニットに格納された2つのレコードのいず
れを隣接する比較ユニットに転送するかを規定する。こ
の機構は、第3図に示した従来技術と同一であり、説明
は省略する。
It is transferred to the second flip-flop FS. FS output F
It defines which of the two records stored in the comparison unit the LG will transfer to the adjacent comparison unit. This mechanism is the same as the prior art shown in FIG. 3, and its explanation will be omitted.

本実施例では、第1図に示した構成の比較結果累積回路
を例として説明したが、比較器の出力に本実施例と同様
な比較結果を有効とするか否かの指定、及び、比較した
データを昇順になるようにソートするか降順になるよう
にソートするかの指定の少なくとも1つを指定可能とす
る機能を実現すれば充分であり、これらの機能を別の回
路構成で実現することも容易である。
In this embodiment, the comparison result accumulation circuit having the configuration shown in FIG. 1 has been explained as an example. It is sufficient to realize a function that allows at least one specification of whether the data is sorted in ascending order or in descending order, and these functions can be realized with a separate circuit configuration. It is also easy.

〔発明の効果〕〔Effect of the invention〕

以上述べた如(1本発明によれば、2個のレコードを入
力して格納する記憶手段と、格納された該2個のレコー
ドを複数個のデータに分割して該レコード記憶手段から
読みだして比較する比較手段と、該分割されたデータの
内で比較の対象であると指定されたデータに限定して、
昇順あるいは降順に指定されたソート条件に基づいて、
前記比較手段の出力に反転あるいは非反転操作を加えて
ルーコード分の比較結果を累積して、前記レコードの大
小関係を判定する比較結果累積手段とを少なくとも具備
した比較ユニットの1次元アレイからなり。
As described above (1) According to the present invention, there is a storage means for inputting and storing two records, and a storage means for dividing the stored two records into a plurality of pieces of data and reading them from the record storage means. a comparison means for comparing, and limited to data specified as the subject of comparison among the divided data,
Based on sort conditions specified in ascending or descending order,
a one-dimensional array of comparison units comprising at least a comparison result accumulation means for applying an inversion or non-inversion operation to the output of the comparison means and accumulating the comparison results for the Lou code to determine the magnitude relationship of the records; .

該比較結果累積手段の出力によって、前記2個の格納し
たレコードの何れかを隣接する比較ユニットに出力し、
同時に、他方の隣接する比較ユニットからレコードを入
力することによって、入力レコードを指定されたソート
条件に基づいてソートすることを特徴とするソート処理
装置を実現できるという顕著な効果を奏するものである
Outputting either of the two stored records to an adjacent comparison unit by the output of the comparison result accumulation means;
At the same time, by inputting records from the other adjacent comparison unit, it is possible to realize a sorting processing apparatus characterized in that the input records are sorted based on specified sorting conditions.

この結果2本発明のソート処理装置では、複数カラムか
らなるレコードをソート対象として、カラム毎に異なる
ソート条件を指定した複雑なソート処理を一度に処理す
ることができ、ソート処理時間を短縮できる。また、レ
コードからキーを抽出する前処理回路を簡略に構成でき
ることから。
As a result, the sorting device of the present invention can perform complex sorting at once, specifying different sorting conditions for each column, for records consisting of multiple columns, and can shorten the sorting processing time. In addition, the preprocessing circuit that extracts keys from records can be easily configured.

装置の小型化にも効果がある。It is also effective in reducing the size of the device.

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

第1図は1本発明のソート処理装置の一実施例を示す構
成図。 第2図は、第1図に示した比較結果累積回路の動作を説
明するタイミング図。 第3図は、従来のソート処理装置の一例を示す構成図で
ある。 l・・・比較ユニット。 2・・・ユニット間データ転送路。 3・・・第1のメモリ。 4・・・第2のメモリ。 5・・・比較器。 6・・・第1のフラグレジスタ。 7・・・第2のフラグレジスタ。 10・・・フリップフロップ回路。 11・・・アンド回路。 12・・・オア回路。 13・・・インバータ回路。 14・・・イクスクルーシブオア回路を示す論理シンボ
ルである。 特許出願人 日本電信電話株式会社
FIG. 1 is a block diagram showing an embodiment of a sorting device according to the present invention. FIG. 2 is a timing diagram illustrating the operation of the comparison result accumulation circuit shown in FIG. 1. FIG. 3 is a configuration diagram showing an example of a conventional sort processing device. l...Comparison unit. 2... Inter-unit data transfer path. 3...First memory. 4...Second memory. 5... Comparator. 6...First flag register. 7...Second flag register. 10...Flip-flop circuit. 11...AND circuit. 12...OR circuit. 13... Inverter circuit. 14...A logical symbol indicating an exclusive OR circuit. Patent applicant Nippon Telegraph and Telephone Corporation

Claims (1)

【特許請求の範囲】 2個のレコードを入力して格納する記憶手段と、格納さ
れた該2個のレコードを複数個のデータに分割して該レ
コード記憶手段から読みだして比較する比較手段と、該
分割されたデータの内で比較の対象であると指定された
データに限定して、昇順あるいは降順に指定されたソー
ト条件に基づいて、前記比較手段の出力に反転あるいは
非反転操作を加えて1レコード分の比較結果を累積して
、前記レコードの大小関係を判定する比較結果累積手段
とを少なくとも具備した比較ユニットの1次元アレイか
らなり、 該比較結果累積手段の出力によって、前記2個の格納し
たレコードの何れかを隣接する比較ユニットに出力し、
同時に、他方の隣接する比較ユニットからレコードを入
力することによって、入力レコードを指定されたソート
条件に基づいてソートすることを特徴としたソート処理
装置。
[Claims] Storage means for inputting and storing two records, and comparison means for dividing the stored two records into a plurality of pieces of data and reading them from the record storage means and comparing them. , applying an inversion or non-inversion operation to the output of the comparison means based on a sorting condition specified in ascending order or descending order, limited to the data specified as the subject of comparison among the divided data; a one-dimensional array of comparison units comprising at least a comparison result accumulation means for accumulating comparison results for one record and determining the magnitude relationship of the records; Outputs one of the records stored in to the adjacent comparison unit,
A sorting processing device characterized in that, by simultaneously inputting records from another adjacent comparison unit, input records are sorted based on specified sorting conditions.
JP2676588A 1988-02-08 1988-02-08 Sort processor Pending JPH01201722A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2676588A JPH01201722A (en) 1988-02-08 1988-02-08 Sort processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2676588A JPH01201722A (en) 1988-02-08 1988-02-08 Sort processor

Publications (1)

Publication Number Publication Date
JPH01201722A true JPH01201722A (en) 1989-08-14

Family

ID=12202382

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2676588A Pending JPH01201722A (en) 1988-02-08 1988-02-08 Sort processor

Country Status (1)

Country Link
JP (1) JPH01201722A (en)

Similar Documents

Publication Publication Date Title
CA1069217A (en) Multistage sorter with concurrent access to interstage buffer memories
US3938087A (en) High speed binary comparator
US3623018A (en) Mechanism for searching for selected records in random access storage devices of a data processing system
JPH0666050B2 (en) Sort processing method
US3064239A (en) Information compression and expansion system
US3274378A (en) Data transfer and conversion circuit
JPH01201722A (en) Sort processor
JP2587447B2 (en) Sorting device
US4584664A (en) Sorting apparatus
JPH0321948B2 (en)
JPH0317780A (en) Method and device for retrieving symbol string
SU1339562A1 (en) Data associative loading device
JPH0519736B2 (en)
JPH0926872A (en) Pipeline merge sorter
JPS6237739A (en) Sorting processor
SU1053100A1 (en) Device for determining average value of odd set of of number
JPH01177125A (en) Sort processor
SU1583934A1 (en) Device for sorting numbers
SU1499345A1 (en) Device for extracting unities from positional code
JP3447180B2 (en) Data operation circuit
JPH048815B2 (en)
JP2926803B2 (en) Sorting method
JPH05298070A (en) Sort processor
JPS63231526A (en) Sort processor
JPH03147036A (en) variable length data processing device