Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4494892B2 - Data processing apparatus and program - Google Patents
[go: Go Back, main page]

JP4494892B2 - Data processing apparatus and program - Google Patents

Data processing apparatus and program Download PDF

Info

Publication number
JP4494892B2
JP4494892B2 JP2004206894A JP2004206894A JP4494892B2 JP 4494892 B2 JP4494892 B2 JP 4494892B2 JP 2004206894 A JP2004206894 A JP 2004206894A JP 2004206894 A JP2004206894 A JP 2004206894A JP 4494892 B2 JP4494892 B2 JP 4494892B2
Authority
JP
Japan
Prior art keywords
data
read
control information
reading
type
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 - Fee Related
Application number
JP2004206894A
Other languages
Japanese (ja)
Other versions
JP2006031214A (en
Inventor
重雄 佐藤
茂伸 高山
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2004206894A priority Critical patent/JP4494892B2/en
Publication of JP2006031214A publication Critical patent/JP2006031214A/en
Application granted granted Critical
Publication of JP4494892B2 publication Critical patent/JP4494892B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Description

本発明は、入力ファイルを所定のデータベースに格納するデータ格納技術に関する。   The present invention relates to a data storage technique for storing an input file in a predetermined database.

従来のデータ格納方式として、入力ファイル以外に、データ格納に関する付加情報を与えることにより、データ格納の効率化を行う方法が提案されている(例えば、特許文献1)。ここで提案されている方法は、入力ファイルから抽出した抽出パターンの文字列において、データベースの各項目と抽出パターンの各項との対応関係や変換形式を指定した「データベース変換テーブル」を参照してデータベースの仕様に応じた文字列に変換する処理を行っている。
特開平7−152780号公報
As a conventional data storage method, a method for improving the efficiency of data storage by providing additional information related to data storage in addition to an input file has been proposed (for example, Patent Document 1). The method proposed here refers to the “database conversion table” that specifies the correspondence between each item of the database and each item of the extraction pattern and the conversion format in the character string of the extraction pattern extracted from the input file. Processing to convert to a character string according to the database specifications.
Japanese Patent Laid-Open No. 7-152780

従来のデータ格納方式は、データの型変換を効率化するために、データ格納に関する付加情報を与えるものであり、データ配置に関して格納を効率化するものではない。従来方法では、一つのデータを複数のレコードに格納するようなデータ配置を行うためには、前もってデータベースの形式に対応するように入力ファイルの整形処理を行う必要があるという問題点があった。時系列データの類似パターン検索では、ある項目のデータ値を複数個連続して一つのレコードに格納し、次のレコードには一定期間だけずらした位置から再び同じ個数のデータ値を一つのレコードに格納する形式が用いられるが、このような場合には、データベースの形式に応じたデータ整形処理を前もって行う必要があった。   The conventional data storage system provides additional information related to data storage in order to improve the efficiency of data type conversion, and does not improve the efficiency of storage with respect to data arrangement. In the conventional method, in order to perform data arrangement such that one data is stored in a plurality of records, there is a problem that the input file needs to be shaped in advance so as to correspond to the database format. In a similar pattern search of time series data, a plurality of data values of a certain item are stored in one record in succession, and the next record has the same number of data values as one record again from a position shifted by a certain period. A storage format is used. In such a case, it is necessary to perform data shaping processing in accordance with the database format in advance.

この発明は上記のような問題点を解決するためになされたもので、同一項目の複数のデータを一つのレコードに格納すること、および、一つのデータを複数のレコードに対応させて格納するデータ格納方式を実現することを主な目的とする。   The present invention has been made to solve the above-described problems, and stores a plurality of data of the same item in one record and data that stores one data corresponding to a plurality of records. The main purpose is to realize the storage method.

本発明に係るデータ処理装置は、
相互に対応関係にある複数のデータを、それぞれのデータのデータ種別に従って分類して蓄積するバッファ部と、
前記バッファ部からデータを読み出す際の連続読出し数をデータ種別ごとに示す制御情報を読み出す制御情報読出し部と、
読出しの対象となる相互に対応関係にある複数のデータを特定し、読出し対象である相互に対応関係にある複数のデータを前記バッファ部から読み出すとともに、制御情報に示された連続読出し数が複数であるデータ種別について、当該データ種別の連続読出し数に従って当該データ種別のデータを前記バッファ部から連続して読み出すデータ読出し部とを有することを特徴とする。
The data processing apparatus according to the present invention
A plurality of data corresponding to each other, a buffer unit for classifying and storing the data according to the data type of each data;
A control information reading unit for reading out control information indicating the number of continuous readings when reading data from the buffer unit for each data type;
A plurality of data corresponding to each other to be read is specified, a plurality of data corresponding to each other to be read is read from the buffer unit, and the number of continuous readings indicated in the control information is plural And a data reading unit for continuously reading out data of the data type from the buffer unit according to the number of continuous readings of the data type.

本発明によれば、複数の連続読出し数が指定されたデータ種別のデータについては当該データ種別のデータを連続して読み出すことにより、前もってデータベースの形式に合わせて整形する処理を行わずに、特定のデータ種別のデータを連続して一つのレコードに格納することができる。   According to the present invention, for data of a data type for which a plurality of continuous reading numbers are designated, the data of the data type is continuously read, so that it is possible to specify the data without performing a process in advance according to the database format. Can be stored in one record continuously.

実施の形態1.
図1は、本実施の形態に係るデータ格納装置(データ処理装置)の構成を示す図である。本実施の形態に係るデータ格納装置は、与えられた入力ファイル、および、制御ファイルから、指定された形式のレコードを作成して格納する処理を行う。
Embodiment 1 FIG.
FIG. 1 is a diagram showing a configuration of a data storage device (data processing device) according to the present embodiment. The data storage device according to the present embodiment performs processing for creating and storing a record in a specified format from a given input file and control file.

図1において、データ格納装置1は、入力ファイル読出し装置11、レコードバッファ管理装置12、制御ファイル読出し装置13(制御情報読出し部)、レコード作成装置14、レコード書き込み装置15(データ書込み部)、および、レコードバッファ16(バッファ部)から構成され、入力ファイル4、および、制御ファイル3を入力とする。制御ファイル3は、入力ファイル内のデータ並びおよびデータ型を記述した入力データ値情報6、入力ファイルのデータからどのようにレコードを構成するかを記述したデータ配置情報7(制御情報)、および、実際にデータを格納するデータベースの表名、列名、データ型を記述したデータベース定義情報8から構成される。   In FIG. 1, a data storage device 1 includes an input file reading device 11, a record buffer management device 12, a control file reading device 13 (control information reading unit), a record creation device 14, a record writing device 15 (data writing unit), and The input file 4 and the control file 3 are input from the record buffer 16 (buffer unit). The control file 3 includes input data value information 6 describing the data arrangement and data type in the input file, data arrangement information 7 (control information) describing how to form a record from the data of the input file, and It consists of database definition information 8 describing the table name, column name, and data type of the database that actually stores the data.

図2は、本実施の形態における入力データ値情報6の構成例を示すものである。入力データ値情報6は、通番21、データ型情報22、データ型が文字型、日付型の場合のデータ長23、および、データ型が数値型の場合の精度24から構成される。ここで、精度とは、データ型が数値(INTEGERなど)の場合に、表現できる範囲を表すものであり、図2の例では、32ビットで数値を表すことを意味する。   FIG. 2 shows a configuration example of the input data value information 6 in the present embodiment. The input data value information 6 includes a serial number 21, data type information 22, a data length 23 when the data type is a character type and a date type, and an accuracy 24 when the data type is a numeric type. Here, the precision represents the range that can be expressed when the data type is a numerical value (such as INTERGER), and in the example of FIG. 2, means that the numerical value is expressed by 32 bits.

図3は、本実施の形態におけるデータ配置情報7の構成例を示すものである。データ配置情報7は、通番31、連続読出し数32、次レコードオフセット33、格納方法指定34から構成される。格納方法指定34に記述される数値は、読み出したデータをレコードとして格納する順を示す。   FIG. 3 shows a configuration example of the data arrangement information 7 in the present embodiment. The data arrangement information 7 includes a serial number 31, a continuous reading number 32, a next record offset 33, and a storage method designation 34. The numerical value described in the storage method designation 34 indicates the order in which the read data is stored as a record.

図4は、本実施の形態におけるデータベース定義情報8の構成例を示すものである。データベース定義情報8は、表名情報41、列名情報42、データ型情報43、データ型が文字型、日付型の場合のデータ長44、および、データ型が数値型の場合の精度45から構成される。   FIG. 4 shows a configuration example of the database definition information 8 in the present embodiment. The database definition information 8 includes table name information 41, column name information 42, data type information 43, a data length 44 when the data type is a character type and a date type, and an accuracy 45 when the data type is a numeric type. Is done.

図6は、本実施の形態におけるレコードバッファ管理装置の構成図である。レコードバッファ管理装置12は、レコード分割装置71、レコードバッファ書き込み装置72、レコードバッファ読出し装置73(データ読出し部)、データ演算装置74(データ読出し部)から構成される。   FIG. 6 is a configuration diagram of the record buffer management device according to the present embodiment. The record buffer management device 12 includes a record dividing device 71, a record buffer writing device 72, a record buffer reading device 73 (data reading unit), and a data arithmetic unit 74 (data reading unit).

次に動作について説明する。   Next, the operation will be described.

図5は、本実施の形態におけるデータ格納方式のフローチャートである。   FIG. 5 is a flowchart of the data storage method in this embodiment.

まずデータ格納装置1は、ステップ52において、制御ファイル読出し装置13により制御ファイル3を読み出す(制御情報読出しステップ)。レコードバッファ16内に未処理のデータがない場合で、かつ、入力ファイル4内のデータをすべて処理していない場合は、ステップ55において、入力ファイル読出し装置11が入力ファイルからデータを読み出す。レコードバッファ管理装置12は、読み出したデータに対して、ステップ56においてレコードバッファの更新(データ蓄積ステップ)、ステップ57において制御ファイル3の情報をもとに、レコードバッファの現在位置からの必要なデータ読み出し(データ読出しステップ)、ステップ58において、レコードバッファ内の現在位置の更新を行う。   First, in step 52, the data storage device 1 reads the control file 3 by the control file reading device 13 (control information reading step). If there is no unprocessed data in the record buffer 16 and not all the data in the input file 4 has been processed, in step 55, the input file reading device 11 reads the data from the input file. The record buffer management device 12 updates the record buffer for the read data (data accumulation step) in step 56 and the necessary data from the current position of the record buffer based on the information in the control file 3 in step 57. In reading (data reading step), in step 58, the current position in the record buffer is updated.

ステップ56〜ステップ58の動作を図6を用いて説明する。入力ファイル4が図6に示すようなデータであり、入力データ値情報6、データ配置情報7が、それぞれ、図2、図3に示す形式であるとする。なお、入力ファイルの「AA、1、20030101」等が、相互に対応関係にある複数のデータに相当する。レコード分割装置71は、入力ファイル読出し装置11を介して読み出したデータを、項目ごとに分割する。例えば「AA、1、20030101」の場合は、「AA」、「1」、「20030101」に分割する。レコードバッファ16は、各項目ごと(データ種別ごと)にバッファ75からバッファ77で示すようなバッファを用意しているため、レコードバッファ書き込み装置72は、分割したデータを項目ごとに分類し、対応するレコードバッファに書き込む(ステップ56)。各レコードバッファには、現在位置を示すポインタが存在し、レコードバッファ読出し装置73(データ読出し部)は、各レコードバッファの現在位置から、データ配置情報7で指定された連続読出し数だけのデータを読み出す(ステップ57)とともに、各レコードバッファの現在位置を、データ配置情報7で指定された次レコードオフセットだけ進める更新処理を行う(ステップ58)。   The operation from step 56 to step 58 will be described with reference to FIG. Assume that the input file 4 is data as shown in FIG. 6, and the input data value information 6 and the data arrangement information 7 are in the formats shown in FIGS. 2 and 3, respectively. Note that “AA, 1,200,3003”, etc. of the input file correspond to a plurality of data having a corresponding relationship with each other. The record dividing device 71 divides the data read via the input file reading device 11 for each item. For example, in the case of “AA, 1,200,301”, it is divided into “AA”, “1”, and “20030301”. Since the record buffer 16 prepares buffers as indicated by the buffer 75 to the buffer 77 for each item (for each data type), the record buffer writing device 72 classifies the divided data for each item and corresponds. Write to the record buffer (step 56). Each record buffer has a pointer indicating the current position, and the record buffer reading device 73 (data reading unit) obtains data corresponding to the number of continuous readings specified by the data arrangement information 7 from the current position of each record buffer. At the same time as reading (step 57), an update process for advancing the current position of each record buffer by the next record offset specified by the data arrangement information 7 is performed (step 58).

ステップ53において、レコードバッファ内に未処理データが存在する場合は、ステップ57において、レコードバッファの現在位置から必要なデータを読み出す。
本実施の形態では、図3に示すデータ配置情報7において、各項目の格納方法指定34がすべて、読み出したデータを順に並べる指定になっているため、読み出されたデータは、データ演算装置74では何も処理を行わず、ステップ59において、レコード作成装置14が単純に並べてレコードイメージを作成し、ステップ60において、レコード書き込み装置15が、データベース管理システム2を介してレコードを書き込む。ここで、レコード書き込み装置15は、図4のデータベース定義情報を参照して、レコードの書き込みを行う。
本実施の形態において、レコード作成装置14で作成されたレコードイメージは図7に示す形式となる。つまり、図3の通番1は図2の通番1の「CHARACTER」に対応しており、「AA、1、20030101」のうちの「AA」のデータが対象となる。また、連続読出し数が「1」なので、「AA」のみが読み出される。図3の通番2は図2の通番2の「INTEGER」に対応しており、「AA、1、20030101」のうちの「1」のデータが対象となる。また、連続読出し数が「8」なので、「AA、1、20030101」以降のデータの同一項目のデータを連続して読出し、この結果、「1、2、3、4、5、6、7、8」が得られる。図3の通番3は図2の通番3の「DATE」に対応しており、「AA、1、20030101」のうちの「20030101」のデータが対象となる。また、連続読出し数が「1」なので、「20030101」のみが読み出される。また、図3の通番1〜3のいずれもが次レコードオフセットが「1」なので、次に「BB、2、20030102」について同様の処理を行い、このようにして図7の結果が得られる。
If unprocessed data exists in the record buffer in step 53, necessary data is read from the current position of the record buffer in step 57.
In the present embodiment, in the data arrangement information 7 shown in FIG. 3, the storage method designation 34 for each item is all the designation for arranging the read data in order, so that the read data is the data calculation device 74. In step 59, the record creation device 14 simply arranges and creates a record image. In step 60, the record writing device 15 writes the record via the database management system 2. Here, the record writing device 15 refers to the database definition information in FIG. 4 and writes a record.
In the present embodiment, the record image created by the record creation device 14 has the format shown in FIG. That is, serial number 1 in FIG. 3 corresponds to “CHARACTER” in serial number 1 in FIG. 2, and data “AA” of “AA, 1,200,3101” is the target. Further, since the number of continuous reading is “1”, only “AA” is read. The serial number 2 in FIG. 3 corresponds to the “INTEGER” in serial number 2 in FIG. 2, and the data “1” of “AA, 1,200,2101” is the target. Further, since the number of continuous readings is “8”, the data of the same item after “AA, 1,200,3101” is continuously read. As a result, “1, 2, 3, 4, 5, 6, 7, 8 "is obtained. The serial number 3 in FIG. 3 corresponds to “DATE” in the serial number 3 in FIG. 2, and the data “20030301” of “AA, 1,200,2101” is targeted. Further, since the number of continuous readings is “1”, only “20030101” is read. Further, since the next record offset is “1” in any of the serial numbers 1 to 3 in FIG. 3, the same processing is performed on “BB” and “20030102”, and the result of FIG. 7 is obtained in this way.

ステップ54において、入力ファイルのすべてのデータを処理したと判定されると、本実施の形態のデータ格納処理は終了する。   If it is determined in step 54 that all the data of the input file has been processed, the data storage process of the present embodiment ends.

このように、本実施の形態に係るデータ格納装置1は、相互に対応関係にある複数のデータ(入力ファイル)を、それぞれのデータのデータ種別に従って分類して蓄積するレコードバッファ(バッファ部)と、レコードバッファからデータを読み出す際の連続読出し数をデータ種別ごとに示すデータ配置情報(制御情報)を読み出す制御ファイル読出し部(制御情報読出し部)と、読出しの対象となる相互に対応関係にある複数のデータを特定し、読出し対象である相互に対応関係にある複数のデータをレコードバッファから読み出すとともに、データ配置情報に示された連続読出し数が複数であるデータ種別について、当該データ種別の連続読出し数に従って当該データ種別のデータをレコードバッファから連続して読み出すレコードバッファ読出し装置(データ読出し部)とを有する。   As described above, the data storage device 1 according to the present embodiment includes a record buffer (buffer unit) that classifies and stores a plurality of data (input files) that correspond to each other according to the data type of each data. The control file reading unit (control information reading unit) for reading data arrangement information (control information) indicating the number of continuous readings for each data type when reading data from the record buffer is in a mutual correspondence relationship Specify a plurality of data, read a plurality of data corresponding to each other to be read from the record buffer, and, for a data type having a plurality of continuous reading numbers indicated in the data arrangement information, continuously According to the number of reads, a record buffer that continuously reads data of that data type from the record buffer. And a § reading device (data reading portion).

以上のように、データ格納処理において、データ配置に関する情報として、連続読出し数、および、格納方法指定を別に与えるようにしているので、前もってデータベースの形式に合わせて入力ファイルを整形する処理を行わずに、入力ファイルのある項目のデータを連続して一つのレコードに格納することができる。   As described above, in the data storage process, the number of continuous reads and the storage method designation are separately given as information regarding the data arrangement, so the process of shaping the input file according to the database format is not performed in advance. In addition, data of an item in the input file can be continuously stored in one record.

また、次のレコードに格納するデータのオフセットを合わせて指定できることにより、前もってデータベースの形式に合わせて入力ファイルを整形する処理を行わずに、一つのデータを複数のレコードに格納することが可能となる。   In addition, by specifying the offset of the data to be stored in the next record, it is possible to store one data in multiple records without processing the input file according to the database format in advance. Become.

時系列データの類似パターン検索を行うためには、連続した一定期間のデータ値を一つのレコードに格納することが要求される。図8を用いて説明する。時系列データ81は、入力ファイル82に図8で示す形式で格納されているとする。このとき8個の測定期間での時系列データを切り出し、その切り出したパターンの他のパターンに対する類似度を計算する類似パターン検索を実施する場合は、レコード83〜レコード86に示すような形式でデータ格納が行われる。即ち、各レコードには、時刻と8個の連続した測定値が格納され、次のレコードには、1測定期間だけずらした位置から8個の測定値が連続して格納される。このような時系列データの類似パターン検索に対応したデータ格納の場合には、データ配置情報を与える本実施の形態により、入力ファイルをあらかじめ整形する必要なく、データ格納を実現することが可能となる。   In order to perform a similar pattern search of time-series data, it is required to store data values for a continuous period in a single record. This will be described with reference to FIG. It is assumed that the time series data 81 is stored in the input file 82 in the format shown in FIG. At this time, when time series data in eight measurement periods is cut out and a similar pattern search for calculating the degree of similarity of the cut out pattern with respect to other patterns is performed, data in a format as shown in records 83 to 86 is used. Storage is performed. That is, each record stores time and eight consecutive measurement values, and the next record stores eight measurement values continuously from a position shifted by one measurement period. In the case of data storage corresponding to a similar pattern search of such time series data, it is possible to realize data storage without the need to shape the input file in advance by this embodiment that provides data arrangement information. .

実施の形態2.
以上の実施の形態1では、ある項目の連続する複数データを一つのレコードに格納するようにしたものであるが、次に連続するデータ間の演算結果の値をレコードに格納する場合の実施の形態を示す。
Embodiment 2. FIG.
In the first embodiment described above, a plurality of continuous data of a certain item is stored in one record. However, in the case where the value of the operation result between the next consecutive data is stored in the record. The form is shown.

図9は、このような場合のデータ配置情報を示す。通番「2」で示す項目において、格納方法指定94が示す「Diff」という値は、読み出したデータの一つ後のデータとの差分値を計算することを意味する。   FIG. 9 shows data arrangement information in such a case. In the item indicated by the serial number “2”, the value “Diff” indicated by the storage method designation 94 means that a difference value from the data immediately after the read data is calculated.

図11は、本実施の形態におけるレコードバッファ管理装置の構成図である。レコードバッファ16には、データ演算結果を格納する演算結果用バッファ120が用意されている。   FIG. 11 is a configuration diagram of the record buffer management device according to the present embodiment. In the record buffer 16, an operation result buffer 120 for storing data operation results is prepared.

次に、動作について説明する。   Next, the operation will be described.

図10は、本実施の形態におけるデータ格納方式のフローチャートである。   FIG. 10 is a flowchart of the data storage method in this embodiment.

まずデータ格納装置1は、ステップ102において、制御ファイル読出し装置13により制御ファイル3を読み出す。レコードバッファ16内に未処理のデータがない場合で、かつ、入力ファイル4内のデータをすべて処理していない場合は、ステップ105において、入力ファイル読出し装置11が入力ファイルからデータを読み出す。レコードバッファ管理装置12は、読み出したデータに対して、ステップ106においてレコードバッファの更新、ステップ107において制御ファイル3の情報をもとに、レコードバッファの現在位置からの必要なデータ読み出し、ステップ108において、レコードバッファ内の現在位置の更新を行う。   First, in step 102, the data storage device 1 reads the control file 3 by the control file reading device 13. If there is no unprocessed data in the record buffer 16 and all the data in the input file 4 has not been processed, the input file reading device 11 reads the data from the input file in step 105. The record buffer management device 12 updates the record buffer for the read data in step 106, reads the necessary data from the current position of the record buffer based on the information in the control file 3 in step 107, and in step 108 Update the current position in the record buffer.

ステップ106〜ステップ108の動作を図11を用いて説明する。入力ファイル4が図11に示すようなデータであり、入力データ値情報6、データ配置情報7が、それぞれ、図2、図9に示す形式であるとする。レコード分割装置71は、入力ファイル読出し装置11を介して読み出したデータを、項目ごとに分割する。レコードバッファ16は、各項目ごとにバッファ75からバッファ77で示すようなバッファを用意しているため、レコードバッファ書き込み装置72は、項目ごとに分割したデータを対応するレコードバッファに書き込む(ステップ106)。各レコードバッファには、現在位置を示すポインタが存在し、レコードバッファ読出し装置73は、各レコードバッファの現在位置から、データ配置情報7で指定された連続読出し数だけのデータを読み出す(ステップ107)とともに、各レコードバッファの現在位置を、データ配置情報7で指定された次レコードオフセットだけ進める更新処理を行う(ステップ108)。   The operation in steps 106 to 108 will be described with reference to FIG. Assume that the input file 4 has data as shown in FIG. 11, and the input data value information 6 and the data arrangement information 7 have the formats shown in FIGS. 2 and 9, respectively. The record dividing device 71 divides the data read via the input file reading device 11 for each item. Since the record buffer 16 prepares buffers as indicated by the buffer 75 to the buffer 77 for each item, the record buffer writing device 72 writes the data divided for each item to the corresponding record buffer (step 106). . Each record buffer has a pointer indicating the current position, and the record buffer reading device 73 reads data corresponding to the number of continuous readings specified by the data arrangement information 7 from the current position of each record buffer (step 107). At the same time, an update process for advancing the current position of each record buffer by the next record offset specified by the data arrangement information 7 is performed (step 108).

必要な数だけ読み出したデータに対して、ステップ109において、データ演算装置74(データ演算部)が演算を行う。本実施の形態では、通番「2」の項目の格納方法指定に差分値の演算「Diff」があるため、データ演算装置は、読み出した二つのデータの差分値を計算し、レコードバッファ内の演算結果用バッファ120に演算の結果を格納する。ステップ110において、レコード作成装置14が、演算結果用バッファ120の内容を利用して、レコードイメージを作成し、ステップ111において、レコード書き込み装置15が、データベース管理システム2を介してレコードを書き込む。本実施の形態において、レコード作成装置14で作成されたレコードイメージは図12に示す形式となる。   In step 109, the data operation device 74 (data operation unit) performs an operation on the data read out as many as necessary. In this embodiment, since the difference value calculation “Diff” is included in the storage method designation of the item of the serial number “2”, the data calculation device calculates the difference value between the two read data, and calculates in the record buffer. The result of operation is stored in the result buffer 120. In step 110, the record creation device 14 creates a record image using the contents of the calculation result buffer 120, and in step 111, the record writing device 15 writes the record via the database management system 2. In the present embodiment, the record image created by the record creation device 14 has the format shown in FIG.

以上のように、データ格納処理において、データ配置に関する情報として、連続読出し数、および、演算情報を含んだ格納方法指定を別に与えるようにしているので、前もってデータベースの形式に合わせて入力ファイルを整形する処理を行わずに、入力ファイルのある項目の連続したデータ間の演算処理結果をレコードの値として格納することができる。   As described above, in the data storage process, the number of continuous reads and the storage method specification including the calculation information are separately given as the information related to the data arrangement, so the input file is formatted according to the database format beforehand. The result of the arithmetic processing between continuous data of a certain item in the input file can be stored as a record value.

演算情報として、差分計算を指定することにより、ある項目の値の増分値をレコードに格納することが可能となり、前もって入力ファイルの整形処理を行わずに、増分値を用いた傾向分析を実現するためのデータ格納を実現することができる。   By specifying the difference calculation as the calculation information, it is possible to store the increment value of a certain item value in the record, and realize the trend analysis using the increment value without performing the input file shaping process in advance. Data storage can be realized.

前述した各実施の形態で、データ格納装置は、コンピュータで実現できるものである。   In each of the embodiments described above, the data storage device can be realized by a computer.

図示していないが、データ格納装置は、プログラムを実行するCPU(Central Processing Unit)を備えている。   Although not shown, the data storage device includes a CPU (Central Processing Unit) that executes a program.

例えば、CPUは、バスを介して、ROM(Read Only Memory)、RAM(Random Access Memory)、通信ボード、表示装置、K/B(キーボード)、マウス、FDD(Flexible Disk Drive)、CDD(コンパクトディスクドライブ)、磁気ディスク装置、光ディスク装置、プリンタ装置、スキャナ装置等と接続されている。   For example, the CPU is connected to a ROM (Read Only Memory), a RAM (Random Access Memory), a communication board, a display device, a K / B (keyboard), a mouse, an FDD (Flexible Disk Drive), and a CDD (Compact Disc) via a bus. Drive), magnetic disk device, optical disk device, printer device, scanner device and the like.

