JPS6326901B2 - - Google Patents

Info

Publication number
JPS6326901B2
JPS6326901B2 JP6371679A JP6371679A JPS6326901B2 JP S6326901 B2 JPS6326901 B2 JP S6326901B2 JP 6371679 A JP6371679 A JP 6371679A JP 6371679 A JP6371679 A JP 6371679A JP S6326901 B2 JPS6326901 B2 JP S6326901B2
Authority
JP
Japan
Prior art keywords
data
cylinder
unit data
sector
type code
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.)
Expired
Application number
JP6371679A
Other languages
Japanese (ja)
Other versions
JPS55162147A (en
Inventor
Junji Myazaki
Shunji Matsuo
Nobuyuki Kawanabe
Hitoshi Kobayashi
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP6371679A priority Critical patent/JPS55162147A/en
Publication of JPS55162147A publication Critical patent/JPS55162147A/en
Publication of JPS6326901B2 publication Critical patent/JPS6326901B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】[Detailed description of the invention]

本発明は、リアルタイムにデータを発生する外
部センサから出力されるデータを記録装置に蓄積
し、その蓄積されたデータから所望のものを取出
すのに好適な、データフアイルと検索制御装置を
有する検索装置に関する。 医療分野における各種検査結果を記憶装置に記
憶させておき、その任意所望のものを引出して診
断資料とするような場合は、患者数、試験項目数
が多いので、記憶、検索方法に工夫を要する。 本発明はかゝる多岐に亘るデータの蓄積、検索
に便利な装置を提供しようとするものであり、そ
の特徴はデータフアイルと検索制御装置を有する
検索装置であつて、単位データが占有するセクタ
数を記録するアトリビユート部、単位データの種
別コードと該種別コード毎のシーケンス番号を記
録する単位データID部、可変長のデータを記録
するデータ部からなる1件分の単位データを単位
セクタの整数倍で構成し、複数の単位データを種
別コード毎でシーケンス番号順に、セクタ単位に
細分されたシリンダを複数個有する記憶装置の各
シリンダ毎に連続してセクタに記録したデータフ
アイルと、各セクシヨン列がデータフアイルの各
シリンダに対応し該セクシヨン列の各セクシヨン
が該シリンダ内の各セクタに対応するように構成
し、単位データの先頭セクタ位置に対応するセク
シヨンに該単位データの種別コードを記録したシ
リンダ内配置表と、種別コード毎に設けられ、か
つ、データフアイルの各シリンダに記録された当
該種別コードを有する単位データのシーケンス番
号の最小値又は最大値を、各シリンダ対応に記録
する番号表を備え、前記データフアイルを検索す
る時に検索制御装置は、検索すべき単位データの
種別コードとシーケンス番号を用いて、前記番号
表より検索すべき単位データが記録されたシリン
ダの番号を求め、前記シリンダ内配置表の該シリ
ンダ番号に対応するセクシヨン列を端から順に読
み出して検索すべき単位データの先頭セクタのセ
クタ番号を求め、該シリンダ番号と該セクタ番号
とでデータフアイルをアクセスして目的の単位デ
ータを読み出すことにある。以下実施例を参照し
ながらこれを詳細に説明する。 医療分野における各種試験例えば血液検査にお
いては、試験対象の各患者の血液即ち未知検体の
他に、較正用の水即ちブランク検体、標準検体、
プール検体などの種別があり、これに各種別毎の
シーケンス(順番)番号がある。各患者には病院
での受付け番号があるから、上記シーケンス番号
は辞めてすべて受付け番号で通すことも考えられ
るが、この場合はすべての患者が同じ検査を受け
る訳ではないから番号が飛び飛びになり、不都合
である。そこで本発明では検査結果即ちデータに
は種別のコードとその種別内でのシーケンス番号
を識別コードとして用い、これを検体ID
(identify code)とする。 データは一旦メモリ(RAMなどを用いた1次
バツフア)に書込んだのち編集等してフロツピイ
デイスクに書込む。このフロツピイデイスクに書
込むデータのフオーマツトを第1図に示す。この
図に示すように該データ(1検体分のデータ、一
般化して言えば単位データ)は、該データ(1〜
4セクタで、セクタバウンダリとする)のセクタ
長を示すアトリビユート部Aと、検体種別コード
Cとその種別内でのシーケンス番号N、更に可変
長の測定データMDからなる。このアトリビユー
ト部Aがあると、これを見ることにより当該デー
タの長さ、延いては次のデータとの境界を知るこ
とが出来る。 ある検体のデータをアクセスするにはアトリビ
ユート部のセクタアドレスを知ればよく、そこで
フロツピイデイスクには第2図に示すように各検
体に対する第1図の構成の1検体分データを次々
に連続させて書込むデータフアイルの他にインデ
ツクスフアイル部を設け、このインデツクスフア
イルに各検体データの種別コードを、データフア
イルにおける検体データのアトリビユート部のセ
クタ位置と対応するように書込んでおく。この第
2図で0c、1c…73cはフロツピイデイスクのシリ
ンダナンバ、1s…26sはシリンダ内のセクタ番号
を示し、従つてこのフロツピイデイスク1枚のシ
リンダ数は74、各シリンダのセクタ数は26であ
る。aは表面、bは裏面であり、表面のnシリン
ダの次は裏面nシリンダ、その次は表面のn+1
シリンダ…の順となる。フロツピイが片面使用の
ものであると、裏面nシリンダは、表面n+1シ
リンダになる。このインデツクスフアイルがある
とこれを見て求める検体の識別コードから、その
アトリビユート部のセクタアドレスを知り、該ア
ドレスでデータフアイルをアクセスして当該検体
のデータを読出すことができる。 第3図にデータフアイル部の第nシリンダへの
データ格納状態の一例を示す。aは表面、bは裏
面である。Dはダミー検体、Bはブランク検体、
Sは標準検体、Pはプール検体、1,2,3は
各々コントロール検体、Uは未知検体の各データ
(これらは第1図に示したフオーマツトを持つ)
を示し、斜線はアトリビユートが書込まれている
セクタを示す。インデツクスフアイルには第4図
aに示すように識別コードを書込む。これは第3
図に対応しており、第3図では第nシリンダに各
検体データD,B,S…のアトリビユート部が
1、4、7…各セクタに書込まれているので、こ
れに対応させてデータフアイルのnシリンダ相当
シリンダn′の1、4、7…セクシヨンにD、B、
S…各種別コードを書込む。このセクシヨンは、
前記セクタに対応するものであるが、種別コード
を記憶することができればよいので、セクタより
は小さな単位領域である。b/はブランクを示し、
検体データのアトリビユート以外の部分が書込ま
れるセクタ2と3、5と6、…に対応するセクシ
ヨンに書込まれる。 このようにしておくとこの各セクシヨン毎に1
パルス発生するクロツクを用い、このクロツクを
計数しながらシフトしてn′シリンダを読取ると、
その読出した種別コードとカウンタ計数値からデ
ータフアイルのnシリンダにおける各検体データ
の位置を知ることができる。 このシリンダ内配置表SDTはデータフアイル
のシリンダ毎に作る。インデツクスフアイル部に
は更に第4図bに示すように各シリンダ本例では
nシリンダにおける各検体の最後のものの種別コ
ードD,B…とそのシーケンス番号Ni、Nm…を
書込んだ最終番号表LNTを設ける。この番号表
は各種別毎に作成する。 データ読出しは検体IDつまり種別コードとシ
ーケンス番号で行なうが、この最終番号表LNT
があると、これを読出して見ることにより所望の
検体データはどのシリンダにあるのかが分る。即
ち最終番号表のn′シリンダの部を読出した所、そ
の最終シーケンス番号は35、次の(n+1)′シ
リンダの部を読出した所最終シーケンス番号は40
ということが分れば、読出したい例えば36番のデ
ータUはn+1シリンダにあるはずである。これ
が分れば次は第4図aのシリンダ内配置表SDT
の(n+1)′シリンダの部を読出し、目的とす
る36番の未知データUのアトリビユート部の、デ
ータフアイル部におけるセクタ番号を得ることが
できる。従つてこの後は該セクタ番号と、(n+
1)というシリンダ情報とをアドレス信号として
データフアイルを読出せばよい。 第5図を参照しながら、これを更に説明する
と、今未知検体にのみ着目し、未知検体Uはシリ
ンダ内配置表SDTのn′、(n+1)′、(n+
2)′各シリンダ部に図示の如く書込まれている
とすると、その最終番号表LNTはそのUの部が
10、15、20となる。検索したい検体IDはU0014即
ち14番未知検体とすると、最終番号表のn′欄では
最終番号10であり、この表は昇順に作られている
から次の欄(n+1)′を読出し、最終番号15を
得る。これより目的とするU0014はn+1シリン
ダにあると推定でき、シリンダ内配置表SDTの
(n+1)′欄を尾端から読出し、Uが1つ読出さ
れる毎に計数値を15より1つずつマイナスしてゆ
き14になつたところが目的とするU0014であるか
ら、これよりシリンダ番号はn+1、セクタ番号
はU0014発見までのシフト数として決定すること
ができる。こうして本発明によれば、3回のアク
セスで如何なる検体データをも読出すことができ
る。 シリンダ内配置表および最終番号表はランダム
アクセスメモリなどに記憶させておいてもよい
が、記憶容量は相当大きいのでやはりフロツピイ
デイスクに書込んでおくのが経済的である。第2
図ではインデツクスフアイルは第1シリンダ1c
〜第9シリンダ9cに収められるとしているが、
この場合は例えばシリンダ内配置表SDTは第2
シリンダと第3シリンダに、最終番号表LNTは
第1シリンダに収める。即ち、データフアイルの
シリンダ数は64、1シリンダは52セクタ、1セク
タのバイト数は256で、LNTの各種別の各シリン
ダ当りのデータは2バイト、種別数は8とする
と、64×2=128バイトであるからLNTの1種別
のデータは1セクタに収まり、種別毎にセクタを
異ならせても(セクタバウンダリにしても)
LNTは8セクタあれば充分で、従つて1シリン
ダ内に収まる。SDTは1シリンダ当り52バイト
でよく、セクタバウンダリに各シリンダを割当て
ると64セクタ、従つて2シリンダあればよい。イ
ンデツクスフアイルの第4〜第9シリンダは予備
用である。最終番号表は各種別毎に作成し、従つ
て次の如くなる。
The present invention is a retrieval device having a data file and a retrieval control device, which is suitable for storing data output from an external sensor that generates data in real time in a recording device, and retrieving desired data from the stored data. Regarding. If various test results in the medical field are stored in a storage device and any desired results are to be retrieved and used as diagnostic data, the number of patients and test items is large, so it is necessary to devise storage and retrieval methods. . The present invention aims to provide a device convenient for storing and retrieving such a wide variety of data.The present invention is characterized by a retrieval device having a data file and a retrieval control device. An attribute section that records the number, a unit data ID section that records the type code of unit data and a sequence number for each type code, and a data section that records variable length data. A data file in which a plurality of unit data are continuously recorded in sectors for each cylinder of a storage device having a plurality of cylinders subdivided into sectors in order of sequence numbers for each type code, and each section column. corresponds to each cylinder of the data file, each section of the section string corresponds to each sector within the cylinder, and the type code of the unit data is recorded in the section corresponding to the first sector position of the unit data. A cylinder arrangement table and a number table that is provided for each type code and records the minimum or maximum sequence number of the unit data having the type code recorded in each cylinder of the data file for each cylinder. When searching the data file, the search control device uses the type code and sequence number of the unit data to be searched to find the number of the cylinder in which the unit data to be searched is recorded from the number table, and The section row corresponding to the cylinder number in the cylinder allocation table is read sequentially from the end to find the sector number of the first sector of the unit data to be searched, and the data file is accessed using the cylinder number and sector number to find the target. The purpose is to read unit data. This will be explained in detail below with reference to Examples. In various tests in the medical field, such as blood tests, in addition to the blood of each patient being tested, i.e., an unknown specimen, water for calibration, i.e., a blank specimen, a standard specimen,
There are different types, such as pooled samples, and each type has a sequence number. Since each patient has a reception number at the hospital, it is possible to abandon the sequence number mentioned above and use the reception number for all patients, but in this case, not all patients will undergo the same test, so the numbers will be scattered all over the place. , which is inconvenient. Therefore, in the present invention, a type code and a sequence number within that type are used as identification codes for test results, that is, data, and these are used as specimen IDs.
(identify code). Data is first written to memory (primary buffer using RAM, etc.), then edited, etc., and written to a floppy disk. FIG. 1 shows the format of data written to this floppy disk. As shown in this figure, the data (data for one sample, unit data in general terms) are
It consists of an attribute section A indicating the sector length (4 sectors (sector boundary)), a sample type code C, a sequence number N within that type, and variable length measurement data MD. If this attribute part A is present, by looking at it, it is possible to know the length of the data concerned and, by extension, the boundary with the next data. To access the data of a certain sample, it is only necessary to know the sector address of the attribute section. Therefore, as shown in Fig. 2, data for one sample with the configuration shown in Fig. 1 for each sample is successively stored on the floppy disk. In addition to the data file to be written, an index file section is provided, and the type code of each specimen data is written in this index file so as to correspond to the sector position of the attribute section of the specimen data in the data file. In this figure 2, 0c, 1c...73c are the cylinder numbers of the floppy disk, and 1s...26s are the sector numbers within the cylinder.Therefore, the number of cylinders on one floppy disk is 74, and the sectors of each cylinder are The number is 26. a is the front side, b is the back side, and after n cylinders on the front side, there are n cylinders on the back side, and then n+1 on the front side.
The order is cylinder... If the floppy disk is one-sided, the n cylinders on the back side become n+1 cylinders on the front side. If this index file exists, it is possible to know the sector address of the attribute section from the identification code of the specimen sought by looking at it, access the data file with the address, and read the data of the specimen. FIG. 3 shows an example of the data storage state in the n-th cylinder of the data file section. a is the front surface and b is the back surface. D is a dummy sample, B is a blank sample,
S is the standard sample, P is the pool sample, 1, 2, and 3 are each the control sample, and U is the unknown sample (these have the format shown in Figure 1).
, and the diagonal line indicates the sector in which the attribute is written. An identification code is written in the index file as shown in FIG. 4a. This is the third
In Fig. 3, the attribute part of each sample data D, B, S... is written in sectors 1, 4, 7... in the n-th cylinder, so the data is D, B, 1, 4, 7... sections of cylinder n' corresponding to n cylinders of the file
S...Write each type of code. This section is
Although it corresponds to the sector, it is a unit area smaller than a sector because it only needs to be able to store a type code. b/ indicates blank;
Portions of the sample data other than the attributes are written in sections corresponding to sectors 2 and 3, 5 and 6, and so on. If you do this, each section will have 1
Using a clock that generates pulses, by counting and shifting this clock and reading the n' cylinder, we get:
The position of each sample data in the n cylinders of the data file can be known from the read type code and counter count value. This cylinder arrangement table SDT is created for each cylinder of the data file. As shown in Figure 4b, the index file also contains a final number table in which the last type code D, B, etc. of each sample in cylinder n in this example and its sequence number Ni, Nm, etc. are written in each cylinder. Provide LNT. This number table will be created for each type. Data reading is performed using the specimen ID, that is, the type code and sequence number, but this final number table LNT
If there is, by reading and viewing this it is possible to know in which cylinder the desired specimen data is located. That is, when reading the n' cylinder part of the final number table, the final sequence number is 35, and when reading the next (n+1)' cylinder part, the final sequence number is 40.
If this is known, then data U, for example No. 36, that we want to read should be in cylinder n+1. Once this is understood, the next step is the cylinder arrangement table SDT in Figure 4 a.
By reading out the (n+1)' cylinder part, it is possible to obtain the sector number in the data file part of the attribute part of the target unknown data U No. 36. Therefore, after this, the sector number and (n+
The data file can be read using the cylinder information 1) as an address signal. To further explain this with reference to FIG.
2) 'Assuming that each cylinder part is written as shown in the figure, the final number table LNT is written in the U part.
10, 15, 20. If the sample ID you want to search is U0014, that is unknown sample No. 14, the final number 10 is in the n' column of the final number table, and since this table is created in ascending order, read the next column (n+1)' and find the final number. Get 15. From this, it can be estimated that the target U0014 is in the n+1 cylinder, so read the (n+1)' column of the cylinder arrangement table SDT from the tail end, and subtract the count value by one from 15 every time one U is read. Since the target U0014 is the number 14, the cylinder number can be determined as n+1 and the sector number can be determined as the number of shifts until U0014 is found. Thus, according to the present invention, any specimen data can be read out with three accesses. Although the cylinder arrangement table and the final number table may be stored in a random access memory or the like, since the storage capacity is quite large, it is still economical to write them on a floppy disk. Second
In the figure, the index file is in the first cylinder 1c.
~ Although it is said that it will be stored in the ninth cylinder 9c,
In this case, for example, the cylinder arrangement table SDT is
cylinder and the third cylinder, and the final number table LNT is stored in the first cylinder. In other words, the number of cylinders in the data file is 64, one cylinder has 52 sectors, the number of bytes in one sector is 256, the data per cylinder for each type of LNT is 2 bytes, and the number of types is 8, then 64 x 2 = Since it is 128 bytes, one type of LNT data will fit in one sector, even if the sector is different for each type (even if it is a sector boundary)
Eight sectors are sufficient for LNT, so it fits within one cylinder. The SDT may be 52 bytes per cylinder, and if each cylinder is allocated to a sector boundary, 64 sectors, or 2 cylinders, are sufficient. The fourth to ninth cylinders of the index file are reserved. The final number table will be prepared for each category, and will therefore be as follows.

【表】 インデツクスフアイルのシリンダには、これら
の表が種別順に詰めて書込まれ、また第4図aの
形式の各シリンダに対するシリンダ内配置表も同
様に詰めて書込まれる。最終番号表LNTを読出
すには、最終番号表を格納しているシリンダにア
クセスし、該当種別の表データを取込む。この取
込んだデータからシリンダナンバが求まつたらそ
れ(n′とする)でシリンダ内配置表SDTをアク
セスするが、シリンダn′がインデツクスフアイル
部の実際のどのシリンダとそのセクタを占めるの
かを最終番号表に併記しておけば、これを見て直
ちに上記アクセスが可能である。 第6図にこのデータ処理システムの概要を示
す。μ−CPUはマイクロコンピユータ、Mはメ
モリ(RAM)、FDはフロツピイデイスク、SIは
センサーインターフエース、KBはキーボード、
DISは表示部であり、これらは母線Bを通して接
続される。センサーからのデータはインターフエ
ースSIからメモリMへ一旦書込まれ、編集処理を
受けたのちフロツピイデイスクFDに書込まれる。 データ検索に当つては所望のデータの種別に対
応する最終番号表全体をメモリMに移し、こゝで
シリンダ番号を求め、次にシリンダ内配置表の該
シリンダ番号の部(セクシヨン列)をメモリMに
移し、セクタ番号を求める。 第7図にこの操作のフローを示す。先ずキーボ
ードKBを使用して検索したい検体データの種別
コードおよびシーケンス番号を入力する。コンピ
ユータμ−CPUはこれを受けて当該種別の最終
番号表LNTをフロツピイデイスクFDからメモリ
Mへ移す。次にフアイルラベルからデータフアイ
ルの始、終端シリンダ番号BOE、EODを求め、
これらのBOE、EODに対するLNTのシリンダ番
号a、bを求め、シーケンス番号Sが(a)、(b)内に
あるか否かをチエツクする。こゝで(a)、(b)は、シ
リンダ番号a、bに対するLNTの最終シーケン
ス番号(但し、始端aに対して1シリンダ前の最
終番号を用いる)である。なければデータなしと
なり、あればシーケンス番号Sが(b−1)より
は大きく(b)よりは小さい(等しくてもよい)シリ
ンダbを求め、これを求めるシリンダ番号とす
る。 次にシリンダ内配置表SDTのbシリンダの部
をフロツピイデイスクFDからメモリMへ移し、
同じ種別コードのものが読出される毎に、(b)−S
=Cの該Cを−1しながらCが零になるまでシフ
トを行なう。こゝで(b)はbシリンダの最終値(当
該種別コードの)である。シフト回数をdとする
と、dの最大値は本例では52であり、この52以内
で当該種別コードS′がbシリンダ内d番目種別コ
ードと一致する(はシフトで逐次読出される種
別コード)。このシフト回数がセクタ番号dであ
り、これらのbとdが求める検体データのフロツ
ピイデイスク内アドレスとなる。第8図は以上の
操作を図解的に示す図である。符号は前の各図と
同じである。 以上詳細に説明したように本発明によれば多種
多数のデータをフアイルへの3回の検索で求める
ことができ、従来方式による、データフアイル内
の各データを種別および番号が一致するまで1つ
ずつ読出しては該フアイルへ戻すという方式に比
較すると極めて迅速に所望データを求めることが
できる。一般にフロツピイデイスク(フアイル)
へのアクセスはメモリへのアクセスに比べて遥か
にアクセスタイムが長く、従つてフロツピイデイ
スクへのアクセスは極力少なくしなければならな
いから、これを3回に抑えることができる本発明
は甚だ有効である。 この種データフアイルの検索に使用するコンピ
ユータは汎用マイコンであるが、この処理速度は
フロツピイデイスクからのデータ転送速度に比べ
て極端に速いものではなく、1セクタ分のデータ
をメモリへ読込んで処理する間に次に続くセクタ
は通り過ぎてしまい、それを続むには1回転する
のを待たなければならない。従つてシリンダ内配
置表SDTが無く、最終番号表LNTから得られた
シリンダ番号のデータフアイルシリンダの各セク
タを順に、求めるセクタが得られるまで探索する
と、フロツピイデイスクを何回も回転させなけれ
ばならない。平均処理時間で言うと、SDTがな
いと、(1シリンダ当りの総セクタ数)/2×平
均回転待ち時間、となるが、SDTがあればこれ
は平均回転待ち時間だけになり、処理迅速化にシ
リンダ内配置表は有効である。 なお最終番号表LNTはその逆の最初番号表と
してもよい。また本発明は勿論血液検査に限ら
ず、種別および種別内シーケンス番号を持つ各種
データの検索に利用できる。
[Table] These tables are written in the cylinders of the index file in order of type, and the cylinder arrangement table for each cylinder in the format shown in FIG. 4a is also written in the same way. To read the final number table LNT, access the cylinder storing the final number table and read the table data of the relevant type. Once the cylinder number has been found from this imported data, it is used to access the cylinder allocation table SDT. If you write it in the final number list, you can immediately access the above information by looking at it. FIG. 6 shows an overview of this data processing system. μ-CPU is a microcomputer, M is memory (RAM), FD is a floppy disk, SI is a sensor interface, KB is a keyboard,
DIS is a display section, and these are connected through bus B. Data from the sensor is once written from the interface SI to the memory M, and after undergoing editing processing, is written to the floppy disk FD. When searching for data, move the entire final number table corresponding to the desired data type to memory M, calculate the cylinder number there, and then transfer the part (section column) of the cylinder number in the cylinder arrangement table to memory M. Move to M and find the sector number. FIG. 7 shows the flow of this operation. First, use the keyboard KB to enter the type code and sequence number of the sample data you wish to search. In response to this, the computer μ-CPU transfers the final number table LNT of the type from the floppy disk FD to the memory M. Next, find the start and end cylinder numbers BOE and EOD of the data file from the file label,
The LNT cylinder numbers a and b for these BOE and EOD are obtained, and it is checked whether the sequence number S is within (a) and (b). Here, (a) and (b) are the final sequence numbers of the LNT for cylinder numbers a and b (however, the final number one cylinder before the start end a is used). If there is no data, there is no data, and if there is, a cylinder b whose sequence number S is greater than (b-1) and smaller than (b) (may be equal) is found, and this is used as the desired cylinder number. Next, move the b cylinder part of the cylinder arrangement table SDT from the floppy disk FD to the memory M.
Every time something with the same type code is read, (b)-S
Shifting is performed while decrementing C of =C by -1 until C becomes zero. Here, (b) is the final value of cylinder b (of the relevant type code). Assuming that the number of shifts is d, the maximum value of d is 52 in this example, and within this 52, the relevant type code S' matches the d-th type code in cylinder b (is the type code read out sequentially by shifting). . This number of shifts is the sector number d, and these b and d become the address within the floppy disk of the desired sample data. FIG. 8 is a diagram schematically showing the above operation. The symbols are the same as in each previous figure. As explained in detail above, according to the present invention, a large number of different types of data can be found by searching a file three times. Compared to the method of reading data one by one and returning it to the file, desired data can be obtained extremely quickly. Generally a floppy disk (file)
It takes much longer to access the floppy disk than to access the memory, and therefore the number of accesses to the floppy disk must be minimized, so the present invention, which can limit this to three times, is extremely effective. It is. The computer used to search this kind of data file is a general-purpose microcomputer, but its processing speed is not extremely fast compared to the data transfer speed from a floppy disk, and it is difficult to read one sector worth of data into memory. During processing, the next sector will pass by, and you will have to wait for one rotation before continuing. Therefore, if there is no cylinder arrangement table SDT and each sector of the data file cylinder with the cylinder number obtained from the final number table LNT is searched in order until the desired sector is obtained, the floppy disk must be rotated many times. Must be. In terms of average processing time, without SDT, it would be (total number of sectors per cylinder)/2 x average rotational waiting time, but with SDT, this becomes only the average rotational waiting time, speeding up processing. The cylinder arrangement table is valid. Note that the final number table LNT may be the reverse first number table. Furthermore, the present invention is of course not limited to blood tests, and can be used to search various types of data having types and sequence numbers within types.

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

第1図は1検体分のデータのフオーマツトを示
す説明図、第2図a,bはフロツピイデイスクで
の記憶状況を説明する図、第3図a,bは該デイ
スクの1シリンダ分の記憶状況を説明する図、第
4図および第5図はシリンダ内配置表および最終
番号表の説明図、第6図はデータ処理装置の構成
を示すブロツク図、第7図および第8図は動作説
明用のフローチヤートおよび図解図である。 図面でFDは記憶装置、SDTはシリンダ内配置
表、LNTは番号表である。
Figure 1 is an explanatory diagram showing the format of data for one sample, Figures 2 a and b are diagrams explaining the storage status on a floppy disk, and Figures 3 a and b are diagrams showing the format of data for one cylinder of the disk. Figures 4 and 5 are diagrams explaining the storage situation, Figures 4 and 5 are diagrams explaining the cylinder arrangement table and final number table, Figure 6 is a block diagram showing the configuration of the data processing device, and Figures 7 and 8 are the operation. They are an explanatory flowchart and an illustrative diagram. In the drawing, FD is a storage device, SDT is a cylinder arrangement table, and LNT is a number table.

Claims (1)

【特許請求の範囲】 1 データフアイルと検索制御装置を有する検索
装置であつて、 単位データが占有するセクタ数を記録するアト
リビユート部、単位データの種別コードと該種別
コード毎のシーケンス番号を記録する単位データ
ID部、可変長のデータを記録するデータ部から
なる1件分の単位データを単位セクタの整数倍で
構成し、複数の単位データを種別コード毎でシー
ケンス番号順に、セクタ単位に細分されたシリン
ダを複数個有する記憶装置の各シリンダ毎に連続
してセクタに記録したデータフアイルと、 各セクシヨン列がデータフアイルの各シリンダ
に対応し該セクシヨン列の各セクシヨンが該シリ
ンダ内の各セクタに対応するように構成し、単位
データの先頭セクタ位置に対応するセクシヨンに
該単位データの種別コードを記録したシリンダ内
配置表と、 種別コード毎に設けられ、かつ、データフアイ
ルの各シリンダに記録された当該種別コードを有
する単位データのシーケンス番号の最小値又は最
大値を、各シリンダ対応に記録する番号表を備
え、 前記データフアイルを検索する時に検索制御装
置は、検索すべき単位データの種別コードとシー
ケンス番号を用いて、前記番号表より検索すべき
単位データが記録されたシリンダの番号を求め、
前記シリンダ内配置表の該シリンダ番号に対応す
るセクシヨン列を端から順に続み出して検索すべ
き単位データの先頭セクタのセクタ番号を求め、
該シリンダ番号と該セクタ番号とでデータフアイ
ルをアクセスして目的の単位データを読み出すこ
とを特徴とする検索装置。
[Claims] 1. A search device including a data file and a search control device, which records the number of sectors occupied by unit data, an attribute section that records the type code of the unit data, and a sequence number for each type code. unit data
One item of unit data consisting of an ID part and a data part for recording variable length data is composed of an integral multiple of a unit sector, and multiple unit data are subdivided into sectors in sequence number order for each type code. A data file in which sectors are consecutively recorded in each cylinder of a storage device having a plurality of an in-cylinder arrangement table in which the type code of the unit data is recorded in the section corresponding to the first sector position of the unit data; A number table is provided in which the minimum or maximum sequence number of unit data having a type code is recorded for each cylinder, and when searching the data file, the search control device determines the type code and sequence of the unit data to be searched. Using the number, find the number of the cylinder in which the unit data to be searched is recorded from the number table,
finding the sector number of the first sector of the unit data to be searched by sequentially continuing the section string corresponding to the cylinder number in the cylinder arrangement table from the end;
A search device characterized in that a data file is accessed using the cylinder number and the sector number to read out target unit data.
JP6371679A 1979-05-23 1979-05-23 Retrieval system for data file Granted JPS55162147A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6371679A JPS55162147A (en) 1979-05-23 1979-05-23 Retrieval system for data file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6371679A JPS55162147A (en) 1979-05-23 1979-05-23 Retrieval system for data file

