JP2009176155A - Portable communication terminal - Google Patents

Portable communication terminal Download PDF

Info

Publication number
JP2009176155A
JP2009176155A JP2008015439A JP2008015439A JP2009176155A JP 2009176155 A JP2009176155 A JP 2009176155A JP 2008015439 A JP2008015439 A JP 2008015439A JP 2008015439 A JP2008015439 A JP 2008015439A JP 2009176155 A JP2009176155 A JP 2009176155A
Authority
JP
Japan
Prior art keywords
data
data record
records
recording
unit
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.)
Granted
Application number
JP2008015439A
Other languages
Japanese (ja)
Other versions
JP5213466B2 (en
Inventor
Kazutami Ishikawa
和民 石川
Munehito Matsuda
宗人 松田
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.)
Kyocera Corp
Original Assignee
Kyocera 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 Kyocera Corp filed Critical Kyocera Corp
Priority to JP2008015439A priority Critical patent/JP5213466B2/en
Publication of JP2009176155A publication Critical patent/JP2009176155A/en
Application granted granted Critical
Publication of JP5213466B2 publication Critical patent/JP5213466B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To execute garbage collection at timing suitable to operate a database system when the upper limit of the number of pieces of registered data is determined by sharing the number of pieces of the registered data by a plurality of types of managing files in a portable communication apparatus represented by a portable telephone. <P>SOLUTION: A managing file (table) of data records being data management information is provided for each type of contents of a plurality of pieces of data, and a control means is provided, which executes garbage collection for the whole tables when the total number of empty pages through the whole tables of empty pages where the whole data records recorded in a page are eliminated exceeds the prescribed number of pages in recording one or more data records with each table as a recording area (page) unit of a prescribed size. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、複数種類のデータを格納可能な携帯通信端末に関し、特に、複数種類のデータを管理するための記録領域の大きさを制限する技術に関する。   The present invention relates to a mobile communication terminal capable of storing a plurality of types of data, and more particularly to a technique for limiting the size of a recording area for managing a plurality of types of data.

従来、通信相手を登録するためのアドレス帳機能を有する携帯電話機が知られている(例えば、特許文献1参照)。
アドレス帳機能を実現するために携帯電話機は、各通信相手についての名称、電話番号、メールアドレス等のデータからデータレコードを構成して、1以上のデータレコードを含むテーブルを記録保持する。そして、そのうちいずれかのデータレコードの内容をユーザ指示に応じて検索して表示し得るように管理する。
Conventionally, a mobile phone having an address book function for registering a communication partner is known (see, for example, Patent Document 1).
In order to realize the address book function, the mobile phone constitutes a data record from data such as a name, a telephone number, and a mail address for each communication partner, and records and holds a table including one or more data records. Then, the contents of any one of the data records are managed so as to be searched and displayed according to a user instruction.

アドレス帳に利用可能な記録媒体上の記録容量を一定範囲内に制限するためには、例えば、アドレス帳に登録可能な通信相手の数の上限を定めることが考えられる。
ところで、近年、カメラ撮影機能や音楽プレーヤとしての機能等、様々な機能を有する携帯電話機が開発されている。このような多機能な携帯電話機は、フラッシュメモリ等の記録媒体に、アドレス帳のデータ、メール文書のデータ、着信報知用の音声データに加えて、静止画像データ、動画像データ、音楽データ等の各種データを記録保存することができる。
In order to limit the recording capacity on the recording medium that can be used for the address book within a certain range, for example, an upper limit of the number of communication partners that can be registered in the address book can be considered.
In recent years, mobile phones having various functions such as a camera photographing function and a music player function have been developed. Such a multi-function mobile phone can store still image data, moving image data, music data, etc., in addition to address book data, mail document data, and incoming call notification voice data on a recording medium such as a flash memory. Various data can be recorded and saved.

これらのデータについて、ユーザ指示により指示されたデータを検索する時間を短くすることが望ましい。そのために記録保存された各種データの種別毎について、その種別の各データを管理する管理用データをデータレコードとして、1以上のデータレコードを含む管理用テーブルを記録保持している。
この場合、各種データ毎、つまり、管理用テーブル毎に、その管理用テーブルのために使用される記録媒体上の記録容量を一定範囲内に制限するためには、例えば、各種データ毎に登録可能なデータの件数の上限を定める方式が考えられる。この場合に、必要となり得る最大記録容量は、データの種別毎に定められた件数と1つのデータレコードのデータ容量とに基づいて最大サイズを算出し、その全ての最大サイズの合計をすることで算定できる。
For these data, it is desirable to shorten the time for searching for data instructed by a user instruction. For this reason, for each type of data recorded and stored, a management table including one or more data records is recorded and held, with management data for managing each type of data as a data record.
In this case, for each data, that is, for each management table, in order to limit the recording capacity on the recording medium used for the management table within a certain range, for example, each data can be registered. A method for determining the upper limit of the number of data items can be considered. In this case, the maximum recording capacity that can be required is calculated by calculating the maximum size based on the number of cases determined for each data type and the data capacity of one data record, and summing all the maximum sizes. Can be calculated.

例えば、静止画像データと動画像データと音楽データとを管理する場合には、静止画像データを5000件まで、動画像データを5000件まで、音楽データを5000件までというように上限を定めるとする。すると、これらの種別のデータを管理するために必要な記録領域は、静止画像データを管理するデータレコード5000件分と動画像データを管理するデータレコード5000件分と音楽データを管理するデータレコード5000件分との和により算定できる。この算定された量の記録領域が、これらのデータの管理のために確保されなければならない。
特開2007−274500号公報
For example, when managing still image data, moving image data, and music data, it is assumed that the upper limit is set such that up to 5000 still image data, up to 5000 moving image data, and up to 5000 music data. . Then, the recording areas necessary for managing these types of data are 5000 data records for managing still image data, 5000 data records for managing moving image data, and data records 5000 for managing music data. It can be calculated from the sum of the matters. This calculated amount of recording area must be reserved for the management of these data.
JP 2007-274500 A

しかしながら、多機能な携帯電話機のユーザが主に利用する機能は、ユーザ毎に異なるはずであり、いずれの種別のデータについても上述の上限件数に近づくほど記録しているようなユーザは稀かもしれない。上述の方式では、いずれの種別のデータについても上限件数に近づくほど記録していない場合には、データの管理のために確保される記録領域の多くが無駄となってしまうことが問題となる。   However, the functions mainly used by users of multifunctional mobile phones should be different for each user, and there are few users who record any type of data as it approaches the above upper limit. Absent. In the above-described method, if any type of data is not recorded so as to approach the upper limit, a problem arises in that much of the recording area reserved for data management is wasted.

そこで、本願発明は、上記問題に鑑みてなされたものであり、管理するデータの件数に関する上限を定める仕様に対応し、上述の方式よりもデータの管理のために確保される記録領域が無駄になる可能性を抑え得るように、データ管理に必要な記録領域の大きさを制限する携帯電話機等の携帯通信端末を提供することを目的とする。   Accordingly, the present invention has been made in view of the above problems, and corresponds to a specification that sets an upper limit on the number of data to be managed, and a recording area secured for data management is more wasted than the above-described method. An object of the present invention is to provide a mobile communication terminal such as a mobile phone that restricts the size of a recording area necessary for data management so that the possibility of occurrence of the data can be suppressed.

上記課題を解決するために、本発明に係る携帯通信端末は、データに関連するデータレコードを複数の種別毎に管理するデータベースシステムを備える携帯通信端末において、記憶手段と、前記記憶手段の単位記録領域に1以上のデータレコードを記録し、前記データレコードを複数の種別毎に管理ファイルとして記録する記録手段と、前記記録手段とで記録する管理ファイルのデータレコードの削除指示に応じて、当該データレコードを無効とする無効手段と、前記複数の種別後の管理ファイルについて、前記無効手段により無効にされたデータレコードのみを含む単位記録領域を計数する計数手段と、前記計数手段により計数された数が所定数を超えたときに、管理ファイルを再編成する再編成手段とを備えることを特徴とする。   In order to solve the above problems, a mobile communication terminal according to the present invention includes a storage unit and a unit record of the storage unit in a mobile communication terminal including a database system that manages data records related to data for each of a plurality of types. One or more data records are recorded in the area, the data record is recorded as a management file for each of a plurality of types, and the data is deleted in response to an instruction to delete the data record of the management file recorded by the recording unit Invalidating means for invalidating a record, counting means for counting unit recording areas including only data records invalidated by the invalidating means, and the number counted by the counting means for the management files after the plurality of types Reorganization means for reorganizing the management file when the predetermined number exceeds the predetermined number.