磁気ディスク装置には、オペレーティングシステム(OS)、ウィンドウシステム、プログラム群等が記憶されている。   The magnetic disk device stores an operating system (OS), a window system, a program group, and the like.

プログラム群は、CPU、OS、ウィンドウシステムにより実行される。   The program group is executed by a CPU, OS, and window system.

上記データ格納装置の各部は、一部或いはすべてコンピュータで動作可能なプログラムにより構成しても構わない。或いは、ROMに記憶されたファームウェアで実現されていても構わない。或いは、ソフトウェア或いは、ハードウェア或いは、ソフトウェアとハードウェアとファームウェアとの組み合わせで実施されても構わない。   Each part of the data storage device may be constituted by a part or all of a program operable by a computer. Alternatively, it may be realized by firmware stored in the ROM. Alternatively, it may be implemented by software, hardware, or a combination of software, hardware, and firmware.

上記プログラム群には、実施の形態の説明において「〜部」として説明した処理をCPUに実行させるプログラムが記憶される。これらのプログラムは、例えば、C言語やHTMLやSGMLやXMLなどのコンピュータ言語により作成される。   The program group stores a program that causes the CPU to execute the processing described as “˜unit” in the description of the embodiment. These programs are created by computer languages, such as C language, HTML, SGML, and XML, for example.