Publications (2)

Publication Number Publication Date
JPS55162147A JPS55162147A (en) 1980-12-17
JPS6326901B2 true JPS6326901B2 (en) 1988-06-01

Family

ID=13237384

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6371679A Granted JPS55162147A (en) 1979-05-23 1979-05-23 Retrieval system for data file

Country Status (1)

Country Link
JP (1) JPS55162147A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0481401U (en) * 1990-11-28 1992-07-15

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03154168A (en) * 1989-11-10 1991-07-02 Fujitsu Ltd General purpose generating method for medical statistics

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0481401U (en) * 1990-11-28 1992-07-15

Also Published As

Publication number Publication date
JPS55162147A (en) 1980-12-17

Similar Documents

Publication Publication Date Title
GB1491706A (en) Information storage apparatus
US5321824A (en) Accessing last recorded data in a continuation chain
US5377348A (en) System for searching a data base by creating a marking matrix in which two dimensional patterns control the search and selection
JP2770855B2 (en) Digital information storage and retrieval method and apparatus
US4677550A (en) Method of compacting and searching a data index
US5146571A (en) Remapping defects in a storage system through the use of a tree structure
US20100235359A1 (en) File retrieval method and device and time stream file processor
KR100880531B1 (en) File creating method for searching of single data, searching method of single data file and storage medium storing rat file for searching of single data file
EP0440413A2 (en) Disk drive system and method for accessing a physical memory location therein
KR920005107A (en) Initial and updated data recording and reading methods and data storage media
US7599958B2 (en) Data storing and searching method of a portable player
JPH11232838A (en) Optical disk, optical disk recording device and optical disk reading device
JPS6326901B2 (en)
US3293615A (en) Current addressing system
US20040024954A1 (en) Time stamp management system for disk arrays
JPS5942895B2 (en) Recording method
JPS63104284A (en) Disk file access system
CN109815320A (en) Answer generation method, device, equipment and the storage medium of question answering system
JPS5851348A (en) High-speed access system for variable-length record
JP2541955B2 (en) Processing method in medical examination data processing device
JPS6182232A (en) Information registering and retrieving system
JP2002091806A (en) Filing system
JPH03225412A (en) File data read system
RU2006133631A (en) MULTIDIMENSIONAL DATABASE AND METHOD OF ACCESS TO MULTIDIMENSIONAL DATABASE
JPS63291145A (en) Method for managing file