この発明によれば、携帯通信端末の内蔵されるメモリにおけるデータベースシステムが占める容量を縮小することができる。   According to the present invention, the capacity occupied by the database system in the memory built in the mobile communication terminal can be reduced.

以下、本発明に係る携帯通信端末の一実施形態である携帯電話機について図面を用いて説明する。
<概要>
本実施形態に係る携帯電話機は、画像、音楽、文書等の各種データを管理するためのデータベースシステムを備えている。データの種別毎に管理するために必要なデータレコードの項目は異なるため、このデータベースシステムは、データの種別毎に別個のテーブルを定めている。そして、このテーブル1つ1つを、別個の管理用ファイルの内容として、携帯電話機におけるファイルシステムで管理された記録媒体に記録している。このデータベースシステムにおいては、各テーブルのデータレコード削除等のデータ操作の処理性能の低下を防ぐために、一定のタイミングでその解放を実行するための処理であるガーベジコレクションを行う。つまり、テーブル内のデータレコード数が減少した都度、管理用ファイルに記録媒体上で割り当てられた領域の一部を解放することはしない。
Hereinafter, a mobile phone which is an embodiment of a mobile communication terminal according to the present invention will be described with reference to the drawings.
<Overview>
The mobile phone according to the present embodiment includes a database system for managing various data such as images, music, and documents. Since the data record items necessary for management for each data type are different, the database system defines a separate table for each data type. Each table is recorded as the contents of a separate management file on a recording medium managed by a file system in the mobile phone. In this database system, in order to prevent a decrease in processing performance of data operations such as data record deletion of each table, garbage collection, which is a process for executing the release at a certain timing, is performed. That is, every time the number of data records in the table decreases, a part of the area allocated on the recording medium to the management file is not released.

このデータベースシステムは、特に、データの管理のために確保することとなる記録領域の量を一定以下に抑制することを保障することを目的としている。そのために、後述する空ページ数に応じて決定されたタイミングでガーベジコレクションを実行することを特徴とする。なお、本実施形態においては、ガーベジコレクションと記載するが、これは、一般には、ガベージコレクション、ガベジコレクションと記載されることもある。ガーベジコレクションを実行することで、テーブル内のデータレコードのファイル編成を編成しなおすことができる。よって、データレコードが削除されたままの状態の編成時に比してテーブル自体のデータ量を小さくすることができる。
<構成>
図1は、携帯電話機100の外観図を示しており、そのディスプレイには、データベースシステムで運用される各フォルダのデータの件数や、全データ件数が表示されている状態の一例を示している。
This database system is particularly intended to ensure that the amount of recording area to be secured for data management is kept below a certain level. Therefore, garbage collection is performed at a timing determined according to the number of empty pages described later. In the present embodiment, it is described as garbage collection. However, this may be generally described as garbage collection or garbage collection. By executing garbage collection, the file organization of the data records in the table can be reorganized. Therefore, the data amount of the table itself can be reduced as compared with the organization when the data record is still deleted.
<Configuration>
FIG. 1 shows an external view of the mobile phone 100, and the display shows an example of a state in which the number of data in each folder operated in the database system and the total number of data are displayed.

図2は、携帯電話機100の機能構成を示した機能ブロック図である。
図2に示すように、携帯電話機100は、通信部110と、操作部120と、音声処理部130と、表示部140と、記憶部150と、制御部160とを含んで構成される。
ここで各部の説明に先んじて、本実施形態で用いる用語について図3を用いて説明しておく。まず、本実施形態のデータベースシステムでは、画像や、音楽などの実際のデータに関連する属性情報を管理するものである。属性情報とは、画像ファイルや音楽ファイルなどの、ファイル名や、実際のデータサイズ、記憶部150に記憶された日時などのことをいう。
FIG. 2 is a functional block diagram showing a functional configuration of the mobile phone 100.
As shown in FIG. 2, the mobile phone 100 includes a communication unit 110, an operation unit 120, a voice processing unit 130, a display unit 140, a storage unit 150, and a control unit 160.
Prior to the description of each part, terms used in this embodiment will be described with reference to FIG. First, the database system of this embodiment manages attribute information related to actual data such as images and music. The attribute information refers to file names, actual data sizes, dates and times stored in the storage unit 150, such as image files and music files.

一つのデータに対応する属性情報を本実施形態ではデータレコードと呼称する。データベースシステムでは、その種別、つまり、画像データのデータレコードや音楽データのデータレコードなどの種別に関係なく、全ての種別のデータレコードの合計数の上限が定められており、ここではその上限を5000件とする。データレコードは、その種別(例えば音楽、画像、文書など)、に分けてテーブルで管理される。   In this embodiment, attribute information corresponding to one data is called a data record. In the database system, the upper limit of the total number of data records of all types is determined regardless of the type, that is, the type of data record of image data or the data record of music data. Here, the upper limit is set to 5000. It is assumed. Data records are managed in a table according to their types (for example, music, images, documents, etc.).

テーブルは、1つの種別のデータレコードを管理するための管理用ファイルの内容である。そして、テーブルは、記憶部150においてデータベースシステム用に確保した記録領域を所定の単位記録領域であるページ単位に論理的に分割されており、本実施形態では、1ページの記録容量は2KBであるとする。
1つのページには、1以上のデータレコードが記録可能であるが、データレコードは、その種別に応じてデータ量が異なるため、1つのページに記録可能なデータレコード数は、テーブル毎に異なり得る。また、1つのデータレコードが2つのページに跨って記録されることはないように設計される。つまり、1つのページに1つのデータレコードが記録され、データレコードが例えば1.5KBの容量を有していた場合、残り0.5KB分は空き容量となり、その空き容量に別のデータレコードが記録されることはない。また、1データレコードのデータ量が1ページ分の容量、即ち2KBを超えることもない。
The table is the contents of a management file for managing one type of data record. The table logically divides the recording area reserved for the database system in the storage unit 150 into pages that are predetermined unit recording areas. In this embodiment, the recording capacity of one page is 2 KB. And
One or more data records can be recorded on one page. However, since the data amount of the data record differs depending on the type, the number of data records that can be recorded on one page can be different for each table. . Also, it is designed so that one data record is not recorded across two pages. In other words, if one data record is recorded on one page and the data record has a capacity of 1.5 KB, for example, the remaining 0.5 KB becomes free capacity, and another data record is recorded in the free capacity. It will never be done. Further, the data amount of one data record does not exceed the capacity of one page, that is, 2 KB.

図3は、上記説明を模式的に示したものであるが、データレコードが削除された場合、データレコードそのものが削除されるわけではなく、無効化されるのみである。データレコードが無効化された領域を空スペースと呼称する。テーブルの最後尾のページに新たなデータレコードを追加することができる領域がある場合にも、当該領域を空スペースと呼称する。図面上においては、有効であるデータレコードには、P1、P2、M1、M2など便宜上識別できるように記載し、無効であるデータレコードは、その部分を×印で示している。データレコードが無効化された場合、ガーベジコレクションを実行するとき以外にはデータレコードが前詰め、即ちテーブルが再編成されることはない。図3の2つ目のページに示されるように、ページ中の全データレコードが無効化された場合に、そのページを本実施形態では、空ページと呼称する。本データベースシステムは、この空ページの総数に基づいてガーベジコレクションを実行するタイミングを決定することが特徴となっている。   FIG. 3 schematically shows the above description. When a data record is deleted, the data record itself is not deleted but only invalidated. The area where the data record is invalidated is called an empty space. Even when there is an area where a new data record can be added to the last page of the table, the area is referred to as an empty space. In the drawing, the valid data record is described so that it can be identified for convenience, such as P1, P2, M1, and M2, and the invalid data record is indicated by a cross. If the data record is invalidated, the data record is not left-justified, that is, the table is not reorganized except when performing garbage collection. As shown in the second page of FIG. 3, when all the data records in the page are invalidated, the page is called an empty page in this embodiment. The database system is characterized in that the timing for executing garbage collection is determined based on the total number of empty pages.