また、上記プログラムは、磁気ディスク装置、FD(Flexible Disk)、光ディスク、CD(コンパクトディスク)、MD(ミニディスク)、DVD(Digital Versatile Disk)等のその他の記録媒体に記憶され、CPUにより読み出され実行される。   The program is stored in another recording medium such as a magnetic disk device, FD (Flexible Disk), optical disk, CD (compact disk), MD (mini disk), DVD (Digital Versatile Disk), and read by the CPU. And executed.

実施の形態1に係るデータ格納装置の構成例を示すブロック図である。1 is a block diagram illustrating a configuration example of a data storage device according to a first embodiment. 実施の形態1、2における入力データ値情報の一構成例を示す図である。FIG. 10 is a diagram illustrating a configuration example of input data value information in the first and second embodiments. 実施の形態1におけるデータ配置情報の一構成例を示す図である。6 is a diagram illustrating a configuration example of data arrangement information according to Embodiment 1. FIG. 実施の形態1におけるデータベース定義情報の一構成例を示す図である。6 is a diagram illustrating a configuration example of database definition information in Embodiment 1. FIG. 実施の形態1におけるデータの格納処理手順を示すフローチャート図である。FIG. 6 is a flowchart showing a data storage processing procedure in the first embodiment. 実施の形態1におけるレコードバッファ管理装置の構成例を示すブロック図である。3 is a block diagram illustrating a configuration example of a record buffer management device in Embodiment 1. FIG. 実施の形態1における格納レコードイメージを示す図である。FIG. 6 is a diagram showing a stored record image in the first embodiment. 時系列データの格納イメージを示す説明図である。It is explanatory drawing which shows the storage image of time series data. 実施の形態2におけるデータ配置情報の一構成例を示す図である。10 is a diagram illustrating a configuration example of data arrangement information according to Embodiment 2. FIG. 実施の形態2におけるデータの格納処理手順を示すフローチャート図である。FIG. 11 is a flowchart showing a data storage processing procedure in the second embodiment. 実施の形態2におけるレコードバッファ管理装置の構成例を示すブロック図である。10 is a block diagram illustrating a configuration example of a record buffer management device according to Embodiment 2. FIG. 実施の形態2における格納レコードイメージを示す図である。It is a figure which shows the storage record image in Embodiment 2. FIG.

符号の説明Explanation of symbols

1 データ格納装置、2 データベース管理システム、3 制御ファイル、4 入力ファイル、5 データベース、6 入力データ値情報、7 データ配置情報、8 データベース定義情報、11 入力ファイル読出し装置、12 レコードバッファ管理装置、13 制御ファイル読出し装置、14 レコード作成装置、15 レコード書き込み装置、16 レコードバッファ、71 レコード分割装置、72 レコードバッファ書き込み装置、73 レコードバッファ読出し装置、74 データ演算装置、75 バッファ、76 バッファ、77 バッファ、120 演算結果用バッファ。   1 data storage device, 2 database management system, 3 control file, 4 input file, 5 database, 6 input data value information, 7 data allocation information, 8 database definition information, 11 input file reading device, 12 record buffer management device, 13 Control file reading device, 14 record creating device, 15 record writing device, 16 record buffer, 71 record dividing device, 72 record buffer writing device, 73 record buffer reading device, 74 data operation device, 75 buffer, 76 buffer, 77 buffer, 120 Operation result buffer.

Claims (7)

複数のデータ型の複数のデータが含まれるファイルを入力する手段と、
ファイルごとに複数のデータをデータ型に従って分類して、複数個のファイルを入力順に蓄積するバッファ部と、
データ読み出し時に前記バッファ部から読み出すデータの個数をデータ型ごとに示し、少なくとも1つのデータ型に対しては読み出し対象のデータの個数として複数個を示している制御情報を読み出す制御情報読み出し部と、
データ型ごとに、前記制御情報に示される個数分のデータを前記バッファ部へのファイルの入力順に従って前記バッファ部から読み出すデータ読み出し部とを有することを特徴とするデータ処理装置。
Means for inputting a file containing a plurality of data of a plurality of data types;
A buffer unit that classifies a plurality of data for each file according to a data type , and accumulates a plurality of files in the order of input ;
A control information reading unit that reads the number of data to be read from the buffer unit at the time of data reading for each data type, and reads control information indicating a plurality of data to be read for at least one data type ;
A data processing apparatus comprising: a data reading unit for reading out data corresponding to the number indicated in the control information from the buffer unit in accordance with an input order of the file to the buffer unit for each data type .
前記データ処理装置は、更に、
前記データ読み出し部により読み出された各々のデータ型のデータを相互に対応付けて所定のデータ書き込み先に書き込むデータ書き込み部を有することを特徴とする請求項1に記載のデータ処理装置。
The data processing device further includes:
The data processing apparatus according to claim 1, further comprising a data writing unit that writes the data of each data type read by the data reading unit to a predetermined data writing destination in association with each other.
前記制御情報読み出し部は、
読み出し対象のデータの個数として複数個が示されているデータ型に対して所定の演算の実施を指定する制御情報を読み出し、
前記データ処理装置は、更に、
前記制御情報において演算が指定されているデータ型に対して、前記データ読み出し部によりみ出された複数個のデータを用いて前記制御情報において指定されている演算を行うデータ演算部と
前記制御情報において演算が指定されていないデータ型に対して前記データ読み出し部により読み出されたデータと、前記制御情報において演算が指定されているデータ型に対して前記データ演算部により演算が行われた後の演算結果とを相互に対応付けて所定のデータ書き込み先に書き込むデータ書き込み部とを有することを特徴とする請求項1に記載のデータ処理装置。
The control information reading unit
Read out the control information that specifies the execution of a predetermined operation for the data type indicated as the number of data to be read,
The data processing device further includes:
For the data type operations are designated in the control information, a data calculation unit for performing an operation specified in the control information by using a plurality of data Desa read by the data reading unit,
An operation is performed by the data operation unit on data read by the data reading unit for a data type for which no operation is specified in the control information and a data type for which an operation is specified in the control information. The data processing apparatus according to claim 1, further comprising: a data writing unit that associates the calculation result after being transmitted with each other and writes the result in a predetermined data writing destination .
前記バッファ部には、
データ型ごとにポインタが存在し、
前記データ読み出し部は、
データ型ごとに、ポインタ位置から前記制御情報に示される個数分のデータを読み出すことを特徴とする請求項1に記載のデータ処理装置。
In the buffer part,
There is a pointer for each data type,
The data reading unit
2. The data processing apparatus according to claim 1, wherein the number of data indicated by the control information is read from a pointer position for each data type.
データを蓄積するバッファ部を有するコンピュータに、
複数のデータ型の複数のデータが含まれるファイルを入力する処理と、
ファイルごとに複数のデータをデータ型に従って分類して、複数個のファイルを入力順に前記バッファ部に蓄積するデータ蓄積処理と、
データ読み出し時に前記バッファ部から読み出すデータの個数をデータ型ごとに示し、少なくとも1つのデータ型に対しては読み出し対象のデータの個数として複数個を示している制御情報を読み出す制御情報読み出し処理と、
データ型ごとに、前記制御情報に示される個数分のデータを前記バッファ部へのファイルの入力順に従って前記バッファ部から読み出すデータ読み出し処理とを実行させることを特徴とするプログラム。
In a computer having a buffer unit for storing data,
Processing to input a file containing multiple data of multiple data types,
A data accumulation process for classifying a plurality of data for each file according to a data type, and accumulating a plurality of files in the buffer unit in an input order ;
A control information read process for reading the number of data to be read from the buffer unit at the time of data read for each data type, and for reading at least one data type, the control information indicating a plurality as the number of data to be read;
A program for executing , for each data type, a data reading process for reading out data corresponding to the number indicated in the control information from the buffer unit in accordance with a file input order to the buffer unit .
前記プログラムは、更に、The program further includes:
前記データ読み出し処理により読み出された各々のデータ型のデータを相互に対応付けて所定のデータ書き込み先に書き込むデータ書き込み処理を前記コンピュータに実行させることを特徴とする請求項5に記載のプログラム。6. The program according to claim 5, which causes the computer to execute a data writing process in which data of each data type read by the data reading process is associated with each other and written to a predetermined data writing destination.
前記制御情報読み出し処理は、The control information reading process includes
読み出し対象のデータの個数として複数個が示されているデータ型に対して所定の演算の実施を指定する制御情報を前記コンピュータに読み出させ、Causing the computer to read control information that designates the execution of a predetermined operation for a data type in which a plurality of pieces of data to be read are indicated;
前記プログラムは、更に、The program further includes:
前記制御情報において演算が指定されているデータ型に対して、前記データ読み出し処理により読み出された複数個のデータを用いて前記制御情報において指定されている演算を行うデータ演算処理と、A data calculation process for performing a calculation specified in the control information using a plurality of data read out by the data read process for a data type in which the calculation is specified in the control information;
前記制御情報において演算が指定されていないデータ型に対して前記データ読み出し処理により読み出されたデータと、前記制御情報において演算が指定されているデータ型に対して前記データ演算処理により演算が行われた後の演算結果とを相互に対応付けて所定のデータ書き込み先に書き込むデータ書き込み処理とを前記コンピュータに実行させることを特徴とする請求項5に記載のプログラム。An operation is performed by the data operation process on the data read by the data read process for a data type for which an operation is not specified in the control information, and a data type operation is specified by the control information. 6. The program according to claim 5, which causes the computer to execute a data writing process in which a calculation result after being transmitted is associated with each other and written to a predetermined data writing destination.
JP2004206894A 2004-07-14 2004-07-14 Data processing apparatus and program Expired - Fee Related JP4494892B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004206894A JP4494892B2 (en) 2004-07-14 2004-07-14 Data processing apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004206894A JP4494892B2 (en) 2004-07-14 2004-07-14 Data processing apparatus and program

