JPH07117960B2 - Data retrieval processing method - Google Patents
Data retrieval processing methodInfo
- Publication number
- JPH07117960B2 JPH07117960B2 JP61002953A JP295386A JPH07117960B2 JP H07117960 B2 JPH07117960 B2 JP H07117960B2 JP 61002953 A JP61002953 A JP 61002953A JP 295386 A JP295386 A JP 295386A JP H07117960 B2 JPH07117960 B2 JP H07117960B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- search
- key
- time
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
【発明の詳細な説明】 〔概要〕 本発明は、データの作成時刻をキーとして保持するデー
タベースの検索制御方式に関する。検索キーとデータの
キーとの時刻値が一致しなくても、キー値が指定時刻を
含む所定長の期間内にあれば、そのデータを検索目標の
データとして出力する。本方式により、正確な作成時刻
を知らなくても、必要なデータを容易に検索することが
できる。DETAILED DESCRIPTION [Outline] The present invention relates to a search control method for a database that holds a creation time of data as a key. Even if the time values of the search key and the data key do not match, if the key value is within a predetermined length of time including the specified time, that data is output as the search target data. With this method, it is possible to easily retrieve the necessary data without knowing the exact creation time.
本発明は、情報処理システムにおける、データベースの
データ検索制御方式に係り、特にデータの作成時刻をキ
ーとして保持するデータベースの検索を容易にするため
の制御方式に関する。The present invention relates to a database data search control system in an information processing system, and more particularly to a control system for facilitating a database search that holds a data creation time as a key.
例えば人工衛星によって採取される気象情報のデータ
は、例えば6時間を基準間隔として、その間隔ごとに採
取するデータを情報処理システムへ入力し、情報処理シ
ステムでは、これをデータ作成時刻をキーとして、気象
データベースに格納し、各種の処理の要求によるデータ
検索に応じて、データを供給できるようにする。For example, for the weather information data collected by an artificial satellite, for example, 6 hours is set as a reference interval, and the data collected at each interval is input to the information processing system. In the information processing system, the data creation time is used as a key. Stored in a weather database so that data can be supplied in response to data retrieval by various processing requests.
前記例の気象データのような場合に、データの作成間隔
として、例えば6時間を基準値として定めるが、基準時
刻に対して、作成が例えば前後30分程度ずれることは差
支えないので、このデータ作成を他に優先させて作成時
刻を厳守するというような制御にはなっていない。この
ために、各種要因によってデータ作成時刻は変動する。In the case of the meteorological data of the above example, the data creation interval is set to, for example, 6 hours as a reference value, but the creation may be shifted from the reference time by, for example, about 30 minutes, so this data creation Is not prioritized over others to strictly adhere to the creation time. Therefore, the data creation time fluctuates due to various factors.
情報処理システムでは、このデータを受け取ってデータ
ベースに格納するとき、その時刻を読み取って、該時刻
データをそのデータのキーとするように処理する。In the information processing system, when this data is received and stored in the database, the time is read and the time data is processed as a key of the data.
このキーとする時刻値は、各種の処理用途に対応できる
ように、例えば秒単位の精度の正確な時刻記録となるよ
うにする必要がある。The time value used as this key needs to be an accurate time record with an accuracy of, for example, seconds so that it can be used for various processing applications.
従って検索においては、データ作成時刻を知って、所定
データの作成時刻と一致する時刻値を検索キーとして指
定するか、ある時刻からある時刻までというような形で
期間を指定して検索要求しなければならない。Therefore, in searching, you must know the data creation time and specify a time value that matches the creation time of the specified data as a search key, or specify a period such as from a certain time to a certain time to request a search. I have to.
しかし、処理上から正確な作成時刻を必要としない処理
も多く、そのような処理においても、データ作成時刻を
知って正確に検索キー値を指定するか、又は期間を指定
するような複合的な検索条件にしなければ目的のデータ
を使用できないことは、いたずらに処理を煩雑にすると
いう問題があった。However, there are many processes that do not require an accurate creation time from the viewpoint of processing, and even in such a process, it is possible to specify the search key value accurately by knowing the data creation time or to specify a complex period. There is a problem that the target data cannot be used unless the search condition is set, which unnecessarily complicates the processing.
図は本発明の処理の流れ図である。 The figure is a flow chart of the process of the present invention.
図は情報処理システムの検索処理の流れを示し、1、2
は検索キー入力を受け取り、時刻値を所定数値形式に変
換する処理ステップ、3は指定時刻から所定の幅の期間
の両端時刻値を決定する処理ステップ、4は検索条件を
キー値の一致から、キー値の範囲の指定へ修正する処理
ステップ、5はデータ検索の処理ステップである。The figure shows the flow of search processing of the information processing system.
Is a processing step for receiving a search key input and converting a time value into a predetermined numerical value format, 3 is a processing step for determining both end time values within a predetermined width period from a designated time, and 4 is a search condition based on matching of key values, The processing steps 5 for correcting the specification of the range of key values are the processing steps for data retrieval.
情報処理システムにおいて、例えばデータ検索処理プロ
グラムが、処理ステップ1で従来と同様の検索要求を利
用者のプログラム等から受け取り、検索キーとして時刻
値が指定される。In the information processing system, for example, the data search processing program receives a search request similar to the conventional one from the user's program or the like in processing step 1, and a time value is designated as a search key.
処理ステップ2で、入力検索キーの時刻値を、キー値と
して所定の時刻値形式に変換した検索キー値を得る。In processing step 2, the time value of the input search key is converted into a predetermined time value format as a key value to obtain a search key value.
処理ステップ3で、この検索キー値から所定の時間を減
じた最小時刻値と、所定の時間を増加した最大時刻値と
を作成する。In processing step 3, a minimum time value obtained by subtracting a predetermined time from the search key value and a maximum time value obtained by increasing the predetermined time are created.
処理ステップ4で、上記の最小時刻値以上で最大時刻値
以下のキーを検索するように修正した検索条件を生成す
る。In processing step 4, a search condition modified to search for a key that is equal to or greater than the minimum time value and equal to or less than the maximum time value is generated.
処理ステップ5は従来と同様のデータ検索機能であり、
上記の修正した検索条件によってデータ検索を実行す
る。The processing step 5 is the same data search function as the conventional one,
A data search is executed according to the above modified search conditions.
以上の制御方式により、データの利用者は、検索キーに
所要のデータのキー値を正確に指定する必要が無く、例
えば所要の基準時刻のみを指定することにより、その基
準時刻を目標に、その前後に作成されたデータを検索す
ることができる。With the above control method, the user of the data does not need to accurately specify the key value of the required data in the search key.For example, by designating only the required reference time, the reference time is set as the target You can search the data created before and after.
本発明を実施する場合、データ検索をキー値の一致では
なく、大小比較によって行うことが多くなるので、キー
とする時刻値を計算し易い形式にすることが望ましい。When the present invention is implemented, it is often the case that the data search is performed not by the matching of the key values but by the magnitude comparison. Therefore, it is desirable to make the time value used as the key easy to calculate.
そのために例えば、日付を1900年1月1日からの日数で
示す、公知の平均ユリウス日(MJD)で表現し、1日内
の時刻を日を単位とする小数で表すことにより、年月日
を含む例えば秒までの精度の時刻値を、1個の実数値と
して表現する。このようにした場合、情報処理システム
内のキー値は、例えば64ビット(8バイト)程度の長さ
で表される実数となる。Therefore, for example, the date is represented by the publicly known Mean Julian Day (MJD), which indicates the number of days since January 1, 1900, and the time within one day is represented by a decimal number. For example, a time value with an accuracy of up to seconds is represented as one real value. In this case, the key value in the information processing system is a real number represented by a length of, for example, 64 bits (8 bytes).
この表現の時刻(以下において、MJD時刻という)をキ
ー値として使用することにより、キー値の各大小比較は
1回の実数減算と、結果の正負判定でできるようにな
り、検索処理を効率良く実行することができる。By using the time of this expression (hereinafter referred to as MJD time) as the key value, it is possible to compare each key value with one real number subtraction and the positive / negative judgment of the result, and the search process can be performed efficiently. Can be executed.
但し、MJD時刻のまゝでは、人に理解し難いので、キー
値を検索結果として出力し、又は外部からキー値を入力
する場合には、通常の年月日時分秒の形式を使用するよ
うに情報処理システム内に変換機能を持つ。However, it is difficult for people to understand before the MJD time, so when outputting the key value as a search result or inputting the key value from outside, use the usual year, month, day, hour, minute, second format. It has a conversion function in the information processing system.
情報処理システムのデータ検索処理プログラムが、処理
ステップ1で従来と同様の検索要求を利用者のプログラ
ム等から受け取り、検索キーとして時刻値が指定され
る。In the processing step 1, the data search processing program of the information processing system receives a search request similar to the conventional one from the user's program or the like, and a time value is designated as a search key.
この時刻値は前記のように、年月日時分秒の形式でよ
く、要すれば更に年、月、分、秒等を省略できるように
してもよい。As described above, this time value may be in the format of year, month, day, hour, minute, second, and if necessary, year, month, minute, second, etc. may be omitted.
処理ステップ2で、入力検索キーの上記形式の時刻値
を、公知の計算でMJD時刻に変換する。In processing step 2, the time value in the above format of the input search key is converted into MJD time by a known calculation.
処理ステップ3で、このMJD時刻の検索キー値から所定
の時間を減じた最小時刻値と、所定の時間を増加した最
大時刻値とを作成する。In processing step 3, a minimum time value obtained by subtracting a predetermined time from this MJD time search key value and a maximum time value obtained by increasing the predetermined time are created.
こゝで最小、最大時刻値を作成するための上記所定値
は、このデータの性格によって定まり、前記気象データ
の場合に、例えば30分(約0.02日)程度とする。なお必
要があれば、最小値と最大値の算出に異なる加減値を使
用してもよいことは言うまでもない。The predetermined values for creating the minimum and maximum time values here are determined by the nature of this data, and in the case of the meteorological data, for example, about 30 minutes (about 0.02 days). Needless to say, different adjustment values may be used for calculating the minimum value and the maximum value, if necessary.
処理ステップ4で、前記で求めた最小時刻値以上で最大
時刻値以下のキーを検索するように修正した検索条件を
生成する。In processing step 4, a search condition modified to search for a key that is greater than or equal to the minimum time value and less than or equal to the maximum time value determined above is generated.
処理ステップ5は従来と同様のデータ検索機能であり、
前記の修正した検索条件によって、通常の1検索方式で
ある。キーの大小比較によるデータ検索を実行する。The processing step 5 is the same data search function as the conventional one,
It is a normal one search method according to the modified search conditions. Perform data search by comparing the size of keys.
その結果、最小時刻値から最大時刻値までの期間に含ま
れるキー時刻値を決定し、そのデータを目的のデータと
して、検索要求元に通知する。As a result, the key time value included in the period from the minimum time value to the maximum time value is determined and the data is notified to the search request source as the target data.
以上の制御方式により、データの利用者は、例えば常に
基準時刻にデータが作成されるものとして、データを検
索すればよく、データ検索処理を容易にする。According to the control method described above, the user of the data may search the data assuming that the data is always created at the reference time, which facilitates the data search process.
以上の説明から明らかなように、本発明によれば、情報
処理システムにおけるデータベースの利用者が、検索キ
ーに所要のデータのキー値を正確に指定する必要が無
く、その近傍の値のみを、該キー値が存在するかのよう
に指定することにより、指定値を含む所定範囲のキー値
を持つデータを検索することができるので、システムの
使い易さを向上するという著しい工業的効果がある。As is clear from the above description, according to the present invention, the user of the database in the information processing system does not need to accurately specify the key value of the required data as the search key, and only the value in the vicinity of By designating as if the key value exists, it is possible to retrieve data having a key value in a predetermined range including the designated value, which is a remarkable industrial effect of improving the usability of the system. .
図は本発明の処理の流れ図 である。 図において、 1〜5は処理ステップ を示す。 The figure is a flowchart of the process of the present invention. In the figure, 1 to 5 indicate processing steps.
Claims (2)
ーとして格納されるデータからなるデータベースを有す
る情報処理システムのデータ検索処理方法において、 該データベースを、通常の基準時刻形式の時刻値を検索
キーとして指定し、 該検索キーを所定の時刻値形式の時刻値に変換を行い、 該変換した検索キー値に上記データの性格によって定ま
る所定時間を加減算して最大時刻値、最小時刻値を設定
し、 該設定した最小時刻値以上で最大時刻値以下をキーとす
る検索条件によって該データベースの検索処理を実行す
ることを特徴とするデータ検索処理方法。1. A data search processing method of an information processing system having a database composed of data stored with data creation times discretely generated at any time as a key, wherein the database is searched for a time value in a normal reference time format. Designate as a key, convert the search key to a time value in a predetermined time value format, and add or subtract a predetermined time determined by the character of the data to the converted search key value to set the maximum time value and the minimum time value Then, the data search processing method is characterized in that the search processing of the database is executed according to a search condition having a key that is equal to or more than the set minimum time value and equal to or less than the maximum time value.
用いることを特徴とする特許請求の範囲第1項記載のデ
ータ検索処理方法。2. The data search processing method according to claim 1, wherein an average Julian day is used as the predetermined time value format.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61002953A JPH07117960B2 (en) | 1986-01-10 | 1986-01-10 | Data retrieval processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61002953A JPH07117960B2 (en) | 1986-01-10 | 1986-01-10 | Data retrieval processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62162137A JPS62162137A (en) | 1987-07-18 |
| JPH07117960B2 true JPH07117960B2 (en) | 1995-12-18 |
Family
ID=11543731
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61002953A Expired - Fee Related JPH07117960B2 (en) | 1986-01-10 | 1986-01-10 | Data retrieval processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH07117960B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009086696A (en) * | 2006-01-18 | 2009-04-23 | Pioneer Electronic Corp | Information retrieval apparatus and information retrieval program |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5743230A (en) * | 1980-08-29 | 1982-03-11 | Fujitsu Ltd | Data collecting system |
| JPS5995644A (en) * | 1982-11-22 | 1984-06-01 | Sanyo Electric Co Ltd | High-speed processor for measurement data |
-
1986
- 1986-01-10 JP JP61002953A patent/JPH07117960B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62162137A (en) | 1987-07-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| GB2598493A (en) | Inferring temporal relationships for cybersecurity events | |
| US5806063A (en) | Date formatting and sorting for dates spanning the turn of the century | |
| Cohen | Estimating the parameter in a conditional Poisson distribution | |
| JPS592060B2 (en) | Calculator | |
| DE3066464D1 (en) | Method of obtaining the result of a numerical calculation in floating-point representation with the number of exact significant digits, and numerical calculating device for carrying out this method | |
| JPH07117960B2 (en) | Data retrieval processing method | |
| CN114417089A (en) | Query method, query device, terminal equipment and computer readable storage medium | |
| CN119003653A (en) | Data synchronous transmission system and method for heterogeneous database | |
| Porter-Hudak et al. | The statistical precision of a numerical methods estimator as applied to welfare loss | |
| JP4228706B2 (en) | Electronic control device and storage device of the electronic control device | |
| CN115034214A (en) | Keyword extraction method and device, electronic equipment and storage medium | |
| JP2006215998A (en) | Data collection system | |
| JPH10254891A (en) | Information retrieval device | |
| CN112488657B (en) | Flight information processing method, device and equipment | |
| CN113869031B (en) | Deadline acquisition method, medium, device and computing equipment | |
| JPS5828275Y2 (en) | Date information display device | |
| US11882210B2 (en) | Method for tracing a digital information element in a computer system | |
| JPS6340938A (en) | Synonym retrieving system for retrieval of information | |
| JPH05108437A (en) | Program file alteration history management method | |
| CN119396985A (en) | A smart archive management method and system based on big data | |
| JP2000227811A (en) | System for estimating scheduled time of job end | |
| JPH10254902A (en) | Object similarity calculation method and similar object search device | |
| CN117609456A (en) | An AIGC-based office question and answer method, system and storage medium | |
| Gessing | Identification of shift and delta operator models for small sampling periods | |
| JP2024068121A (en) | Prediction method, prediction device, and prediction program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |