JP2000066933A - Time series data management system - Google Patents

Time series data management system

Info

Publication number
JP2000066933A
JP2000066933A JP10231350A JP23135098A JP2000066933A JP 2000066933 A JP2000066933 A JP 2000066933A JP 10231350 A JP10231350 A JP 10231350A JP 23135098 A JP23135098 A JP 23135098A JP 2000066933 A JP2000066933 A JP 2000066933A
Authority
JP
Japan
Prior art keywords
time
data
search
series
series table
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
JP10231350A
Other languages
Japanese (ja)
Inventor
Naoko Yamada
直子 山田
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP10231350A priority Critical patent/JP2000066933A/en
Publication of JP2000066933A publication Critical patent/JP2000066933A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To allow the latest data and time series data of plural past points to coexist in the same table. SOLUTION: A time series table definition means 1 generates a validity term index 6 defining end time and start time and a unique index 5 including the definition of the end time. A time series table updating means 8 controls the preparation of time series data 4 based on a value at stored time and the insertion of the data 4 into a time series table 2 at the time of receiving an insert/update/delete instruction for latest data, executes the insert/update/delete of the latest data 3 and updates both the indexes 5, 6. A time series table retrieving means 12 considers retrieving time for a retrieving instruction adds 'a condition for selecting only intra-table data at specifiic time' to a retrieving condition and retrieves the time series table 2 under the retrieving condition by utilizing both the indexes 5, 6.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、リレーショナルデ
ータベースを中核とするオンライン情報処理システムに
おいてリレーショナルデータベースの任意の時点の内容
を基に行われる統計業務等に有効となる時系列データ
(任意の複数時点のリレーショナルデータベースの内
容)の保有機能および検索機能を有する時系列データ管
理方式に関する。
BACKGROUND OF THE INVENTION The present invention relates to time-series data (arbitrary plural time points) that is effective for statistical work and the like performed based on the contents at any point in a relational database in an online information processing system having a relational database as a core. Of the relational database) and a time-series data management method having a search function.

【0002】[0002]

【従来の技術】図14は、従来のこの種の時系列データ
管理方式の一例の構成を示すブロック図である。以下
に、図14を参照して従来の時系列データ管理方式につ
いて説明する。
2. Description of the Related Art FIG. 14 is a block diagram showing an example of the configuration of a conventional time-series data management system of this type. Hereinafter, a conventional time-series data management method will be described with reference to FIG.

【0003】図14において、最新データ表1404
は、最新データ1405を管理する表である。また、時
系列データ表1406は、最新データ表1404の過去
の時点の時系列データ1407を管理する表である。
In FIG. 14, a latest data table 1404 is shown.
Is a table for managing the latest data 1405. The time series data table 1406 is a table for managing the past time series data 1407 of the latest data table 1404.

【0004】データ更新手段1401は、最新データ1
405の挿入,更新,または削除の指示に対して、最新
データ表更新手段1402による最新データ1405の
更新と、時系列データ表更新手段1403による時系列
データ1407の挿入とを行う。
[0004] The data updating means 1401 stores the latest data 1
In response to an instruction to insert, update, or delete 405, the latest data table updating unit 1402 updates the latest data 1405 and the time-series data table updating unit 1403 inserts time-series data 1407.

【0005】最新データ表更新手段1402は、最新デ
ータ1405にその有効期間を示す時点値を付与して、
その最新データ1405を更新する。
[0005] The latest data table updating means 1402 gives a time value indicating the validity period to the latest data 1405,
The latest data 1405 is updated.

【0006】時系列データ表更新手段1403は、時系
列データ1407にその有効期間を示す時点値を付与し
て、その時系列データ1407を時系列データ表140
6に挿入する。
The time-series data table updating means 1403 adds a time value indicating the validity period to the time-series data 1407 and stores the time-series data 1407 in the time-series data table 140.
Insert into 6.

【0007】時系列データ検索手段1408は、時系列
データ抽出手段1409により抽出した時系列データ集
合1411(最新データ1405および時系列データ1
407の集合)から、時系列データ検索手段1410に
より必要なデータを検索する。
[0007] The time-series data search means 1408 stores the time-series data set 1411 (the latest data 1405 and the time-series data 1) extracted by the time-series data extraction means 1409.
407), the time-series data search unit 1410 searches for necessary data.

【0008】時系列データ抽出手段1409は、検索対
象の時点のデータ(最新データ1405および時系列デ
ータ1407)を最新データ表1404および時系列デ
ータ表1406から抽出して、時系列データ集合141
1を生成する。
The time-series data extraction means 1409 extracts the data at the time of the search target (latest data 1405 and time-series data 1407) from the latest data table 1404 and the time-series data table 1406, and extracts the time-series data set 141.
1 is generated.

【0009】時系列データ検索手段1410は、時系列
データ抽出手段1409が生成した時系列データ集合1
411から必要なデータ(最新データ1405または時
系列データ1407)の検索を行う。
[0009] The time-series data search means 1410 is a time-series data set 1 generated by the time-series data extraction means 1409.
From 411, necessary data (latest data 1405 or time-series data 1407) is searched.

【0010】なお、上記の従来技術に関する特許公報と
しては、特開平8−287104号公報(発明の名称
「時系列データ管理方式」)がある。
[0010] As a patent gazette relating to the above-mentioned conventional technology, there is Japanese Patent Application Laid-Open No. Hei 8-287104 (name of invention: "time-series data management system").

【0011】[0011]

【発明が解決しようとする課題】上述した従来の時系列
データ管理方式においては、次のような課題がある。
The above-described conventional time-series data management method has the following problems.

【0012】第1の課題は、最新データと時系列データ
とをそれぞれ別の表に格納しているため、データの検索
においては2つの表を統合していったん時系列データ集
合を生成する必要があり、余分な検索時間が必要になる
という問題点である。特に、複数の最新データ表に対応
する時系列データを結合して検索する場合等の複雑な検
索条件のもとでは、検索に非常な時間がかかるという問
題点が生じる。
The first problem is that since the latest data and the time-series data are stored in separate tables, it is necessary to combine the two tables to generate a time-series data set once in data retrieval. There is a problem that extra search time is required. In particular, there is a problem that it takes a very long time to search under complicated search conditions such as when searching by combining time-series data corresponding to a plurality of latest data tables.

【0013】また、第2の課題は、最新データと時系列
データとをそれぞれ別の表に格納しているため、最新デ
ータ表と時系列データ表との2つの表を対応付けて管理
する必要や、表の保守運用においてこれら2つの表の整
合性を保持する必要が生じる(例えば、表の定義変更が
発生した場合に最新データ表の定義とそれに対応する時
系列データ表の定義とを同時に変更する必要が生じる)
ことから、リレーショナルデータベースの運用が非常に
煩雑になるという問題点である。
The second problem is that since the latest data and the time-series data are stored in different tables, it is necessary to manage the two tables of the latest data table and the time-series data table in association with each other. Also, it is necessary to maintain the consistency between these two tables in the table maintenance operation (for example, when the definition of the table changes, the definition of the latest data table and the definition of the corresponding time-series data table are simultaneously made. Need to be changed)
Therefore, there is a problem that the operation of the relational database becomes very complicated.

【0014】本発明の目的は、上述の点に鑑み、最新デ
ータと過去の複数時点の時系列データとを同一表内に共
存させることが可能なリレーショナルデータベースを生
成し、最新データを更新する際に自動的に時系列データ
を作成することにより、リレーショナルデータベースの
更新業務を継続しながら過去の複数時点におけるデータ
内容を保存し参照可能とする時系列データ管理方式を提
供することにある。
In view of the above, an object of the present invention is to generate a relational database capable of coexisting the latest data and past time-series data at a plurality of points in the same table, and to update the latest data. Another object of the present invention is to provide a time-series data management method that automatically saves time-series data, thereby storing and referencing data contents at a plurality of points in the past while continuing to update the relational database.

【0015】なお、本発明に対する従来技術に関する特
許公報としては、上記の特開平8−287104号公報
の他に、以下の1)および2)に示すものがある。 1) 特開平6−35774号公報 2) 特開平7−325839号公報
As patent publications relating to the prior art for the present invention, there are the following publications 1) and 2) in addition to the above-mentioned Japanese Patent Application Laid-Open No. 8-287104. 1) JP-A-6-35774 2) JP-A-7-325839

【0016】上述の特開平6−35774号公報に記載
された技術(データベースマネージメントシステム)
は、データベースファイルの任意の時点の時系列データ
を最新データが格納されているデータベースファイルと
同一のデータベースファイル内で管理することにより利
用者の時系列データ管理の負荷を軽減し、また、データ
更新と同時に時系列データを保有することにより、連続
無停止動作環境でのデータ更新中における統計処理を実
現するものである。
The technique (database management system) described in the above-mentioned JP-A-6-35774.
Manages time-series data at any point in a database file in the same database file as the database file in which the latest data is stored, thereby reducing the burden on users to manage time-series data and updating data. At the same time, by retaining time-series data, statistical processing during data update in a continuous non-stop operation environment is realized.

【0017】この従来技術は、「時系列データ」の考え
方を導入している点で、本発明と類似している。しかし
ながら、当該従来技術は、リレーショナルデータベース
に適用される技術ではなく、当然のことながら、リレー
ショナルデータベースにおける同一の表において最新デ
ータと時系列データとを一元管理する技術ではない。し
たがって、当該従来技術は、本発明の時系列データ管理
方式とは、その構成および目的等を異にしている。
This prior art is similar to the present invention in that the concept of "time series data" is introduced. However, the related art is not a technology applied to a relational database, and is, of course, not a technology for centrally managing the latest data and time-series data in the same table in the relational database. Therefore, the related art differs from the time-series data management method of the present invention in its configuration, purpose, and the like.

【0018】また、上述の特開平7−325839号公
報に記載された技術(時系列データ処理装置)は、デー
タを格納するためのデータベースを時系列単位で分割し
てデータベースユニットを構成するとともに、この分割
されたデータベースユニットにデータを時系列単位に応
じて格納する手段を備えるものである。
The technique (time-series data processing device) described in the above-mentioned Japanese Patent Application Laid-Open No. 7-325839 divides a database for storing data into time-series units to form a database unit. The divided database unit is provided with means for storing data in time series units.

【0019】この従来技術は、「時系列データ」の考え
方を導入している点で、本発明と類似している。しかし
ながら、当該従来技術は、分割されたデータベースユニ
ットにデータを時系列単位に応じて格納するものであ
り、同一の表において最新データと時系列データとを一
元管理する技術ではない。したがって、当該従来技術
は、本発明の時系列データ管理方式とは、その構成およ
び目的等を異にしている。
This prior art is similar to the present invention in that the concept of "time series data" is introduced. However, the related art stores data in a divided database unit according to a time series unit, and is not a technique for centrally managing the latest data and the time series data in the same table. Therefore, the related art differs from the time-series data management method of the present invention in its configuration, purpose, and the like.

【0020】[0020]

【課題を解決するための手段】本発明の時系列データ管
理方式は、データの有効期間を管理するための終了時点
および開始時点と利用者が任意に定義したユーザデータ
とからなる構造を持つ最新データと、最新データと同じ
構造を持ち最新データの過去の時点におけるデータ内容
を保持する時系列データとを一元管理する時系列表と、
ユニークキーと終了時点とによって形成される連結キー
とその連結キーに対応する前記時系列表内の表内データ
(最新データまたは時系列データ)のアドレスを管理す
るポインタ値とから構成されるエントリを保持するユニ
ークインデックスと、終了時点と開始時点とによって形
成される連結キーとその連結キーに対応する前記時系列
表内の表内データのアドレスを管理するポインタ値とか
ら構成されるエントリを保持する有効期間インデックス
と、前記時系列表内の時系列データを保有する基準とな
る保有時点を外部から指示するための領域である保有時
点管理領域と、前記時系列表内のどの時点の表内データ
を検索するかを示す検索時点を外部から指示するための
領域である検索時点管理領域と、リレーショナルデータ
ベースの表定義において前記時系列表の生成が指示され
ると、利用者が任意に定義したユーザデータ列に加えて
終了時点列および開始時点列を定義して前記時系列表の
生成を行い、終了時点と開始時点との連結キーを各エン
トリ中に定義することにより前記有効期間インデックス
を生成し、ユニークキーを有する各エントリの一部とし
て終了時点の定義を追加して前記ユニークインデックス
を生成する時系列表定義手段と、前記時系列表の最新デ
ータの挿入/更新/削除指示に対して、当該最新データ
の挿入/更新時に前記保有時点管理領域に指定された保
有時点および「最新データであることを示す終了時点の
値」を当該最新データの開始時点および終了時点の値に
設定し、当該最新データの更新/削除時に前記時系列表
に時系列データの挿入を行い、当該挿入/更新/削除指
示に応じた最新データの挿入/更新/削除を行い、上記
の処理を反映させて前記ユニークインデックスおよび前
記有効期間インデックスを更新する時系列表更新手段
と、前記時系列表の検索指示に対して、前記検索時点管
理領域に指定された検索時点に基づいて「特定の時点の
表内データだけを選択するための条件」を検索条件に追
加して前記時系列表を検索し、当該検索に際して検索条
件にユニークキーが含まれている場合には前記ユニーク
インデックス内のユニークキーと終了時点との値を評価
し、当該検索に際して検索条件にユニークキーが含まれ
ていない場合には前記有効期間インデックス内の終了時
点および開始時点の値を評価する時系列表検索手段とを
有する。
The time-series data management system of the present invention has a latest structure having a structure consisting of an end point and a start point for managing the validity period of data and user data arbitrarily defined by a user. A time-series table for centrally managing data and time-series data having the same structure as the latest data and holding data contents of the latest data in the past,
An entry composed of a linked key formed by the unique key and the end point and a pointer value for managing the address of the in-table data (latest data or time-series data) in the time-series table corresponding to the linked key is stored. Holds an entry composed of a unique index to be held, a link key formed by an end point and a start point, and a pointer value for managing an address of in-table data in the time series table corresponding to the link key. Validity period index, holding time management area which is an area for externally indicating a holding time as a reference for holding time series data in the time series table, and in-table data at any time in the time series table The search time management area, which is an area for externally indicating the search time indicating whether to search, and the table definition of the relational database When the generation of the time series table is instructed, the end time column and the start time column are defined in addition to the user data sequence arbitrarily defined by the user, and the time sequence table is generated. A time-series table definition for generating the validity index by defining a connection key with a time point in each entry, and adding the definition of the end time point as a part of each entry having a unique key to generate the unique index Means, and in response to an instruction to insert / update / delete the latest data in the time-series table, a holding time designated in the holding time management area at the time of inserting / updating the latest data, and "end indicating that the data is the latest data""Timevalue" is set to the value of the start time and the end time of the latest data, and time-series data is inserted into the time-series table when the latest data is updated / deleted. A time-series table updating means for performing insertion / update / deletion of the latest data according to the input / update / delete instruction and updating the unique index and the validity period index by reflecting the above processing; and In response to a search instruction, based on the search time point specified in the search time point management area, a "condition for selecting only data in the table at a specific time point" is added to the search condition to search the time-series table. When the search condition includes a unique key in the search, the value of the unique key in the unique index and the end time are evaluated, and when the search condition does not include the unique key in the search, A time-series table search unit that evaluates values of an end point and a start point in the validity period index.

【0021】また、本発明の時系列データ管理方式は、
データの有効期間を管理するための終了時点および開始
時点と利用者が任意に定義したユーザデータとからなる
構造を持つ最新データと、最新データと同じ構造を持ち
最新データの過去の時点におけるデータ内容を保持する
時系列データとを一元管理する時系列表と、ユニークキ
ーと終了時点とによって形成される連結キーとその連結
キーに対応する前記時系列表内の表内データのアドレス
を管理するポインタ値とから構成されるエントリを保持
するユニークインデックスと、終了時点および開始時点
と利用者の任意の定義によって設定される非ユニークキ
ーとによって形成される連結キーとその連結キーに対応
する前記時系列表内の表内データのアドレスを管理する
ポインタ値とから構成されるエントリを保持する有効期
間インデックスと、前記時系列表内の時系列データを保
有する基準となる保有時点を外部から指示するための領
域である保有時点管理領域と、前記時系列表内のどの時
点の表内データを検索するかを示す検索時点を外部から
指示するための領域である検索時点管理領域と、リレー
ショナルデータベースの表定義において前記時系列表の
生成が指示されると、利用者が任意に定義したユーザデ
ータ列に加えて終了時点列および開始時点列を定義して
前記時系列表の生成を行い、終了時点と開始時点と非ユ
ニークキーとの連結キーを各エントリ中に定義すること
により前記有効期間インデックスを生成し、ユニークキ
ーを有する各エントリの一部として終了時点の定義を追
加して前記ユニークインデックスを生成する時系列表定
義手段と、前記時系列表の最新データの挿入/更新/削
除指示に対して、当該最新データの挿入/更新時に前記
保有時点管理領域に指定された保有時点および「最新デ
ータであることを示す終了時点の値」を当該最新データ
の開始時点および終了時点の値に設定し、当該最新デー
タの更新/削除時に前記時系列表に時系列データの挿入
を行い、当該挿入/更新/削除指示に応じた最新データ
の挿入/更新/削除を行い、上記の処理を反映させて前
記ユニークインデックスおよび前記有効期間インデック
スを更新する時系列表更新手段と、前記時系列表の検索
指示に対して、前記検索時点管理領域に指定された検索
時点に基づいて「特定の時点の表内データだけを選択す
るための条件」を検索条件に追加して前記時系列表を検
索し、当該検索に際して検索条件にユニークキーが含ま
れている場合には前記ユニークインデックス内のユニー
クキーと終了時点との値を評価し、当該検索に際して検
索条件にユニークキーが含まれていない場合には前記有
効期間インデックス内の非ユニークキー,終了時点およ
び開始時点の値を評価する時系列表検索手段とを有する
構成にすることも可能である。
Further, the time series data management system of the present invention
Latest data having a structure consisting of the end time and start time for managing the validity period of data and user data arbitrarily defined by the user, and data contents at the past time point of the latest data having the same structure as the latest data A time-series table for centrally managing time-series data holding a pointer, a link key formed by a unique key and an end point, and a pointer for managing addresses of data in the table in the time-series table corresponding to the link key. A unique index that holds an entry composed of a value, a concatenated key formed by an end time, a start time, and a non-unique key set by an arbitrary definition of the user, and the time series corresponding to the concatenated key A validity period index holding an entry composed of a pointer value for managing an address of in-table data in the table; A holding time management area, which is an area for externally instructing a holding time as a reference for holding the time series data in the time series table, and at which point in the time series table to search for in-table data. The search time point management area, which is an area for externally indicating the search time point to be indicated, and when the generation of the time series table is instructed in the table definition of the relational database, in addition to the user data string arbitrarily defined by the user, The end time column and the start time column are defined to generate the time series table, and the validity index is generated by defining a connection key of the end time, the start time, and the non-unique key in each entry, A time series table defining means for adding the definition of the end point as a part of each entry having a unique key to generate the unique index, and the latest data of the time series table. In response to the insert / update / delete instruction of the latest data, the holding time designated in the holding time management area and the “end time value indicating that it is the latest data” at the time of inserting / updating the latest data are started at the start of the latest data. The values are set to the values at the time point and the end point, time-series data is inserted into the time-series table when the latest data is updated / deleted, and insertion / update / deletion of the latest data according to the insertion / update / deletion instruction is performed. Performing a time-series table updating unit that updates the unique index and the validity period index by reflecting the above-described processing, and in response to a search instruction of the time-series table, to a search time specified in the search time management area. Based on the search condition, the time-series table is searched by adding "conditions for selecting only in-table data at a specific time" to the search condition, and the search condition includes a unique key in the search. If the search condition does not include the unique key in the search condition, the value of the unique key in the unique index and the end time are evaluated. It is also possible to adopt a configuration having time-series table search means for evaluating the values at the time point and the start time point.

【0022】なお、より一般的には、本発明の時系列デ
ータ管理方式は、最新データと時系列データとを識別す
る情報となりうる終了時点と開始時点とを持つ構造を有
する最新データおよび時系列データを一元管理する時系
列表と、各エントリにユニークキーと終了時点とによっ
て形成される連結キーを備えて前記時系列表内の表内デ
ータのアドレスを管理するユニークインデックスと、各
エントリに終了時点と開始時点とによって形成される連
結キーを備えて前記時系列表内の表内データのアドレス
を管理する有効期間インデックスと、前記時系列表の生
成が指示されると、ユーザデータ列に加えて開始時点列
および終了時点列を定義して前記時系列表の生成を行
い、終了時点および開始時点が定義された前記有効期間
インデックスを生成し、終了時点の定義を含む前記ユニ
ークインデックスを生成する時系列表定義手段と、保有
時点が指定された上で行われる最新データの挿入/更新
/削除指示に対して、当該指示および保有時点の値に基
づく時系列データの作成および前記時系列表への挿入を
調整した上で最新データの挿入/更新/削除を行い、上
記の処理を反映させて前記ユニークインデックスおよび
前記有効期間インデックスを更新する時系列表更新手段
と、検索時点が指定された上で行われる検索指示に対し
て、検索時点と表内データの終了時点および開始時点と
を考慮して「特定の時点の表内データだけを選択するた
めの条件」を検索条件に追加し、前記ユニークインデッ
クスおよび前記有効期間インデックスを利用して当該検
索条件によって前記時系列表を検索する時系列表検索手
段とを有する構成であるといえる。
More generally, the time-series data management system of the present invention uses the latest data and the time-series data having a structure having an end point and a start point which can be information for identifying the latest data and the time-series data. A time-series table for centrally managing data, a unique index for managing addresses of data in the time-series table with a concatenated key formed by a unique key and an end point for each entry, and an end for each entry. A validity period index for managing the address of the in-table data in the time-series table with a connection key formed by a time point and a start time, and when the generation of the time-series table is instructed, it is added to the user data string. The time series table is generated by defining the start time column and the end time column, and the validity period index in which the end time and the start time are defined is generated. A time-series table defining means for generating the unique index including the definition of the end time, and a value of the instruction and the value of the retention time in response to the latest data insertion / update / deletion instruction performed after the retention time is specified When updating the unique index and the validity period index by reflecting the above-mentioned processing after performing the creation / update / deletion of the latest data after adjusting the creation of the time series data based on and the insertion into the time series table In response to a series table updating means and a search instruction given after a search time is specified, considering only the search time and the end time and start time of the data in the table, "select only the data in the table at a specific time. To the time-series table using the unique index and the validity period index to search the time-series table according to the search condition. It can be said to be configured to have a time-series table search means.

【0023】[0023]

【発明の実施の形態】次に、本発明について図面を参照
して詳細に説明する。
Next, the present invention will be described in detail with reference to the drawings.

【0024】(1) 第1の実施の形態 図1は、本発明の第1の実施の形態に係る時系列データ
管理方式の構成を示すブロック図である。
(1) First Embodiment FIG. 1 is a block diagram showing a configuration of a time-series data management system according to a first embodiment of the present invention.

【0025】本実施の形態に係る時系列データ管理方式
は、時系列表定義手段1と、時系列表2と、ユニークイ
ンデックス5と、有効期間インデックス6と、保有時点
管理領域7と、時系列表更新手段8と、時系列表検索手
段12と、検索時点管理領域15とを含んで構成されて
いる。なお、時系列表2,ユニークインデックス格納部
5,および有効期間インデックス6によってリレーショ
ナルデータベースが構成されている。
The time series data management method according to the present embodiment includes a time series table defining means 1, a time series table 2, a unique index 5, a validity index 6, a holding time management area 7, a time series It is configured to include a table updating means 8, a time series table searching means 12, and a search time point management area 15. The relational database is composed of the time series table 2, the unique index storage unit 5, and the validity period index 6.

【0026】時系列表2は、データの有効期間を管理す
るための終了時点および開始時点ならびに利用者が任意
に定義したユーザデータからなる構造を持つ最新データ
3と、最新データ3と同じ構造を持ち最新データ3の過
去の複数時点におけるデータ内容を保持する時系列デー
タ4とを一元管理する表(リレーショナルデータベース
の表)である。なお、一元管理される最新データ3と時
系列データ4とを包括的に、「表内データ」と呼ぶこと
とする。
The time series table 2 includes the latest data 3 having a structure composed of user data arbitrarily defined by an end time and a start time for managing the validity period of the data, and the same structure as the latest data 3. This is a table (relational database table) that unitarily manages the latest data 3 and the time-series data 4 holding the data contents at a plurality of points in the past. Note that the latest data 3 and the time-series data 4 that are centrally managed are collectively referred to as “table data”.

【0027】ユニークインデックス5は、時系列表2内
の表内データ(最新データ3または時系列データ4)内
のユーザデータ中のユニークキー(主キー等の値の重複
を許さないキー)と当該表内データの終了時点とから形
成される連結キーと、その連結キーに対応する当該表内
データのアドレスを管理するポインタ値とから構成され
ているエントリを保持している。
The unique index 5 is a unique key (a key that does not allow duplicate values such as a primary key) in the user data in the in-table data (the latest data 3 or the time-series data 4) in the time-series table 2. It holds an entry composed of a concatenated key formed from the end of the in-table data and a pointer value for managing the address of the in-table data corresponding to the concatenated key.

【0028】有効期間インデックス6は、時系列表2内
の表内データ(最新データ3または時系列データ4)の
終了時点と開始時点とで形成される連結キーと、その連
結キーに対応する表内データのアドレスを管理するポイ
ンタ値とから構成されているエントリを保持している。
The validity period index 6 is a link key formed by the end point and start point of the in-table data (latest data 3 or time-series data 4) in the time-series table 2, and a table corresponding to the link key. And an entry composed of a pointer value for managing the address of the internal data.

【0029】保有時点管理領域7は、時系列データ4を
保有する基準となる保有時点(例えば、業務日付)を外
部から指示するための領域である。なお、本明細書にお
ける「時点」とは、時系列に沿って値が増加するように
設定される論理値を意味する。
The holding point management area 7 is an area for externally indicating a holding point (for example, a work date) as a reference for holding the time-series data 4. It should be noted that the “time point” in the present specification means a logical value set so that the value increases in a time series.

【0030】検索時点管理領域15は、時系列表2内の
どの時点の表内データを検索(アクセス)するかを示す
検索時点を外部から指示するための領域である。
The search time point management area 15 is an area for externally designating a search time point indicating which point in the time series table 2 to search (access) in-table data.

【0031】時系列表定義手段1は、リレーショナルデ
ータベースの表定義において時系列表2の生成の指示を
可能とし、時系列表2の生成が指示されると、次の1)〜
3)に示す処理を行う。 1) 利用者が任意に定義したユーザデータ列に加えて終
了時点列および開始時点列を定義して、時系列表2の生
成(定義)を行う。 2) 終了時点および開始時点を連結した非ユニークキー
を定義することにより、そのような非ユニークキーを持
つ各エントリを保持する有効期間インデックス6を生成
する。 3) 利用者が任意に定義するユニークインデックス(ユ
ニークキーを備えるインデックス)に対して終了時点の
定義を追加し、各エントリの一部として終了時点の定義
が追加されたユニークインデックス5を生成する。
The time series table definition means 1 enables the generation of the time series table 2 in the table definition of the relational database, and when the generation of the time series table 2 is instructed, the following 1) to
Perform the process shown in 3). 1) The end time column and the start time column are defined in addition to the user data sequence arbitrarily defined by the user, and the time series table 2 is generated (defined). 2) By defining a non-unique key connecting the end time and the start time, a validity period index 6 holding each entry having such a non-unique key is generated. 3) An end point definition is added to a unique index (index having a unique key) arbitrarily defined by the user, and a unique index 5 in which the end point definition is added as a part of each entry is generated.

【0032】時系列表更新手段8は、時系列表2の最新
データ3の挿入/更新/削除指示(挿入指示,更新指
示,および削除指示のいずれか)に対して、必要に応じ
て当該最新データ3の終了時点および開始時点への値の
設定を行い、必要に応じて時系列表2に時系列データ4
の挿入を行った後に、最新データ3の挿入/更新/削除
を行うとともに、上記の処理を反映させて時系列表定義
手段1で定義されたユニークインデックス5および有効
期間インデックス6の更新を行う。
The time-series table updating means 8 responds to an instruction to insert / update / delete the latest data 3 of the time-series table 2 (one of an insert instruction, an update instruction and a delete instruction) as necessary. The values of the end point and the start point of the data 3 are set, and the time series data 4 is added to the time series table 2 as necessary.
Then, the latest data 3 is inserted / updated / deleted, and the unique index 5 and the validity period index 6 defined by the time series table defining means 1 are updated by reflecting the above processing.

【0033】時系列表更新手段8は、有効期間設定手段
9と、時系列データ挿入手段10と、データ更新手段1
1とを含んで構成されている。なお、時系列表更新手段
8は、上述の所定の処理を行うものであれば、図1に示
す3つの手段を有する構成に限定されるものではない。
The time series table updating means 8 includes a valid period setting means 9, a time series data inserting means 10, and a data updating means 1.
1 is included. The time series table updating means 8 is not limited to the configuration having the three means shown in FIG. 1 as long as it performs the above-described predetermined processing.

【0034】有効期間設定手段9は、時系列表2の最新
データ3の挿入/更新時(挿入または更新を行う際)
に、保有時点管理領域7から保有時点を入力し、その保
有時点の値を挿入/更新対象の最新データ3の開始時点
に設定し、最大値(HIGH−VALUE)を当該最新
データ3の終了時点に設定する。
The validity period setting means 9 inserts / updates the latest data 3 in the time series table 2 (when inserting or updating).
, The holding time is input from the holding time management area 7, the value of the holding time is set as the start time of the latest data 3 to be inserted / updated, and the maximum value (HIGH-VALUE) is set to the end time of the latest data 3. Set to.

【0035】時系列データ挿入手段10は、時系列表2
の最新データ3の更新/削除時(更新または削除を行う
際)に、時系列表2から更新前または削除前の当該最新
データ3の内容を取得して、その開始時点と保有時点管
理領域7から取得した保有時点とを比較して、保有時点
の方が大きい場合には更新前または削除前の当該最新デ
ータ3の内容のうちの終了時点に保有時点を設定したも
のを時系列データ4として時系列表2に挿入する。
The time-series data inserting means 10 generates the time-series table 2
When the latest data 3 is updated / deleted (when updating or deleting), the contents of the latest data 3 before update or before deletion are acquired from the time series table 2 and the start time and the holding time management area 7 are obtained. When the holding time is larger than the holding time obtained from the above, if the holding time is set at the end time of the contents of the latest data 3 before update or before deletion as the time-series data 4 Insert in Time Series Table 2.

【0036】データ更新手段11は、時系列表2の最新
データ3の挿入/更新/削除指示に対して、有効期間設
定手段9による当該最新データ3の開始時点および終了
時点への値の設定ならびに時系列データ挿入手段10に
よる時系列表2への時系列データ4の挿入の後に(有効
期間設定手段9および時系列データ挿入手段10による
これらの処理が必ずしも全て行われる分けではない)、
当該最新データ3の挿入/更新/削除を行い、上記の処
理を反映させてユニークインデックス5および有効期間
インデックス6の更新を行う。
The data updating means 11 responds to the instruction to insert / update / delete the latest data 3 in the time series table 2 by setting the values of the latest data 3 to the start time and the end time by the validity period setting means 9 and After the insertion of the time-series data 4 into the time-series table 2 by the time-series data insertion means 10 (all of these processes by the validity period setting means 9 and the time-series data insertion means 10 are not necessarily performed).
The latest data 3 is inserted / updated / deleted, and the unique index 5 and the validity period index 6 are updated by reflecting the above processing.

【0037】時系列表検索手段12は、時系列表2の検
索指示に対して、「特定の時点の表内データだけを選択
するための条件」を検索条件に追加して、時系列表2を
検索する。この検索の際に、検索条件にユニークインデ
ックス5内のユニークキーが含まれている場合には、ユ
ニークインデックス5内のユニークキーの値と終了時点
の値とを評価し、検索条件を満たす表内データだけを時
系列表2から検出する。また、検索条件にユニークイン
デックス5内のユニークキーが含まれていない場合に
は、有効期間インデックス6内の終了時点および開始時
点の値を評価し、検索条件を満たす表内データだけを時
系列表2から検出する。
In response to the search instruction of the time series table 2, the time series table search means 12 adds "conditions for selecting only the data in the table at a specific time" to the search conditions, and Search for. At the time of this search, if the search condition includes the unique key in the unique index 5, the value of the unique key in the unique index 5 and the value at the end time are evaluated, and the table satisfying the search condition is evaluated. Only data is detected from the time series table 2. If the search condition does not include the unique key in the unique index 5, the values at the end point and the start point in the validity period index 6 are evaluated, and only the in-table data that satisfies the search condition is displayed in the time-series table. 2 to detect.

【0038】時系列表検索手段12は、検索条件変更手
段13と、データ検索手段14とを含んで構成されてい
る。なお、時系列表検索手段12は、上述の所定の処理
を行うものであれば、図1に示す2つの手段を有する構
成に限定されるものではない。
The time series table search means 12 includes a search condition changing means 13 and a data search means 14. Note that the time-series table search means 12 is not limited to the configuration having the two means shown in FIG. 1 as long as it performs the above-described predetermined processing.

【0039】検索条件変更手段13は、検索時点管理領
域15から検索時点を入力し、「開始時点が検索時点の
値以下で、かつ終了時点が当該検索時点の値より大き
い」という条件(特定の時点の表内データだけを選択す
るための条件)を検索指示における検索条件として追加
する。ただし、当該検索時点が最新データ3の検索を指
示する値である場合には、当該検索時点の値を「最大値
(HIGH−VALUE)−(マイナス)1」として評
価する。
The search condition changing means 13 inputs the search time from the search time management area 15 and sets a condition (the start time is equal to or smaller than the value at the search time and the end time is larger than the value at the search time) (a specific time). (A condition for selecting only the data in the table at the time) is added as a search condition in the search instruction. However, if the search time point is a value instructing the search for the latest data 3, the value at the search time point is evaluated as "maximum value (HIGH-VALUE)-(minus) 1".

【0040】データ検索手段14は、時系列表2の検索
指示に対して、検索条件変更手段13によって条件が追
加された検索条件により時系列表2を検索し、検索条件
を満たす表内データを時系列表2から検出する。
In response to the search instruction of the time series table 2, the data search means 14 searches the time series table 2 according to the search conditions to which the conditions have been added by the search condition changing means 13, and retrieves the in-table data satisfying the search conditions. It is detected from the time series table 2.

【0041】図2は、時系列表2の詳細な構成を示す図
である。時系列表2は、終了時点列21と、開始時点列
22と、ユーザデータ列23とから構成されている。終
了時点列21を構成する終了時点は、表内データ(最新
データ3または時系列データ4)の有効終了時点値を管
理するためのデータである。また、開始時点列22を構
成する開始時点は、表内データの有効開始時点値を管理
するためのデータである。さらに、ユーザデータ列23
を構成するユーザデータは、利用者が任意に定義するデ
ータである。時系列表2内の各表内データは、終了時点
列21中の終了時点,開始時点列22中の開始時点,お
よびユーザデータ列23中のユーザデータを有する構造
を持っている。
FIG. 2 is a diagram showing a detailed configuration of the time series table 2. The time series table 2 includes an end time point column 21, a start time point column 22, and a user data string 23. The end point in the end point column 21 is data for managing the effective end point value of the in-table data (latest data 3 or time-series data 4). Further, the start time constituting the start time column 22 is data for managing the effective start time value of the data in the table. Further, the user data string 23
Are user-defined data arbitrarily defined by the user. Each in-table data in the time series table 2 has a structure having an end time in the end time column 21, a start time in the start time column 22, and user data in a user data sequence 23.

【0042】図3は、ユニークインデックス5内の各エ
ントリの詳細な構成を示す図である。ユニークインデッ
クス5内の各エントリは、ユニークキーと、終了時点
と、ポインタ値とから構成されている。ユニークキー
は、図2におけるユーザデータ列23中のユーザデータ
に含まれる「値の重複を許さないデータ」に対応するキ
ーである。また、終了時点は、図2における終了時点列
21中の終了時点に対応するキーである。ユニークキー
と終了時点とを連結した値が、ユニークインデックス5
におけるキー値(連結キーの値)となる。さらに、ポイ
ンタ値は、時系列表2内の各表内データ(最新データ3
または時系列データ4)の格納アドレスを示す値であ
る。
FIG. 3 is a diagram showing a detailed configuration of each entry in the unique index 5. Each entry in the unique index 5 is composed of a unique key, an end point, and a pointer value. The unique key is a key corresponding to “data that does not allow duplicate values” included in the user data in the user data string 23 in FIG. The end point is a key corresponding to the end point in the end point column 21 in FIG. The value obtained by concatenating the unique key and the end time is the unique index 5
Is the key value (the value of the concatenated key). Further, the pointer value is stored in each data in the time series table 2 (latest data 3
Alternatively, it is a value indicating the storage address of the time-series data 4).

【0043】図4は、本実施の形態における有効期間イ
ンデックス6内の各エントリの詳細な構成を示す図であ
る。有効期間インデックス6内の各エントリは、終了時
点と、開始時点と、ポインタ値とから構成されている。
終了時点は、図2における終了時点列21中の終了時点
に対応するキーである。また、開始時点は、図2におけ
る開始時点列22中の開始時点に対応するキーである。
終了時点と開始時点とを連結した値が、有効期間インデ
ックス6におけるキー値(連結キーの値)となる。さら
に、ポインタ値は、時系列表2内の各表内データ(最新
データ3または時系列データ4)の格納アドレスを示す
値である。
FIG. 4 is a diagram showing a detailed configuration of each entry in the validity period index 6 in the present embodiment. Each entry in the validity period index 6 includes an end time, a start time, and a pointer value.
The end point is a key corresponding to the end point in the end point column 21 in FIG. The start time is a key corresponding to the start time in the start time column 22 in FIG.
A value obtained by connecting the end time and the start time is a key value (a value of a connected key) in the validity period index 6. Further, the pointer value is a value indicating the storage address of each in-table data (latest data 3 or time-series data 4) in the time-series table 2.

【0044】図5は、時系列表定義手段1の処理を示す
流れ図である。この処理は、時系列表生成ステップ50
1と、有効期間インデックス定義ステップ502と、ユ
ニークインデックス定義ステップ503とからなる。
FIG. 5 is a flowchart showing the processing of the time series table defining means 1. This processing is performed in the time series table generation step 50.
1, a validity period index definition step 502, and a unique index definition step 503.

【0045】図6〜図8は、時系列表更新手段8の処理
を示す流れ図である。
FIGS. 6 to 8 are flowcharts showing the processing of the time series table updating means 8.

【0046】図6に示す処理(最新データ3の挿入指示
に基づく処理)は、保有時点取得ステップ601と、開
始時点保有時点設定ステップ602と、終了時点最大値
設定ステップ603と、最新データ時系列表挿入ステッ
プ604と、ユニークインデックス・有効期間インデッ
クスエントリ登録ステップ605とからなる。
The processing shown in FIG. 6 (processing based on the instruction to insert the latest data 3) includes a holding time acquisition step 601, a start time holding time setting step 602, an end time maximum value setting step 603, and a latest data time series. It comprises a table insertion step 604 and a unique index / valid period index entry registration step 605.

【0047】図7に示す処理(最新データ3の更新指示
に基づく処理)は、保有時点取得ステップ701と、更
新前最新データ取得ステップ702と、保有時点・開始
時点比較判定ステップ703と、時系列データ作成ステ
ップ704と、時系列データ時系列表挿入ステップ70
5と、ユニークインデックス・有効期間インデックスエ
ントリ登録ステップ706と、最新データ更新ステップ
707と、有効期間インデックスエントリ更新ステップ
708とからなる。
The processing shown in FIG. 7 (processing based on the update instruction of the latest data 3) includes a holding time acquisition step 701, a latest data acquisition step before update 702, a holding time / start time comparison judgment step 703, a time series Data creation step 704 and time series data time series table insertion step 70
5, a unique index / valid period index entry registration step 706, a latest data update step 707, and a valid period index entry update step 708.

【0048】図8に示す処理(最新データ3の削除指示
に基づく処理)は、保有時点取得ステップ801と、削
除前最新データ取得ステップ802と、保有時点・開始
時点比較判定ステップ803と、時系列データ作成ステ
ップ804と、時系列データ時系列表挿入ステップ80
5と、ユニークインデックス・有効期間インデックスエ
ントリ登録ステップ806と、最新データ削除ステップ
807と、ユニークインデックス・有効期間インデック
スエントリ削除ステップ808とからなる。
The processing shown in FIG. 8 (processing based on an instruction to delete the latest data 3) includes a holding time acquisition step 801, a latest data before deletion step 802, a holding time / start time comparison determination step 803, a time series Data creation step 804 and time series data time series table insertion step 80
5, a unique index / valid period index entry registration step 806, a latest data deletion step 807, and a unique index / valid period index entry deletion step 808.

【0049】図9は、時系列表検索手段12の処理を示
す流れ図である。この処理は、検索時点取得ステップ9
01と、検索時点関連条件検索条件追加ステップ902
と、検索条件ユニークキー包含判定ステップ903と、
ユニークキー・終了時点評価ステップ904と、表内デ
ータ検索ステップ905と、検索結果検出ステップ90
6と、終了時点・開始時点評価ステップ907と、表内
データ検索・検索結果検出ステップ908とからなる。
FIG. 9 is a flowchart showing the processing of the time series table search means 12. This processing is performed at the retrieval time point acquisition step 9
01 and search time related condition search condition addition step 902
And a search condition unique key inclusion determination step 903;
Unique key / end point evaluation step 904, in-table data search step 905, search result detection step 90
6, an end time / start time evaluation step 907, and an in-table data search / search result detection step 908.

【0050】次に、上述のように構成された本実施の形
態に係る時系列データ管理方式の動作について詳細に説
明する。
Next, the operation of the time-series data management system according to the present embodiment configured as described above will be described in detail.

【0051】第1に、時系列表定義手段1の動作を説明
する。
First, the operation of the time series table defining means 1 will be described.

【0052】時系列表定義手段1は、図1に示すリレー
ショナルデータベースの表定義において時系列表2の生
成が指示されると、次のような処理を行う(図5参
照)。
When the generation of the time series table 2 is instructed in the table definition of the relational database shown in FIG. 1, the time series table definition means 1 performs the following processing (see FIG. 5).

【0053】まず、その表定義で定義されるデータの有
効期間を管理するための終了時点および開始時点を、利
用者が任意に定義したユーザデータに追加して定義する
ことにより、終了時点列21および開始時点列22なら
びにユーザデータ列23を有する時系列表2を生成する
(ステップ501)。
First, the end time and start time for managing the validity period of the data defined by the table definition are defined by adding to the user data arbitrarily defined by the user. Then, the time series table 2 having the start time column 22 and the user data column 23 is generated (step 501).

【0054】次に、時系列表2のインデックス定義にお
いて、終了時点列21および開始時点列22に対応する
非ユニークインデックスとして、終了時点と開始時点と
を連結した連結キーを持つエントリを保持する有効期間
インデックス6を定義する(ステップ502)。
Next, in the index definition of the time-series table 2, as a non-unique index corresponding to the end time column 21 and the start time column 22, an entry having a concatenated key connecting the end time and the start time is stored. A period index 6 is defined (step 502).

【0055】また、時系列表2のユーザデータ列23に
おける「値の重複を許さないユニークキー」(主キー
等)を持つユニークインデックス5の定義において終了
時点の定義を追加し、ユニークキーと終了時点との連結
キーを持つエントリを保持するユニークインデックス5
を定義する(ステップ503)。
Further, the definition of the end point is added to the definition of the unique index 5 having the “unique key that does not allow duplicate values” (primary key, etc.) in the user data column 23 of the time series table 2, and the unique key and the end Unique index 5 holding an entry with a concatenated key with the time
Is defined (step 503).

【0056】第2に、時系列表更新手段8の動作を説明
する。
Second, the operation of the time series table updating means 8 will be described.

【0057】図1中の保有時点管理領域7は、時系列表
2の更新の際に、外部から保有時点を与えるための領域
である。保有時点は、統計業務等の時系列データ4を参
照する業務における基準の時点を示す論理値であり、例
えば、日次処理で時系列データ4を使用する場合におけ
る業務日付を示す値が該当する。
The holding point management area 7 in FIG. 1 is an area for giving a holding point from the outside when updating the time series table 2. The possession time point is a logical value indicating a reference time point in an operation that refers to the time-series data 4 such as a statistical operation, and corresponds to, for example, a value indicating an operation date when the time-series data 4 is used in daily processing. .

【0058】利用者によって、上記の保有時点の指定と
ともに、最新データ3の挿入/更新/削除指示が行われ
ると、時系列表更新手段8は以下の1)〜3)に示す処理を
行う(図6〜図8参照)。
When the user issues an instruction to insert / update / delete the latest data 3 together with the designation of the holding time, the time-series table updating means 8 performs the following processing 1) to 3) ( 6 to 8).

【0059】1) 時系列表更新手段8は、時系列表2に
対する最新データ3の挿入指示が行われると、以下に示
すような処理を行う。
1) When the instruction to insert the latest data 3 into the time series table 2 is issued, the time series table updating means 8 performs the following processing.

【0060】有効期間設定手段9は、保有時点管理領域
7から保有時点を取得し(ステップ601)、挿入対象
の最新データ3の開始時点に当該保有時点を設定する
(ステップ602)。
The validity period setting means 9 acquires the holding time from the holding time management area 7 (step 601), and sets the holding time at the start time of the latest data 3 to be inserted (step 602).

【0061】次に、有効期間設定手段9は、挿入対象の
最新データ3の終了時点に、表内データの終了時点とし
てとり得る最大値(HIGH−VALUE)を設定する
(ステップ603)。
Next, the validity period setting means 9 sets the maximum value (HIGH-VALUE) that can be taken as the end time of the in-table data at the end time of the latest data 3 to be inserted (step 603).

【0062】その後に、データ更新手段11は、当該最
新データ3を時系列表2に挿入し(ステップ604)、
それに対応するエントリをユニークインデックス5およ
び有効期間インデックス6に登録する(ステップ60
5)。
Thereafter, the data updating means 11 inserts the latest data 3 into the time series table 2 (step 604),
The corresponding entry is registered in the unique index 5 and the validity period index 6 (step 60).
5).

【0063】2) 時系列表更新手段8は、時系列表2の
最新データ3の更新指示が行われると、以下に示すよう
な処理を行う。
2) When an update instruction of the latest data 3 of the time series table 2 is issued, the time series table updating means 8 performs the following processing.

【0064】有効期間設定手段9は、保有時点管理領域
7から保有時点を取得する(ステップ701)。
The validity period setting means 9 acquires the holding time from the holding time management area 7 (step 701).

【0065】それとともに、時系列データ挿入手段10
は、時系列表2から更新前の当該最新データ3の内容を
取得して(ステップ702)、ステップ701で取得さ
れた保有時点とステップ702で内容が取得された最新
データ3の開始時点との大小を比較・判定する(ステッ
プ703)。
At the same time, the time series data inserting means 10
Acquires the contents of the latest data 3 before updating from the time series table 2 (step 702), and compares the holding time acquired in step 701 with the start time of the latest data 3 acquired in step 702. The magnitude is compared and determined (step 703).

【0066】時系列データ挿入手段10は、ステップ7
03で「保有時点の値が開始時点の値より大きい」と判
定した場合には、更新前の当該最新データ3の内容の終
了時点に有効期間設定手段9により取得された保有時点
を設定することによって時系列データ4を作成し(ステ
ップ704)、この時系列データ4を時系列表2に挿入
する(ステップ705)。
The time-series data inserting means 10 executes step 7
If it is determined that the value of the holding time is larger than the value of the starting time in 03, the holding time acquired by the validity period setting means 9 is set to the end time of the contents of the latest data 3 before updating. Then, the time series data 4 is created (step 704), and the time series data 4 is inserted into the time series table 2 (step 705).

【0067】それとともに、時系列データ挿入手段10
は、その時系列データ4に対応するエントリをユニーク
インデックス5および有効期間インデックス6に登録す
る(ステップ706)。
At the same time, the time series data inserting means 10
Registers the entry corresponding to the time-series data 4 in the unique index 5 and the validity period index 6 (step 706).

【0068】その後、データ更新手段11は、当該最新
データ3の開始時点に保有時点を設定し、また終了時点
には最大値を設定し、さらに当該最新データ3のユーザ
データの更新を行う(ステップ707)。
Thereafter, the data updating means 11 sets the holding time at the start time of the latest data 3, sets the maximum value at the end time, and updates the user data of the latest data 3 (step S1). 707).

【0069】それとともに、データ更新手段11は、当
該最新データ3のデータ格納アドレスをポインタ値に持
つ有効期間インデックス6内のエントリの開始時点の内
容を、更新後の当該最新データ3の開始時点の内容を持
つように更新する(ステップ708)。
At the same time, the data updating means 11 updates the contents of the start point of the entry in the validity period index 6 having the data storage address of the latest data 3 as a pointer value at the start point of the updated latest data 3. The content is updated to have the content (step 708).

【0070】一方、データ更新手段11は、ステップ7
03で「保有時点の値が開始時点の値と同じである」と
判定された場合には、時系列データ4の挿入は行わず、
そのまま最新データ3の更新を行う(ステップ707お
よび708)。なお、ステップ703で「保有時点の値
が開始時点の値より小さい」と判定された場合には、エ
ラーとして取り扱われる。
On the other hand, the data updating means 11
If it is determined in 03 that “the value at the holding time is the same as the value at the starting time”, the time-series data 4 is not inserted,
The latest data 3 is updated as it is (steps 707 and 708). If it is determined in step 703 that “the value at the possession time is smaller than the value at the start time”, it is treated as an error.

【0071】3) 時系列表更新手段8は、時系列表2の
最新データ3の削除指示が行われると、以下に示すよう
な処理を行う。
3) When an instruction to delete the latest data 3 in the time series table 2 is issued, the time series table updating means 8 performs the following processing.

【0072】有効期間設定手段9は、保有時点管理領域
7から保有時点を取得する(ステップ801)。
The validity period setting means 9 acquires the holding time from the holding time management area 7 (step 801).

【0073】それとともに、時系列データ挿入手段10
は、時系列表2から削除前の当該最新データ3の内容を
取得して(ステップ802)、ステップ801で取得さ
れた保有時点とステップ802で内容が取得された最新
データ3の開始時点との大小を比較・判定する(ステッ
プ803)。
At the same time, the time series data inserting means 10
Obtains the contents of the latest data 3 before deletion from the time series table 2 (step 802), and compares the holding time acquired in step 801 with the start time of the latest data 3 acquired in step 802. The size is compared and determined (step 803).

【0074】時系列データ挿入手段10は、ステップ8
03で「保有時点の値が開始時点の値より大きい」と判
定した場合には、削除前の当該最新データ3の内容の終
了時点に有効期間設定手段9により取得された保有時点
を設定することによって時系列データ4を作成し(ステ
ップ804)、この時系列データ4を時系列表2に挿入
する(ステップ805)。
The time-series data inserting means 10 executes step 8
If it is determined that the value of the holding time is larger than the value of the starting time in 03, the holding time acquired by the validity period setting means 9 is set to the end time of the contents of the latest data 3 before deletion. Then, the time series data 4 is created (step 804), and the time series data 4 is inserted into the time series table 2 (step 805).

【0075】それとともに、時系列データ挿入手段10
は、その時系列データ4に対応するエントリをユニーク
インデックス5および有効期間インデックス6に登録す
る(806)。
At the same time, the time series data inserting means 10
Registers the entry corresponding to the time-series data 4 in the unique index 5 and the validity period index 6 (806).

【0076】その後、データ更新手段11は、当該最新
データ3を削除する(ステップ807)。
Thereafter, the data updating means 11 deletes the latest data 3 (step 807).

【0077】それとともに、データ更新手段11は、当
該最新データ3に対応するエントリをユニークインデッ
クス5および有効期間インデックス6から削除する(ス
テップ808)。
At the same time, the data updating means 11 deletes the entry corresponding to the latest data 3 from the unique index 5 and the validity period index 6 (Step 808).

【0078】一方、データ更新手段11は、ステップ8
03で「保有時点の値が開始時点の値と同じである」と
判定された場合には、時系列データ4の挿入は行わず、
そのまま最新データ3の削除を行う(ステップ807お
よび808)。なお、ステップ803で「保有時点の値
が開始時点の値より小さい」と判定された場合には、エ
ラーとして取り扱われる。
On the other hand, the data updating means 11
If it is determined in 03 that “the value at the holding time is the same as the value at the starting time”, the time-series data 4 is not inserted,
The latest data 3 is deleted as it is (steps 807 and 808). If it is determined in step 803 that “the value at the time of possession is smaller than the value at the time of start”, it is treated as an error.

【0079】第3に、時系列表検索手段12の動作を説
明する。
Third, the operation of the time series table search means 12 will be described.

【0080】図1中の検索時点管理領域15は、時系列
表2の検索を行う際に、外部から検索時点を与えるため
の領域である。検索時点は、最新または過去の時点を示
す論理値である。ここで、「過去の時点」とは、時系列
表2の更新の際に保有時点管理領域7に設定された保有
時点に相当する時点である。なお、最新の時点を示す論
理値としては、例えば時点に関する初期値が考えられ
る。
The search time management area 15 in FIG. 1 is an area for giving a search time from the outside when searching the time series table 2. The search time point is a logical value indicating the latest or past time point. Here, the "past time" is a time corresponding to the holding time set in the holding time management area 7 when the time series table 2 is updated. As the logical value indicating the latest time point, for example, an initial value relating to the time point can be considered.

【0081】利用者によって、上記の検索時点の指定と
ともに、時系列表2に対する検索指示が行われると、時
系列表検索手段12は以下に示す処理を行う(図9参
照)。
When the user gives a search instruction to the time series table 2 together with the above-mentioned designation of the search time, the time series table search means 12 performs the following processing (see FIG. 9).

【0082】検索条件変更手段13は、検索時点管理領
域15から検索時点を取得し(ステップ901)、検索
指示における検索条件に対して「開始時点が検索時点の
値以下で、かつ終了時点が当該検索時点の値より大き
い」という条件を追加する(ステップ902)。なお、
このとき、検索時点が「最新」を示す値の場合には、検
索条件における検索時点を「最大値(HIGH−VAL
UE)−1」とする。これにより、最新データ3の検索
条件には、「開始時点が「最大値−1」以下でかつ終了
時点が「最大値−1」より大きい」という条件が追加さ
れるため、終了時点に最大値が設定されている最新デー
タ3のみが検索条件を満たすことになる。
The search condition changing means 13 acquires the search time from the search time management area 15 (step 901), and responds to the search condition in the search instruction by saying that the start time is less than or equal to the value of the search time and the end time is (Step 902). In addition,
At this time, if the search time point is a value indicating “latest”, the search time point in the search condition is set to the “maximum value (HIGH-VAL)”.
UE) -1 ". As a result, a condition that the start time is equal to or less than “maximum value−1” and the end time is greater than “maximum value−1” is added to the search condition of the latest data 3, so that the maximum time Only the newest data 3 in which is set satisfies the search condition.

【0083】次に、データ検索手段14は、検索条件に
ユニークキーが含まれているか否かを判定する(ステッ
プ903)。
Next, the data search means 14 determines whether or not the search condition includes a unique key (step 903).

【0084】データ検索手段14は、ステップ903で
「検索条件にユニークキーが含まれている」と判定した
場合には、ユニークインデックス5を検索し、ユニーク
インデックス5内の各エントリ中のユニークキーおよび
終了時点の値を評価する(ステップ904)。
If it is determined in step 903 that “the search condition includes a unique key”, the data search means 14 searches the unique index 5 and finds the unique key and the unique key in each entry in the unique index 5. The value at the end point is evaluated (step 904).

【0085】データ検索手段14は、ステップ904の
評価の結果、ユニークキーおよび終了時点の値が検索条
件を満たすユニークインデックス5のエントリについ
て、当該エントリ中のポインタ値を基に時系列表2から
対応する表内データ(最新データ3または時系列データ
4)を検索し(ステップ905)、当該検索で検出した
表内データからその開始時点が検索条件を満たす表内デ
ータだけを選択し、当該表内データを検索指示に対する
検索結果として検出する(ステップ906)。
As a result of the evaluation in step 904, the data search means 14 searches the time series table 2 for the entry of the unique index 5 whose unique key and end value satisfy the search condition based on the pointer value in the entry. In-table data (latest data 3 or time-series data 4) to be searched is searched (step 905), and only in-table data whose start time satisfies the search condition is selected from the in-table data detected in the search, and the in-table data is selected. The data is detected as a search result for the search instruction (step 906).

【0086】また、データ検索手段14は、ステップ9
03で「検索条件にユニークキーが含まれていない」と
判定した場合には、有効期間インデックス6を検索し、
有効期間インデックス6内の各エントリ中の終了時点お
よび開始時点の値を評価する(ステップ907)。
The data search means 14 determines in step 9
When it is determined that the search condition does not include the unique key in 03, the validity period index 6 is searched,
The values of the end point and the start point in each entry in the validity period index 6 are evaluated (step 907).

【0087】データ検索手段14は、ステップ907の
評価の結果、終了時点および開始時点の値が検索条件を
満たす有効期間インデックス6のエントリについて、当
該エントリ中のポインタ値を基に時系列表2から対応す
る表内データ(最新データ3または時系列データ4)を
検索指示に対する検索結果として検出する(ステップ9
08)。
As a result of the evaluation in step 907, the data search means 14 determines, for the entry of the validity period index 6 whose end time and start time satisfy the search condition, from the time series table 2 based on the pointer value in the entry. The corresponding in-table data (latest data 3 or time-series data 4) is detected as a search result for the search instruction (step 9).
08).

【0088】(2) 第2の実施の形態 図1は、本発明の第2の実施の形態に係る時系列データ
管理方式の構成を示すブロック図でもある。
(2) Second Embodiment FIG. 1 is also a block diagram showing a configuration of a time-series data management system according to a second embodiment of the present invention.

【0089】本実施の形態に係る時系列データ管理方式
は、その基本的構成については上記の第1の実施の形態
と同様であるが、有効期間インデックス6内の各エント
リの構成が以下の図10に示すようになる点等で第1の
実施の形態とは異なっている。
The time-series data management system according to this embodiment has the same basic configuration as that of the first embodiment, but the configuration of each entry in the validity period index 6 is as shown in FIG. The third embodiment differs from the first embodiment in the point shown in FIG.

【0090】図10は、本実施の形態における有効期間
インデックス6内の各エントリの詳細な構成を示す図で
ある。本実施の形態における有効期間インデックス6内
の各エントリは、非ユニークキーと、終了時点と、開始
時点と、ポインタ値とから構成されている。非ユニーク
キーは、図2におけるユーザデータ列23中のユーザデ
ータに含まれる「値の重複を許すデータ」に対応するキ
ーであり、利用者が任意に定義するものである。また、
終了時点は、図2における終了時点列21中の終了時点
に対応するキーである。さらに、開始時点は、図2にお
ける開始時点列22中の開始時点に対応するキーであ
る。非ユニークキーと終了時点と開始時点とを連結した
値が、この有効期間インデックス6におけるキー値(連
結キーの値)となる。加えて、ポインタ値は、時系列表
2内の各表内データ(最新データ3または時系列データ
4)の格納アドレスを示す値である。
FIG. 10 is a diagram showing a detailed configuration of each entry in the validity period index 6 in the present embodiment. Each entry in the validity period index 6 according to the present embodiment includes a non-unique key, an end time, a start time, and a pointer value. The non-unique key is a key corresponding to “data that allows duplicate values” included in the user data in the user data string 23 in FIG. 2, and is arbitrarily defined by the user. Also,
The end point is a key corresponding to the end point in the end point column 21 in FIG. Further, the start time is a key corresponding to the start time in the start time column 22 in FIG. The value obtained by concatenating the non-unique key, the end point, and the start point is the key value (concatenated key value) in the validity period index 6. In addition, the pointer value is a value indicating the storage address of each in-table data (latest data 3 or time-series data 4) in the time-series table 2.

【0091】図11は、本実施の形態における時系列表
定義手段1の処理を示す流れ図である。この処理は、時
系列表生成ステップ1101と、有効期間インデックス
定義ステップ1102と、ユニークインデックス定義ス
テップ1103とからなる。
FIG. 11 is a flowchart showing the processing of the time series table defining means 1 in the present embodiment. This processing includes a time series table generation step 1101, a validity period index definition step 1102, and a unique index definition step 1103.

【0092】図12は、本実施の形態における時系列表
検索手段12の処理を示す流れ図である。この処理は、
検索時点取得ステップ1201と、検索時点関連条件検
索条件追加ステップ1202と、検索条件ユニークキー
包含判定ステップ1203と、ユニークキー・終了時点
評価ステップ1204と、表内データ検索ステップ12
05と、検索結果検出ステップ1206と、非ユニーク
キー・終了時点・開始時点評価ステップ1207と、表
内データ検索・検索結果検出ステップ1208とからな
る。
FIG. 12 is a flowchart showing the processing of the time series table search means 12 in the present embodiment. This process
Search time acquisition step 1201, search time related condition search condition addition step 1202, search condition unique key inclusion determination step 1203, unique key / end time evaluation step 1204, in-table data search step 12
05, a search result detection step 1206, a non-unique key / end time / start time evaluation step 1207, and a table data search / search result detection step 1208.

【0093】なお、図6〜図8は、本実施の形態におけ
る時系列表更新手段8の処理を示す流れ図でもある。
FIGS. 6 to 8 are also flow charts showing the processing of the time series table updating means 8 in the present embodiment.

【0094】次に、上述のように構成された本実施の形
態に係る時系列データ管理方式の動作について詳細に説
明する。
Next, the operation of the time-series data management system according to the present embodiment configured as described above will be described in detail.

【0095】第1に、時系列表定義手段1の動作を説明
する。
First, the operation of the time series table defining means 1 will be described.

【0096】時系列表定義手段1は、図1に示すリレー
ショナルデータベースの表定義において時系列表2の生
成が指示されると、次のような処理を行う(図11参
照)。
When the generation of the time series table 2 is instructed in the table definition of the relational database shown in FIG. 1, the time series table definition means 1 performs the following processing (see FIG. 11).

【0097】まず、その表定義で定義されるデータの有
効期間を管理するための終了時点および開始時点を、利
用者が任意に定義したユーザデータに追加して定義する
ことにより、終了時点列21および開始時点列22なら
びにユーザデータ列23を有する時系列表2を生成する
(ステップ1101)。
First, the end time and start time for managing the validity period of the data defined by the table definition are defined by adding to the user data arbitrarily defined by the user. Then, a time series table 2 having a start time column 22 and a user data column 23 is generated (step 1101).

【0098】次に、時系列表2のインデックス定義にお
いて、利用者により定義された非ユニークインデックス
(非ユニークキーを持つインデックス)に対して終了時
点および開始時点の定義を追加し、非ユニークキーと終
了時点および開始時点とを連結した連結キーを持つエン
トリを保持する有効期間インデックス6を定義する(ス
テップ1102)。
Next, in the index definition of the time series table 2, the definition of the end time and the start time is added to the non-unique index (index having the non-unique key) defined by the user, and the non-unique key is added. A validity period index 6 for holding an entry having a concatenated key connecting the end point and the start point is defined (step 1102).

【0099】また、時系列表2のユーザデータ列23に
おける「値の重複を許さないユニークキー」(主キー
等)を持つユニークインデックス5の定義において終了
時点の定義を追加し、ユニークキーと終了時点との連結
キーを持つエントリを保持するユニークインデックス5
を定義する(ステップ1103)。
Further, the definition of the end point is added to the definition of the unique index 5 having the “unique key whose value is not allowed to be duplicated” (primary key or the like) in the user data column 23 of the time series table 2, and the unique key and the end Unique index 5 holding an entry with a concatenated key with the time
Is defined (step 1103).

【0100】第2に、時系列表更新手段8の動作につい
て説明する。
Second, the operation of the time series table updating means 8 will be described.

【0101】時系列表更新手段8の動作については、第
1の実施の形態における時系列表更新手段8の動作と同
様である(図6〜図8参照)。
The operation of the time series table updating means 8 is the same as the operation of the time series table updating means 8 in the first embodiment (see FIGS. 6 to 8).

【0102】第3に、時系列表検索手段12の動作を説
明する。
Third, the operation of the time series table search means 12 will be described.

【0103】第1の実施の形態における説明で述べたよ
うに、図1中の検索時点管理領域15は、時系列表2の
検索を行う際に、外部から検索時点を与えるための領域
である。検索時点は、最新または過去の時点を示す論理
値である。ここで、「過去の時点」とは、時系列表2の
更新の際に保有時点管理領域7に設定された保有時点に
相当する時点である。なお、最新の時点を示す論理値と
しては、例えば時点に関する初期値が考えられる。
As described in the description of the first embodiment, the search time point management area 15 in FIG. 1 is an area for externally giving a search time point when searching the time series table 2. . The search time point is a logical value indicating the latest or past time point. Here, the "past time" is a time corresponding to the holding time set in the holding time management area 7 when the time series table 2 is updated. As the logical value indicating the latest time point, for example, an initial value relating to the time point can be considered.

【0104】利用者によって、上記の検索時点の指定と
ともに、時系列表2に対する検索指示が行われると、時
系列表検索手段12は以下に示す処理を行う(図12参
照)。
When the user gives a search instruction to the time series table 2 together with the above-mentioned designation of the search time, the time series table search means 12 performs the following processing (see FIG. 12).

【0105】検索条件変更手段13は、検索時点管理領
域15から検索時点を取得し(ステップ1201)、検
索指示における検索条件に対して「開始時点が検索時点
の値以下で、かつ終了時点が当該検索時点の値より大き
い」という条件を追加する(ステップ1202)。な
お、このとき、検索時点が「最新」を示す値の場合に
は、検索条件における検索時点を「最大値(HIGH−
VALUE)−1」とする。
The search condition changing means 13 acquires the search time from the search time management area 15 (step 1201), and responds to the search condition in the search instruction by saying that “the start time is less than or equal to the value of the search time and the end time is Is greater than the value at the time of retrieval "(step 1202). At this time, if the search time point is a value indicating “latest”, the search time point in the search condition is set to “maximum value (HIGH−
VALUE) -1 ".

【0106】次に、データ検索手段14は、検索条件に
ユニークキーが含まれているか否かを判定する(ステッ
プ1203)。
Next, the data search means 14 determines whether or not the search condition includes a unique key (step 1203).

【0107】データ検索手段14は、ステップ1203
で「検索条件にユニークキーが含まれている」と判定し
た場合には、ユニークインデックス5を検索し、ユニー
クインデックス5内の各エントリ中のユニークキーおよ
び終了時点の値を評価する(ステップ1204)。
The data search means 14 determines in step 1203
If it is determined that the search condition includes a unique key, the unique index 5 is searched, and the unique key in each entry in the unique index 5 and the value at the end point are evaluated (step 1204). .

【0108】データ検索手段14は、ステップ1204
の評価の結果、ユニークキーおよび終了時点の値が検索
条件を満たすユニークインデックス5のエントリについ
て、当該エントリ中のポインタ値を基に時系列表2から
対応する表内データ(最新データ3または時系列データ
4)を検索し(ステップ1205)、当該検索で検出し
た表内データからその開始時点が検索条件を満たす表内
データだけを選択し、当該表内データを検索指示に対す
る検索結果として検出する(ステップ1206)。
The data search means 14 determines in step 1204
As a result of the evaluation, for the entry of the unique index 5 whose unique key and the value at the end time satisfy the search condition, the corresponding in-table data (latest data 3 or time series data) from the time series table 2 based on the pointer value in the entry. Data 4) is searched (step 1205), and only the in-table data whose start point satisfies the search condition is selected from the in-table data detected in the search, and the in-table data is detected as a search result in response to the search instruction (step 1205). Step 1206).

【0109】また、データ検索手段14は、ステップ1
203で「検索条件にユニークキーが含まれていない」
と判定した場合には、有効期間インデックス6を検索
し、有効期間インデックス6内の各エントリ中の非ユニ
ークキーならびに終了時点および開始時点の値を評価す
る(ステップ1207)。
Further, the data search means 14 executes step 1
In 203, "the search condition does not include the unique key"
If it is determined, the validity period index 6 is searched and the non-unique key in each entry in the validity period index 6 and the values at the end time and the start time are evaluated (step 1207).

【0110】データ検索手段14は、ステップ1207
の評価の結果、非ユニークキーならびに終了時点および
開始時点の値が検索条件を満たす有効期間インデックス
6のエントリについて、当該エントリ中のポインタ値を
基に時系列表2から対応する表内データ(最新データ3
または時系列データ4)を検索指示に対する検索結果と
して検出する(ステップ1208)。
The data search means 14 determines in step 1207
As a result of the evaluation, for the entry of the validity period index 6 in which the values of the non-unique key and the end time and the start time satisfy the search condition, the corresponding in-table data (latest data) from the time series table 2 based on the pointer value in the entry. Data 3
Alternatively, the time series data 4) is detected as a search result for the search instruction (step 1208).

【0111】このように、本実施の形態に係る時系列デ
ータ管理方式では、終了時点および開始時点だけで連結
キーが構成される有効期間インデックス6の代わりに、
利用者が任意に定義した非ユニークキーに対して終了時
点および開始時点を付加することにより連結キーが構成
される有効期間インデックス6を生成している。これに
よって、有効期間インデックス6を利用した検索におい
て、非ユニークキーと有効期間(終了時点および開始時
点)との両者による検索対象の表内データの効率的な絞
り込みが可能となる。
As described above, in the time-series data management method according to the present embodiment, instead of the validity period index 6 in which the concatenated key is constituted only by the end point and the start point,
By adding the end time and the start time to the non-unique key arbitrarily defined by the user, the validity period index 6 that forms the concatenated key is generated. Thus, in the search using the validity period index 6, it is possible to efficiently narrow down the data in the table to be searched by both the non-unique key and the validity period (end time and start time).

【0112】(3) 第3の実施の形態 図13は、本発明の第4の実施の形態に係る時系列デー
タ管理方式の構成を示すブロック図である。本実施の形
態に係る時系列データ管理方式は、上述の第1の実施の
形態に係る時系列データ管理方式に対して、所定のプロ
グラム(時系列データ管理プログラム)を記録した記録
媒体100を備える点が異なっている。この記録媒体1
00は、磁気ディスク,半導体メモリ,その他の記録媒
体であってよい。
(3) Third Embodiment FIG. 13 is a block diagram showing a configuration of a time-series data management system according to a fourth embodiment of the present invention. The time-series data management method according to the present embodiment includes a recording medium 100 in which a predetermined program (time-series data management program) is recorded in addition to the time-series data management method according to the above-described first embodiment. The points are different. This recording medium 1
00 may be a magnetic disk, a semiconductor memory, or another recording medium.

【0113】時系列データ管理プログラムは、記録媒体
100からコンピュータ200に読み込まれ、リレーシ
ョナルデータベース(時系列表2,ユニークインデック
ス5,および有効期間インデックス6)と保有時点管理
領域7および検索時点管理領域15との存在を前提とし
て、コンピュータ200の動作を時系列表定義手段1,
時系列表更新手段8,および時系列表検索手段12とし
て制御する。時系列データ管理プログラムの制御による
コンピュータ200の動作は、第1の実施の形態におけ
る時系列表定義手段1,時系列表更新手段8,および時
系列表検索手段12の動作と全く同様になるので、その
詳しい説明を割愛する。
The time series data management program is read from the recording medium 100 into the computer 200, and is stored in the relational database (time series table 2, unique index 5, and validity period index 6), holding time management area 7, and search time management area 15. The operation of the computer 200 is assumed to be based on the existence of
Control is performed as the time series table updating means 8 and the time series table search means 12. The operation of the computer 200 under the control of the time series data management program is exactly the same as the operation of the time series table definition means 1, the time series table update means 8, and the time series table search means 12 in the first embodiment. , The detailed explanation is omitted.

【0114】(4) 第4の実施の形態 図13は、本発明の第4の実施の形態に係る時系列デー
タ管理方式の構成を示すブロック図でもある。本実施の
形態に係る時系列データ管理方式は、上述の第2の実施
の形態に係る時系列データ管理方式に対して、所定のプ
ログラム(時系列データ管理プログラム)を記録した記
録媒体100を備える点が異なっている。この記録媒体
100は、磁気ディスク,半導体メモリ,その他の記録
媒体であってよい。
(4) Fourth Embodiment FIG. 13 is also a block diagram showing a configuration of a time-series data management system according to a fourth embodiment of the present invention. The time-series data management method according to the present embodiment includes a recording medium 100 in which a predetermined program (time-series data management program) is recorded in addition to the time-series data management method according to the second embodiment. The points are different. The recording medium 100 may be a magnetic disk, a semiconductor memory, or another recording medium.

【0115】時系列データ管理プログラムは、記録媒体
100からコンピュータ200に読み込まれ、リレーシ
ョナルデータベース(時系列表2,ユニークインデック
ス5,および有効期間インデックス6)と保有時点管理
領域7および検索時点管理領域15との存在を前提とし
て、コンピュータ200の動作を時系列表定義手段1,
時系列表更新手段8,および時系列表検索手段12とし
て制御する。時系列データ管理プログラムの制御による
コンピュータ200の動作は、第2の実施の形態におけ
る時系列表定義手段1,時系列表更新手段8,および時
系列表検索手段12の動作と全く同様になるので、その
詳しい説明を割愛する。
The time-series data management program is read from the recording medium 100 into the computer 200, and is stored in a relational database (time-series table 2, unique index 5, and validity period index 6), holding time management area 7, and search time management area 15. The operation of the computer 200 is assumed to be based on the existence of
Control is performed as the time series table updating means 8 and the time series table search means 12. The operation of the computer 200 under the control of the time-series data management program is exactly the same as the operation of the time-series table definition means 1, the time-series table update means 8, and the time-series table search means 12 in the second embodiment. , The detailed explanation is omitted.

【0116】[0116]

【発明の効果】以上説明したように、本発明は、以下に
記載するような効果を奏する。
As described above, the present invention has the following effects.

【0117】第1に、リレーショナルデータベースの表
およびインデックスに終了時点および開始時点を付加す
ること等により、最新データと過去の複数時点の時系列
データとを同一の表(時系列表)で一元管理することを
可能としているので、最新データと同様の利用者インタ
フェースで時系列データの利用が可能になるとともに、
時系列データの管理や運用を簡易化することができる
(例えば、最新データ更新時に更新前のデータ内容が時
系列データとして時系列表に挿入されるので、最新デー
タの更新を継続しながら時系列データの保存を行うこと
ができる)という効果が生じる。
First, by adding end time and start time to tables and indexes of the relational database, etc., the latest data and past time-series data at a plurality of time points are unitarily managed in the same table (time-series table). It is possible to use time-series data with the same user interface as the latest data,
The management and operation of time-series data can be simplified (for example, when the latest data is updated, the data contents before the update are inserted into the time-series table as time-series data. Data can be stored).

【0118】なお、上記についてさらに補足すると、最
新データとその最新データに対応する複数の時系列デー
タとを同一の表(時系列表)に格納(一元管理)するこ
とができるのは、以下の1)および2)の事項に基づいてい
る。 1) ユニークインデックス中のユニークキーにより、あ
る最新データと他の最新データとの間の一意性を確保で
きる。 2) ユニークインデックス中に連結キーの一部として終
了時点を保持することにより、同一終了時点を持つ最新
データまたは時系列データは1つの最新データに対して
1件しか存在せず、最新データとその過去の複数時点の
時系列データとの間でデータの値が重複することはな
く、それらのデータ間の一意性を確保できる。
It should be noted that supplementing the above, the latest data and a plurality of time-series data corresponding to the latest data can be stored (unified management) in the same table (time-series table) as follows. Based on 1) and 2). 1) The unique key in the unique index can ensure uniqueness between certain latest data and other latest data. 2) By retaining the end point as a part of the concatenated key in the unique index, only one latest data or time series data with the same end point exists for one latest data. Data values do not overlap with time-series data at a plurality of past time points, and uniqueness between the data can be ensured.

【0119】第2に、時系列データを管理するために必
要な定義を自動的に行う時系列表定義手段と、保有時点
の付与に基づき最新データ更新時に自動的に時系列デー
タを作成する時系列表更新手段と、検索時点の付与に基
づき自動的に必要な時点の表内データを検索する時系列
表検索手段とを設けることにより、利用者はアプリケー
ションプログラム等に特別な制御を加えることなく、時
系列データを容易に採取し利用することができるという
効果が生じる。
Second, a time-series table defining means for automatically performing a definition necessary for managing the time-series data, and a method for automatically creating time-series data at the time of updating the latest data based on the assignment at the time of holding. By providing the sequence table updating means and the time series table search means for automatically searching the data in the table at the required time based on the assignment of the search time, the user can add no special control to the application program or the like. Thus, there is an effect that time series data can be easily collected and used.

【0120】第3に、最新データの更新時に時系列デー
タを保有することにより、リレーショナルデータベース
の最新データを更新する更新業務と、過去の時点の時系
列データを参照する統計業務とを並行して実施すること
ができる(データベースの更新業務を継続しながら過去
の複数時点におけるデータ内容を保存し参照することが
可能となる)ので、統計業務のためにオンライン情報処
理システムを停止する必要がなくなる(オンライン情報
処理システムの24時間運転が可能になる)という効果
が生じる。
Third, by retaining the time-series data at the time of updating the latest data, the update operation of updating the latest data of the relational database and the statistical operation of referring to the time-series data of the past time can be performed in parallel. (It is possible to save and refer to data contents at a plurality of points in the past while continuing to update the database), so that it is not necessary to stop the online information processing system for statistical work ( 24 hours operation of the online information processing system becomes possible).

【0121】なお、有効期間インデックスを設け、時系
列表内の最新データまたは時系列データの検索を有効期
間インデックス経由で行うことにより、時系列表内の不
要な時点のデータへのアクセスが発生しないため、最新
データと時系列データとを一元管理することによる性能
劣化(データ検索速度の低下)を防ぐこと(有効期間イ
ンデックスに非ユニークキーを設けると、このことはよ
り顕著になる)ができる。
By providing a validity period index and performing a search for the latest data or time-series data in the time-series table via the validity period index, access to data at an unnecessary point in the time-series table does not occur. For this reason, it is possible to prevent performance degradation (decrease in data search speed) due to centralized management of the latest data and time-series data (this is more remarkable when a non-unique key is provided in the validity period index).

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

【図1】本発明の第1の実施の形態および第2の実施の
形態に係る時系列データ管理方式の構成を示すブロック
図である。
FIG. 1 is a block diagram showing a configuration of a time-series data management system according to a first embodiment and a second embodiment of the present invention.

【図2】図1中の時系列表の詳細な構成を示す図であ
る。
FIG. 2 is a diagram showing a detailed configuration of a time series table in FIG.

【図3】図1中のユニークインデックス内の各エントリ
の詳細な構成を示す図である。
FIG. 3 is a diagram showing a detailed configuration of each entry in a unique index in FIG. 1;

【図4】本発明の第1の実施の形態における有効期間イ
ンデックス内の各エントリの詳細な構成を示す図であ
る。
FIG. 4 is a diagram showing a detailed configuration of each entry in a validity period index according to the first embodiment of the present invention.

【図5】本発明の第1の実施の形態における時系列表定
義手段の処理を示す流れ図である。
FIG. 5 is a flowchart showing processing of a time-series table definition unit according to the first embodiment of the present invention.

【図6】本発明の第1の実施の形態および第2の実施の
形態における時系列表更新手段の処理を示す流れ図であ
る。
FIG. 6 is a flowchart showing processing of a time-series table updating unit according to the first embodiment and the second embodiment of the present invention.

【図7】本発明の第1の実施の形態および第2の実施の
形態における時系列表更新手段の処理を示す流れ図であ
る。
FIG. 7 is a flowchart showing processing of a time-series table updating unit in the first embodiment and the second embodiment of the present invention.

【図8】本発明の第1の実施の形態および第2の実施の
形態における時系列表更新手段の処理を示す流れ図であ
る。
FIG. 8 is a flowchart showing processing of a time-series table updating unit in the first embodiment and the second embodiment of the present invention.

【図9】本発明の第1の実施の形態における時系列表検
索手段の処理を示す流れ図である。
FIG. 9 is a flowchart showing processing of a time-series table search unit according to the first embodiment of the present invention.

【図10】本発明の第2の実施の形態における有効期間
インデックス内の各エントリの詳細な構成を示す図であ
る。
FIG. 10 is a diagram showing a detailed configuration of each entry in a validity period index according to the second embodiment of the present invention.

【図11】本発明の第2の実施の形態における時系列表
定義手段の処理を示す流れ図である。
FIG. 11 is a flowchart showing processing of a time-series table definition unit according to the second embodiment of the present invention.

【図12】本発明の第2の実施の形態における時系列表
検索手段の処理を示す流れ図である。
FIG. 12 is a flowchart showing processing of a time-series table search unit according to the second embodiment of the present invention.

【図13】本発明の第3の実施の形態および第4の実施
の形態に係る時系列データ管理方式の構成を示すブロッ
ク図である。
FIG. 13 is a block diagram illustrating a configuration of a time-series data management system according to a third embodiment and a fourth embodiment of the present invention.

【図14】従来の時系列データ管理方式の一例の構成を
示すブロック図である。
FIG. 14 is a block diagram showing a configuration of an example of a conventional time-series data management method.

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

1 時系列定義手段 2 時系列表 3 最新データ 4 時系列データ 5 ユニークインデックス 6 有効期間インデックス 7 保有時点管理領域 8 時系列表更新手段 9 有効期間設定手段 10 時系列データ挿入手段 11 データ更新手段 12 時系列表検索手段 13 検索条件変更手段 14 データ検索手段 15 検索時点管理領域 21 終了時点列 22 開始時点列 23 ユーザデータ列 100 記録媒体 200 コンピュータ DESCRIPTION OF SYMBOLS 1 Time series definition means 2 Time series table 3 Latest data 4 Time series data 5 Unique index 6 Validity period index 7 Holding time management area 8 Time series table updating means 9 Validity period setting means 10 Time series data inserting means 11 Data updating means 12 Time series table search means 13 Search condition changing means 14 Data search means 15 Search time management area 21 End time string 22 Start time string 23 User data string 100 Recording medium 200 Computer

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 最新データと時系列データとを識別する
情報となりうる終了時点と開始時点とを持つ構造を有す
る最新データおよび時系列データを一元管理する時系列
表と、各エントリにユニークキーと終了時点とによって
形成される連結キーを備えて前記時系列表内の表内デー
タのアドレスを管理するユニークインデックスと、各エ
ントリに終了時点と開始時点とによって形成される連結
キーを備えて前記時系列表内の表内データのアドレスを
管理する有効期間インデックスと、前記時系列表の生成
が指示されると、ユーザデータ列に加えて開始時点列お
よび終了時点列を定義して前記時系列表の生成を行い、
終了時点および開始時点が定義された前記有効期間イン
デックスを生成し、終了時点の定義を含む前記ユニーク
インデックスを生成する時系列表定義手段と、保有時点
が指定された上で行われる最新データの挿入/更新/削
除指示に対して、当該指示および保有時点の値に基づく
時系列データの作成および前記時系列表への挿入を調整
した上で最新データの挿入/更新/削除を行い、上記の
処理を反映させて前記ユニークインデックスおよび前記
有効期間インデックスを更新する時系列表更新手段と、
検索時点が指定された上で行われる検索指示に対して、
検索時点と表内データの終了時点および開始時点とを考
慮して「特定の時点の表内データだけを選択するための
条件」を検索条件に追加し、前記ユニークインデックス
および前記有効期間インデックスを利用して当該検索条
件によって前記時系列表を検索する時系列表検索手段と
を有することを特徴とする時系列データ管理方式。
1. A time series table for centrally managing latest data and time series data having a structure having an end time and a start time which can be information for identifying the latest data and time series data, and a unique key for each entry. A unique index for managing an address of data in the table in the time-series table with a connection key formed by an end time, and a connection key formed by an end time and a start time for each entry. The validity period index for managing the address of the data in the table in the series table, and when the generation of the time series table is instructed, a start time column and an end time column are defined in addition to the user data column to define the time series table. And generate
A time-series table defining means for generating the validity index in which the end time and the start time are defined, and generating the unique index including the definition of the end time, and inserting the latest data performed when the holding time is specified In response to the / update / delete instruction, the latest data is inserted / updated / deleted after adjusting the creation of time-series data based on the instruction and the value at the time of holding and the insertion into the time-series table. A time-series table updating unit that updates the unique index and the validity period index by reflecting
In response to a search instruction given after the search time has been specified,
In consideration of the search time and the end time and start time of the in-table data, “condition for selecting only in-table data at a specific time” is added to the search condition, and the unique index and the validity period index are used. And a time-series table search means for searching the time-series table according to the search condition.
【請求項2】 データの有効期間を管理するための終了
時点および開始時点と利用者が任意に定義したユーザデ
ータとからなる構造を持つ最新データと、最新データと
同じ構造を持ち最新データの過去の時点におけるデータ
内容を保持する時系列データとを一元管理する時系列表
と、ユニークキーと終了時点とによって形成される連結
キーとその連結キーに対応する前記時系列表内の表内デ
ータのアドレスを管理するポインタ値とから構成される
エントリを保持するユニークインデックスと、終了時点
と開始時点とによって形成される連結キーとその連結キ
ーに対応する前記時系列表内の表内データのアドレスを
管理するポインタ値とから構成されるエントリを保持す
る有効期間インデックスと、前記時系列表内の時系列デ
ータを保有する基準となる保有時点を外部から指示する
ための領域である保有時点管理領域と、前記時系列表内
のどの時点の表内データを検索するかを示す検索時点を
外部から指示するための領域である検索時点管理領域
と、リレーショナルデータベースの表定義において前記
時系列表の生成が指示されると、利用者が任意に定義し
たユーザデータ列に加えて終了時点列および開始時点列
を定義して前記時系列表の生成を行い、終了時点と開始
時点との連結キーを各エントリ中に定義することにより
前記有効期間インデックスを生成し、ユニークキーを有
する各エントリの一部として終了時点の定義を追加して
前記ユニークインデックスを生成する時系列表定義手段
と、前記時系列表の最新データの挿入/更新/削除指示
に対して、当該最新データの挿入/更新時に前記保有時
点管理領域に指定された保有時点および「最新データで
あることを示す終了時点の値」を当該最新データの開始
時点および終了時点の値に設定し、当該最新データの更
新/削除時に前記時系列表に時系列データの挿入を行
い、当該挿入/更新/削除指示に応じた最新データの挿
入/更新/削除を行い、上記の処理を反映させて前記ユ
ニークインデックスおよび前記有効期間インデックスを
更新する時系列表更新手段と、前記時系列表の検索指示
に対して、前記検索時点管理領域に指定された検索時点
に基づいて「特定の時点の表内データだけを選択するた
めの条件」を検索条件に追加して前記時系列表を検索
し、当該検索に際して検索条件にユニークキーが含まれ
ている場合には前記ユニークインデックス内のユニーク
キーと終了時点との値を評価し、当該検索に際して検索
条件にユニークキーが含まれていない場合には前記有効
期間インデックス内の終了時点および開始時点の値を評
価する時系列表検索手段とを有することを特徴とする時
系列データ管理方式。
2. The latest data having a structure composed of an end time and a start time for managing the validity period of data and user data arbitrarily defined by a user, and the latest data having the same structure as the latest data and having the same structure as the latest data. A time series table for centrally managing the time series data holding the data contents at the point of time, a linked key formed by a unique key and an end point, and the in-table data in the time series table corresponding to the linked key. A unique index that holds an entry composed of a pointer value for managing an address, a concatenated key formed by an end point and a start point, and an address of in-table data in the time-series table corresponding to the concatenated key. A validity period index for holding entries composed of pointer values to be managed, and a reference for holding time-series data in the time-series table The holding time management area, which is an area for externally instructing the holding time, and an area for externally instructing a search time indicating which point in the time series table to search for in-table data. When the generation of the time series table is instructed in the search time management area and the table definition of the relational database, the end time column and the start time column are defined in addition to the user data columns arbitrarily defined by the user, and Generate a sequence table, generate the validity period index by defining a concatenated key between the end point and the start point in each entry, and add the definition of the end point as a part of each entry having a unique key. A time series table defining means for generating the unique index, and inserting / updating the latest data in response to an instruction to insert / update / delete the latest data in the time series table. The retention time specified in the retention time management area and the “end value indicating the latest data” are set to the start time and the end time of the latest data, and when the latest data is updated / deleted, The time series data is inserted into the time series table, the latest data is inserted / updated / deleted according to the insertion / update / deletion instruction, and the unique index and the validity period index are reflected by reflecting the above processing. A time-series table updating means for updating, and, in response to a search instruction of the time-series table, “conditions for selecting only in-table data at a specific time” based on a search time specified in the search time management area Is added to the search condition and the time-series table is searched. If the search condition includes a unique key in the search, the unique key in the unique index is A time-series table search unit that evaluates a value at the end point and evaluates values at the end point and the start point in the validity period index when the search condition does not include a unique key in the search. A time-series data management method characterized by the following.
【請求項3】 前記時系列表の最新データの挿入/更新
時に前記保有時点管理領域から保有時点を入力し、その
保有時点の値を挿入/更新対象の最新データの開始時点
に設定し、最大値を当該最新データの終了時点に設定す
る時系列表更新手段内の有効期間設定手段と、前記時系
列表の最新データの更新/削除時に、前記時系列表から
更新/削除前の当該最新データの内容を取得し、当該最
新データの開始時点と前記保有時点管理領域から取得し
た保有時点とを比較し、当該比較において保有時点の方
が大きい場合には更新/削除前の当該最新データの終了
時点に保有時点を設定したものを時系列データとして前
記時系列表に挿入する時系列表更新手段内の時系列デー
タ挿入手段と、前記時系列表の最新データの挿入/更新
/削除指示に対して、前記有効期間設定手段による最新
データの開始時点および終了時点への値の設定や前記時
系列データ挿入手段による前記時系列表への時系列デー
タの挿入の後に、当該最新データの挿入/更新/削除を
行い、上記の処理を反映させて前記ユニークインデック
スおよび前記有効期間インデックスを更新する時系列表
更新手段内のデータ更新手段と、前記検索時点管理領域
から検索時点を入力し、当該検索時点が最新データの検
索を指示する値でない場合には「開始時点が当該検索時
点の値以下でかつ終了時点が当該検索時点の値より大き
い」という条件を検索条件に追加し、当該検索時点が最
新データの検索を指示する値である場合には検索時点の
値を「最大値−1」として評価した上で「開始時点が当
該検索時点の値以下でかつ終了時点が当該検索時点の値
より大きい」という条件を検索条件に追加する時系列表
検索手段内の検索条件変更手段と、前記時系列表の検索
指示に対して、前記検索条件変更手段により条件が追加
された検索条件によって前記時系列表を検索し、当該検
索条件を満たす表内データを前記時系列表から検出する
時系列表検索手段内のデータ検索手段とを有することを
特徴とする請求項2記載の時系列データ管理方式。
3. When the latest data of the time series table is inserted / updated, a holding time is input from the holding time management area, and the value of the holding time is set as a start time of the latest data to be inserted / updated. Validity period setting means in the time series table updating means for setting a value to the end point of the latest data, and updating / deleting the latest data of the time series table, the latest data before updating / deleting from the time series table. And comparing the start time of the latest data with the holding time obtained from the holding time management area. If the holding time is larger in the comparison, the end of the latest data before update / deletion is obtained. A time-series data inserting unit in the time-series table updating unit for inserting the holding time set at the time as the time-series data into the time-series table, and responding to an instruction to insert / update / delete the latest data in the time-series table. hand After the setting of the values at the start and end points of the latest data by the validity period setting means and the insertion of the time series data into the time series table by the time series data insertion means, the insertion / update / update of the latest data is performed. Data is deleted in the time series table updating means for updating the unique index and the validity period index by reflecting the above processing, and a search time is input from the search time management area, and the search time is If the value is not a value instructing the search for the latest data, a condition that “the start time is equal to or less than the value at the search time and the end time is greater than the value at the search time” is added to the search condition, and the search time is If the value instructs the search, the value at the search time is evaluated as “maximum value−1”, and then “the start time is less than or equal to the value at the search time and the end time is A search condition changing means in the time series table search means for adding a condition "larger than the value at the time of the search" to the search conditions, and a condition is added by the search condition changing means to the search instruction of the time series table. 3. A data search means in a time series table search means for searching the time series table according to the search condition, and detecting in-table data satisfying the search condition from the time series table. Time series data management method.
【請求項4】 データの有効期間を管理するための終了
時点および開始時点と利用者が任意に定義したユーザデ
ータとからなる構造を持つ最新データと、最新データと
同じ構造を持ち最新データの過去の時点におけるデータ
内容を保持する時系列データとを一元管理する時系列表
と、ユニークキーと終了時点とによって形成される連結
キーとその連結キーに対応する前記時系列表内の表内デ
ータのアドレスを管理するポインタ値とから構成される
エントリを保持するユニークインデックスと、終了時点
および開始時点と利用者の任意の定義によって設定され
る非ユニークキーとによって形成される連結キーとその
連結キーに対応する前記時系列表内の表内データのアド
レスを管理するポインタ値とから構成されるエントリを
保持する有効期間インデックスと、前記時系列表内の時
系列データを保有する基準となる保有時点を外部から指
示するための領域である保有時点管理領域と、前記時系
列表内のどの時点の表内データを検索するかを示す検索
時点を外部から指示するための領域である検索時点管理
領域と、リレーショナルデータベースの表定義において
前記時系列表の生成が指示されると、利用者が任意に定
義したユーザデータ列に加えて終了時点列および開始時
点列を定義して前記時系列表の生成を行い、終了時点と
開始時点と非ユニークキーとの連結キーを各エントリ中
に定義することにより前記有効期間インデックスを生成
し、ユニークキーを有する各エントリの一部として終了
時点の定義を追加して前記ユニークインデックスを生成
する時系列表定義手段と、前記時系列表の最新データの
挿入/更新/削除指示に対して、当該最新データの挿入
/更新時に前記保有時点管理領域に指定された保有時点
および「最新データであることを示す終了時点の値」を
当該最新データの開始時点および終了時点の値に設定
し、当該最新データの更新/削除時に前記時系列表に時
系列データの挿入を行い、当該挿入/更新/削除指示に
応じた最新データの挿入/更新/削除を行い、上記の処
理を反映させて前記ユニークインデックスおよび前記有
効期間インデックスを更新する時系列表更新手段と、前
記時系列表の検索指示に対して、前記検索時点管理領域
に指定された検索時点に基づいて「特定の時点の表内デ
ータだけを選択するための条件」を検索条件に追加して
前記時系列表を検索し、当該検索に際して検索条件にユ
ニークキーが含まれている場合には前記ユニークインデ
ックス内のユニークキーと終了時点との値を評価し、当
該検索に際して検索条件にユニークキーが含まれていな
い場合には前記有効期間インデックス内の非ユニークキ
ー,終了時点および開始時点の値を評価する時系列表検
索手段とを有することを特徴とする時系列データ管理方
式。
4. The latest data having a structure composed of an end time and a start time for managing the validity period of data and user data arbitrarily defined by a user, and the latest data having the same structure as the latest data and having the same structure as the latest data. A time series table for centrally managing the time series data holding the data contents at the point of time, a linked key formed by a unique key and an end point, and the in-table data in the time series table corresponding to the linked key. A unique index that holds an entry consisting of a pointer value that manages an address, a concatenated key formed by an end time, a start time, and a non-unique key set by a user's arbitrary definition and its concatenated key A validity period holding an entry composed of a pointer value for managing the address of the in-table data in the corresponding time-series table. Index, a holding time management area which is an area for externally indicating a holding time as a reference for holding the time series data in the time series table, and searching data in the table at any time in the time series table. A search time point management area, which is an area for externally instructing a search time point indicating whether or not to perform, and when generation of the time series table is instructed in the table definition of the relational database, a user data string arbitrarily defined by a user In addition to the end time column and the start time column, the time series table is generated by defining the end time column and the start time column, and the validity index is defined by defining a connection key of the end time, the start time, and the non-unique key in each entry. A time-series table defining means for generating and adding the end point definition as part of each entry having a unique key to generate the unique index; In response to the latest data insertion / update / deletion instruction, the retention time specified in the retention time management area and the “end value indicating the latest data” at the time of insertion / update of the latest data are updated to the latest data. The values are set at the start time and end time of the data, time-series data is inserted into the time-series table when the latest data is updated / deleted, and the latest data is inserted / updated according to the insertion / update / deletion instruction. And a time-series table updating means for performing / deleting and updating the unique index and the validity period index by reflecting the above-mentioned processing, and a time-series table search instruction specified in the search time management area in response to the time-series table search instruction. Based on the search time point, “conditions for selecting only the data in the table at a specific time point” is added to the search conditions to search the time-series table. If a unique key is included, the value of the unique key in the unique index and the value of the end time are evaluated. A time-series data management method, comprising: a time-series table search means for evaluating values of a key, an end point, and a start point.
【請求項5】 前記時系列表の最新データの挿入/更新
時に前記保有時点管理領域から保有時点を入力し、その
保有時点の値を挿入/更新対象の最新データの開始時点
に設定し、最大値を当該最新データの終了時点に設定す
る時系列表更新手段内の有効期間設定手段と、前記時系
列表の最新データの更新/削除時に、前記時系列表から
更新/削除前の当該最新データの内容を取得し、当該最
新データの開始時点と前記保有時点管理領域から取得し
た保有時点とを比較し、当該比較において保有時点の方
が大きい場合には更新/削除前の当該最新データの終了
時点に保有時点を設定したものを時系列データとして前
記時系列表に挿入する時系列表更新手段内の時系列デー
タ挿入手段と、前記時系列表の最新データの挿入/更新
/削除指示に対して、前記有効期間設定手段による最新
データの開始時点および終了時点への値の設定や前記時
系列データ挿入手段による前記時系列表への時系列デー
タの挿入の後に、当該最新データの挿入/更新/削除を
行い、上記の処理を反映させて前記ユニークインデック
スおよび前記有効期間インデックスを更新する時系列表
更新手段内のデータ更新手段と、前記検索時点管理領域
から検索時点を入力し、当該検索時点が最新データの検
索を指示する値でない場合には「開始時点が当該検索時
点の値以下でかつ終了時点が当該検索時点の値より大き
い」という条件を検索条件に追加し、当該検索時点が最
新データの検索を指示する値である場合には検索時点の
値を「最大値−1」として評価した上で「開始時点が当
該検索時点の値以下でかつ終了時点が当該検索時点の値
より大きい」という条件を検索条件に追加する時系列表
検索手段内の検索条件変更手段と、前記時系列表の検索
指示に対して、前記検索条件変更手段により条件が追加
された検索条件によって前記時系列表を検索し、当該検
索条件を満たす表内データを前記時系列表から検出する
時系列表検索手段内のデータ検索手段とを有することを
特徴とする請求項4記載の時系列データ管理方式。
5. When the latest data of the time series table is inserted / updated, a holding time is input from the holding time management area, and the value of the holding time is set as a start time of the latest data to be inserted / updated. Validity period setting means in the time series table updating means for setting a value to the end point of the latest data, and updating / deleting the latest data of the time series table, the latest data before updating / deleting from the time series table. And comparing the start time of the latest data with the holding time obtained from the holding time management area. If the holding time is larger in the comparison, the end of the latest data before update / deletion is obtained. A time-series data inserting unit in the time-series table updating unit for inserting the holding time set at the time as the time-series data into the time-series table, and responding to an instruction to insert / update / delete the latest data in the time-series table. hand After the setting of the values at the start and end points of the latest data by the validity period setting means and the insertion of the time series data into the time series table by the time series data insertion means, the insertion / update / update of the latest data is performed. Data is deleted in the time series table updating means for updating the unique index and the validity period index by reflecting the above processing, and a search time is input from the search time management area, and the search time is If the value is not a value instructing the search for the latest data, a condition that “the start time is equal to or less than the value at the search time and the end time is greater than the value at the search time” is added to the search condition, and the search time is If the value instructs the search, the value at the search time is evaluated as “maximum value−1”, and then “the start time is less than or equal to the value at the search time and the end time is A search condition changing means in the time series table search means for adding a condition "larger than the value at the time of the search" to the search conditions, and a condition is added by the search condition changing means to the search instruction of the time series table. 5. A data search means in a time series table search means for searching the time series table according to the search condition and detecting in-table data satisfying the search condition from the time series table. Time series data management method.
【請求項6】 データの有効期間を管理するための終了
時点および開始時点と利用者が任意に定義したユーザデ
ータとからなる構造を持つ最新データと、最新データと
同じ構造を持ち最新データの過去の時点におけるデータ
内容を保持する時系列データとを一元管理する時系列
表,ユニークキーと終了時点とによって形成される連結
キーとその連結キーに対応する前記時系列表内の表内デ
ータのアドレスを管理するポインタ値とから構成される
エントリを保持するユニークインデックス,終了時点と
開始時点とによって形成される連結キーとその連結キー
に対応する前記時系列表内の表内データのアドレスを管
理するポインタ値とから構成されるエントリを保持する
有効期間インデックス,前記時系列表内の時系列データ
を保有する基準となる保有時点を外部から指示するため
の領域である保有時点管理領域,ならびに前記時系列表
内のどの時点の表内データを検索するかを示す検索時点
を外部から指示するための領域である検索時点管理領域
を有する情報処理システムにおいて、コンピュータを、
リレーショナルデータベースの表定義において前記時系
列表の生成が指示されると、利用者が任意に定義したユ
ーザデータ列に加えて終了時点列および開始時点列を定
義して前記時系列表の生成を行い、終了時点と開始時点
との連結キーを各エントリ中に定義することにより前記
有効期間インデックスを生成し、ユニークキーを有する
各エントリの一部として終了時点の定義を追加して前記
ユニークインデックスを生成する時系列表定義手段,前
記時系列表の最新データの挿入/更新/削除指示に対し
て、当該最新データの挿入/更新時に前記保有時点管理
領域に指定された保有時点および「最新データであるこ
とを示す終了時点の値」を当該最新データの開始時点お
よび終了時点の値に設定し、当該最新データの更新/削
除時に前記時系列表に時系列データの挿入を行い、当該
挿入/更新/削除指示に応じた最新データの挿入/更新
/削除を行い、上記の処理を反映させて前記ユニークイ
ンデックスおよび前記有効期間インデックスを更新する
時系列表更新手段,ならびに前記時系列表の検索指示に
対して、前記検索時点管理領域に指定された検索時点に
基づいて「特定の時点の表内データだけを選択するため
の条件」を検索条件に追加して前記時系列表を検索し、
当該検索に際して検索条件にユニークキーが含まれてい
る場合には前記ユニークインデックス内のユニークキー
と終了時点との値を評価し、当該検索に際して検索条件
にユニークキーが含まれていない場合には前記有効期間
インデックス内の終了時点および開始時点の値を評価す
る時系列表検索手段として機能させるためのプログラム
を記録した記録媒体。
6. The latest data having a structure composed of an end time and a start time for managing the validity period of data and user data arbitrarily defined by a user, and the latest data having the same structure as the latest data and having the same structure as the latest data. A time series table for centrally managing the time series data holding the data contents at the time point, a connection key formed by the unique key and the end time, and the address of the data in the table in the time series table corresponding to the connection key A unique index that holds an entry composed of a pointer value that manages a link key, a link key formed by an end point and a start point, and an address of data in the time series table corresponding to the link key. Validity index holding an entry composed of a pointer value and a reference for holding time-series data in the time-series table Retention time management area, which is an area for externally instructing the retention time, and search time, which is an area for externally instructing the retrieval time indicating which point in the time series table to retrieve in-table data, In an information processing system having a management area, a computer is
When the generation of the time series table is instructed in the table definition of the relational database, the end time column and the start time column are defined in addition to the user data columns arbitrarily defined by the user, and the time series table is generated. Generating the validity index by defining a concatenated key between the end point and the start point in each entry, and adding the end point definition as part of each entry having a unique key to generate the unique index The time-series table defining means performs the insertion / update / deletion instruction of the latest data in the time-series table, and the holding time specified in the holding time management area at the time of the insertion / update of the latest data and “the latest data. At the end of the latest data ”is set to the values at the start and end of the latest data. Time series data is inserted, the latest data is inserted / updated / deleted according to the insertion / update / deletion instruction, and the unique index and the validity period index are updated by reflecting the above processing. In response to the table update means and the search instruction of the time-series table, based on the search time point specified in the search time point management area, a "condition for selecting only the data in the table at a specific time point" is set as a search condition. Add and search the time series table,
When the search condition includes the unique key in the search condition, the value of the unique key in the unique index and the end time are evaluated. When the search condition does not include the unique key in the search, A recording medium that records a program for functioning as a time-series table search unit that evaluates values of an end point and a start point in a validity period index.
【請求項7】 コンピュータを、前記時系列表の最新デ
ータの挿入/更新時に前記保有時点管理領域から保有時
点を入力し、その保有時点の値を挿入/更新対象の最新
データの開始時点に設定し、最大値を当該最新データの
終了時点に設定する時系列表更新手段内の有効期間設定
手段,前記時系列表の最新データの更新/削除時に、前
記時系列表から更新/削除前の当該最新データの内容を
取得し、当該最新データの開始時点と前記保有時点管理
領域から取得した保有時点とを比較し、当該比較におい
て保有時点の方が大きい場合には更新/削除前の当該最
新データの終了時点に保有時点を設定したものを時系列
データとして前記時系列表に挿入する時系列表更新手段
内の時系列データ挿入手段,前記時系列表の最新データ
の挿入/更新/削除指示に対して、前記有効期間設定手
段による最新データの開始時点および終了時点への値の
設定や前記時系列データ挿入手段による前記時系列表へ
の時系列データの挿入の後に、当該最新データの挿入/
更新/削除を行い、上記の処理を反映させて前記ユニー
クインデックスおよび前記有効期間インデックスを更新
する時系列表更新手段内のデータ更新手段,前記検索時
点管理領域から検索時点を入力し、当該検索時点が最新
データの検索を指示する値でない場合には「開始時点が
当該検索時点の値以下でかつ終了時点が当該検索時点の
値より大きい」という条件を検索条件に追加し、当該検
索時点が最新データの検索を指示する値である場合には
検索時点の値を「最大値−1」として評価した上で「開
始時点が当該検索時点の値以下でかつ終了時点が当該検
索時点の値より大きい」という条件を検索条件に追加す
る時系列表検索手段内の検索条件変更手段,ならびに前
記時系列表の検索指示に対して、前記検索条件変更手段
により条件が追加された検索条件によって前記時系列表
を検索し、当該検索条件を満たす表内データを前記時系
列表から検出する時系列表検索手段内のデータ検索手段
として機能させるためのプログラムを記録した請求項6
記載の記録媒体。
7. A computer inputs a holding time from the holding time management area when inserting / updating the latest data of the time series table, and sets a value of the holding time as a start time of the latest data to be inserted / updated. The validity period setting means in the time series table updating means for setting the maximum value to the end point of the latest data, when updating / deleting the latest data of the time series table, The content of the latest data is obtained, and the start time of the latest data is compared with the holding time obtained from the holding time management area. If the holding time is larger in the comparison, the latest data before update / deletion is obtained. Time-series data inserting means in the time-series table updating means for inserting the holding time at the end point of the time series data as time-series data into the time-series table updating means, and inserting / updating / deleting the latest data in the time-series table In response to the instruction, after setting the values to the start time and end time of the latest data by the validity period setting means and inserting time-series data into the time-series table by the time-series data insertion means, Insert /
Data is updated / deleted and the unique index and the validity period index are updated by reflecting the above processing. The data updating means in the time series table updating means, and a search time point is inputted from the search time point management area, and the search time point is inputted. Is not a value instructing the search for the latest data, a condition that “the start time is equal to or less than the value at the search time and the end time is greater than the value at the search time” is added to the search condition, and the search time is If the value indicates a data search, the value at the search time is evaluated as “maximum value−1”, and then “the start time is equal to or less than the value at the search time and the end time is greater than the value at the search time” "Is added to the search condition by the search condition changing means in the time series table search means, and the search condition changing means adds the condition to the search instruction of the time series table. A program for causing the time-series table to be searched according to the searched search condition and for functioning as a data search unit in a time-series table search unit that detects in-table data satisfying the search condition from the time-series table. 6
The recording medium according to the above.
【請求項8】 データの有効期間を管理するための終了
時点および開始時点と利用者が任意に定義したユーザデ
ータとからなる構造を持つ最新データと、最新データと
同じ構造を持ち最新データの過去の時点におけるデータ
内容を保持する時系列データとを一元管理する時系列
表,ユニークキーと終了時点とによって形成される連結
キーとその連結キーに対応する前記時系列表内の表内デ
ータのアドレスを管理するポインタ値とから構成される
エントリを保持するユニークインデックス,終了時点お
よび開始時点と利用者の任意の定義によって設定される
非ユニークキーとによって形成される連結キーとその連
結キーに対応する前記時系列表内の表内データのアドレ
スを管理するポインタ値とから構成されるエントリを保
持する有効期間インデックス,前記時系列表内の時系列
データを保有する基準となる保有時点を外部から指示す
るための領域である保有時点管理領域,ならびに前記時
系列表内のどの時点の表内データを検索するかを示す検
索時点を外部から指示するための領域である検索時点管
理領域を有する情報処理システムにおいて、コンピュー
タを、リレーショナルデータベースの表定義において前
記時系列表の生成が指示されると、利用者が任意に定義
したユーザデータ列に加えて終了時点列および開始時点
列を定義して前記時系列表の生成を行い、終了時点と開
始時点と非ユニークキーとの連結キーを各エントリ中に
定義することにより前記有効期間インデックスを生成
し、ユニークキーを有する各エントリの一部として終了
時点の定義を追加して前記ユニークインデックスを生成
する時系列表定義手段,前記時系列表の最新データの挿
入/更新/削除指示に対して、当該最新データの挿入/
更新時に前記保有時点管理領域に指定された保有時点お
よび「最新データであることを示す終了時点の値」を当
該最新データの開始時点および終了時点の値に設定し、
当該最新データの更新/削除時に前記時系列表に時系列
データの挿入を行い、当該挿入/更新/削除指示に応じ
た最新データの挿入/更新/削除を行い、上記の処理を
反映させて前記ユニークインデックスおよび前記有効期
間インデックスを更新する時系列表更新手段,ならびに
前記時系列表の検索指示に対して、前記検索時点管理領
域に指定された検索時点に基づいて「特定の時点の表内
データだけを選択するための条件」を検索条件に追加し
て前記時系列表を検索し、当該検索に際して検索条件に
ユニークキーが含まれている場合には前記ユニークイン
デックス内のユニークキーと終了時点との値を評価し、
当該検索に際して検索条件にユニークキーが含まれてい
ない場合には前記有効期間インデックス内の非ユニーク
キー,終了時点および開始時点の値を評価する時系列表
検索手段として機能させるためのプログラムを記録した
記録媒体。
8. The latest data having a structure composed of an end time and a start time for managing a validity period of data and user data arbitrarily defined by a user, and the latest data having the same structure as the latest data and having the same structure as the latest data. A time series table for centrally managing the time series data holding the data contents at the time point, a connection key formed by the unique key and the end time, and the address of the data in the table in the time series table corresponding to the connection key Unique index that holds an entry consisting of a pointer value that manages a link key, a link key formed by an end time, a start time, and a non-unique key set by an arbitrary definition of a user, and a key corresponding to the link key Validity period index holding an entry consisting of a pointer value for managing the address of the data in the table in the time series table. Search for a holding time management area, which is an area for externally indicating a holding time as a reference for holding the time series data in the time series table, and data in the table at any time in the time series table. In an information processing system having a search time point management area that is an area for externally indicating a search time point indicating whether a computer is instructed to generate the time series table in the table definition of the relational database, The time series table is generated by defining an end time column and a start time column in addition to an arbitrarily defined user data column, and a connection key of the end time, the start time, and the non-unique key is defined in each entry. Thus, the validity period index is generated, and a definition of an end point is added as a part of each entry having a unique key, thereby defining the unique index. Sequence table definition means when generating a box for insert / update / delete command of the most recent data of the time series table of the latest data insertion /
At the time of update, the holding time specified in the holding time management area and the `` end time value indicating the latest data '' are set to the start time and end time values of the latest data,
When the latest data is updated / deleted, time-series data is inserted into the time-series table, and the latest data is inserted / updated / deleted in accordance with the insertion / update / deletion instruction. The time-series table updating means for updating the unique index and the validity period index, and in response to a search instruction of the time-series table, "data in the table at a specific time point" based on a search time point specified in the search time point management area. Condition for selecting only) is added to the search condition and the time-series table is searched.If the search condition includes a unique key in the search, the unique key in the unique index, the end time, Evaluates the value of
If a unique key is not included in the search condition at the time of the search, a program for functioning as a time-series table search means for evaluating the values of the non-unique key in the validity period index, the end time, and the start time is recorded. recoding media.
【請求項9】 コンピュータを、前記時系列表の最新デ
ータの挿入/更新時に前記保有時点管理領域から保有時
点を入力し、その保有時点の値を挿入/更新対象の最新
データの開始時点に設定し、最大値を当該最新データの
終了時点に設定する時系列表更新手段内の有効期間設定
手段,前記時系列表の最新データの更新/削除時に、前
記時系列表から更新/削除前の当該最新データの内容を
取得し、当該最新データの開始時点と前記保有時点管理
領域から取得した保有時点とを比較し、当該比較におい
て保有時点の方が大きい場合には更新/削除前の当該最
新データの終了時点に保有時点を設定したものを時系列
データとして前記時系列表に挿入する時系列表更新手段
内の時系列データ挿入手段,前記時系列表の最新データ
の挿入/更新/削除指示に対して、前記有効期間設定手
段による最新データの開始時点および終了時点への値の
設定や前記時系列データ挿入手段による前記時系列表へ
の時系列データの挿入の後に、当該最新データの挿入/
更新/削除を行い、上記の処理を反映させて前記ユニー
クインデックスおよび前記有効期間インデックスを更新
する時系列表更新手段内のデータ更新手段,前記検索時
点管理領域から検索時点を入力し、当該検索時点が最新
データの検索を指示する値でない場合には「開始時点が
当該検索時点の値以下でかつ終了時点が当該検索時点の
値より大きい」という条件を検索条件に追加し、当該検
索時点が最新データの検索を指示する値である場合には
検索時点の値を「最大値−1」として評価した上で「開
始時点が当該検索時点の値以下でかつ終了時点が当該検
索時点の値より大きい」という条件を検索条件に追加す
る時系列表検索手段内の検索条件変更手段,ならびに前
記時系列表の検索指示に対して、前記検索条件変更手段
により条件が追加された検索条件によって前記時系列表
を検索し、当該検索条件を満たす表内データを前記時系
列表から検出する時系列表検索手段内のデータ検索手段
として機能させるためのプログラムを記録した請求項8
記載の記録媒体。
9. The computer inputs a holding time from the holding time management area when inserting / updating the latest data of the time series table, and sets a value of the holding time as a start time of the latest data to be inserted / updated. The validity period setting means in the time series table updating means for setting the maximum value to the end point of the latest data, when updating / deleting the latest data of the time series table, The content of the latest data is obtained, and the start time of the latest data is compared with the holding time obtained from the holding time management area. If the holding time is larger in the comparison, the latest data before update / deletion is obtained. Time-series data inserting means in the time-series table updating means for inserting the holding time at the end point of the time series data as time-series data into the time-series table updating means, and inserting / updating / deleting the latest data in the time-series table In response to the instruction, after setting the values to the start time and end time of the latest data by the validity period setting means and inserting time-series data into the time-series table by the time-series data insertion means, Insert /
Data is updated / deleted and the unique index and the validity period index are updated by reflecting the above processing. The data updating means in the time series table updating means, and a search time point is inputted from the search time point management area, and the search time point is inputted. Is not a value instructing the search for the latest data, a condition that “the start time is equal to or less than the value at the search time and the end time is greater than the value at the search time” is added to the search condition, and the search time is If the value indicates a data search, the value at the search time is evaluated as “maximum value−1”, and then “the start time is equal to or less than the value at the search time and the end time is greater than the value at the search time” "Is added to the search condition by the search condition changing means in the time series table search means, and the search condition changing means adds the condition to the search instruction of the time series table. A program for causing the time-series table to be searched according to the searched search condition and for functioning as a data search unit in a time-series table search unit that detects in-table data satisfying the search condition from the time-series table. 8
The recording medium according to the above.
JP10231350A 1998-08-18 1998-08-18 Time series data management system Pending JP2000066933A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10231350A JP2000066933A (en) 1998-08-18 1998-08-18 Time series data management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10231350A JP2000066933A (en) 1998-08-18 1998-08-18 Time series data management system