Publications (2)

Publication Number Publication Date
JP2006031214A JP2006031214A (en) 2006-02-02
JP4494892B2 true JP4494892B2 (en) 2010-06-30

Family

ID=35897513

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004206894A Expired - Fee Related JP4494892B2 (en) 2004-07-14 2004-07-14 Data processing apparatus and program

Country Status (1)

Country Link
JP (1) JP4494892B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7014199B2 (en) * 2019-03-08 2022-02-01 オムロン株式会社 Control systems, information processing equipment, and information processing programs

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01265339A (en) * 1988-04-18 1989-10-23 Matsushita Electric Ind Co Ltd Structured data processing device
JP3185167B2 (en) * 1993-12-24 2001-07-09 株式会社日立製作所 Data processing system
JP4251727B2 (en) * 1999-07-08 2009-04-08 三菱電機株式会社 File management method
JP2003186717A (en) * 2001-12-13 2003-07-04 Dai-Ichi Mutual Life Insurance Co Business management system, business management method and business management program

Also Published As

Publication number Publication date
JP2006031214A (en) 2006-02-02

Similar Documents

Publication Publication Date Title
JP2896634B2 (en) Full-text registered word search device and full-text registered word search method
JP4899476B2 (en) Split program, linked program, information processing method
JP2624753B2 (en) How to create higher-level specifications
JP4997749B2 (en) Document processing method, program, and system
JP2003067185A (en) Application editing device and data processing method and program
EP1001336A2 (en) Method and apparatus for amplifying design information into software products
JP4494892B2 (en) Data processing apparatus and program
JP5198149B2 (en) Information processing apparatus, program, and insurance product policy generation method
JPWO2009011057A1 (en) Application analysis program, application analysis method, and application analysis apparatus
JP5219543B2 (en) Information processing apparatus, information processing method, and program
JP5971069B2 (en) Information processing apparatus, title extraction method, and program
JP4734400B2 (en) Document search apparatus and program
JP2020135159A (en) Source file generation program, source file generation method, and information processing device
JP2008210068A (en) Data processing apparatus, data processing method, and program
JP7668961B2 (en) Document generation device, program, and document generation method
JP7021401B1 (en) Logging support device, logging system, logging support method and program
JP3019922B2 (en) Trace data reduction method
JP3454987B2 (en) Document editing apparatus and method
EP4592887A1 (en) Information processing program, information processing method, and information processing device
JP2008262324A (en) Information processing apparatus, information processing method, and program
JP2018005551A (en) Editing support program, device and method
JP3239845B2 (en) Full-text search apparatus and method
JP2018025852A (en) Program analysis method, program analysis apparatus, and analysis program
JP2004252890A (en) Text data creation method, text data creation device, and computer program
WO2026069489A1 (en) Log division device, method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070410

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091124

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091208

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100119

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100406

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100408

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130416

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees