JPH02109166A - Retrieving device for character string - Google Patents

Retrieving device for character string

Info

Publication number
JPH02109166A
JPH02109166A JP63261776A JP26177688A JPH02109166A JP H02109166 A JPH02109166 A JP H02109166A JP 63261776 A JP63261776 A JP 63261776A JP 26177688 A JP26177688 A JP 26177688A JP H02109166 A JPH02109166 A JP H02109166A
Authority
JP
Japan
Prior art keywords
record
section
field
address
processing
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
JP63261776A
Other languages
Japanese (ja)
Inventor
Yoshihiro Hayakawa
早川 佳宏
Masao Ito
正雄 伊藤
Noboru Tamura
登 田村
Kenichi Ueda
謙一 上田
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 JP63261776A priority Critical patent/JPH02109166A/en
Publication of JPH02109166A publication Critical patent/JPH02109166A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To perform an independent program searching action of a field at a high speed and to realize a process in terms of a pipeline by using the head address of the field stored simultaneously with the stream data at a process part. CONSTITUTION:An input part 20 detects the division of the record of the stream data and writes one record into a record memory part 30. At the same time, a field control part 21 obtains the head address of each field out of the input stream data and writes it into an address memory part 40. A process part 22 processes the data on a record memory part 31 where one record is already written. In this case, the field number is used a the address of an address memory part 41 to read out the head address of a designated field of the part 31. An output part 23 outputs the contents of a record memory part 32 where the processed record is written to a line 11. Then the parts (30, 40), (31, 41) and (32, 42) are connected again to the parts 22, 23 and 20 respectively via a memory part selector 50 for execution of each process.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、大量の構造化されたデータの検索を中心とす
る処理を行う、データベースシステムなどに利用される
文字列検索装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION FIELD OF INDUSTRIAL APPLICATION The present invention relates to a character string search device used in database systems, etc., which performs processing centered on searching large amounts of structured data.

従来の技術 最近、データベースシステムなどの分野では、大量のデ
ータの検索や、置換などの高速処理が望まれている。従
来の処理は、汎用プロセッサを用いソフトウェア的に行
われている。
2. Description of the Related Art Recently, in fields such as database systems, high-speed processing such as searching and replacing large amounts of data is desired. Conventional processing is performed in software using a general-purpose processor.

発明が解決しようとする課題 しかしながら、そのような汎用プロセッサを用腔たソフ
トウェア処理は、時間がかかりすぎるという課題がある
Problems to be Solved by the Invention However, there is a problem in that software processing using such a general-purpose processor takes too much time.

本発明は、従来技術の以上のような課題を解決するもの
で、高速に検索や置換などの処理を可能とする文字列検
索装置を提供することを目的とする0 課題を解決するだめの手段 本発明は、1つ以上のフィールドの集合を1レコードと
するデータ構造を持つストリームデル夕を入力する入力
部と、入力されたストリームデータから各フィールドの
先頭アドレスを求めるフィールド制御部と、入力された
データを予め設定された検索データに基すきレコード単
位Vこ検索、処理する処理部と、処理結果をストリーム
してレコード単位に出力する出力部と、レコード単位で
ストリームデータを記憶するn個(n≧3)のレコード
記憶部と、前記フィールド制御部により求められたレコ
ード内の各フィールドの先頭アドレスを記憶するn個(
n≧3:但し、レコード記憶部と同じ個数)のアドレス
記憶部が設けられ、入力部用、処理部用、出力部用にそ
れぞれレコード記憶部とアドレス記憶部が対となり順次
切り替えて使用され、前記入力部、処理部、出力部が独
立に動作することにより、上記目的を達成するものであ
る。
The present invention solves the above-mentioned problems of the prior art, and aims to provide a character string search device that enables processing such as search and replacement at high speed.Means for Solving the Problems The present invention provides an input section for inputting a stream delta having a data structure in which one record is a set of one or more fields, a field control section for obtaining the start address of each field from the input stream data, and a field control section for calculating the start address of each field from the input stream data. A processing unit that searches and processes the data in record units based on preset search data, an output unit that streams the processing results and outputs them in record units, and n units (n units) that store stream data in record units. n≧3) record storage units, and n (
n≧3: However, the same number of address storage sections as record storage sections are provided, and the record storage section and address storage section are paired for the input section, the processing section, and the output section, respectively, and are sequentially switched and used, The above object is achieved by the input section, processing section, and output section operating independently.

作   用 本発明は、上記構成において、入力部、処理部出力部が
独立に動作し、処理部においてはス)・リームデータと
同時1で記憶されているフィールドの先頭アドレスを使
用することにより、フィールドの頭出しを高速に独立し
−0行い、いわゆるパイフライン的に処理が可能となる
ものである。
Effect of the present invention In the above configuration, the input section and the processing section output section operate independently, and the processing section uses the start address of the field stored at the same time as the stream data. Field cueing is performed independently at high speed by -0, and processing can be performed in a so-called lifeline manner.

