JPH0527945A - Record transforming device - Google Patents

Record transforming device

Info

Publication number
JPH0527945A
JPH0527945A JP17808591A JP17808591A JPH0527945A JP H0527945 A JPH0527945 A JP H0527945A JP 17808591 A JP17808591 A JP 17808591A JP 17808591 A JP17808591 A JP 17808591A JP H0527945 A JPH0527945 A JP H0527945A
Authority
JP
Japan
Prior art keywords
data
record
stream
storage unit
output
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
JP17808591A
Other languages
Japanese (ja)
Inventor
Atsushi Ando
敦史 安藤
Yuji Sugano
祐司 菅野
Masao Ito
正雄 伊藤
Noboru Tamura
登 田村
健 ▲つる▼林
Takeshi Tsurubayashi
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP17808591A priority Critical patent/JPH0527945A/en
Publication of JPH0527945A publication Critical patent/JPH0527945A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To transform the record of variable length data dividing the inside into plural variable length fields to the fixed length record of a record length and a field length designated in advance based on communication with another processor in the record transforming device for used data processing, etc., utilizes a computer. CONSTITUTION:According to the communication with the other processor, a control part 104 outputs a select signal based on inputted data and data stored in a data format storage part 105, a stream selection part 103 outputs either the inputted data or complementary data stored in a complementary data storage part 101 based on the select signal and thus, the record of the variable length data can be transformed to the record of the fixed length data.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、計算機を利用したデー
タ処理などで利用されるレコード変換装置に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a record conversion device used for data processing using a computer.

【0002】[0002]

【従来の技術】データベースに対する全数検索などで
は、レコードと呼ばれる可変長データの列に対して処理
を施すことがある。レコード列に対する処理の性能向上
のために、専用のハードウェアで構成された処理装置を
用いることが一般的になってきた。
2. Description of the Related Art In a 100% search of a database, a column of variable length data called a record may be processed. In order to improve the performance of processing on a record string, it has become common to use a processing device composed of dedicated hardware.

【0003】さらに処理性能向上のために、異なった機
能を持った処理装置を複数台接続して、レコード列によ
るデータストリームに対してパイプライン処理を施すこ
とがある。このようにパイプライン処理をする場合、あ
る種の機能を持った処理装置では、回路構成やアルゴリ
ズムの高効率化などに起因する制約によって、処理装置
が受理するデータが固定長データとなることがある。こ
のような場合、可変長データで構成されるレコード列を
固定長データによるレコード列に変換して処理装置に入
力する必要がある。
In order to further improve the processing performance, a plurality of processing devices having different functions may be connected and pipeline processing may be performed on a data stream of a record string. In the case of performing pipeline processing in this way, in a processing device having a certain function, the data accepted by the processing device may be fixed length data due to restrictions resulting from the improvement of the circuit configuration and the efficiency of the algorithm. is there. In such a case, it is necessary to convert a record string composed of variable length data into a record string of fixed length data and input it to the processing device.

【0004】例えば、図9に示すような形式のレコード
906、即ちある1つの可変長のレコード内がさらに複
数の可変長のフィールドに分割されており、レコード境
界902及びフィールド境界903を単位データ904
毎に付されたタグ905の値で認識できるようにしたレ
コードを、予め指定されたレコード長とフィールド長の
レコードに変換する必要がある。
For example, a record 906 having a format as shown in FIG. 9, that is, a certain variable-length record is further divided into a plurality of variable-length fields, and a record boundary 902 and a field boundary 903 are unit data 904.
It is necessary to convert the record that can be recognized by the value of the tag 905 attached for each into a record having a record length and a field length specified in advance.

【0005】従来、このようなレコード変換処理はソフ
トウェアによって実現される場合が多い。
Conventionally, such record conversion processing is often realized by software.

【0006】[0006]

【発明が解決しようとする課題】しかしながら上記の従
来の方法では、ソフトウェアによるレコード変換処理が
ボトルネックとなってハードウェアで構成された処理装
置の性能を充分に引き出すことが困難である。
However, in the above-mentioned conventional method, the record conversion process by software becomes a bottleneck and it is difficult to sufficiently bring out the performance of the processing device constituted by hardware.

【0007】本発明は上記従来技術の課題を解決するも
ので、可変長データで構成されるレコードを予め指定さ
れたレコード長とフィールド長のレコードになるよう、
入力データの超過分は切捨て、データの不足分は予め指
定されたデータで補完しながらレコード変換を行ない、
加えて前後に置かれた他の処理装置との間で通信を行な
いながらデータの受渡しを行なうレコード変換装置を提
供することを目的とする。
The present invention solves the above-mentioned problems of the prior art, so that a record composed of variable length data can be a record having a predetermined record length and field length.
Excessive input data will be truncated, and data shortage will be complemented by pre-designated data for record conversion.
In addition, it is another object of the present invention to provide a record conversion device that transfers data while communicating with other processing devices placed before and after.

【0008】[0008]

【課題を解決するための手段】この目的を達成するため
に本発明は、第1に、補完データを格納する補完データ
記憶部と、制御信号に基づきデータを入力し保持するス
トリーム記憶部と、前記補完データ記憶部のデータと前
記ストリーム記憶部に保持されたデータのいづれか一方
を選択信号に基づき選択し出力するストリーム選択部
と、出力データの形式に関する情報を格納するデータ形
式記憶部と、前記ストリーム記憶部と前記データ形式記
憶部とのデータに基づき前記ストリーム記憶部に制御信
号を出力し、前記ストリーム選択部に選択信号を出力す
る制御部とを備えた構成になっている。
To achieve this object, the present invention firstly provides a complementary data storage unit for storing complementary data, and a stream storage unit for inputting and holding data based on a control signal. A stream selection unit that selects and outputs either one of the data in the complementary data storage unit and the data held in the stream storage unit based on a selection signal; a data format storage unit that stores information regarding the format of output data; The control unit outputs a control signal to the stream storage unit based on data in the stream storage unit and the data format storage unit, and outputs a selection signal to the stream selection unit.

【0009】第2に、制御部が、ストリーム記憶部の入
力を出力とする第1の処理装置とストリーム選択部の出
力を入力とする第2の処理装置からの信号に基づきデー
タの入出力制御を行うこ構成となっている。
Secondly, the control unit controls the input / output of data based on the signals from the first processing unit whose output is the input of the stream storage unit and the second processing unit whose input is the output of the stream selection unit. It is configured to do.

【0010】[0010]

【作用】本発明は上記構成によって、第1に、ストリー
ム記憶部が制御信号に基づきデータを入力保持しストリ
ーム選択部に出力し、制御部が入力されたデータとデー
タ形式記憶部に記憶されたデータに基づき、前記ストリ
ーム記憶部にデータ入出力に関する制御信号と前記スト
リーム選択部に出力を選択するための選択信号とを出力
し、ストリーム選択部が制御部からの選択信号に基づ
き、ストリーム選択部に入力されたデータか補完データ
記憶部に格納されている補完データかのいづれか一方を
出力ことで、可変長データによるレコードを固定長デー
タによるレコードに変換することができる。
According to the present invention, according to the above configuration, firstly, the stream storage unit inputs and holds data based on the control signal and outputs it to the stream selection unit, and the control unit stores the input data and the data format storage unit. Based on the data, the stream storage unit outputs a control signal related to data input / output and a selection signal for selecting an output to the stream selection unit, and the stream selection unit outputs the stream selection unit based on the selection signal from the control unit. By outputting either one of the data input to and the complementary data stored in the complementary data storage unit, the record of the variable length data can be converted into the record of the fixed length data.

【0011】第2に、制御部が本装置の前後に置かれた
他の処理装置との間でデータの受渡しに関する通信を行
なうことで、異なった機能を持った処理装置を接続し
て、データストリームに対してパイプライン処理を施す
ことが可能となる。
Secondly, the control unit communicates with other processing units placed before and after the present apparatus for data transfer, thereby connecting processing units having different functions to each other. It becomes possible to perform pipeline processing on the stream.

【0012】[0012]

【実施例】以下、本発明の実施例について、図面を参照
しながら説明する。図1は本発明の一実施例におけるレ
コード変換装置のブロック図である。図1において、1
01は補完データ記憶部、102はストリーム記憶部、
103はストリーム選択部、104は制御部、105は
データ形式記憶部、106は入力ストリーム、107は
ストリーム入力制御信号、108は出力ストリーム、1
09はストリーム出力制御信号、110は入力制御信
号、111はデータ型、112は選択信号、113はク
ロックである。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of a record conversion apparatus according to an embodiment of the present invention. In FIG. 1, 1
01 is a complementary data storage unit, 102 is a stream storage unit,
103 is a stream selection unit, 104 is a control unit, 105 is a data format storage unit, 106 is an input stream, 107 is a stream input control signal, 108 is an output stream, 1
09 is a stream output control signal, 110 is an input control signal, 111 is a data type, 112 is a selection signal, and 113 is a clock.

【0013】レコード変換装置の動作を説明する前に、
本実施例におけるレコード変換装置が扱うデータの形式
について説明する。図2は本実施例におけるレコード変
換装置が扱うデータの構造図である。図2において、2
01はストリーム、202はレコード、203はフィー
ルド、204はデータ、205はタグ、206はフィー
ルド終了子、207はレコード終了子、208はストリ
ーム終了子である。
Before explaining the operation of the record converting apparatus,
The format of data handled by the record conversion apparatus in this embodiment will be described. FIG. 2 is a structural diagram of data handled by the record conversion apparatus in this embodiment. In FIG. 2, 2
01 is a stream, 202 is a record, 203 is a field, 204 is data, 205 is a tag, 206 is a field terminator, 207 is a record terminator, and 208 is a stream terminator.

【0014】ストリーム201は、可変長データから成
るレコード202の連接で、ストリーム終了子208で
終端している。レコード202は、フィールド終了子2
06によって複数のフィールド203に分割され、レコ
ード終了子207で終端している。レコード202の範
囲は、ストリーム201の先頭もしくは前接するレコー
ド202のレコード終了子207の直後から、最初に遭
遇するレコード終了子207までである。またフィール
ド203の範囲は、当該フィールド203を含むレコー
ド202の先頭もしくは前接するフィールド203のフ
ィールド終了子206の直後から、最初に遭遇するフィ
ールド終了子206もしくはレコード終了子207まで
である。
The stream 201 is a concatenation of records 202 composed of variable length data, and is terminated by a stream terminator 208. Record 202 is field terminator 2
It is divided into a plurality of fields 203 by 06 and ends with a record terminator 207. The range of the record 202 is from the beginning of the stream 201 or immediately after the record terminator 207 of the preceding record 202 to the record terminator 207 encountered first. The range of the field 203 is from immediately after the field terminator 206 of the beginning or the preceding field 203 of the record 202 including the field 203 to the field terminator 206 or the record terminator 207 that is encountered first.

【0015】フィールド終了子206とレコード終了子
207とストリーム終了子208の区別は、データに付
されているタグによってなされる。本実施例におけるレ
コード変換装置で用いるタグは2バイト毎のデータに付
与され、一般データ、フィールド終了子、レコード終了
子、ストリーム終了子、の4種類のデータ型を表す。
The field terminator 206, the record terminator 207, and the stream terminator 208 are distinguished by the tag attached to the data. The tag used in the record conversion apparatus in this embodiment is attached to data of every 2 bytes and represents four types of data types: general data, field terminator, record terminator, stream terminator.

【0016】本実施例におけるレコード変換装置におい
ては、フィールド終了子206とレコード終了子207
とストリーム終了子208のデータ部分は使用しない。
In the record conversion apparatus of this embodiment, the field terminator 206 and the record terminator 207 are used.
And the data part of the stream terminator 208 is not used.

【0017】次にレコード変換装置の動作を説明する。
まず始めに図1における各ブロックの動作を説明した
後、レコード変換装置全体の動作をフローチャートを用
いて説明する。
Next, the operation of the record conversion device will be described.
First, the operation of each block in FIG. 1 will be described, and then the operation of the entire record conversion apparatus will be described using a flowchart.

【0018】補完データ記憶部101は、入力レコード
より大きなサイズの出力レコードに変換する際に、出力
レコードの不足分を補うための補完データを格納してお
く記憶装置であり、変換処理の前に任意のデータを格納
するための機能を有している。また補完データには、一
般データを表すタグが付与される。
The complementary data storage unit 101 is a storage device for storing complementary data for compensating for the shortage of output records when converting into an output record of a size larger than the input record, and before the conversion processing. It has a function to store arbitrary data. A tag representing general data is attached to the complementary data.

【0019】ストリーム記憶部102は、入力制御信号
110に従い入力ストリーム106のストリーム要素を
保持し、ストリーム選択部103に伝える。さらに保持
しているストリーム要素のデータ型111を制御部10
4に伝える。ここでストリーム要素とは、2バイトデー
タとタグの対である。
The stream storage unit 102 holds the stream element of the input stream 106 according to the input control signal 110, and sends it to the stream selection unit 103. Further, the data type 111 of the held stream element is set to the control unit 10.
Tell 4. Here, a stream element is a pair of 2-byte data and a tag.

【0020】ストリーム選択部103は、補完データ記
憶部101からの補完ストリーム要素、またはストリー
ム記憶部102からのストリーム要素の一方を選択信号
112に従って選択し、出力ストリーム108として出
力する。
The stream selection unit 103 selects one of the complementary stream element from the complementary data storage unit 101 or the stream element from the stream storage unit 102 according to the selection signal 112, and outputs it as the output stream 108.

【0021】データ形式記憶部105は、変換後のレコ
ードのデータ構造に関する情報を格納しておくための記
憶装置であり、補完データ記憶部101と同様に変換処
理の前に任意のデータを格納するための機能を有してい
る。本実施例におけるレコード変換装置では、変換後の
レコードのデータ構造に関する情報として各々のフィー
ルドの終了位置を用いる。即ちフィールド終了子の位置
をレコードの先頭からのオフセット値で表し、フィール
ド出現順の配列にしてデータ形式記憶部105に格納す
る。
The data format storage unit 105 is a storage device for storing information regarding the data structure of the record after conversion, and like the complementary data storage unit 101, stores arbitrary data before conversion processing. It has a function for In the record conversion device of this embodiment, the end position of each field is used as information regarding the data structure of the converted record. That is, the position of the field terminator is represented by an offset value from the beginning of the record, and the fields are stored in the data format storage unit 105 in an array in the order of appearance of the fields.

【0022】制御部104の動作を図面を参照しながら
説明する。図3は制御部の構成を示したブロック図であ
る。 図3において、301はシーケンス制御部、30
2はフィールド数カウンタ、303はレコード長カウン
タ、304は比較器、107aはストリーム入力完了信
号、107bはストリーム入力許可信号、109aは出
力ストリーム有効信号、109bは出力ストリーム要求
信号、114aはアドレス、114bは要求終了子位置
である。
The operation of the control unit 104 will be described with reference to the drawings. FIG. 3 is a block diagram showing the configuration of the control unit. In FIG. 3, reference numeral 301 denotes a sequence controller, 30
2 is a field number counter, 303 is a record length counter, 304 is a comparator, 107a is a stream input completion signal, 107b is a stream input permission signal, 109a is an output stream valid signal, 109b is an output stream request signal, 114a is an address, 114b. Is the request end child position.

【0023】シーケンス制御部301は、状態遷移回路
を用いて構成され、後述する処理の流れを実現する。
The sequence control unit 301 is constructed by using a state transition circuit and realizes a processing flow described later.

【0024】図4は、フィールド数カウンタ302,レ
コード長カウンタ303、レコード形式記録部105と
のデータの参照関係を示した図である。
FIG. 4 is a diagram showing a data reference relationship between the field number counter 302, the record length counter 303, and the record format recording unit 105.

【0025】フィールド数カウンタ302は、変換処理
中のレコードにおいて既に出力したフィールドの個数を
計数するための回路である。フィールド数カウンタ30
2の値はデータ形式記憶部105を参照する時のアドレ
ス114aとして用いる。
The field number counter 302 is a circuit for counting the number of fields that have already been output in the record being converted. Field number counter 30
The value of 2 is used as the address 114a when referring to the data format storage unit 105.

【0026】レコード長カウンタ303は、変換処理中
のレコードにおいて既に出力したストリーム要素の個数
を計数するための回路である。
The record length counter 303 is a circuit for counting the number of stream elements already output in the record under conversion processing.

【0027】比較器304は、アドレス114aでデー
タ形式記憶部105を参照して得られた値、即ち当該フ
ィールドの要求終了子位置114bとレコード長カウン
タ303の値を比較し、両者の値が一致しているか否か
をシーケンス制御部301に伝える。
The comparator 304 compares the value obtained by referring to the data format storage unit 105 at the address 114a, that is, the request end child position 114b of the field and the value of the record length counter 303, and the values of both are matched. The sequence control unit 301 is notified of whether or not it is done.

【0028】ストリーム入力完了信号107aとストリ
ーム入力許可信号107bは図1におけるストリーム入
力制御信号107を構成する。また出力ストリーム有効
信号109aと出力ストリーム要求信号109bは図1
におけるストリーム出力制御信号109を、アドレス1
14aと要求終了子位置114bは図1における114
を構成する。ストリーム入力制御信号107とストリー
ム出力制御信号109は、レコード変換装置の前後に接
続される他の装置との間でストリームの授受を制御する
ための信号である。
The stream input completion signal 107a and the stream input permission signal 107b constitute the stream input control signal 107 in FIG. The output stream valid signal 109a and the output stream request signal 109b are shown in FIG.
The stream output control signal 109 in
14a and the request end child position 114b are 114 in FIG.
Make up. The stream input control signal 107 and the stream output control signal 109 are signals for controlling the exchange of streams with other devices connected before and after the record conversion device.

【0029】制御部104の動作を、図1と図3を用い
て説明する。シーケンス制御部301は、ストリーム入
力許可信号107bと出力ストリーム要求信号109b
が有効になると、入力制御信号110を有効にして入力
ストリーム106のストリーム要素をストリーム記憶部
102に保持した後、ストリーム入力完了信号107a
を有効にする。次に、比較器304における比較結果と
データ型111に基づいて選択信号112を確定し、出
力ストリーム有効信号109aを有効にする。
The operation of the control unit 104 will be described with reference to FIGS. The sequence control unit 301 uses the stream input permission signal 107b and the output stream request signal 109b.
Is enabled, the input control signal 110 is enabled and the stream element of the input stream 106 is held in the stream storage unit 102, and then the stream input completion signal 107a.
To enable. Next, the selection signal 112 is determined based on the comparison result in the comparator 304 and the data type 111, and the output stream valid signal 109a is validated.

【0030】フィールド数カウンタ302は、比較器3
04から一致信号が出力されている状態、即ち1つのフ
ィールド分のストリーム要素を出力し終った状態で出力
ストリーム要求信号109bが有効になるときの変化を
検出して、値を更新する。このときデータ型111がレ
コード終了子を表していると、フィールド数カウンタ3
02とレコード長カウンタ303は共にクリアされる。
The field number counter 302 includes a comparator 3
A value is updated by detecting a change when the output stream request signal 109b becomes valid in a state where the coincidence signal is output from 04, that is, in a state in which the stream element for one field is completely output. At this time, if the data type 111 represents a record terminator, the field number counter 3
02 and the record length counter 303 are both cleared.

【0031】レコード長カウンタ303は、出力ストリ
ーム要求信号109bが有効になるときの変化を検出し
て、値を更新する。
The record length counter 303 detects a change when the output stream request signal 109b becomes valid and updates the value.

【0032】以上、図1における各ブロックの動作につ
いて説明した。次に、本実施例におけるレコード変換装
置全体の動作を図を用いて説明する。
The operation of each block in FIG. 1 has been described above. Next, the operation of the entire record conversion apparatus in this embodiment will be described with reference to the drawings.

【0033】図5は本実施例におけるレコード変換装置
全体の動作を表すフローチャートである。レコード変換
処理は転送処理と補完処理により構成される。図6は転
送処理に関するフローチャートであり、図7は補完処理
に関するフローチャートである。
FIG. 5 is a flow chart showing the operation of the entire record conversion apparatus in this embodiment. The record conversion process is composed of a transfer process and a complementary process. FIG. 6 is a flowchart regarding the transfer processing, and FIG. 7 is a flowchart regarding the complementing processing.

【0034】図5において初期化では、レコード変換処
理を転送処理に設定し、フィールド数カウンタ302と
レコード長カウンタ303をクリアする。初期化後、ス
トリーム終了子208を出力し終るまでレコード変換処
理が続く。
In the initialization shown in FIG. 5, the record conversion process is set to the transfer process, and the field number counter 302 and the record length counter 303 are cleared. After the initialization, the record conversion processing continues until the output of the stream end element 208 is completed.

【0035】転送処理(図6)では、始めにレコード長
カウンタ303の値が対応するフィールドの要求終了子
位置114bと一致しているか否かを判別する。一致し
ている場合には、入力ストリームにおけるレコードもし
くはフィールドの終了子を検出するまで入力ストリーム
のストリーム要素を入力し続け(終了子探査)、終了子
を検出した所でその終了子を出力ストリーム108とし
て出力し、さらに出力した終了子がフィールド終了子で
あるならばフィールド数カウンタ302に1を加え、フ
ィールド終了子でないならばレコード終了子と見なして
フィールド数カウンタ302とレコード長カウンタ30
3をクリアして転送処理を終了する。
In the transfer process (FIG. 6), it is first determined whether or not the value of the record length counter 303 matches the request end child position 114b of the corresponding field. When they match, the stream element of the input stream is continuously input until the end element of the record or field in the input stream is detected (end element search), and when the end element is detected, the end element is output. If the terminator output is a field terminator, 1 is added to the field number counter 302, and if it is not a field terminator, it is regarded as a record terminator and the field number counter 302 and the record length counter 30
3 is cleared and the transfer processing is ended.

【0036】また一致していない場合には、入力ストリ
ーム106からストリーム要素を読み込みデータ型を調
べ、レコードもしくはフィールドの終了子であったなら
ば補完処理に移行するよう状態を変化させ、またいづれ
の終了子でもないならば読み込んだストリーム要素を出
力ストリーム108として出力して転送処理を終了す
る。
If they do not match, the stream element is read from the input stream 106, the data type is checked, and if it is the end element of the record or field, the state is changed so as to shift to the complementary processing, and either If it is not the terminator, the read stream element is output as the output stream 108, and the transfer process ends.

【0037】補完処理(図7)では、始めにレコード長
カウンタ303の値が対応するフィールドの要求終了子
位置114bと一致しているか否かを判別する。一致し
ている場合には、転送処理の最後に読み込んだストリー
ム要素、即ちレコードもしくはフィールドの終了子を出
力ストリーム108として出力し、さらに出力した終了
子がフィールド終了子であるならばフィールド数カウン
タ302に1を加え、フィールド終了子でないならばレ
コード終了子と見なしてフィールド数カウンタ302と
レコード長カウンタ303をクリアし、転送処理に移行
するよう状態を変化させて補完処理を終了する。
In the complementing process (FIG. 7), it is first determined whether or not the value of the record length counter 303 matches the request end child position 114b of the corresponding field. If they match, the stream element read at the end of the transfer process, that is, the end element of the record or field is output as the output stream 108, and if the output end element is the field end element, the field number counter 302 If 1 is not added to the field terminator, it is regarded as a record terminator, the field number counter 302 and the record length counter 303 are cleared, the state is changed so as to shift to the transfer processing, and the complementary processing is terminated.

【0038】また一致していない場合には、補完データ
記憶部101に格納されている補完データを出力ストリ
ーム108として出力し、レコード長カウンタを更新し
て補完処理を終了する。
If they do not match, the complementary data stored in the complementary data storage unit 101 is output as the output stream 108, the record length counter is updated, and the complementary processing ends.

【0039】図8は変換前と変換後のレコードの対応を
示した図である。801は変換前のレコード、802は
変換後のレコードである。803は補完処理により補完
された補完データであり、804は終了子探査処理によ
り切り捨てられたデータである。
FIG. 8 is a diagram showing the correspondence between records before conversion and records after conversion. Reference numeral 801 is a record before conversion, and 802 is a record after conversion. Reference numeral 803 is complementary data complemented by the complementary processing, and 804 is data truncated by the termination search processing.

【0040】[0040]

【発明の効果】以上のように本発明は、第1に、可変長
データによるレコードを固定長データによるレコードに
高速に変換することができる。
As described above, according to the present invention, first, a record of variable length data can be converted into a record of fixed length data at high speed.

【0041】第2に、データ形式の異なる異なった機能
を持った処理装置を接続してパイプライン処理を施すこ
とが可能となる。
Secondly, it becomes possible to perform pipeline processing by connecting processing devices having different functions with different data formats.

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

【図1】本発明の一実施例におけるレコード変換装置の
ブロック図
FIG. 1 is a block diagram of a record conversion device according to an embodiment of the present invention.

【図2】本発明の一実施例における入力データ構造図FIG. 2 is an input data structure diagram according to an embodiment of the present invention.

【図3】本発明の一実施例におけるレコード変換装置の
制御部のブロック図
FIG. 3 is a block diagram of a control unit of a record conversion device according to an embodiment of the present invention.

【図4】本発明の一実施例におけるデータの参照関係図FIG. 4 is a data reference relationship diagram according to an embodiment of the present invention.

【図5】本発明の一実施例におけるレコード変換装置の
フローチャート図
FIG. 5 is a flowchart of a record conversion device according to an embodiment of the present invention.

【図6】本発明の一実施例における転送処理のフローチ
ャート図
FIG. 6 is a flowchart of a transfer process according to an embodiment of the present invention.

【図7】本発明の一実施例における補完処理のフローチ
ャート図
FIG. 7 is a flowchart of a complementary process in the embodiment of the present invention.

【図8】本発明の一実施例における入力データと出力デ
ータの対応関係図
FIG. 8 is a correspondence diagram of input data and output data according to an embodiment of the present invention.

【図9】レコード変換装置が処理の対象とするデータの
データ構造図
FIG. 9 is a data structure diagram of data to be processed by the record conversion device.

【符号の説明】[Explanation of symbols]

101 補完データ記憶部 102 ストリーム記憶部 103 ストリーム選択部 104 制御部 105 データ形式記憶部 106 入力ストリーム 107 ストリーム入力制御信号 108 出力ストリーム 109 ストリーム出力制御信号 110 入力制御信号 111 データ型 112 選択信号 113 クロック 201 ストリーム 202 レコード 203 フィールド 204 データ 205 タグ 206 フィールド終了子 207 レコード終了子 208 ストリーム終了子 301 シーケンス制御部 302 フィールド数カウンタ 303 レコード長カウンタ 304 比較器 305 入力制御信号 306 データ型 307 選択信号 308 ストリーム入力完了信号 309 ストリーム入力許可信号 310 出力ストリーム有効信号 311 出力ストリーム要求信号 312 クロック 313 アドレス 314 要求終了子位置 801 変換前のレコード 802 変換語のレコード 901 ストリーム 902 レコード境界 903 フィールド境界 904 単位データ 905 タグ 906 レコード 101 Complementary data storage unit 102 stream storage unit 103 Stream selection unit 104 control unit 105 data format storage unit 106 input stream 107 Stream input control signal 108 output stream 109 Stream output control signal 110 Input control signal 111 data type 112 selection signal 113 clock 201 stream 202 records 203 field 204 data 205 tags 206 Field Terminator 207 record terminator 208 Stream terminator 301 Sequence control unit 302 field number counter 303 record length counter 304 comparator 305 Input control signal 306 data type 307 selection signal 308 Stream input completion signal 309 Stream input permission signal 310 Output stream valid signal 311 Output stream request signal 312 clock 313 address 314 Request end child position 801 Record before conversion 802 Conversion word record 901 stream 902 record boundary 903 field boundary 904 unit data 905 tags 906 record

フロントページの続き (72)発明者 田村 登 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 (72)発明者 ▲つる▼林 健 大阪府門真市大字門真1006番地 松下電器 産業株式会社内Continued front page    (72) Inventor Noboru Tamura             1006 Kadoma, Kadoma-shi, Osaka Matsushita Electric             Sangyo Co., Ltd. (72) Inventor ▲ Tsuru ▼ Takeshi Hayashi             1006 Kadoma, Kadoma-shi, Osaka Matsushita Electric             Sangyo Co., Ltd.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 補完データを格納する補完データ記憶部
と、制御信号に基づきデータを入力し保持するストリー
ム記憶部と、前記補完データ記憶部のデータと前記スト
リーム記憶部のデータのいづれか一方を選択信号に基づ
き選択し出力するストリーム選択部と、出力データの形
式に関する情報を格納するデータ形式記憶部と、前記ス
トリーム記憶部と前記データ形式記憶部とのデータに基
づき前記ストリーム記憶部に制御信号を出力し、前記ス
トリーム選択部に選択信号を出力する制御部とを備えた
レコード変換装置。
1. A complementary data storage unit that stores complementary data, a stream storage unit that inputs and holds data based on a control signal, and one of data of the complementary data storage unit and data of the stream storage unit is selected. A stream selection unit that selects and outputs based on a signal, a data format storage unit that stores information regarding the format of output data, and a control signal to the stream storage unit based on the data of the stream storage unit and the data format storage unit. A record conversion device comprising: a control unit that outputs and outputs a selection signal to the stream selection unit.
【請求項2】 制御部が、ストリーム記憶部の入力を出
力とする第1の処理装置とストリーム選択部の出力と入
力とする第2の処理装置からの信号に基づきデータの入
出力制御を行うことを特徴とする請求項1記載のレコー
ド変換装置。
2. A control unit performs data input / output control based on signals from a first processing device that outputs an input of a stream storage unit and an output of a stream selection unit and a second processing device that receives an input of the stream selection unit. The record conversion device according to claim 1, wherein
JP17808591A 1991-07-18 1991-07-18 Record transforming device Pending JPH0527945A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17808591A JPH0527945A (en) 1991-07-18 1991-07-18 Record transforming device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17808591A JPH0527945A (en) 1991-07-18 1991-07-18 Record transforming device

Publications (1)

Publication Number Publication Date
JPH0527945A true JPH0527945A (en) 1993-02-05

Family

ID=16042367

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17808591A Pending JPH0527945A (en) 1991-07-18 1991-07-18 Record transforming device

Country Status (1)

Country Link
JP (1) JPH0527945A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6979940B2 (en) 2002-05-28 2005-12-27 Matsushita Electric Industrial Co., Ltd. Electrodeless discharge lamp
JP5804047B2 (en) * 2011-02-21 2015-11-04 日本電気株式会社 Arithmetic device and calculation execution method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6979940B2 (en) 2002-05-28 2005-12-27 Matsushita Electric Industrial Co., Ltd. Electrodeless discharge lamp
JP5804047B2 (en) * 2011-02-21 2015-11-04 日本電気株式会社 Arithmetic device and calculation execution method

Similar Documents

Publication Publication Date Title
EP0166023B1 (en) Method and system for data compression and restoration
WO2005104456A1 (en) Fixed length data search device and search management method
US5081608A (en) Apparatus for processing record-structured data by inserting replacement data of arbitrary length into selected data fields
US5146560A (en) Apparatus for processing bit streams
JPH0527945A (en) Record transforming device
US3493731A (en) Hybrid computer interface having plurality of block addressable channels
JPH024026B2 (en)
EP2068254B1 (en) Method and apparatus for searching extensible markup language (XML) data
JPH0635619A (en) Information multiple reader
JPS60105040A (en) Sentence retrieving system
JPS6386630A (en) Frame synchronization system in parallel transmission line
JPH02306725A (en) Method and apparatus for code conversion
EP0344915B1 (en) Apparatus and method for processing bit streams
JPS6362083A (en) Projection data generation system
JPS6155686B2 (en)
JPH02143347A (en) Information processor
JP3522773B2 (en) Standard formatting equipment
SU1278875A1 (en) Communication device for computer system
SU1345201A1 (en) Device for forming computer address in computing network
SU1302247A1 (en) Device for collecting and processing information
JPH05191474A (en) Communication protocol processor
SU809145A1 (en) Interfacing device for computers
JPS616746A (en) Partial writing control system
JPH09305509A (en) Device and method for transferring data
JPS63249250A (en) Information processor