JPS6024657A - Data storing method - Google Patents

Data storing method

Info

Publication number
JPS6024657A
JPS6024657A JP58132478A JP13247883A JPS6024657A JP S6024657 A JPS6024657 A JP S6024657A JP 58132478 A JP58132478 A JP 58132478A JP 13247883 A JP13247883 A JP 13247883A JP S6024657 A JPS6024657 A JP S6024657A
Authority
JP
Japan
Prior art keywords
data
storage area
memory
area
written
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
JP58132478A
Other languages
Japanese (ja)
Inventor
Yukihiro Nomura
幸弘 野村
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 JP58132478A priority Critical patent/JPS6024657A/en
Publication of JPS6024657A publication Critical patent/JPS6024657A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Executing Machine-Instructions (AREA)
  • Memory System (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To reduce a memory capacity by a simple control by providing an overflow area, writing a data which cannot be contained in a unit storage area, in said area, and writng its address as a pointer in the unit storage area. CONSTITUTION:A record storage area becomes a two byte unit on amemory M. Accordingly, in case of writing a data, whether its data is <=15-bit or not is checked, it is written in a storage area (m) in case of <=15-bit, and written in an overflow area OVF in case of >=15-bit. Also, a pointer is written in the storage area (m) of the memory M to write its data in. By executing such a write, when most of records stored in a magnetic disk, a magnetic tape, etc. are 2 bytes, most of them are contained in a group of a storage area of a 2 bytes, most of them are contained in a group of a storage area of a 2 byte unit of the memory M, and a memory capacity can be reduced.

Description

【発明の詳細な説明】 発明の技術分野 本発明は、データ編集に当ってデータを展開するメモリ
の容量節減を狙ったメモリ上へのデータ格納方法に関す
る。
DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention relates to a method of storing data in a memory with the aim of reducing the capacity of a memory in which data is expanded during data editing.

従来技術と問題点 磁気テープ族rL(MT)または磁気ティスフ装置(D
 K )に格納されているデータを編集するにばメモリ
 (コンピュータの主記憶)に該データを格納(展開)
し、該メモリ上で大小順などのルールに従って並べ換え
るといった処理を行なう。例えば従業員データベースで
は、複数個の項目を含むレコードなる単位を用い、該レ
コードの各項目に当該従業員に関する各種情報を格納し
て構成される。か\るデータベースがあると例えば該組
織の年令別給与の実態を知りたいという場合は、該デー
タベースの年令及び給与を項目に含むレコードを全従業
量分続出し、これを年令順に配列しその給与を統計処理
すればよく、か\るデータレコードの編集処理にメモリ
が用いられる。まだレコードの使用頻度をチェックする
ことも当該レコードの有用性を判IJJiするなどの目
的で重要であるが、これには当該レコードの読出し回数
を記録する項1」などを設りておき、レコードを読出し
て集計すればよく、か\る際にもメモリ上のレフ−1層
開が行なわれる。
Prior art and problems Magnetic tape family rL (MT) or magnetic tape family (D
If you want to edit the data stored in K), store (deploy) the data in memory (main memory of the computer).
Then, processing such as rearranging the data in the memory according to rules such as order of magnitude is performed. For example, an employee database is configured by using a unit called a record that includes a plurality of items, and storing various information regarding the employee in each item of the record. If you have a database like this, for example, if you want to know the actual situation of salaries by age in the organization, you can create a series of records that include age and salary as items in the database, and arrange them in order of age. It is only necessary to perform statistical processing on their salaries, and memory is used to edit the data records. It is still important to check the usage frequency of a record for the purpose of determining the usefulness of the record, but for this purpose, it is necessary to set up a section 1 to record the number of times the record has been read. It is only necessary to read out and total up the information, and when doing so, the first layer of the memory is also opened.

ところでデータば2ハイI・、4ハイドなと必らずしも
一定ではなく、不定長の状態でMT、DKなどに格納さ
れる。しかしメモリに展開する場合はアドレス割当ての
容易性などから一定長として扱い、データヘースのレコ
ード長が2バイトと4バイ1−であるとすると、長い方
をとってレコード長は4バイト一定として記憶領域を確
保していた。
By the way, if the data is 2 high I. or 4 high data, it is not necessarily constant, and is stored in the MT, DK, etc. in an undefined length state. However, when expanding to memory, it is treated as a constant length for ease of address assignment, etc. If the record length of the data header is 2 bytes and 4 by 1-, the longer one is taken and the record length is fixed at 4 bytes and the storage area is was secured.

しかしこれでは2バイトのレコードを収容する場合は記
憶領域の半分しか使用しておらず、データファイルのレ
コードは殆んどが2バイトで、4バイトは稀れといつ場
合には無駄が目立つ。
However, in this case, only half of the storage area is used when storing 2-byte records, and records in data files are mostly 2-byte, and 4-byte records are rarely used, which is a noticeable waste.

発明の目的 本発明はか\る問題に対処しようとするもので、制御を
複雑にすることなくメモリ容量の削減を可能にしようと
するものである。
OBJECTS OF THE INVENTION The present invention attempts to address these problems and makes it possible to reduce memory capacity without complicating control.

発明の構成 本発明は人里な可変長データをメモリ上に展開して編集
する際の該データの格納方法において、該可変長データ
のうちの所定長までのものを格納できる記1、α領域を
単位とし、か\る単位記憶領域群に可変長データを逐次
書込み、該記1.1)領域に収まらない長いデータはオ
ーバフロー領域に書込み、そのアドレスを当該データを
岩込むべき単位記j(1領域にポインタとして書込むこ
とを特徴とするが、次に実施令を参照しながらこれを説
明する。
Structure of the Invention The present invention provides a method for storing variable-length data when expanding and editing the variable-length data on a memory. Write variable-length data sequentially to the unit storage area group \, and write long data that does not fit in the area in section 1.1) to the overflow area, and write its address to the unit storage area j ( where the data should be stored). The feature is that it is written in one area as a pointer, which will be explained next with reference to the implementation command.

発明の実施例 本発明では第2図に示すようにメモリMTではレコード
記憶領域は2バイト単位とする。即ちメモリの各アドレ
スは1バイ1−の記憶容量を持ち、従来方式ではアドレ
スθ〜3.4〜7,8〜11゜・・・・・・を使用して
つまり各4バイトの記憶領域を用いて外部記憶装置MT
またはDKからの各データレコードを収容したが、本発
明では各4ハイド記憶領域を2分して2バイトの記憶領
域Inに各データA、B、・・・・・・を店、込むよう
にする。データ八。
Embodiment of the Invention In the present invention, as shown in FIG. 2, the record storage area in the memory MT is in units of 2 bytes. In other words, each address of the memory has a storage capacity of 1 by 1-, and in the conventional method, addresses θ ~ 3.4 ~ 7, 8 ~ 11 degrees, etc. are used to store a storage area of 4 bytes each. Using external storage device MT
Alternatively, each data record from the DK was stored, but in the present invention, each 4-hide storage area is divided into two and each data A, B, etc. is stored in a 2-byte storage area In. do. Data eight.

r3.C,・・・・・・が2バイト以下なら記憶領域m
に該データを用達めるが、2バイト以上なら書込みは不
可能である。そこで本発明では書込みに際して当該デー
タが15ピッl−以下か否かをヂエ7りし、以下なら記
憶領域mに書込み、16ビソト以上ならオーバフロー領
域に1−込め、そし°ζ当該データを書込むべきメモリ
Mの記憶領域rnにはポインタを店・込む。本例ではデ
ータA、B、Cば15ピノI・以下、データDば16ビ
ソト以上としており、従ってデータA、B、Cはメモリ
Mの記憶領域rn−・書込んだが、データDはそのポイ
ンタDP−t−書込んでいる。
r3. If C,... is less than 2 bytes, storage area m
However, if it is 2 bytes or more, writing is impossible. Therefore, in the present invention, when writing, it is determined whether the data is 15 bits or less, and if it is less than 15 bits, it is written to the storage area m, and if it is 16 bits or more, 1 is written to the overflow area, and then the data is written. A pointer is stored in the storage area rn of the target memory M. In this example, data A, B, and C are 15 bits or less, and data D is 16 bits or more.Therefore, data A, B, and C were written to the storage area rn- of memory M, but data D was written to its pointer. DP-t-Writing.

ポインタはその右側のブロックPに示すように、1ビツ
トのオーバフロー表示フラグFと、5ビ・71・のGM
Lエントリ番号N1とlOビットのオーパフ1コーエン
トリ番号N2の計16ビソトからなる。フラグFば“l
”でオーバフローを示す。GMLはオーバフロー領域0
■Fのアドレステーブルであり、GMLエントリ番号N
lはテーブルGMLのアドレスを示す。オーバフロー領
域OVFは1頁1024エントリのメモリ領域の複数頁
PGl、PG2.・・・・・・からなり、GMLの各エ
ンI・りはか\る頁PGI、PG2.・・・・・・の先
頭アドレスを示し、オーバフローエントリ番号N2はそ
の頁内アドレスを示す。データDばか−るポインタD’
Pが示すオーバフロー領域の頁のエン1へりに書込まれ
る。−例を挙げるとGMLのエントリ数は32、従って
頁PG4.PG2.・・・・・・の数は32、オーバフ
ロー領域の総エントり数は32X1024=32768
、各エントりの記憶容量は4バイトである。
As shown in the block P on the right side of the pointer, the 1-bit overflow display flag F and the GM of 5bit 71.
It consists of a total of 16 bits, including an L entry number N1 and an IO bit opaf 1 core entry number N2. Flag F
” indicates overflow. GML is overflow area 0
■F address table, GML entry number N
l indicates the address of table GML. The overflow area OVF has multiple pages PGl, PG2 . It consists of pages PGI, PG2. . . . and the overflow entry number N2 indicates the address within the page. Data D only pointer D'
It is written to the en1 edge of the page in the overflow area indicated by P. - For example, the number of entries in GML is 32, so page PG4. PG2. The number of... is 32, and the total number of entries in the overflow area is 32X1024=32768
, the storage capacity of each entry is 4 bytes.

このようにすれば若しDK、MTに格納されているレコ
ードの殆んどが2バイトなら、メモリMの2バイト単位
の記憶領域の群内に殆んどが収容でき、従来方式に比べ
て所要容量を半減できる。
In this way, if most of the records stored in DK and MT are 2 bytes, most of them can be stored in the 2-byte storage area group of memory M, which is much better than the conventional method. The required capacity can be halved.

また2バイト以上のデータがあっても、そればオーバフ
ロー領域に書込み、その書込み先アドレスをポインタと
して当該しJ−ドが用達まれるべき記憶領域rnに古込
んモおくので(例えば上記の例ではデータDはデータC
の隣りの領域に書込まれるべきであるから、該隣りの領
域にポインタDPを古いておく)、当該レコードの読出
しには何ら支肺がない。即ちデータA、B、C,・・・
・・・と読出す場合はアクセスアドレスを0.1,2.
・・・・・・と進めて行けばよく、これによりデータA
、B、C。
In addition, even if there is data of 2 bytes or more, it is written to the overflow area, the write destination address is used as a pointer, and the J-do is stored in the storage area rn where it should be used (for example, in the above example) Then data D is data C
Since the record should be written in the area adjacent to the record, there is no support for reading the record. That is, data A, B, C,...
..., the access address should be 0.1, 2, .
You can proceed as follows, and this will result in data A.
,B,C.

が読出され、次のDではポインタDPが読出され、その
内容からテーブルGMLを介してオーバフロー領域のデ
ータDの記憶領域がアクセスされ、該データDが読出さ
れる。
is read out, and in the next D, the pointer DP is read out, and from the contents thereof, the storage area of the data D in the overflow area is accessed via the table GML, and the data D is read out.

発明の詳細 な説明したように本発明によればデータ処理に際して該
データを格納(展開)するメモリの必要容量を低減でき
、そして勿論データ処理には何ら支障はなくすることが
でき、有益である。
As described in detail, the present invention is advantageous in that it is possible to reduce the required capacity of memory for storing (expanding) data during data processing, and of course, there is no problem in data processing. .

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

第1′lilはメモリ上へのデータ展開の従来法を説明
する図、第2図は本発明法を説明する図である。 図面で、Mはメモリ、A、B、C,・・・・・・は可変
長データ、mは単位記憶領域、OVFはオーバフロー領
域、DPはポインタである。 出願人 冨士通株式会社 代理人弁理± 11 柳 稔
1'lil is a diagram for explaining a conventional method of developing data onto a memory, and FIG. 2 is a diagram for explaining the method of the present invention. In the drawing, M is a memory, A, B, C, . . . are variable length data, m is a unit storage area, OVF is an overflow area, and DP is a pointer. Applicant Fujitsu Co., Ltd. Attorney ± 11 Minoru Yanagi

Claims (1)

【特許請求の範囲】 可変長データをメモリ上に展開して編集する際の該デー
タの格納方法において、 該可変長データのうちの所定長までのものを格納できる
記憶領域を単位とし、か\る単位記憶領域群に可変長デ
ータを逐次書込み、 該記憶領域に収まらない長いデータはオーバフロー領域
に書込み、そのアドレスを当該データを書込むべき単位
記憶領域にポインタとして書込むことを特徴とするメモ
リ上へのデータ格納方法。
[Claims] In a method for storing variable-length data when expanding and editing the variable-length data on a memory, a storage area capable of storing up to a predetermined length of the variable-length data is used as a unit; A memory characterized by sequentially writing variable length data into a group of unit storage areas, writing long data that does not fit into the storage area into an overflow area, and writing the address as a pointer to the unit storage area where the data is to be written. How to store data on top.
JP58132478A 1983-07-20 1983-07-20 Data storing method Pending JPS6024657A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58132478A JPS6024657A (en) 1983-07-20 1983-07-20 Data storing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58132478A JPS6024657A (en) 1983-07-20 1983-07-20 Data storing method

Publications (1)

Publication Number Publication Date
JPS6024657A true JPS6024657A (en) 1985-02-07

Family

ID=15082308

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58132478A Pending JPS6024657A (en) 1983-07-20 1983-07-20 Data storing method

Country Status (1)

Country Link
JP (1) JPS6024657A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61217841A (en) * 1985-03-25 1986-09-27 Toshiba Corp Memory area control system
JPS62182850A (en) * 1986-02-06 1987-08-11 Fujitsu Ltd Buffer control system
JPS62232029A (en) * 1986-04-01 1987-10-12 Nec Corp Message queue control system
JPS62293462A (en) * 1986-06-13 1987-12-21 インタ−ナショナル・ビジネス・マシ−ンズ・コ−ポレ−ション Document revisable data processor
JPS63278154A (en) * 1987-05-11 1988-11-15 Matsushita Graphic Commun Syst Inc Document information recording method
JPH0414318A (en) * 1990-05-08 1992-01-20 Matsushita Electric Ind Co Ltd Coder
JPH04139546A (en) * 1990-10-01 1992-05-13 Matsushita Electric Ind Co Ltd Relational data base device
US5892696A (en) * 1995-03-31 1999-04-06 Nec Corporation Pipeline controlled microprocessor
US5931336A (en) * 1996-05-31 1999-08-03 Nissan Motor Co., Ltd. Receptacle
JP2013077151A (en) * 2011-09-30 2013-04-25 Fujitsu Broad Solution & Consulting Inc Device control program, information processing unit and device control method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61217841A (en) * 1985-03-25 1986-09-27 Toshiba Corp Memory area control system
JPH0366695B2 (en) * 1985-03-25 1991-10-18 Tokyo Shibaura Electric Co
JPS62182850A (en) * 1986-02-06 1987-08-11 Fujitsu Ltd Buffer control system
JPS62232029A (en) * 1986-04-01 1987-10-12 Nec Corp Message queue control system
JPS62293462A (en) * 1986-06-13 1987-12-21 インタ−ナショナル・ビジネス・マシ−ンズ・コ−ポレ−ション Document revisable data processor
JPH0528868B2 (en) * 1986-06-13 1993-04-27 Intaanashonaru Bijinesu Mashiinzu Corp
JPS63278154A (en) * 1987-05-11 1988-11-15 Matsushita Graphic Commun Syst Inc Document information recording method
JPH0414318A (en) * 1990-05-08 1992-01-20 Matsushita Electric Ind Co Ltd Coder
JPH04139546A (en) * 1990-10-01 1992-05-13 Matsushita Electric Ind Co Ltd Relational data base device
US5892696A (en) * 1995-03-31 1999-04-06 Nec Corporation Pipeline controlled microprocessor
US5931336A (en) * 1996-05-31 1999-08-03 Nissan Motor Co., Ltd. Receptacle
JP2013077151A (en) * 2011-09-30 2013-04-25 Fujitsu Broad Solution & Consulting Inc Device control program, information processing unit and device control method

Similar Documents

Publication Publication Date Title
CA2209549C (en) Method and apparatus for loading data into a database in a multiprocessor environment
US5890208A (en) Command executing method for CD-ROM disk drive
US5117495A (en) Method of sorting data records
JPS6024657A (en) Data storing method
JPS63104284A (en) Disk file access system
JPS593567A (en) Buffer number setting system of tree structure
JPH06103128A (en) Storage device
JPS5851348A (en) High-speed access system for variable-length record
JPH04112253A (en) Data accessing method using multilayer buffer
JPH054697B2 (en)
JP2540821B2 (en) Database search system
JPS62167695A (en) Memory writing method
JPS59136860A (en) Disk controller
JPH0430632B2 (en)
JPH01255028A (en) Method for making access to external storage device
JPH02299036A (en) Information recording and reproducing method
JPH06149647A (en) Multi-media file managing system
JP3348279B2 (en) Price lookup data search circuit, search method therefor, and recording medium storing control program therefor
JPS63291145A (en) Method for managing file
JPH03194629A (en) Draw type optical disk data access control system
JPH04236639A (en) File space management system
JPH04172541A (en) Record storage unit
JPS62177642A (en) File management system for postscript filing device
Tan et al. Block Sorting of a Large File in External Storage by a 2-Component Key
JPS5987572A (en) Controlling system of disk storage device