以下、携帯電話機100を構成する各部について説明していく。
通信部110は、アンテナ111から受け取った受信信号を受話音声信号及び受信データ信号に復調し、復調した受話音声信号や、受信データ信号を制御部160に出力する機能を有する。また、通信部110は、音声処理部130でA/D変換された送話音声信号、及び制御部160から与えられる電子メールなどの送信データ信号を変調し、通信用アンテナ111から出力する機能を有する。
Hereinafter, each part which comprises the mobile telephone 100 is demonstrated.
The communication unit 110 has a function of demodulating the reception signal received from the antenna 111 into a reception voice signal and a reception data signal, and outputting the demodulated reception voice signal and reception data signal to the control unit 160. Further, the communication unit 110 has a function of modulating the transmission voice signal A / D converted by the voice processing unit 130 and a transmission data signal such as an e-mail given from the control unit 160 and outputting the modulated data signal from the communication antenna 111. Have.

操作部120は、テンキー群、オンフックキー、オフフックキー、方向キー、決定キー、メールキー、サイドキーなどを含み、ユーザの操作を受け付け、受け付けた操作内容を制御部160に出力する機能を有する。
音声処理部130は、通信部110から出力された受話音声信号をD/A変換してスピーカ132に出力する機能と、マイク131から取得した送話音声信号をA/D変換し、変換された信号を制御部160に出力する機能を有する。
The operation unit 120 includes a numeric keypad group, an on-hook key, an off-hook key, a direction key, an enter key, a mail key, a side key, and the like, and has a function of receiving a user operation and outputting the received operation content to the control unit 160.
The voice processing unit 130 performs D / A conversion on the received voice signal output from the communication unit 110 and outputs it to the speaker 132, and A / D converts the transmission voice signal acquired from the microphone 131 to be converted. It has a function of outputting a signal to the control unit 160.

表示部140は、LCD(Liquid Crystal Display)などによって実現されるディスプレイを含み、制御部160の指示による画像をディスプレイに表示する機能を有する。
記憶部150は、ROM(Read Only Memory)、RAM(Random Access Memory)を含んで構成され、小型ハードディスクや不揮発性メモリなどによって実現される。記憶部150は、携帯電話機100の動作上必要な各種データやプログラムの他、音楽データや画像データなどを記憶する機能を有する。音楽データは、例えば、通信部110を介して、ネットからダウンロードされたコンテンツであり、操作部120でユーザからの指示を受け付けて、スピーカ132からその音声が出力される。また、画像データは、例えば、携帯電話機100に備えられたカメラ(図示せず)により撮影された画像であり、画像データの内容が表示部140において表示されたり、画像データがメールに添付されて通信部110を介して通信先に送信されたりする。
The display unit 140 includes a display realized by an LCD (Liquid Crystal Display) or the like, and has a function of displaying an image according to an instruction from the control unit 160 on the display.
The storage unit 150 includes a ROM (Read Only Memory) and a RAM (Random Access Memory), and is realized by a small hard disk, a nonvolatile memory, or the like. The storage unit 150 has a function of storing music data, image data, and the like in addition to various data and programs necessary for the operation of the mobile phone 100. The music data is, for example, content downloaded from the net via the communication unit 110, and an instruction from the user is received by the operation unit 120 and the sound is output from the speaker 132. The image data is, for example, an image taken by a camera (not shown) provided in the mobile phone 100, and the content of the image data is displayed on the display unit 140, or the image data is attached to an email. Or transmitted to a communication destination via the communication unit 110.

また、記憶部150は、データベースシステム運用上必要となる各種のデータを記憶している。図2に示すように、記憶部150は、データベースシステムに必要な各種テーブル151と、データレコード容量表152と、データレコード件数表153と、空ページ管理表154とを記憶している。また、各データレコードの内容と、ガーベジコレクションを実行するか否かを判定するための空ページの閾値とを記憶している。ここで閾値は100ページであるとする。   In addition, the storage unit 150 stores various data necessary for database system operation. As shown in FIG. 2, the storage unit 150 stores various tables 151 necessary for the database system, a data record capacity table 152, a data record number table 153, and an empty page management table 154. Further, the contents of each data record and the threshold value of the empty page for determining whether to execute garbage collection are stored. Here, it is assumed that the threshold is 100 pages.

各種テーブル151は、データベースシステム上の各データレコードの種別に応じたテーブル群のことであり、ここでは、画像テーブル、着メロテーブル、フラッシュコンテンツテーブル、文書テーブル、Eメールテーブルがある。
データレコード容量表152は、データレコードの各種別に応じて、その種別のデータレコードのデータ量を示す表である。制御部160は、データレコード容量表152を参照することで、各テーブルにおける各データレコードの先頭を容易に検出することができる。
The various tables 151 are tables corresponding to the type of each data record on the database system. Here, there are an image table, a ringtone table, a flash content table, a document table, and an email table.
The data record capacity table 152 is a table showing the data amount of the data record of that type according to each type of data record. The control unit 160 can easily detect the head of each data record in each table by referring to the data record capacity table 152.

データレコード件数表153は、各テーブルに所属するデータレコードの数を示す表である。制御部160は、データレコード件数表153を参照することで、データベースシステムに登録されているデータレコードの総数を容易に認識することができる。
空ページ管理表154は、各テーブルにおいて、それぞれどれだけの空ページ数があるかを示す表である。制御部160は、空ページ管理表154を参照することにより、空ページの合計数を容易に算出することができる。
The data record count table 153 is a table showing the number of data records belonging to each table. The control unit 160 can easily recognize the total number of data records registered in the database system by referring to the data record number table 153.
The empty page management table 154 is a table indicating how many empty pages are present in each table. The control unit 160 can easily calculate the total number of empty pages by referring to the empty page management table 154.

各表の詳細については後述する。
制御部160は、CPU(Central Processing Unit)であり、携帯電話機100の各部を制御する機能を有し、通常の携帯電話機が保持する機能の他、以下の機能を有する。
制御部160は、記憶部150が保持するデータを運用、管理する機能を有し、データベースシステムの内容を操作部120でユーザから受け付けた操作内容に従って表示部140に表示させる機能を有する。制御部160は、データベースシステムが管理するデータレコードやテーブルに関する内容を表示部140に表示させることができる。一例として制御部160は、図1の外観図で示した、総データレコード件数や、各テーブルにおけるデータレコード件数などを表示させることができる。
Details of each table will be described later.
The control unit 160 is a CPU (Central Processing Unit), has a function of controlling each unit of the mobile phone 100, and has the following functions in addition to the functions held by a normal mobile phone.
The control unit 160 has a function of operating and managing data stored in the storage unit 150, and has a function of causing the display unit 140 to display the contents of the database system according to the operation content received from the user by the operation unit 120. The control unit 160 can cause the display unit 140 to display data related to data records and tables managed by the database system. As an example, the control unit 160 can display the total number of data records, the number of data records in each table, and the like shown in the external view of FIG.

また、制御部160は、操作部120で受け付けたユーザからの指示に従い、新たなデータレコードをその種別を判別し、判別した種別に対応するテーブルにデータレコードを追加する。このとき、データレコードを追加するテーブルに空スペースがある場合には、テーブルの一番先頭に近い空スペースに追加する。データレコードを追加するテーブルの先頭のページから最後尾のページまでと最後尾のページに空スペースがない場合には、テーブルの最後尾に新たなページを確保し、確保したページに追加する。そして、そのテーブルの総データレコード数を1加算してデータレコード件数表153を更新する。なお、追加する時点でデータレコード件数表153に記録されているデータレコードの総数が5000件に達している場合には、制御部160は、表示部140に、データレコードを追加できない旨を示すエラー情報を表示させる。   Further, the control unit 160 determines the type of the new data record in accordance with the instruction from the user received by the operation unit 120, and adds the data record to the table corresponding to the determined type. At this time, if there is an empty space in the table to which the data record is added, the data record is added to the empty space near the top of the table. If there is no empty space from the first page to the last page of the table to which the data record is added and the last page, a new page is secured at the tail of the table and added to the secured page. Then, the total number of data records in the table is incremented by 1, and the data record number table 153 is updated. When the total number of data records recorded in the data record number table 153 at the time of addition reaches 5000, the control unit 160 displays an error indicating that the data record cannot be added to the display unit 140. Display information.

さらに、制御部160は、操作部120で受け付けたユーザからの指示に従い削除されたデータに対応するデータレコードを無効化する機能を有する。各データレコードは、データベースシステム上において、自データレコードが有効であるか無効であるかを示すフラグを有しており、無効化とは、そのフラグを無効である情報に書き換えることをいう。そして、このとき、データレコードの無効化に伴い、当該データレコードが記録されていたページから、全てのデータレコードが無効化された状態になった場合に、制御部160は、空ページ管理表154の対応するテーブルの空ページ数を1加算して空ページ管理表154を更新する。そして、このとき空ページ数が101に達する場合に、制御部160は、データベースシステムのガベージコレクションを全テーブルを対象に実行し、再編成された各テーブルを記録する。   Further, the control unit 160 has a function of invalidating the data record corresponding to the deleted data in accordance with the instruction from the user received by the operation unit 120. Each data record has a flag indicating whether the data record is valid or invalid on the database system, and invalidation means rewriting the flag to invalid information. At this time, when the data record is invalidated and all the data records are invalidated from the page where the data record is recorded, the control unit 160 displays the empty page management table 154. The empty page management table 154 is updated by adding 1 to the number of empty pages in the corresponding table. Then, when the number of empty pages reaches 101 at this time, the control unit 160 executes garbage collection of the database system for all the tables, and records each reorganized table.

以上が携帯電話機100の各機能部の説明である。
<データ>
ここから、携帯電話機100に実装されるデータベースシステムで扱うデータについて説明する。なお、データベースシステムで扱うデータとは、画像や着メロなどのデータの実体ではなく、その管理情報のことであり、当該管理情報が項目としてデータレコードを構成している。
The above is the description of each functional unit of the mobile phone 100.
<Data>
From here, the data handled by the database system mounted in the mobile phone 100 will be described. Note that the data handled by the database system is not the actual data such as images and ringtones but the management information thereof, and the management information constitutes a data record as an item.

図4は各種テーブル151におけるデータレコード格納イメージである。図4に示すように、各種テーブル151には、画像テーブルと、着メロテーブルと、フラッシュコンテンツテーブルと、文書テーブルと、Eメールテーブルとがある。なお、図中において各テーブルに添えた数値は、データベースシステムの管理上用いるそれぞれのテーブルナンバーを示している。   FIG. 4 is a data record storage image in the various tables 151. As shown in FIG. 4, the various tables 151 include an image table, a ringtone table, a flash content table, a document table, and an email table. In the figure, the numerical value attached to each table indicates the respective table number used for management of the database system.

図4に示すように、各テーブルは、ページ単位で区切られている。そして、それぞれのページには、1つのデータレコードのデータ量に応じて、1以上のデータレコードが記録されている。例えば画像テーブルの場合には、1ページに2つのデータレコードが、文書テーブルの場合には、1ページに3つのデータレコードが記録されている。また、データレコードのデータ量が大きい、着メロやフラッシュコンテンツの場合には、1ページに1データレコードのみが記録されている。   As shown in FIG. 4, each table is divided in units of pages. In each page, one or more data records are recorded according to the data amount of one data record. For example, in the case of an image table, two data records are recorded on one page, and in the case of a document table, three data records are recorded on one page. In addition, in the case of ringtones and flash contents where the data amount of the data record is large, only one data record is recorded per page.

図5は、データレコードの実際のデータ構成例の概念図である。一例として、図5(a)に画像のデータレコードの構成例を、図5(b)に着メロのデータレコードの構成例を示した。
画像のデータレコードの場合、図5(a)に示すように、その先頭に管理情報を含み、以下、Xサイズ、Yサイズ、タイトル、日付、ファイルIDの情報が含まれる。
FIG. 5 is a conceptual diagram of an actual data configuration example of a data record. As an example, FIG. 5A shows a configuration example of an image data record, and FIG. 5B shows a configuration example of a ringtone data record.
In the case of an image data record, as shown in FIG. 5A, management information is included at the head of the data record, and information on X size, Y size, title, date, and file ID is included below.

管理情報は、本データレコードとそれ以外のデータレコードとの関連性を管理するための情報であり、データレコードが有効であるか無効であるかを示すフラグを含む。また、前後のデータレコードを示すポインタなどの情報を含んでいてもよい。
Xサイズは、対応する画像のX軸方向の画素数を示す情報である。
Yサイズは、対応する画像のY軸方向の画素数を示す情報である。
The management information is information for managing the relationship between this data record and other data records, and includes a flag indicating whether the data record is valid or invalid. It may also contain information such as pointers indicating previous and subsequent data records.
The X size is information indicating the number of pixels in the X-axis direction of the corresponding image.
The Y size is information indicating the number of pixels in the Y-axis direction of the corresponding image.

タイトルは、対応する画像データに付されたタイトル名である。
日付は、対応する画像データが撮影された日付、あるいは、携帯電話機100に記録された日付を示す。
ファイルIDは対応する画像データそのものを指定するポインタである。
着メロのデータレコードの場合、図5(b)に示すように、その先頭に管理情報を含み、以下、ファイルID、タイトル、歌手名、コンテンツ著作権、日付、サイズの情報が含まれる。
The title is a title name given to the corresponding image data.
The date indicates the date when the corresponding image data was taken or the date recorded on the mobile phone 100.
The file ID is a pointer that specifies the corresponding image data itself.
In the case of a ringtone data record, as shown in FIG. 5 (b), management information is included at the top of the data record, and file ID, title, singer name, content copyright, date, and size information are included below.

管理情報は、本データレコードとそれ以外のデータレコードとの関連性を管理するための情報であり、データレコードが有効であるか無効であるかを示すフラグを含む。また、前後のデータレコードを示すポインタなどの情報を含んでいてもよい。
ファイルIDは対応する着メロデータそのものを指定するポインタである。
タイトルは、対応する着メロデータに付されたタイトル名であり、通常は曲のタイトルである。
The management information is information for managing the relationship between this data record and other data records, and includes a flag indicating whether the data record is valid or invalid. It may also contain information such as pointers indicating previous and subsequent data records.
The file ID is a pointer that specifies the corresponding ringtone data itself.
The title is the title name given to the corresponding ringtone data, and is usually the title of the song.

歌手名は、着メロの歌い手を示す情報である。
コンテンツ著作権は、着メロの著作権がいずれの団体もしくは個人に所属するかを示す情報である。
日付は、対応する着メロが携帯電話機100に記録された日付を示す。
サイズは、対応する着メロの実際のデータ量を示す情報である。
The singer name is information indicating a ringtone singer.
The content copyright is information indicating to which organization or individual the copyright of the ringtone belongs.
The date indicates the date when the corresponding ringtone is recorded on the mobile phone 100.
The size is information indicating the actual data amount of the corresponding ringtone.

図5(a)と(b)との違いをみれば、データレコードの種別が異なれば、そのデータレコードのデータ量も異なることが認識できる。
図6は、データレコード容量表152の構成例を示したデータ概念図である。
データレコード容量表152は、データレコード種別欄601と、データレコード容量欄602とを含んで構成される。
From the difference between FIGS. 5A and 5B, it can be recognized that if the data record type is different, the data amount of the data record is also different.
FIG. 6 is a data conceptual diagram showing a configuration example of the data record capacity table 152.
The data record capacity table 152 includes a data record type field 601 and a data record capacity field 602.

データレコード種別欄601は、データベースシステムで扱うデータレコードの種別を示す情報を含む。
データレコード容量欄602は、各データレコードに対応して、それぞれの1つ分のデータレコードのデータ量を示す情報を含む。
例えば、着メロのデータレコードのデータ量は、1.8KBとなっている。
The data record type column 601 includes information indicating the type of data record handled by the database system.
The data record capacity column 602 includes information indicating the data amount of one data record corresponding to each data record.
For example, the data amount of the ringtone data record is 1.8 KB.

次に図7は、データレコード件数表153の構成例を示したデータ概念図である。
データレコード件数表153は、テーブル種別欄701と、データレコード件数欄702とを含んで構成される。
テーブル種別欄701は、データベースシステムで扱うテーブルの種別を示す情報を含む。
Next, FIG. 7 is a data conceptual diagram showing a configuration example of the data record number table 153.
The data record number table 153 includes a table type field 701 and a data record number field 702.
The table type column 701 includes information indicating the type of table handled by the database system.

データレコード件数欄702は、各テーブルに含まれるデータレコードの件数を示す情報を含む。
例えば、文書テーブルに含まれるデータレコードの件数は38となっている。制御部160は、データレコード件数表153を参照することで記録されている総データレコード数を算出できる。
The data record number column 702 includes information indicating the number of data records included in each table.
For example, the number of data records included in the document table is 38. The control unit 160 can calculate the total number of data records recorded by referring to the data record number table 153.

図8は、空ページ数管理表154の構成例を示したデータ概念図である。
空ページ数管理表154は、テーブル種別欄801と、空ページ件数欄802とを含んで構成される。
テーブル種別欄801は、データベースシステムで扱うテーブルの種別を示す情報を含む。
FIG. 8 is a data conceptual diagram showing a configuration example of the empty page number management table 154.
The empty page number management table 154 includes a table type field 801 and an empty page number field 802.
The table type column 801 includes information indicating the type of table handled by the database system.