実施例 以下に、本発明の一実施例について図面とともに詳細に
説明する。第1図は本発明の文字列検索装置においての
レコード記憶部に記憶されたストリームデータとアドレ
ス記憶部に記憶された各フィールドの先頭アドレスの関
係を示したものである。第2図において、Aはス) I
J−ムデータを記憶しているレコード記憶部であり、I
Jけ各フィールドの先頭アドレスを記憶しているアドレ
ス記憶部である。レコード記憶部Aに記憶されている内
容は1つのレコードがそのままベタ書きされており、フ
ィールドなどの区別はなにもされていない。
EXAMPLE Below, an example of the present invention will be described in detail with reference to the drawings. FIG. 1 shows the relationship between the stream data stored in the record storage section and the start address of each field stored in the address storage section in the character string search device of the present invention. In Figure 2, A is S) I
It is a record storage unit that stores J-mu data, and
This is an address storage section that stores the start address of each field. The contents stored in the record storage section A are one record written in solid form as is, and no distinction is made between fields or the like.

アドレス記憶部Bに記憶されている内容は、レコード記
憶部Aに記憶されている内容の各フィールドのアドレス
であり、レコード記憶部への先頭からのオフセットアド
レスである。すなわち、アドレス記憶部Bの1番目の場
所にはレコード記憶部へに記憶されているレコードの第
1番目のフィールドの先頭アドレスが記憶されており、
アドレス記憶部Bの2番目の場所にはレフ−1−’記へ
部八に記憶されているレコードの第2番目のフィールド
の先頭アドレスが記憶されている。従って、レコード記
憶部Aから、例えば5番目のフィールドを読みだす場合
にはアドレス記憶部1305番目に記憶されている内容
を読みだし、その値をレコード記憶部Aの読みだしアド
レスに使用すればフィールドの頭出しが簡単に出来る。
The contents stored in the address storage section B are the addresses of each field of the contents stored in the record storage section A, and are offset addresses from the beginning of the record storage section. That is, the first address of the first field of the record stored in the record storage unit is stored in the first location of address storage unit B.
In the second location of the address storage section B, the start address of the second field of the record stored in the record section 8 is stored. Therefore, when reading, for example, the 5th field from the record storage section A, the content stored in address storage section 1305 is read out, and that value is used as the read address of the record storage section A. You can easily find the cue.

第1図は、本発明の一実施例Vこおける文字列検索装置
のブロック図である。
FIG. 1 is a block diagram of a character string search device according to an embodiment of the present invention.

図において、10は、被処理データを伝送する入力ライ
ン、20は、その入力ライン10からストリームデータ
を入力する入力部である。2】は、人力されたストリー
ムデータから各フィールドの先頭アドレスを求めるフィ
ールド制御部、22は、人力きれたデータに対し、て検
索、追加などの処理を行う処理部、23は、処理された
データを出力する出力部であり、30.31.32はス
トリームデータをレコード単位で記憶するレコード記憶
部、40、旧、7I2は、前記フィールド制御部にJ:
り求められたレコード内の各フィールドの先頭アドレス
を記憶するアドレス記憶部であり、レコード記憶部30
.31.32とそれぞれベアとなって動作をするもので
ある。50は、各記憶部のベア(3o、 40)、(3
1,伺)、(32,42)を選択する記憶部選択器であ
り、各記憶部(30,40)、(31,41,)、(3
2,42)は記憶部選択器50を介して入力部20、処
理部21、出力部22のいずれかに接続される。11は
出力ラインで処理結果を他の装置に送るための伝送ライ
ンである。
In the figure, 10 is an input line for transmitting data to be processed, and 20 is an input unit for inputting stream data from the input line 10. 2] is a field control unit that calculates the start address of each field from manually-processed stream data; 22 is a processing unit that performs processing such as searching and adding data to the manually-processed data; and 23 is a processed data 30.31.32 is a record storage section that stores stream data in record units; 40, old; 7I2 is an output section that outputs J: to the field control section;
The record storage unit 30 is an address storage unit that stores the start address of each field in the record obtained by
.. 31 and 32, respectively, operate as bare. 50 is the bear (3o, 40), (3
This is a storage unit selector that selects the storage units (30, 40), (31, 41,), (32, 42).
2, 42) is connected to any one of the input section 20, the processing section 21, and the output section 22 via the storage section selector 50. Reference numeral 11 is an output line, which is a transmission line for sending processing results to other devices.

以上のような構成において、以下その動作を説明する。The operation of the above configuration will be explained below.

まず、予め、処理部22には検索文字及び処理内容を指
定する命令ならびに挿入文字列を与えておく。命令は例
えば、あるフィールドのデータが検索文字列と一致した
場合、挿入文字列との置換を行うというものとする。
First, the processing unit 22 is given an instruction specifying a search character and processing content, and an insertion character string in advance. For example, the command may be such that when data in a certain field matches a search string, it is replaced with an inserted string.

本実施例における文字列検索装置が定常的VC動作して
いる時の動作を以下に説明する。
The operation of the character string search device in this embodiment when it is performing steady VC operation will be described below.

任意の時刻において、記憶(:(0,40)、(:(■
41)、(32,42>は人力部20、処理部22捷た
目出刃部23のいずれかと一対−に接続されている。
At any time, store (:(0,40), (:(■
41) and (32, 42> are connected in pairs to either the manpower section 20, the processing section 22, or the cutting edge section 23.

い1記憶部(30,40)、(31,、41)、(32
,42)がそれぞれ入力部20、処理部22、出力部2
3&こ接続されているものとして説明する。
1 storage unit (30, 40), (31,, 41), (32
, 42) are the input section 20, the processing section 22, and the output section 2, respectively.
The explanation will be based on the assumption that 3& is connected.

入力部20は、人力されるストリームデータのレコード
の区切れを検出して、1レコードをレコード記憶部30
VC4き込む。同時に、フィールド制御部21では入力
されるストリームデータから各フィールドの先頭アドレ
スを求めアドレス記憶部40に書き込む。処理部22は
、既に入力部20によりIレコードが書き込腫れている
記憶部31のデータに対して処理を行う。この処理は、
予め処理部22に設定されている命令に従って行われる
が、その命令によって指定されたフィールドは、フィー
ルド番号をアドレス記憶部41のアドレスとして使用し
2、アドレス記憶部41から内容、すなわちレコー ド
記憶部31の指定されたフィールドの先頭アドレスを読
みだすことにより行う。出力部24は、既に処理部22
により処理されたレコードが書き込廿れている記憶部3
2の内容を出力ラインl 1.、 &こ出力する。
The input unit 20 detects the break between records of the manually inputted stream data and transfers one record to the record storage unit 30.
Enter VC4. At the same time, the field control unit 21 determines the start address of each field from the input stream data and writes it into the address storage unit 40. The processing unit 22 processes the data in the storage unit 31 whose I record has already been written by the input unit 20 . This process is
This is performed according to a command set in advance in the processing unit 22, and the field specified by the command uses the field number as the address of the address storage unit 41, and the content, that is, the record storage unit, is transferred from the address storage unit 41. This is done by reading out the start address of the designated field of No. 31. The output unit 24 has already received the processing unit 22.
Storage unit 3 in which records processed by are written
Output the contents of 2 on line l 1. , &ko output.

以上に述べたように、人力部20、処理部22、出力部
23の全てが、それぞれに接続されている記憶部に記憶
されている1レコードに対する処理を終了した時点で、
記憶部選択器50により、記憶部(30,40)、(3
1,41)、(32,42)をそれぞれ処理部22、出
力部23、人力部20に接続し直す。この状態において
、上述した動作と同様の動作を行うと、接続し直す前に
人力部20Vcよりレコード記憶部30に書き込捷れて
いたレコードを処理部22が処理し、接続し直す前に処
理部22により処理されてレコード記憶部31に書き込
捷れていたレコー=ドを出力部23が出力ライン11に
出力し、既に出力ライン11に出力されて、記憶保持す
る必要のないレコードが記憶されているレコード記憶部
32に、入力部20が新しいレコードを書き込む。
As described above, when all of the human power section 20, processing section 22, and output section 23 finish processing one record stored in the storage sections connected to each,
The storage unit selector 50 selects the storage units (30, 40), (3
1, 41) and (32, 42) are reconnected to the processing section 22, output section 23, and human power section 20, respectively. In this state, when an operation similar to the above-mentioned operation is performed, the processing unit 22 processes the record that was written to the record storage unit 30 by the human power unit 20Vc before reconnecting. The output unit 23 outputs the records processed by the unit 22 and written to the record storage unit 31 to the output line 11, and records that have already been output to the output line 11 and do not need to be stored are stored. The input unit 20 writes a new record into the record storage unit 32 that is currently being stored.

以上述べてきたように、入力部20、処理部22、出力
部23のいずれもが1レコードに対する動作を終了する
度に、記憶部選択器50により、人力部20に接続され
ていた記憶部(30,40)を処理部22に接続し、直
し、処理部22に接続されていた記憶部(31,41)
を出力部24に接続し直し、出力部23に接続されてい
た記憶部(32,42)を人力部20に接続し直した後
、入力部20、処理部22、出力部23がそれぞれ1レ
コードに対する動作をするということを繰り返す。この
ようにして、次次にデータの処理を行うことができる。
As described above, each time the input section 20, the processing section 22, and the output section 23 finish the operation for one record, the storage section selector 50 selects the storage section ( 30, 40) to the processing unit 22, and then the storage unit (31, 41) that was connected to the processing unit 22.
After reconnecting to the output unit 24 and reconnecting the storage unit (32, 42) that was connected to the output unit 23 to the human power unit 20, the input unit 20, processing unit 22, and output unit 23 each store one record. Repeat this action. In this way, data can be processed one after another.

但し、この定常的な動作に移る前と定常的な動作が終わ
ってからは、人力部20、処理部22、出力部23のあ
るものは動作し、あるものは動作し。
However, before moving to this regular operation and after the regular operation ends, some of the human power unit 20, the processing unit 22, and the output unit 23 operate, and some do not.

ないという状況が発生する。A situation arises where there is no such thing.

以上のように、本実施例においては、入力部20と処理
部22と出力部23が独立に動作し、処理部においては
ストリームデータと同時に記憶されているフィールドの
先頭アドレスを使用することにより、フィールドの頭出
しを高速に独立して行い、いわゆるバイブライン的に処
理が可能となるため、ストリームデータを効率よく処理
することができ、高速処理が実現される。
As described above, in this embodiment, the input section 20, the processing section 22, and the output section 23 operate independently, and the processing section uses the start address of the field stored simultaneously with the stream data. Since the beginning of fields is performed independently and at high speed, so-called vibe-line processing is possible, stream data can be processed efficiently and high-speed processing can be achieved.

発明の詳細 な説明したように、本発明は、ス) IJ−ムデータを
入力する時に各フィールドの先頭アドレスを求めスl−
IJ−ムデータと同時に記憶し、高速にストリームデー
タをレコード卓立に入力、処理、出力を独立にかつ、同
期して処理し、ス) IJ−ムデータとして出力するた
め、処理がパイプライン的に行われ、高速の文字列検索
を実現することが出来る。
As described in detail, the present invention provides a method for determining the start address of each field when inputting system data.
It records stream data at high speed, inputs, processes, and outputs them independently and synchronously, and outputs them as IJ-system data, so processing is performed in a pipeline. We can achieve high-speed character string searches.

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

第1図は、本発明の実施例における文字列検索装置の全
体構成を示すブロック図、第2図は本発明の実施例にお
いてのレコード記憶部に記憶されたストリームデータと
アドレス記憶部に記憶された各フィールドの先頭アドレ
スの関係を示した図である。 】0・入力ライン、11・・・出力ライン、 20  
・入力部、21・・フィールド制御部、22 ・処理部
、23・・・出力部、30.31.、32・・・レコー
ド記憶部、40、41.42・・・アドレス記憶部、5
0・・・記憶部選択器。
FIG. 1 is a block diagram showing the overall configuration of a character string search device in an embodiment of the present invention, and FIG. 2 shows stream data stored in a record storage unit and address storage unit in an embodiment of the invention. FIG. 3 is a diagram showing the relationship between the starting addresses of each field. ]0・Input line, 11...Output line, 20
- Input unit, 21... Field control unit, 22 - Processing unit, 23... Output unit, 30.31. , 32...Record storage unit, 40, 41.42...Address storage unit, 5
0...Storage section selector.

Claims (1)

【特許請求の範囲】[Claims] 1つ以上のフィールドの集合を1レコードとするデータ
構造を持つストリームデータを入力する入力部と、入力
されたストリームデータから各フィールドの先頭アドレ
スを求めるフィールド制御部と、入力されたデータを予
め設定された検索データに基づきレコード単位に検索、
処理する処理部と、処理結果をストリームデータとして
レコード単位に出力する出力部と、レコード単位でスト
リームデータを記憶するn個(n≧3)のレコードの記
憶部と、前記フィールド制御部により求められたレコー
ド内の各フィールドの先頭アドレスを記憶するn個のア
ドレス記憶部が設けられ、入力部用、処理部用、出力部
用にそれぞれレコード記憶部とアドレス記憶部が対とな
り順次切り替えて使用され、前記入力部、処理部、出力
部が独立に動作することを特徴とする文字列検索装置。
An input section for inputting stream data having a data structure in which one record is a collection of one or more fields, a field control section for calculating the start address of each field from the input stream data, and presetting of input data. Search record by record based on search data,
a processing unit that performs processing, an output unit that outputs processing results in record units as stream data, a storage unit for n records (n≧3) that stores stream data in record units, and a field control unit that n address storage sections are provided for storing the start address of each field in the record, and the record storage section and the address storage section are paired for the input section, the processing section, and the output section, respectively, and are used by switching sequentially. . A character string search device, wherein the input section, the processing section, and the output section operate independently.
JP63261776A 1988-10-18 1988-10-18 Retrieving device for character string Pending JPH02109166A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63261776A JPH02109166A (en) 1988-10-18 1988-10-18 Retrieving device for character string

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63261776A JPH02109166A (en) 1988-10-18 1988-10-18 Retrieving device for character string

Publications (1)

Publication Number Publication Date
JPH02109166A true JPH02109166A (en) 1990-04-20

Family

ID=17366541

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63261776A Pending JPH02109166A (en) 1988-10-18 1988-10-18 Retrieving device for character string

Country Status (1)

Country Link
JP (1) JPH02109166A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0567147A (en) * 1991-09-10 1993-03-19 Matsushita Electric Ind Co Ltd Document retriever

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0567147A (en) * 1991-09-10 1993-03-19 Matsushita Electric Ind Co Ltd Document retriever

Similar Documents

Publication Publication Date Title
US4876646A (en) Data processor having multilevel address translation tables
JPH02109166A (en) Retrieving device for character string
JPH0399380A (en) Method for storing collected data
JPH08153077A (en) Cooperative working system
US20040034443A1 (en) Numerical controller
JPH01265321A (en) Character string retrieving device
JP3002041B2 (en) Database processing unit
JPH02110772A (en) Character string retrieving device
JP2570853B2 (en) Database processing system
JP2000132518A (en) Small electronic computer
JPS63249225A (en) Data retrieving device
JPH0218641A (en) Data control method
JPH0460768A (en) Data processor
JPS62298846A (en) Memory controller
JPH0628167A (en) Data and information manipulating device
JPH01120621A (en) Retrieving/updating system for data base
JPH05181911A (en) Method and device for document retrieval
JPS6065349A (en) Generating system of test data
JPS6074829A (en) Reference system for connection data
JPH07282073A (en) Data retrieving device and its method
JPS63317829A (en) Data division processing method
JPH0594275A (en) Screen data recovery input system
JPS5829046A (en) Memory sorting system
JPS6330935A (en) Table look-up device
JPH02109165A (en) Stream data processor