Publications (1)

Publication Number Publication Date
JP2000066933A true JP2000066933A (en) 2000-03-03

Family

ID=16922254

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10231350A Pending JP2000066933A (en) 1998-08-18 1998-08-18 Time series data management system

Country Status (1)

Country Link
JP (1) JP2000066933A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007140821A (en) * 2005-11-17 2007-06-07 Mitsubishi Electric Corp Data management device, data management method and data management program
JP2012038178A (en) * 2010-08-10 2012-02-23 Yahoo Japan Corp Data processing apparatus, method, and program
US11182364B2 (en) 2018-03-13 2021-11-23 Hitachi, Ltd. Data analysis support apparatus and data analysis support method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007140821A (en) * 2005-11-17 2007-06-07 Mitsubishi Electric Corp Data management device, data management method and data management program
JP2012038178A (en) * 2010-08-10 2012-02-23 Yahoo Japan Corp Data processing apparatus, method, and program
US11182364B2 (en) 2018-03-13 2021-11-23 Hitachi, Ltd. Data analysis support apparatus and data analysis support method

Similar Documents

Publication Publication Date Title
US9149054B2 (en) Prefix-based leaf node storage for database system
US5590320A (en) Computer file directory system
US20160283501A1 (en) Posix-compatible file system, method of creating a file list and storage device
JPH0519175B2 (en)
JP2009522677A (en) Method, system, and device for file system dump / restore by node numbering
JP4825719B2 (en) Fast file attribute search
JP2018530838A (en) Cache optimization for data preparation
US7319653B2 (en) Methods for recording data to optical media
US7797290B2 (en) Database reorganization program and method
JP2000066933A (en) Time series data management system
KR100570428B1 (en) Data storage method in file system using grouping
JPH05151056A (en) Data controller
JP3005476B2 (en) Dynamic change system of hash table
JP2822869B2 (en) Library file management device
JP3178671B2 (en) File system and its file recovery method
JP2000132439A (en) System for retrieving file stored in hard disk of personal computer
JP2002041567A (en) Database managing method, device for executing the same, and recording medium on which processing program therefor is recorded
KR100319773B1 (en) Method for controlling cursor on navigation-based dataset
JP3016255B2 (en) Database management system
JPH08328929A (en) Database split management system
JPH1196058A (en) Method and device for constructing t tree index and storage medium storing t tree index constructing program
JPH11353212A (en) Method and device for managing member in area sharing file
JP2003022202A (en) Method for managing records, its executing device and its processing program
JPH04250568A (en) Record retrieval device
JP2000298668A (en) Device and method for storing information of information retrieval system