空ページ件数欄802は、各テーブルに含まれる空ページ数を示す情報を含む。
例えば、着メロテーブルに含まれる空ページ数は23となっている。制御部160は、空ページ管理表154を参照することにより、空ページ数の総数を算出できる。
以上が、各表の説明である。
<動作>
次に、本実施形態の動作を図9〜図11に示すフローチャートを用いて説明する。
The empty page number column 802 includes information indicating the number of empty pages included in each table.
For example, the number of empty pages included in the ringtone table is 23. The control unit 160 can calculate the total number of empty pages by referring to the empty page management table 154.
The above is an explanation of each table.
<Operation>
Next, the operation of the present embodiment will be described with reference to the flowcharts shown in FIGS.

まず、図9に示すフローチャートを用いて、データレコード追加時の携帯電話機100の動作を説明する。
制御部160は、データレコードの追加を実行する指示を受け付ける(ステップS901)。
制御部160は、データレコード件数表153を参照し、記録されているデータレコード件数の総件数を算出する。そして算出した総数が5000であるか否かを判定する(ステップS903)。
First, the operation of the mobile phone 100 when adding a data record will be described using the flowchart shown in FIG.
The control unit 160 accepts an instruction to add a data record (step S901).
The controller 160 refers to the data record count table 153 and calculates the total number of recorded data records. Then, it is determined whether or not the calculated total number is 5000 (step S903).

データレコード総件数が5000でない場合には(ステップS903のNO)、制御部160は、追加するデータレコードが対応するテーブルに空スペースがあるか否かを検索する(ステップS905)。
空スペースがある場合には(ステップS905のYES)、テーブルの一番先頭に近い空スペースにデータレコードを追加する(ステップS907)。このとき制御部160は、データレコードを追加したことにより、空ページが減少したか否かを、各が保持するデータレコードの有無を示す情報に基づいて検出する(ステップS913)。
If the total number of data records is not 5000 (NO in step S903), the control unit 160 searches whether there is an empty space in the table corresponding to the data record to be added (step S905).
If there is an empty space (YES in step S905), a data record is added to the empty space closest to the top of the table (step S907). At this time, the control unit 160 detects whether or not the number of empty pages has decreased due to the addition of the data record, based on the information indicating the presence or absence of the data record held by each (step S913).

空ページが減少していた場合には(ステップS913のYES)、制御部160は、空ページ管理表154の追加したデータレコードが属するテーブルの空ページ数を1減算して、空ページ管理表154を更新して(ステップS915)、処理を終了する。空ページが減少していなかった場合には(ステップS913のNO)、そのまま処理を終了する。
空スペースがない場合には(ステップS905のNO)、テーブルの最後尾に新たなページを確保して、データレコードを追加して(ステップS909)、処理を終了する。
If the number of empty pages has decreased (YES in step S913), the control unit 160 subtracts 1 from the number of empty pages in the table to which the added data record of the empty page management table 154 belongs, and the empty page management table 154. Is updated (step S915), and the process is terminated. If the number of empty pages has not decreased (NO in step S913), the process ends as it is.
If there is no empty space (NO in step S905), a new page is secured at the end of the table, a data record is added (step S909), and the process ends.

ステップS903において、データレコード総件数が5000件であった場合には(ステップS903のYES)、制御部160は、表示部140にデータレコードが追加不可能であることを示すエラー情報を表示させて(ステップS911)、処理を終了する。
以上が、データレコードを追加する場合の携帯電話機100の動作である。
ここから図10に示すフローチャートを用いてデータレコードを削除するときの携帯電話機100の動作を説明する。上述したようにデータレコードの削除とはテーブル上におけるデータレコードの無効化を指す。
In step S903, when the total number of data records is 5000 (YES in step S903), the control unit 160 causes the display unit 140 to display error information indicating that a data record cannot be added. (Step S911), the process ends.
The above is the operation of the mobile phone 100 when adding a data record.
The operation of the mobile phone 100 when deleting a data record will now be described using the flowchart shown in FIG. As described above, deletion of a data record refers to invalidation of the data record on the table.

制御部160は、データレコードを対応するテーブルの所属するページから無効化する(ステップS1001)。
そして、制御部160は、無効化されたデータレコードの所属ページに含まれるデータレコードの全てが無効化されているか否かを、当該所属ページのデータレコードの管理情報を検出することで判定する(ステップS1003)。
The control unit 160 invalidates the data record from the page to which the corresponding table belongs (step S1001).
Then, the control unit 160 determines whether or not all the data records included in the belonging page of the invalidated data record are invalidated by detecting the management information of the data record of the belonging page ( Step S1003).

所属ページの全データレコードが無効化されていない場合には(ステップS1003のNO)、処理を終了する。
所属ページから全データレコードが無効化された場合には(ステップS1003のYES)、制御部160は、空ページ管理表154の対応するテーブルの空ページ数を1加算する(ステップS1005)。
If all the data records of the belonging page have not been invalidated (NO in step S1003), the process ends.
When all the data records are invalidated from the affiliation page (YES in step S1003), the control unit 160 adds 1 to the number of empty pages in the corresponding table of the empty page management table 154 (step S1005).

そして制御部160は、空ページ管理表154に記録されている空ページ数から空ページ数の総ページ数を算出する。そして合計空ページ数が101以上になっているか否かを判定する(ステップS1007)。
合計空ページ数が101以上でない、即ち、101未満である場合には(ステップS1007のNO)、処理を終了する。
Then, the control unit 160 calculates the total number of empty pages from the number of empty pages recorded in the empty page management table 154. Then, it is determined whether or not the total number of empty pages is 101 or more (step S1007).
If the total number of empty pages is not 101 or more, that is, less than 101 (NO in step S1007), the process ends.

合計空ページ数が101以上である場合には、制御部160は、ガーベジコレクションを実行して(ステップS1009)、処理を終了する。ガーベジコレクションの処理内容については後述する。
以上が携帯電話機100のデータレコード無効化時の動作である。
最後に図11に示すフローチャートを用いてガーベジコレクション実行時の携帯電話機100の動作を説明する。
When the total number of empty pages is 101 or more, the control unit 160 executes garbage collection (step S1009) and ends the process. The details of the garbage collection process will be described later.
The above is the operation when the data record of the mobile phone 100 is invalidated.
Finally, the operation of the mobile phone 100 when executing garbage collection will be described using the flowchart shown in FIG.

制御部160は、テーブルナンバー01、即ち画像テーブルを対象にガーベジコレクションを実行する(ステップS1101)。
制御部160は、全テーブルにおいてガーベジコレクションを実行したか否かを検出する(ステップS1103)。これは、最後にガーベジコレクションの対象となったテーブルのテーブルナンバーが、データベースシステムに存在するテーブルの最高値になっているか否かによって検出できる。
The control unit 160 performs garbage collection on the table number 01, that is, the image table (step S1101).
The control unit 160 detects whether or not garbage collection has been executed for all tables (step S1103). This can be detected based on whether or not the table number of the table that is the last object of garbage collection is the highest value of the table existing in the database system.

全テーブルのガーベジコレクションを実行していない場合には(ステップS1103のNO)、制御部160は、処理対象とするテーブルナンバーに1加算する(ステップS1105)。
そして加算して得られたテーブルナンバーを有するテーブルを対象にガーベジコレクションを実行して(ステップS1107)、ステップS1103の処理に戻る。
When garbage collection of all tables is not executed (NO in step S1103), the control unit 160 adds 1 to the table number to be processed (step S1105).
Then, garbage collection is executed on the table having the table number obtained by the addition (step S1107), and the process returns to step S1103.

全テーブルのガーベジコレクションを実行していた場合には(ステップS1103のYES)、処理を終了する。
最後にガーベジコレクションにおける再編成の一手順について図12を用いて説明する。図12にガーベジコレクションを実行前のテーブルと、ガーベジコレクションを実行後のテーブルとを示している。
If garbage collection of all tables has been executed (YES in step S1103), the process ends.
Finally, one procedure of reorganization in garbage collection will be described with reference to FIG. FIG. 12 shows a table before execution of garbage collection and a table after execution of garbage collection.

本実施形態におけるガーベジコレクションでは、空ページを詰める処理を実行して、テーブルを再編成している。なお、空ページを詰める処理とは、空ページに属していたデータレコードのデータリンクを削除することであり、これにより、テーブルのデータ量としては小さくなり、その分だけメモリの容量を解放することができる。
以上、本実施形態に係る携帯電話機100について説明してきたが、上述の構成を備えることにより、携帯電話機100が搭載するデータベースシステムでは、通常のデータベースシステムで最初に確保されるデータ容量よりも少なくすることができる。というのも、従来においては各テーブルにデータベースシステムに記録可能な全データレコードを占有した場合に必要とするページ分の記憶容量を全テーブル分確保していたのに対し、本発明では、各テーブルについて、記録可能な全データレコードを占有した場合に必要とするページ数で、最も多くなるページ数分の記憶容量と閾値(本実施形態では100ページ)ページ分の記憶容量とを確保するだけで済む。また、ガーベジコレクションをデータレコードを無効化するごとに行うのではなく、空ページ数が一定数以上に達したときにのみ実行することから、テーブルの再編成によるデータの書き換え頻度を抑制することができることから、メモリの耐用年数をより長くすることができる。
<補足>
上記実施形態において、本発明の実施の手法について説明してきたが、本発明の実施形態がこれに限られないことは勿論である。以下、上記実施形態以外に本発明の思想として含まれる各種の変形例について説明する。
(1)上記実施形態では、本発明に係る携帯通信端末として、携帯電話機を例に説明したが、携帯通信端末は、複数種類のデータの全データ件数を共有するデータベースシステムを実装可能な機器であればよく、例えばPDA(Personal Digital Assistants)などであってもよい。
(2)上記実施形態では、データレコードを追加する場合に、空スペースがあれば、そこに追加することとしたが、単純にテーブルの最後尾にデータレコードを追加する構成としてもよい。
(3)上記実施形態では、ガーベジコレクションを実行した場合の変化を図12を用いて説明したが、これ以外の手法を用いてもよい。例えば、図13の状態のようになるようにガーベジコレクションを実行してもよい。
In the garbage collection in the present embodiment, a process of filling empty pages is executed to reorganize the table. The process of filling the empty page is to delete the data link of the data record that belonged to the empty page, thereby reducing the data amount of the table and releasing the memory capacity accordingly. Can do.
The mobile phone 100 according to the present embodiment has been described above. However, by providing the above-described configuration, the database system installed in the mobile phone 100 has a data capacity that is initially secured in a normal database system. be able to. This is because, in the present invention, the storage capacity for all the tables required in the case where all the data records that can be recorded in the database system are occupied in each table is secured in the present invention. As for the number of pages required when all recordable data records are occupied, the storage capacity for the largest number of pages and the threshold (100 pages in this embodiment) are ensured. That's it. In addition, garbage collection is not performed every time a data record is invalidated, but is executed only when the number of empty pages reaches a certain number or more, so the frequency of data rewriting due to table reorganization can be suppressed. As a result, the useful life of the memory can be extended.
<Supplement>
In the above embodiment, the method of implementing the present invention has been described, but it is needless to say that the embodiment of the present invention is not limited to this. Hereinafter, various modified examples included in the concept of the present invention other than the above embodiment will be described.
(1) In the above embodiment, a mobile phone has been described as an example of the mobile communication terminal according to the present invention. However, the mobile communication terminal is a device that can implement a database system that shares the total number of data of a plurality of types of data. For example, PDA (Personal Digital Assistants) may be used.
(2) In the above embodiment, when adding a data record, if there is an empty space, it is added there, but a configuration may be adopted in which a data record is simply added to the end of the table.
(3) In the above-described embodiment, the change when garbage collection is executed has been described with reference to FIG. 12, but other methods may be used. For example, garbage collection may be executed so as to be in the state of FIG.

図12では、空ページには後続するデータレコードから順に前に詰めていく形でテーブルを再編成した場合を示したのに対し、図13では、空ページには、最後尾のデータレコードから詰めていく形でテーブルを再編成した場合を示した。
(4)本実施形態において、説明に用いた数値は、一例であり、その他の数値であってもよい。例えば、データレコード総件数は、メモリ容量が十分にあるならば、1万件であってもよい。また、1ページの容量を2KBとして説明したが、これも例えば4KBであってもよい。
(5)上記実施形態において示したデータレコードの構成例は一例であり、その他の情報を含んでいてもよいし、あるいは、重要性の低い日付などの情報なしで構成してもよい。
(6)上記実施形態において、各データレコードの先頭に、データレコードが有効であるか否かを示すフラグを保持することとしたが、これは、各ページの先頭に、格納されているデータレコードが有効であるか否かを示すビットマップを保持する構成にしてもよい。
(7)上記実施形態において、テーブルの種別として、画像テーブル、着メロテーブル、フラッシュコンテンツテーブル、文書テーブル、Eメールテーブルの5種類を例示したが、テーブルの種別は、この5種に限定されない。その他のテーブル、例えば、ボイスレコーダテーブル、音楽テーブル、ムービーテーブルなど、携帯電話機100で管理するデータに応じて、テーブルがあってよい。
(8)上記実施形態における制御部160は、ユーザ操作等に従ってデータレコードの追加や削除を行う際の制御を行うものであり、1データレコードの追加や削除の際に空ページ管理表154における空ページ件数を1減少又は1増加させておき、データ削除の際にその空ページ数管理表に基づいてガーベジコレクションを実行するか否かの判断を行ったが、空ページ数の計数結果を空ページ管理表154に保持していなくても、データ追加又は削除の都度、管理対象の全種類の管理用ファイルについて、空ページ数の合計値を算出して、この合計値が所定数を超えたならガーベジコレクションを実行するようにしてもよい。
(9)上記実施の形態において、ガーベジコレクションの実行のトリガとしての閾値を空ページ数100ページとしたが、これは100ページでなくともよく、例えば200ページであってもよい。実際には、携帯通信端末の動作仕様に応じて、ガーベジコレクションを実行しても、通信機能など各種機能の動作に支障がでないようなページ数に設定される。
(10)上記実施の形態の図9のステップS903において、データレコード総件数が既に5000件になっていた場合にデータレコードを追加できない旨を示すエラー表示をする構成とした。しかし、データベースシステムにおいて同時に複数のデータレコードを登録することが可能であった場合には、以下に示す構成にしてもよい。
FIG. 12 shows a case where the table is reorganized in such a way that the empty pages are sequentially packed from the subsequent data records, whereas in FIG. 13, empty pages are packed from the last data record. The case where the table was reorganized in a progressive manner was shown.
(4) In this embodiment, the numerical value used for description is an example, and other numerical values may be used. For example, the total number of data records may be 10,000 if the memory capacity is sufficient. Further, although the description has been given assuming that the capacity of one page is 2 KB, it may be 4 KB, for example.
(5) The configuration example of the data record shown in the above embodiment is an example, and may include other information, or may be configured without information such as a less important date.
(6) In the above embodiment, a flag indicating whether or not the data record is valid is held at the head of each data record. This is because the data record stored at the head of each page is stored. It may be configured to hold a bitmap indicating whether or not is valid.
(7) In the above-described embodiment, five types of table such as an image table, a ringtone table, a flash content table, a document table, and an e-mail table are exemplified as the table type, but the table type is not limited to these five types. There may be other tables such as a voice recorder table, a music table, and a movie table, depending on data managed by the mobile phone 100.
(8) The control unit 160 in the above embodiment performs control when adding or deleting a data record according to a user operation or the like, and when adding or deleting one data record, the empty page management table 154 is empty. Decrease or increase the number of pages by 1 and determine whether to execute garbage collection based on the empty page count management table when deleting data. Even if it is not stored in the management table 154, every time data is added or deleted, the total number of empty pages is calculated for all types of management files to be managed, and this total value exceeds a predetermined number. Garbage collection may be executed.
(9) In the above embodiment, the threshold value as a trigger for executing garbage collection is set to 100 empty pages. However, this may not be 100 pages, for example, 200 pages. Actually, according to the operation specification of the mobile communication terminal, the number of pages is set such that even if garbage collection is executed, the operation of various functions such as a communication function is not hindered.
(10) In step S903 of FIG. 9 in the above embodiment, when the total number of data records has already become 5000, an error display indicating that a data record cannot be added is displayed. However, when it is possible to register a plurality of data records simultaneously in the database system, the following configuration may be used.

即ち、追加するデータレコードの件数と追加前のデータレコード総件数との和が5000件を超える場合には、データレコードを追加できない旨を示すエラー表示を実行し、追加するデータレコードの件数と追加前のデータレコード総件数との和が5000件を超えない場合には、データレコードを追加する構成としてもよい。また、追加するデータレコードの件数と追加前のデータレコード総件数との和が5000件を超える場合であっても、追加可能な分のデータレコードについて、追加するデータレコードの中からユーザに必要なものを選択させてデータレコード総件数が5000になるようにデータレコードを追加してもよい。
(11)上述の実施形態で示したにガーベジコレクションの実行に係る動作、その開始処理等を携帯電話機等のプロセッサ、及びそのプロセッサに接続された各種回路に実行させるためのプログラムコードからなる制御プログラムを、記録媒体に記録すること、又は各種通信路等を介して流通させ頒布させることもできる。このような記録媒体には、ICカード、ハードディスク、光ディスク、フレキシブルディスク、ROM等がある。流通、頒布された制御プログラムはプロセッサに読み出され得るメモリ等に格納されることにより利用に供され、そのプロセッサがその制御プログラムを実行することにより、実施形態で示したような各種機能が実現されるようになる。
(12)ここで、本発明に係る携帯通信端末が奏し得る効果について具体例を交えて説明する。
In other words, if the sum of the number of data records to be added and the total number of data records before addition exceeds 5000, an error display indicating that the data record cannot be added is executed, and the number of data records to be added and the number added. When the sum with the total number of previous data records does not exceed 5000, a data record may be added. In addition, even if the sum of the number of data records to be added and the total number of data records before addition exceeds 5000, it is necessary for the user from among the data records to be added for the data records that can be added. Data records may be added so that the total number of data records becomes 5000 by selecting them.
(11) A control program comprising a program code for causing a processor such as a mobile phone and various circuits connected to the processor to execute the operation related to the execution of garbage collection, the start processing thereof, and the like shown in the above embodiment Can be recorded on a recording medium, or can be distributed and distributed via various communication paths. Such recording media include IC cards, hard disks, optical disks, flexible disks, ROMs, and the like. The distributed and distributed control program is used by being stored in a memory or the like that can be read by the processor, and the processor executes the control program, thereby realizing various functions as shown in the embodiment. Will come to be.
(12) Here, effects that can be achieved by the mobile communication terminal according to the present invention will be described with specific examples.

まず、データレコードの追加制御について、個々のデータを管理するためのデータレコードについて、データ種別を跨って、管理対象の複数のデータ種別の全てのデータレコードの総数が一定数以下である限りにおいて、データレコードが追加されるので、データ総件数について上限が定められた仕様が実現される。なお、一定数は設計に際して定められる値である。   First, for additional control of data records, for data records for managing individual data, as long as the total number of all data records of a plurality of data types to be managed is below a certain number across data types, Since data records are added, a specification with an upper limit on the total number of data is realized. The fixed number is a value determined in designing.

また、複数のテーブルを有することについて、データ種別毎にデータレコードを構成する管理項目のサイズや数等が異なり得ること、つまりデータ種別毎にデータレコードのデータ構造が異なり得ることを前提としているため、データ種別毎に1つの管理用ファイルを有することは、データレコードの検索、追加、削除等の処理性能の向上に貢献している。   In addition, it is premised that having a plurality of tables may differ in the size and number of management items constituting the data record for each data type, that is, the data structure of the data record may be different for each data type. Having one management file for each data type contributes to improvement in processing performance such as search, addition, and deletion of data records.

従って、例えば、上述のデータレコードの総数を定める一定数が5000であるとし、所定数を100とし、単位記録領域のサイズが例えば2キロバイト(KB)であって、この2KBには、各データ種別のデータレコードのうち最大サイズのものなら、1個だけ格納できるとしたならば、各管理用ファイル用として確保が必要な単位記録領域の全体での総サイズは、およそ2KB×5000+2KB×100あれば足りることが保証されるようになる。   Therefore, for example, the predetermined number that determines the total number of data records is 5000, the predetermined number is 100, and the size of the unit recording area is 2 kilobytes (KB), for example. If only one data record can be stored, the total size of the unit recording area that needs to be secured for each management file is approximately 2 KB × 5000 + 2 KB × 100. It will be guaranteed to be sufficient.

なお、静止画像データの管理用ファイルと動画像データの管理用ファイルと音楽データの管理用ファイルとが管理対象であると仮定すると、例えば携帯通信端末に静止画像データを4900件、動画像データを50件、音楽データを50件、記録させるユーザや、静止画像データを50件、動画像データを50件、音楽データを4900件記録させるユーザや様々なユーザがいることが想定される。このことに対応するために、携帯通信端末において各種データの管理のために、例えば各々について想定される最大件数である4900件分のデータレコードを静止画像データ、動画像データ、音楽データのそれぞれ用に記録、つまり4900件の3倍分を記録するための記録領域を確保する方式も考えられる。このような方式に比べて、本発明に係る携帯通信端末は、ユーザの利用するデータが様々であることに鑑みれば、データの管理をするために比較的少ない記録領域の確保で足りるという効果を奏する。つまり、本発明に係る携帯通信端末では、各種データを管理するために、各種データの合計として想定される最大件数である5000件分のデータレコードを記録するための記録容量と、上述の削除を高速化する等のために無効なデータレコードに対応付けられることとなる記録容量とに相当する記録領域だけでデータを管理することができる。   Assuming that the management file for still image data, the management file for moving image data, and the management file for music data are management targets, for example, 4900 still image data and moving image data are stored in a mobile communication terminal. It is assumed that there are 50 users, 50 users who record music data, 50 users who record still image data, 50 users who record moving image data, 4900 users who record music data, and various users. In order to cope with this, in order to manage various data in the mobile communication terminal, for example, 4900 data records, which are the maximum number of cases assumed for each, are used for still image data, moving image data, and music data, respectively. It is also conceivable to secure a recording area for recording, that is, recording three times 4900 cases. Compared to such a method, the mobile communication terminal according to the present invention has an effect that it is sufficient to secure a relatively small recording area in order to manage data in view of various data used by the user. Play. That is, in the mobile communication terminal according to the present invention, in order to manage various types of data, the recording capacity for recording 5000 data records, which is the maximum number of various types of data assumed, and the above-described deletion are performed. Data can be managed only in a recording area corresponding to a recording capacity to be associated with an invalid data record for speeding up.

また、データレコードの追加と削除の及びガーベジコレクションの実行制御において、無効であることが示されているデータレコードが記録された記録部分へ追加すべきデータレコードを上書きすることなく、新たにファイルとして使用されていない状態の単位記録領域を管理用ファイルの内容を記録するために確保して当該単位記録領域へ追加すべきデータレコードを記録する方式と比べれば、データレコードの追加と削除とが何度も繰り返される場合において、ファイルの再編成を行う頻度を下げることができ、この結果、ファイルの再編成が頻発することによる処理性能の低下を防止し、また、ファイルの再編成処理の実行回数を削減することにより携帯通信端末の電力消費を抑制することができるようになる。   In addition, in the execution control of data record addition and deletion and garbage collection, a new file is created without overwriting the data record to be added to the recorded part where the data record indicated to be invalid is recorded. Compared to a method in which a unit recording area that is not used is reserved for recording the contents of the management file and data records to be added to the unit recording area are recorded, what is the addition and deletion of data records? If the file is repetitively repeated, the frequency of file reorganization can be reduced. As a result, the performance degradation due to frequent file reorganization is prevented, and the number of times the file reorganization processing is executed. By reducing the power consumption, the power consumption of the mobile communication terminal can be suppressed.

本発明に係る携帯通信端末は、各種データを記録し管理するための携帯電話機として活用することができる。   The mobile communication terminal according to the present invention can be used as a mobile phone for recording and managing various data.

携帯電話機100の外観図である。1 is an external view of a mobile phone 100. FIG. 携帯電話機100の機能構成を示した機能ブロック図である。3 is a functional block diagram showing a functional configuration of a mobile phone 100. FIG. 本実施形態において用いる用語の説明のための図である。It is a figure for explanation of terms used in this embodiment. データベースシステムにおける各テーブルへのデータレコード格納イメージである。It is a data record storage image to each table in a database system. (a)は、画像データレコードの内容を説明するための図である。(b)は、着メロデータレコードの内容を説明するための図である。(A) is a figure for demonstrating the content of the image data record. (B) is a figure for demonstrating the content of a ringtone data record. 各データレコードの1データレコード分の容量を示すデータレコード容量表152である。It is the data record capacity | capacitance table | surface 152 which shows the capacity | capacitance for one data record of each data record. 各テーブルにおける全データレコード件数を示すデータレコード件数表153である。It is a data record number table 153 showing the number of all data records in each table. 各テーブルにおける空ページ数を示す空ページ管理表154である。It is an empty page management table 154 indicating the number of empty pages in each table. データレコードを追加したときの携帯電話機100の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the mobile telephone 100 when a data record is added. データレコードを無効化したときの携帯電話機100の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the mobile telephone 100 when a data record is invalidated. ガーベジコレクションを全テーブルを対象として実行する携帯電話機100の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the mobile telephone 100 which performs garbage collection for all the tables. ガーベジコレクションを実行したときのテーブルの変化を示す一具体例である。It is a specific example which shows the change of the table when garbage collection is performed. ガーベジコレクションを実行したときのテーブルの変化を示す一具体例である。It is a specific example which shows the change of the table when garbage collection is performed.

符号の説明Explanation of symbols

100 携帯電話機
110 通信部
111 アンテナ
120 操作部
130 音声処理部
131 マイク
132 スピーカー
140 表示部
150 記憶部
151 各種テーブル
152 データレコード容量表
153 データレコード件数表
154 空ページ管理表
160 制御部
100 Mobile Phone 110 Communication Unit 111 Antenna 120 Operation Unit 130 Audio Processing Unit 131 Microphone 132 Speaker 140 Display Unit 150 Storage Unit 151 Various Tables 152 Data Record Capacity Table 153 Data Record Number Table 154 Empty Page Management Table 160 Control Unit

Claims (4)

データに関連するデータレコードを複数の種別毎に管理するデータベースシステムを備える携帯通信端末において、
記憶手段と、
前記記憶手段の単位記録領域に1以上のデータレコードを記録し、前記データレコードを複数の種別毎に管理ファイルとして記録する記録手段と、
前記記録手段とで記録する管理ファイルのデータレコードの削除指示に応じて、当該データレコードを無効とする無効手段と、
前記複数の種別後の管理ファイルについて、前記無効手段により無効にされたデータレコードのみを含む単位記録領域を計数する計数手段と、
前記計数手段により計数された数が所定数を超えたときに、管理ファイルを再編成する再編成手段とを
備えることを特徴とする携帯通信端末。
In a mobile communication terminal equipped with a database system that manages data records related to data for each of a plurality of types,
Storage means;
Recording means for recording one or more data records in a unit recording area of the storage means, and recording the data records as a management file for each of a plurality of types;
In accordance with an instruction to delete the data record of the management file recorded with the recording means, invalid means for invalidating the data record,
For the management file after the plurality of types, a counting means for counting unit recording areas including only data records invalidated by the invalidating means,
A mobile communication terminal comprising: a reorganization unit that reorganizes a management file when the number counted by the counting unit exceeds a predetermined number.
前記記録手段は、前記複数の種別ごとの管理ファイルのデータレコードの総数が一定数以下のとき、データレコードの追加指示に応じて、前記記憶手段に当該データレコードを記録することを特徴とする請求項1記載の携帯通信端末。   The recording means records the data record in the storage means in response to an instruction to add a data record when the total number of data records in the management file for each of the plurality of types is a predetermined number or less. Item 2. A mobile communication terminal according to Item 1. 前記記録手段は、前記追加指示で追加されるデータレコードの種別に対応する管理ファイルにおいて、前記無効手段により無効にされたデータレコードがあるとき、当該データレコードに前記追加されるデータレコードを記録することを特徴とする請求項2記載の携帯通信端末。   The recording unit records the added data record in the data record when there is a data record invalidated by the invalidating unit in the management file corresponding to the type of the data record added by the addition instruction. The mobile communication terminal according to claim 2. 前記記録手段は、前記追加指示で追加されるデータレコードの種別に対応する管理ファイルにおいて、前記無効手段により無効にされたデータレコードを含む単位記録領域がないとき、新たな単位記録領域に前記追加されるデータレコードを記録することを特徴とする請求項2記載の携帯通信端末。   The recording means adds the new unit recording area to the new unit recording area when there is no unit recording area including the data record invalidated by the invalidating means in the management file corresponding to the type of the data record added by the addition instruction. The mobile communication terminal according to claim 2, wherein a recorded data record is recorded.
JP2008015439A 2008-01-25 2008-01-25 Mobile communication terminal Expired - Fee Related JP5213466B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008015439A JP5213466B2 (en) 2008-01-25 2008-01-25 Mobile communication terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008015439A JP5213466B2 (en) 2008-01-25 2008-01-25 Mobile communication terminal

Publications (2)

Publication Number Publication Date
JP2009176155A true JP2009176155A (en) 2009-08-06
JP5213466B2 JP5213466B2 (en) 2013-06-19

Family

ID=41031147

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008015439A Expired - Fee Related JP5213466B2 (en) 2008-01-25 2008-01-25 Mobile communication terminal

Country Status (1)

Country Link
JP (1) JP5213466B2 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04134541A (en) * 1990-09-27 1992-05-08 Nec Corp Recovering system for saving / reprogramming volume
JPH07219720A (en) * 1993-10-01 1995-08-18 Hitachi Maxell Ltd Semiconductor memory device and its control method
JPH08272654A (en) * 1995-03-29 1996-10-18 Matsushita Electric Ind Co Ltd File management device
JP2002318714A (en) * 2001-04-23 2002-10-31 Casio Comput Co Ltd Device and program for optimizing flash memory
JP2004265507A (en) * 2003-02-28 2004-09-24 Sony Corp Recording device and recording method
JP2006146808A (en) * 2004-11-24 2006-06-08 Kyocera Corp Memory management device and method
JP2009104430A (en) * 2007-10-24 2009-05-14 Oki Electric Ind Co Ltd Flash disk device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04134541A (en) * 1990-09-27 1992-05-08 Nec Corp Recovering system for saving / reprogramming volume
JPH07219720A (en) * 1993-10-01 1995-08-18 Hitachi Maxell Ltd Semiconductor memory device and its control method
JPH08272654A (en) * 1995-03-29 1996-10-18 Matsushita Electric Ind Co Ltd File management device
JP2002318714A (en) * 2001-04-23 2002-10-31 Casio Comput Co Ltd Device and program for optimizing flash memory
JP2004265507A (en) * 2003-02-28 2004-09-24 Sony Corp Recording device and recording method
JP2006146808A (en) * 2004-11-24 2006-06-08 Kyocera Corp Memory management device and method
JP2009104430A (en) * 2007-10-24 2009-05-14 Oki Electric Ind Co Ltd Flash disk device

Also Published As

Publication number Publication date
JP5213466B2 (en) 2013-06-19

Similar Documents

Publication Publication Date Title
KR101164353B1 (en) Method and apparatus for browsing and executing media contents
CN101454988B (en) Method and system of user-interests driven launching pad of mobile applications
US20120210201A1 (en) Operation method for memo function and portable terminal supporting the same
CN103176628A (en) Stylus system and data input method
CN114185494B (en) Memory anonymous page processing method, electronic device and readable storage medium
CN104103087A (en) Picture display and management method and system with text introduction function
KR100713534B1 (en) Method for searching a user data in mobile communication terminal
KR20110061282A (en) Mobile terminal for inserting memory card and method for managing memory card thereof
CN100479615C (en) Method for processing data in mobile communication terminal
EP1655650A1 (en) Information terminal devica having secret function
JP5011497B2 (en) INPUT PROCESSING DEVICE, INPUT PROCESSING METHOD, INPUT PROCESSING PROGRAM, AND PORTABLE TERMINAL DEVICE
JP5213466B2 (en) Mobile communication terminal
KR101248165B1 (en) Cellular phone and data searching method the same
US20150017952A1 (en) Method and apparatus for operating message function in connection with note function
CN101826097B (en) Method and system for saving memory space of address book database
JP2005322135A (en) Electric equipment, display management program
JP5681854B2 (en) Portable information terminal and its history information notification method
CN104375781B (en) Data access method and device
CN101710920A (en) Message management method and message management system of mobile communication terminal
KR100691243B1 (en) Mobile communication terminal and method for saving and managing synthetically basic and extension information linked with corresponding name information
JP2010009099A (en) Terminal device and program
CN116089368B (en) File searching method and related device
US9323753B2 (en) Method and device for representing digital documents for search applications
KR100745040B1 (en) Global searching method for contents files in a mobile terminal
KR20090033551A (en) Multimedia processing apparatus for arranging menu or multimedia contents and method of arranging menu or multimedia contents

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101227

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121022

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121030

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121228

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130205

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130226

R150 Certificate of patent or registration of utility model

Ref document number: 5213466

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20160308

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees