JP2007122180A - Hierarchized structure generation method and storage device - Google Patents
Hierarchized structure generation method and storage device Download PDFInfo
- Publication number
- JP2007122180A JP2007122180A JP2005310294A JP2005310294A JP2007122180A JP 2007122180 A JP2007122180 A JP 2007122180A JP 2005310294 A JP2005310294 A JP 2005310294A JP 2005310294 A JP2005310294 A JP 2005310294A JP 2007122180 A JP2007122180 A JP 2007122180A
- Authority
- JP
- Japan
- Prior art keywords
- file
- folder
- files
- music
- data files
- 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
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
本発明は、データファイルを階層的に記憶し、利用者が目的のデータファイルを容易に検索することができる階層化構造生成方法及び記憶装置に関する。 The present invention relates to a hierarchical structure generation method and a storage device that store data files hierarchically and allow a user to easily search for a target data file.
近年、大量の音楽ファイルをハードディスク、フラッシュメモリなどの記憶媒体に記憶するオーディオ機器(例えばMP3プレイヤー)が実用化されている。また、音楽ファイルを記憶媒体に記憶する場合、音楽ファイルに関連付けられている楽曲情報に基づいて階層的に記憶することにより、効率的な管理が可能になるオーディオ機器が実用化されている(例えば、特許文献1参照。)。つまり、記憶媒体にフォルダ(ディレクトリともいう)を作成し、作成したフォルダに音楽ファイルを格納する。例えば、図11に示すように、第1階層のフォルダ111にアーティスト名、第2階層のフォルダ112にアルバム名を割り当て、“アーティスト名/アルバム名/音楽ファイル名(曲名)”の階層構造で記憶するようにすれば、音楽ファイル113を効率的に管理することができる。
しかしながら、特許文献1に開示されている技術は、同一階層のフォルダに格納する楽曲情報(オブジェクトデータ)の種類を1種類に制限することから、1つの音楽ファイル(コンテンツデータ)しか存在しないフォルダが生じてしまう虞がある。したがって、音楽ファイルを記憶するに従ってフォルダ構造(階層)が複雑になる虞があり、音楽ファイルを検索して再生する場合、目的の音楽ファイルを検索するまでの操作回数が多くなる。近年ではネット配信による音楽ファイルの取得が浸透しており、1曲の音楽ファイルをダウンロードした場合であっても、図12に示すように、“アーティスト名/アルバム名/音楽ファイル名(曲名)”のフォルダ構造で格納される。
However, since the technique disclosed in
また、音楽ファイルを再生するには、第1階層(アーティスト名)のフォルダ111を選択した後に、第2階層(アルバム名)のフォルダ112を選択する必要があるが、フォルダ112に1曲しか格納されていない音楽ファイルを順次再生するには、フォルダ112を選択するための操作を繰り返す必要がある。同様に、音楽ファイルを外部の記憶媒体(CD−Rなど)に書き込む場合、書き込みを行ないたい音楽ファイルを選択するための操作を繰り返す必要がある。このように、フォルダ内に数個の音楽ファイルしか格納されていない場合は、フォルダの数が多くなりすぎてファイル管理の主旨に反するという問題があった。
In order to play a music file, it is necessary to select the
本発明は斯かる事情に鑑みてなされたものであり、データファイルに関連付けられた属性情報であるパラメータの優先度を受け付け、受け付けた優先度順にデータファイルをソートして、データファイルを同一のパラメータを有するグループへ分類し、優先度が最下位のグループに属するデータファイルの数と基準数とを比較し、データファイルの数が基準数を下回る場合、該データファイルを1つ上位のグループへ移動させ、分類及び移動されたグループに基づいて、階層化されたフォルダを生成し、生成したフォルダにデータファイルを格納する構成とすることにより、最下層のフォルダには基準数より少ないファイル数のデータファイルが格納されることがなく、利用者が目的のデータファイルを容易に検索することができる階層化構造生成方法及び記憶装置の提供を目的とする。 The present invention has been made in view of such circumstances, accepts the priority of parameters that are attribute information associated with the data file, sorts the data file in the order of the accepted priority, and sets the data file to the same parameter. If the number of data files falls below the reference number, the data file is moved to the next higher group. By creating a hierarchical folder based on the group that has been classified and moved, and storing the data file in the generated folder, the lowermost folder has data with a smaller number of files than the reference number. Hierarchical structure that allows users to easily search for target data files without storing files And an object thereof is to provide a production method, and a storage device.
また本発明は、データファイルの管理領域に、データファイルのソートを行なうか否かを識別するためのフラグ情報を付加する構成とすることにより、フラグ情報に基づいてデータファイルをソートの対象から除外して、データファイルの分類処理に係る処理負担を軽減することができる記憶装置の提供を目的とする。 Further, the present invention is configured to add flag information for identifying whether or not to sort the data file to the management area of the data file, so that the data file is excluded from sorting based on the flag information. An object of the present invention is to provide a storage device that can reduce the processing burden associated with the data file classification process.
さらに本発明は、生成するフォルダの最大構成階層数を受け付け、受け付けた最大構成階層数がゼロであるか否かを判定し、最大構成階層数がゼロであると判定された場合は、フォルダを生成することなく、所定のフォルダにデータファイルを格納する構成とすることにより、最大構成階層数としてゼロを与えるようにした場合は、属性情報に関わらず、所定のフォルダにデータファイルが格納され、例えば、一時ファイルのようなデータファイルを所定のフォルダに格納して管理することができる記憶装置の提供を目的とする。 Furthermore, the present invention receives the maximum number of hierarchies of a folder to be generated, determines whether the received maximum number of hierarchies is zero, and if it is determined that the maximum number of hierarchies is zero, By creating a configuration that stores the data file in a predetermined folder without generating it, if the maximum number of hierarchical layers is set to zero, the data file is stored in the predetermined folder regardless of the attribute information, For example, an object is to provide a storage device that can store and manage a data file such as a temporary file in a predetermined folder.
さらにまた本発明は、データファイルを1つ上位のグループへ移動させるか否かを決定する基準数を受け付ける構成とすることにより、利用者の都合によって基準数を適宜設定して、最下層のフォルダに格納すべきファイル数を調整することができる記憶装置の提供を目的とする。 Furthermore, the present invention is configured to accept a reference number for determining whether or not to move a data file to the next higher group, so that the reference number is appropriately set according to the convenience of the user, and the lowest folder An object of the present invention is to provide a storage device that can adjust the number of files to be stored in the storage device.
本発明に係る階層化構造生成方法は、複数のパラメータを含む属性情報が関連付けられたデータファイルを記憶する記憶装置にて、該データファイルを階層的に格納するフォルダを生成する階層化構造生成方法において、前記記憶装置が、前記パラメータの優先度を受け付け、受け付けた優先度順にデータファイルをソートして、データファイルを同一のパラメータを有するグループに分類し、優先度が最下位のグループに属するデータファイルの数と基準数とを比較し、比較の結果、データファイルの数が基準数を下回る場合、該データファイルを1つ上位のグループへ移動させ、分類及び移動されたグループに基づいて、階層化されたフォルダを生成し、生成したフォルダにデータファイルを格納することを特徴とする。 The hierarchical structure generation method according to the present invention is a hierarchical structure generation method for generating a folder for hierarchically storing data files in a storage device that stores data files associated with attribute information including a plurality of parameters. The storage device receives the priority of the parameter, sorts the data file in the received priority order, classifies the data file into a group having the same parameter, and data belonging to the group with the lowest priority If the number of files is compared with the reference number, and the number of data files is less than the reference number as a result of the comparison, the data file is moved to the next higher group, and the hierarchy is determined based on the group that has been classified and moved. And a data file is stored in the generated folder.
本発明に係る記憶装置は、複数のパラメータを含む属性情報が関連付けられたデータファイルを記憶する記憶装置において、前記パラメータの優先度を受け付ける手段と、受け付けた優先度順にデータファイルをソートして、データファイルを同一のパラメータを有するグループに分類するファイル分類手段と、優先度が最下位のグループに属するデータファイルの数と基準数とを比較する比較手段と、比較の結果、データファイルの数が基準数を下回る場合、該データファイルを1つ上位のグループへ移動させるファイル移動手段と、前記ファイル分類手段及び前記ファイル移動手段によって分類及び移動されたグループに基づいて、階層化されたフォルダを生成するフォルダ生成手段と、生成したフォルダにデータファイルを格納するファイル格納手段とを備えることを特徴とする。 The storage device according to the present invention, in a storage device for storing a data file associated with attribute information including a plurality of parameters, means for receiving the priority of the parameter, and sort the data file in the order of received priority, File classification means for classifying data files into groups having the same parameters, comparison means for comparing the number of data files belonging to the group with the lowest priority and the reference number, and as a result of comparison, the number of data files is When the number is below the reference number, a file moving means for moving the data file to the next higher group, and a hierarchical folder are generated based on the file classification means and the group classified and moved by the file moving means. Folder generation means to store data files in the generated folder Characterized in that it comprises a yl storage means.
本発明に係る記憶装置は、前記データファイルの管理領域に、前記ファイル分類手段による該データファイルのソートを行なうか否かを識別するためのフラグ情報を付加させる手段を備え、前記ファイル分類手段は、前記フラグ情報に基づいて、前記データファイルをソートの対象から除外することを特徴とする。 The storage device according to the present invention comprises means for adding flag information for identifying whether or not to sort the data file by the file classification means to the management area of the data file, and the file classification means The data file is excluded from sorting based on the flag information.
本発明に係る記憶装置は、前記フォルダの最大構成階層数を受け付ける手段と、受け付けた最大構成階層数がゼロであるか否かを判定する手段とを備え、最大構成階層数がゼロであると判定された場合、フォルダを生成することなく、所定のフォルダにデータファイルを格納するようにしてあることを特徴とする。 The storage device according to the present invention comprises means for receiving the maximum number of configured layers of the folder and means for determining whether or not the received maximum number of configured layers is zero, wherein the maximum number of configured layers is zero. If it is determined, the data file is stored in a predetermined folder without generating the folder.
本発明に係る記憶装置は、前記基準数を受け付ける基準数受付手段をさらに備え、前記比較手段は、前記優先度が最下位のグループに属するデータファイルの数と、前記基準数受付手段にて受け付けた基準数とを比較するようにしてあることを特徴とする。 The storage device according to the present invention further comprises reference number receiving means for receiving the reference number, and the comparing means receives the number of data files belonging to the lowest priority group and the reference number receiving means. It is characterized in that the reference number is compared.
本発明にあっては、データファイルに関連付けられた属性情報であるパラメータの優先度を受け付け、受け付けた優先度順にデータファイルをソートして、データファイルを同一のパラメータを有するグループに分類する。そして、優先度が最下位のグループに属するデータファイルの数を計数して、データファイルの数と基準数とを比較する。データファイルの数が基準数を下回る場合、そのデータファイルを1つ上位のグループへ移動させる。このようにして、分類及び移動されたグループに基づいて、階層化されたフォルダを生成し、生成したフォルダにデータファイルを格納する。これにより、基準数より少ないファイル数の最下層のフォルダが存在する虞は全くない。 In the present invention, the priority of a parameter, which is attribute information associated with a data file, is received, the data file is sorted in the received priority order, and the data file is classified into a group having the same parameter. Then, the number of data files belonging to the lowest priority group is counted, and the number of data files is compared with the reference number. If the number of data files is less than the reference number, the data file is moved to the next higher group. In this way, a hierarchical folder is generated based on the classified and moved groups, and the data file is stored in the generated folder. Thereby, there is no possibility that the lowermost folder having the number of files smaller than the reference number exists.
本発明にあっては、データファイルの管理領域に、データファイルのソートを行なうか否かを識別するためのフラグ情報を付加する。これにより、フラグ情報に基づいてデータファイルをソートの対象から除外して、データファイルの分類処理に係る処理負担を軽減する。 In the present invention, flag information for identifying whether or not to sort the data file is added to the management area of the data file. As a result, the data file is excluded from the sort target based on the flag information, and the processing load related to the data file classification process is reduced.
本発明にあっては、生成するフォルダの最大構成階層数を受け付け、受け付けた最大構成階層数がゼロであるか否かを判定する。そして、最大構成階層数がゼロであると判定された場合は、フォルダを生成することなく、所定のフォルダにデータファイルを格納する。これにより、最大構成階層数としてゼロを与えるようにした場合は、属性情報に関わらず、所定のフォルダにデータファイルが格納されることになるから、例えば、一時的なデータファイルを所定のフォルダに格納して管理する。 In the present invention, the maximum number of configuration layers of a folder to be generated is received, and it is determined whether or not the received maximum number of configuration layers is zero. If it is determined that the maximum number of hierarchies is zero, the data file is stored in a predetermined folder without generating the folder. As a result, if the maximum number of hierarchies is set to zero, the data file is stored in a predetermined folder regardless of the attribute information. For example, a temporary data file is stored in the predetermined folder. Store and manage.
本発明にあっては、上述した基準数を受け付け、優先度が最下位のグループに属するデータファイルの数と、受け付けた基準数とを比較し、データファイルを1つ上位のグループへ移動させるか否かを決定する。これにより、利用者の都合によって基準数を適宜設定して、最下層のフォルダに格納すべきファイル数を調整する。 In the present invention, the above-mentioned reference number is received, the number of data files belonging to the lowest priority group is compared with the received reference number, and the data file is moved to the next higher group. Decide whether or not. Thereby, the reference number is appropriately set according to the convenience of the user, and the number of files to be stored in the lowermost folder is adjusted.
本発明によれば、データファイルに関連付けられた属性情報であるパラメータの優先度を受け付け、受け付けた優先度順にデータファイルをソートして、データファイルを同一のパラメータを有するグループに分類し、優先度が最下位のグループに属するデータファイルの数と基準数とを比較し、データファイルの数が基準数を下回る場合、該データファイルを1つ上位のグループへ移動させ、分類及び移動されたグループに基づいて、階層化されたフォルダを生成し、生成したフォルダにデータファイルを格納する構成としたので、最下層のフォルダには基準数より少ないファイル数のデータファイルが格納されることがなく、利用者が目的のデータファイルを容易に検索することができる。つまり、基準数より少ないファイル数のフォルダが存在しないので、データファイルの記憶に従って階層が複雑になることを抑制することができる。 According to the present invention, the priority of a parameter that is attribute information associated with a data file is received, the data file is sorted in the received priority order, the data file is classified into a group having the same parameter, and the priority Compares the number of data files belonging to the lowest group with the reference number, and if the number of data files is less than the reference number, the data file is moved to the upper group, and the group is sorted and moved. Based on the above, it is configured to create a hierarchical folder and store the data file in the generated folder, so the lowermost folder does not store data files with a number of files less than the standard number and can be used The user can easily search for the target data file. That is, since there is no folder having a smaller number of files than the reference number, it is possible to prevent the hierarchy from becoming complicated according to the storage of the data file.
本発明によれば、データファイルの管理領域に、データファイルのソートを行なうか否かを識別するためのフラグ情報を付加する構成としたので、フラグ情報に基づいてデータファイルをソートの対象から除外して、データファイルの分類処理に係る処理負担を軽減することができる。 According to the present invention, the flag information for identifying whether or not to sort the data file is added to the management area of the data file. Therefore, the data file is excluded from the sort target based on the flag information. Thus, the processing burden associated with the data file classification process can be reduced.
本発明によれば、生成するフォルダの最大構成階層数を受け付け、受け付けた最大構成階層数がゼロであるか否かを判定し、最大構成階層数がゼロであると判定された場合は、フォルダを生成することなく、所定のフォルダにデータファイルを格納する構成としたので、最大構成階層数としてゼロを与えるようにした場合は、属性情報に関わらず、所定のフォルダにデータファイルが格納され、例えば、一時ファイルのようなデータファイルを所定のフォルダに格納して管理することができる。 According to the present invention, the maximum number of configured layers of a folder to be generated is received, it is determined whether or not the received maximum number of configured layers is zero, and if it is determined that the maximum number of configured layers is zero, the folder Since the data file is stored in a predetermined folder without generating the file, if the maximum number of hierarchical layers is set to zero, the data file is stored in the predetermined folder regardless of the attribute information. For example, a data file such as a temporary file can be stored and managed in a predetermined folder.
本発明によれば、データファイルを1つ上位のグループへ移動させるか否かを決定する基準数を受け付ける構成としたので、利用者の都合によって基準数を適宜設定して、最下層のフォルダに格納すべきファイル数を調整することができる等、優れた効果を奏する。 According to the present invention, since the reference number for determining whether to move the data file to the next higher group is received, the reference number is appropriately set according to the convenience of the user, and is stored in the lowermost folder. An excellent effect is achieved such that the number of files to be stored can be adjusted.
以下、本発明をその実施の形態を示す図面に基づいて詳述する。本発明は記憶装置全般に適用することができるが、ここではMP3プレイヤーのようなオーディオ機器を一例に説明する。 Hereinafter, the present invention will be described in detail with reference to the drawings illustrating embodiments thereof. The present invention can be applied to all storage devices. Here, an audio device such as an MP3 player will be described as an example.
図1は本発明の記憶装置としてのオーディオ機器の構成を示すブロック図である。
本発明に係るオーディオ機器1は、CPUで構成された制御部10を備えている。制御部10は、操作部11,表示部12,記憶部13,楽曲情報取得部14,フォルダ構成決定部15,書込処理部16と接続され、これら各部を制御して、内蔵するROMに格納された制御プログラムに従って種々の機能を果たす。
FIG. 1 is a block diagram showing the configuration of an audio device as a storage device of the present invention.
The
操作部11は、オーディオ機器1を操作するための各種のファンクションキー、すなわち、最大構成階層数の入力を受け付ける最大構成階層数入力部11a、楽曲情報を構成するパラメータの優先度を受け付ける優先パラメータ入力部11b、最小格納ファイル数の入力を受け付ける最小格納ファイル数入力部11cを備えている。
The
表示部12は、液晶モニタ又はLEDモニタなどの表示デバイスで構成されており、オーディオ機器1の動作状態の表示、利用者へ操作入力を促す画面の表示などを行なう。なお、表示部12をタッチパネル方式とすることにより、操作部11の各種のファンクションキーのうちの一部又は全部を代用することも可能である。
The
記憶部13は、具体的にはハードディスクであり、音楽ファイルをフォルダ構造の形態で階層的に記憶するものである。楽曲情報取得部14は、例えばインターネット50上の音楽情報データベースサーバ(例えばCDDBサーバ)51から、記憶部13に記憶されている音楽ファイルの楽曲情報を取得する。楽曲情報は音楽ファイルのアーティスト名、アルバム名(タイトル名)、ジャンル及び年度などの楽曲を特定する情報である。
The
フォルダ構成決定部15は、楽曲情報取得部14によって取得した音楽ファイルの楽曲情報に基づいて、音楽ファイルを優先パラメータ入力部11bにて受け付けた優先度順にソートし、音楽ファイルを同一のパラメータを有するグループに分類するファイル分類手段15aとして機能する。
The folder
例えば、楽曲情報のうち、優先度1がアーティスト名、優先度2がアルバム名である場合、フォルダ構成決定部15は、先ずアーティスト名で音楽ファイルをソートし、さらにアルバム名で音楽ファイルをソートし、音楽ファイルを同一のアーティスト名及びアルバム名を有するグループに分類する。
For example, in the music information, when the
また、フォルダ構成決定部15は、優先度が最下位のグループに属する音楽ファイルを計数し、計数した音楽ファイルのファイル数と基準数とを比較する比較手段15b、及び、計数した音楽ファイルのファイル数が基準数を下回る場合、その音楽ファイルを1つ上位のグループへ移動させるファイル移動手段15cとして機能し、このようにして分類及び移動されたグループに基づいて音楽ファイルを格納すべきフォルダの構成を決定する。
Further, the folder
書込処理部16は、フォルダ構成決定部15によって決定されたフォルダに基づいて、階層化されたフォルダを記憶部13に生成するフォルダ生成手段16a、及び生成したフォルダにデータファイルを格納するファイル格納手段16bとして機能する。
Based on the folder determined by the folder
本発明では、楽曲情報のうち、優先度1がアーティスト名、優先度2がアルバム名である場合、同一のアルバム名に属する音楽ファイルのファイル数が基準数以上である場合と、基準数を下回る場合とで、以下の2通りの状態で音楽ファイルが格納される。同一のアルバム名に属する音楽ファイルのファイル数が基準数以上である場合、音楽ファイルを“アーティスト名/アルバム名/音楽ファイル名(曲名)”のフォルダ構造で記憶部13に格納し、同一のアルバム名に属する音楽ファイルのファイル数が基準数を下回る場合、音楽ファイルを“アーティスト名/音楽ファイル名(曲名)”のフォルダ構造で記憶部13に格納する。このようにして、最下層のフォルダには最小格納ファイル数を下回るファイル数の音楽ファイルが存在することがない。
In the present invention, in the music information, when the
次に、本発明の記憶装置としてのオーディオ機器1が行なう動作を、フローチャートを用いて説明する。
図2は本発明に係るオーディオ機器が行なう処理手順を示すフローチャートである。なお、処理手順は一例であり、これに限るものではない。また、このような処理手順は、制御部10に内蔵されたROMへ予め制御プログラムを組み込んでおくことにより行なう。
Next, an operation performed by the
FIG. 2 is a flowchart showing a processing procedure performed by the audio device according to the present invention. The processing procedure is an example, and the present invention is not limited to this. Such a processing procedure is performed by incorporating a control program in the ROM built in the
先ず、制御部10は、最大構成階層数の入力を操作部11(最大構成階層数入力部11a)において受け付ける(ステップS1)。例えば、図3に示すように、最大構成階層数の入力を促す画像を表示部12に表示することにより、利用者は、この画像を見ながら操作部11を用いて最大構成階層数を入力する。
First, the
次いで、入力された最大構成階層数が0であるか否かを判定する(ステップS2)。最大構成階層数が0である場合(S2:YES)、階層化させる必要がないことから、記憶部13に新規にフォルダを作成することなく、所定のフォルダに音楽ファイルを格納する(ステップS3)。例えば、図4に示すように、ルートディレクトリ20に音楽ファイル30(音楽ファイル1,2,…)を格納する。このように、利用者が最大構成階層数として0を意図的に与えることにより、属性情報に関わらず、ルートディレクトリ20に音楽ファイル30が格納され、例えば、一時的に記憶しておくような音楽ファイルをルートディレクトリ20に格納して管理することができる。
Next, it is determined whether or not the input maximum number of layers is 0 (step S2). If the maximum number of hierarchies is 0 (S2: YES), there is no need to make hierarchies, so music files are stored in a predetermined folder without creating a new folder in the storage unit 13 (step S3). . For example, music files 30 (music files 1, 2,...) Are stored in the
一方、入力された最大構成階層数が0でない場合(S2:NO)、楽曲情報を構成するパラメータの優先度の入力を操作部11(優先パラメータ入力部11b)において受け付ける(ステップS4)。例えば、図5に示すように、S1にて入力された最大構成階層数に応じて、優先度1のパラメータ、優先度2のパラメータ、…、最大構成階層数までのパラメータの優先度の入力を促す画像を表示部12に表示することにより、利用者は、この画像を見ながら操作部11を用いてパラメータの優先度を入力する。
On the other hand, when the input maximum number of layers is not 0 (S2: NO), the operation unit 11 (priority
そして、S4にて受け付けたパラメータ数と最大構成階層数とが一致しているか否かの判定を行ない(ステップS5)、パラメータ数と最大構成階層数とが一致していない場合(S5:NO)、利用者の入力ミスと考えられるので、S4へ移行して優先度の再入力を受け付ける。 Then, it is determined whether or not the number of parameters received in S4 matches the maximum number of hierarchies (step S5). If the number of parameters does not match the maximum number of hierarchies (S5: NO) Since it is considered that the user has made an input error, the process proceeds to S4 to accept priority re-input.
一方、パラメータ数と最大構成階層数とが一致している場合(S5:YES)、最小格納ファイル数の入力を操作部11(最小格納ファイル数入力部11c)において受け付ける(ステップS6)。例えば、図6に示すように、最小格納ファイル数の入力を促す画像を表示部12に表示することにより、利用者は、この画像を見ながら操作部11を用いて最小格納ファイル数を入力する。最小格納ファイル数は、フォルダに格納する場合の最小のファイル数であり、本例では最小格納ファイル数を下回るフォルダの作成を禁止する。
On the other hand, when the number of parameters matches the maximum number of hierarchical layers (S5: YES), the operation unit 11 (minimum storage file
そして、入力されたパラメータの優先度及び最小格納ファイル数に基づいて音楽ファイルのソート処理を行なう(ステップS7)。図7はソート処理の処理手順を示すフローチャートである。ここで、理解を容易にするため、最大構成階層数が2、優先度1のパラメータがアーティスト名、優先度2のパラメータがアルバム名、最小格納ファイル数が3の場合について説明する。
Then, the music file is sorted based on the input parameter priority and the minimum number of stored files (step S7). FIG. 7 is a flowchart showing the processing procedure of the sorting process. Here, for easy understanding, a case will be described in which the maximum number of layers is 2, the parameter of
まず、音楽ファイルを優先度1のパラメータであるアーティスト名でソートする(ステップS11)。次いで、ソートされた音楽ファイルを優先度2のパラメータであるアルバム名でさらにソートする(ステップS12)。そして、同一のアーティスト名及びアルバム名を楽曲情報にもつ音楽ファイルのファイル数を計数し(ステップS13)、計数したファイル数と最小格納ファイル数とを比較し、音楽ファイルの数が最小格納ファイル数を下回るか否かを判定する(ステップS14)。そして、音楽ファイルの数が最小格納ファイル数を下回る場合(S14:YES)、そのアルバム名をソートの対象から除外し(ステップS15)、S11へ移行して再度ソートを行なう。 First, music files are sorted by artist name which is a parameter of priority 1 (step S11). Next, the sorted music files are further sorted by album name which is a priority 2 parameter (step S12). Then, the number of music files having the same artist name and album name in the music information is counted (step S13), the counted number of files is compared with the minimum number of stored files, and the number of music files is the minimum number of stored files. It is determined whether it is less than (step S14). If the number of music files is less than the minimum number of stored files (S14: YES), the album name is excluded from the sort target (step S15), the process proceeds to S11, and the sort is performed again.
一方、音楽ファイルの数が最小格納ファイル数を下回らない場合(S14:NO)、ソート処理を終了してメインフローに戻る。 On the other hand, if the number of music files does not fall below the minimum number of stored files (S14: NO), the sort process is terminated and the process returns to the main flow.
そして、ソート処理の結果に基づいて、記憶部13にアーティスト名のフォルダを生成し、さらにアルバム名のフォルダを作成する(ステップS8)。そして、生成したフォルダに音楽ファイルを格納する(ステップS9)。なお、本例では、同一のアーティスト名及びアルバム名の音楽ファイルのファイル数に応じて、音楽ファイルを格納する階層を異ならせる。
Then, based on the result of the sorting process, an artist name folder is generated in the
例えば、図8に示すように、ルートディレクトリ20の下層にアーティスト1のフォルダ21を生成し、さらにフォルダ21の下層にアルバム1−1のフォルダ22aを作成する。そして、音楽ファイル30a(音楽ファイル1−1−1,1−1−2,1−1−3)をフォルダ22aに格納する。また、フォルダ21の下層にアルバム1−2のフォルダ22bを作成する。そして、音楽ファイル30b(音楽ファイル1−2−1,1−2−2,1−2−3)をフォルダ22bに格納する。
For example, as shown in FIG. 8, an
一方、音楽ファイル30c(音楽ファイル1−3−1,1−4−1,1−5−1)に対しては、フォルダ21の下層にフォルダを生成するのではなく、仮にこれらの各音楽ファイル30cに対応するフォルダを生成した場合には、生成したフォルダに格納される音楽ファイルのファイル数が最小格納ファイル数(例えば3)を下回るため、フォルダ21に音楽ファイル30cを格納する。なお、S7にて行なったソート処理の結果を表示部12に表示にして、利用者が音楽ファイルの階層化状態を把握するようにしてもよい。
On the other hand, for the
なお、ソート処理を行なう場合には、一のパラメータより上位のパラメータが同一となる音楽ファイルのファイル数が最小格納ファイル数より少ないか否かを判別するためのフラグ情報を各音楽ファイルに関連付けるようにしておくことで処理を簡単にすることができる。 When sorting is performed, flag information for determining whether or not the number of music files having the same higher-order parameter than the one parameter is smaller than the minimum number of stored files is associated with each music file. By doing so, processing can be simplified.
図9はソート処理に用いるフラグ情報の概要を説明するための図である。
フラグ情報40は、第1要素41がアーティスト、第2要素42がアルバム、第3要素43がジャンルなど、楽曲情報のパラメータ数に応じて予め定められた要素を有する。要素41,42,…が´1´である場合は、該要素と同一の音楽ファイルのファイル数が最小格納ファイル数以上であることを示し、要素41,42,…が´0´である場合は、該要素と同一の音楽ファイルのファイル数が最小格納ファイル数未満であることを示す。
FIG. 9 is a diagram for explaining an outline of flag information used in the sorting process.
The
例えば、図10に示すように、ソート処理を行なう前に、一旦、要素41,42を´1´に設定し、その後にソート処理を行ない、要素41,42と同一の音楽ファイルのファイル数が最小格納ファイル数未満である場合に、該当する要素42を´0´に設定する。これにより、フラグ情報を参照することにより、´0´の要素、すなわちファイル数が最小格納ファイル数未満である音楽ファイルを識別して、簡単にソートの対象から除外する。つまり、フラグ情報がデータファイルのソートを行なうか否かを識別するための情報として機能し、フラグ情報を参照することでソート処理が極めて容易となり、ソート処理に係る処理負担を軽減することができる。
For example, as shown in FIG. 10, before performing the sorting process, the
以上、詳述したように、最小格納ファイル数を下回るファイル数のフォルダが存在する虞は全くないので、音楽ファイルを記憶するに従って階層が複雑になることを抑制することができる。また、音楽ファイルがソートされていることから、利用者が目的の音楽ファイルを容易に検索することができる。さらに、利用者が最小格納ファイル数を適宜設定して、最下層のフォルダに格納すべきファイル数を調整することができる。 As described above in detail, there is no possibility that there are folders with the number of files less than the minimum number of stored files, so that it is possible to prevent the hierarchy from becoming complicated as music files are stored. Also, since the music files are sorted, the user can easily search for the target music file. Further, the user can appropriately set the minimum number of files to adjust the number of files to be stored in the lowermost folder.
なお、実施の形態では、記憶部13に記憶された音楽ファイルを対象にして、その音楽ファイルを格納するフォルダの構成を決定するようにしたが、フォルダ構成決定部15が、外部の光ディスク及び磁気ディスクなどの記憶ディスクのフォルダ構成を決定し、決定されたフォルダ構成に基づいて、書込処理部16が記憶ディスクに階層化されたフォルダを生成し、生成したフォルダに音楽ファイルを格納するようにしてもよい。また、記憶部13に記憶された音楽ファイルのうち、記憶ディスクに書き込む音楽ファイルを利用者が選択するようにしてもよい。
In the embodiment, the music file stored in the
また、MP3プレイヤーのようなオーディオ機器1を例に説明したが、映像ファイルを記憶するDVDレコーダ、ハードディスクレコーダにも適用できることはいうまでもなく、この場合には、映像ファイルのタイトル、ジャンル、記憶年月日などを映像ファイルの属性情報として活用すればよく、記憶装置全般に本発明を適用することができる。
Further, the
10 制御部
11 操作部
12 表示部
13 記憶部
14 楽曲情報取得部
15 フォルダ構成決定部
15a ファイル分類手段
15b 比較手段
15c ファイル移動手段
16 書込処理部
16a フォルダ生成手段
16b ファイル格納手段
DESCRIPTION OF
Claims (5)
前記記憶装置が、
前記パラメータの優先度を受け付け、
受け付けた優先度順にデータファイルをソートして、データファイルを同一のパラメータを有するグループに分類し、
優先度が最下位のグループに属するデータファイルの数と基準数とを比較し、
比較の結果、データファイルの数が基準数を下回る場合、該データファイルを1つ上位のグループへ移動させ、
分類及び移動されたグループに基づいて、階層化されたフォルダを生成し、
生成したフォルダにデータファイルを格納すること
を特徴とする階層化構造生成方法。 In a hierarchical structure generation method for generating a folder for hierarchically storing data files in a storage device that stores data files associated with attribute information including a plurality of parameters,
The storage device is
Accept the priority of the parameters,
Sort the data files in the order of priority received, classify the data files into groups with the same parameters,
Compare the number of data files belonging to the lowest priority group and the reference number,
If the number of data files is less than the reference number as a result of the comparison, the data file is moved to the next higher group,
Create hierarchical folders based on categorized and moved groups,
A hierarchical structure generation method characterized by storing data files in a generated folder.
前記パラメータの優先度を受け付ける手段と、
受け付けた優先度順にデータファイルをソートして、データファイルを同一のパラメータを有するグループに分類するファイル分類手段と、
優先度が最下位のグループに属するデータファイルの数と基準数とを比較する比較手段と、
比較の結果、データファイルの数が基準数を下回る場合、該データファイルを1つ上位のグループへ移動させるファイル移動手段と、
前記ファイル分類手段及び前記ファイル移動手段によって分類及び移動されたグループに基づいて、階層化されたフォルダを生成するフォルダ生成手段と、
生成したフォルダにデータファイルを格納するファイル格納手段と
を備えることを特徴とする記憶装置。 In a storage device for storing a data file associated with attribute information including a plurality of parameters,
Means for receiving the priority of the parameter;
A file classification means for sorting the data files in order of received priority and classifying the data files into groups having the same parameters;
A comparison means for comparing the number of data files belonging to the lowest priority group and the reference number;
As a result of the comparison, when the number of data files is less than the reference number, a file moving means for moving the data files to a group higher by one,
Folder generating means for generating a hierarchical folder based on the group classified and moved by the file classification means and the file moving means;
A storage device comprising: file storage means for storing a data file in the generated folder.
前記ファイル分類手段は、
前記フラグ情報に基づいて、前記データファイルをソートの対象から除外すること
を特徴とする請求項2に記載の記憶装置。 Means for adding flag information for identifying whether to sort the data file by the file classification means to the management area of the data file;
The file classification means includes:
The storage device according to claim 2, wherein the data file is excluded from sorting targets based on the flag information.
受け付けた最大構成階層数がゼロであるか否かを判定する手段とを備え、
最大構成階層数がゼロであると判定された場合、フォルダを生成することなく、所定のフォルダにデータファイルを格納するようにしてあること
を特徴とする請求項2又は請求項3に記載の記憶装置。 Means for receiving the maximum number of hierarchical layers of the folder;
Means for determining whether or not the maximum number of configured layers received is zero,
The storage according to claim 2 or 3, wherein when it is determined that the maximum number of hierarchical levels is zero, a data file is stored in a predetermined folder without generating a folder. apparatus.
前記比較手段は、
前記優先度が最下位のグループに属するデータファイルの数と、前記基準数受付手段にて受け付けた基準数とを比較するようにしてあること
を特徴とする請求項2乃至請求項4のいずれか1つに記載の記憶装置。 A reference number receiving means for receiving the reference number;
The comparison means includes
5. The method according to claim 2, wherein the number of data files belonging to the lowest priority group is compared with the reference number received by the reference number receiving means. The storage device according to one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005310294A JP2007122180A (en) | 2005-10-25 | 2005-10-25 | Hierarchized structure generation method and storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005310294A JP2007122180A (en) | 2005-10-25 | 2005-10-25 | Hierarchized structure generation method and storage device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007122180A true JP2007122180A (en) | 2007-05-17 |
Family
ID=38145996
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005310294A Pending JP2007122180A (en) | 2005-10-25 | 2005-10-25 | Hierarchized structure generation method and storage device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007122180A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010108322A (en) * | 2008-10-31 | 2010-05-13 | Sanyo Electric Co Ltd | File management device |
KR101365438B1 (en) * | 2007-11-27 | 2014-02-20 | 삼성전자주식회사 | Method and apparatus for allowing media transfer protocol device to manage media file |
JP2020008901A (en) * | 2018-07-02 | 2020-01-16 | 富士ゼロックス株式会社 | Information processing apparatus, information processing system and information processing program |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10154091A (en) * | 1996-11-26 | 1998-06-09 | Fujitsu Ltd | Method for generating file system |
JP2003296217A (en) * | 2002-04-03 | 2003-10-17 | Canon Inc | Communication terminal device and its control method |
JP2004215231A (en) * | 2002-12-16 | 2004-07-29 | Konica Minolta Holdings Inc | File management program |
JP2005267330A (en) * | 2004-03-19 | 2005-09-29 | Snk Playmore Corp | Portable terminal apparatus and data management program |
-
2005
- 2005-10-25 JP JP2005310294A patent/JP2007122180A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10154091A (en) * | 1996-11-26 | 1998-06-09 | Fujitsu Ltd | Method for generating file system |
JP2003296217A (en) * | 2002-04-03 | 2003-10-17 | Canon Inc | Communication terminal device and its control method |
JP2004215231A (en) * | 2002-12-16 | 2004-07-29 | Konica Minolta Holdings Inc | File management program |
JP2005267330A (en) * | 2004-03-19 | 2005-09-29 | Snk Playmore Corp | Portable terminal apparatus and data management program |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101365438B1 (en) * | 2007-11-27 | 2014-02-20 | 삼성전자주식회사 | Method and apparatus for allowing media transfer protocol device to manage media file |
JP2010108322A (en) * | 2008-10-31 | 2010-05-13 | Sanyo Electric Co Ltd | File management device |
JP2020008901A (en) * | 2018-07-02 | 2020-01-16 | 富士ゼロックス株式会社 | Information processing apparatus, information processing system and information processing program |
JP7095439B2 (en) | 2018-07-02 | 2022-07-05 | 富士フイルムビジネスイノベーション株式会社 | Information processing equipment, information processing systems, and information processing programs |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101648204B1 (en) | Generating metadata for association with a collection of content items | |
CN100452029C (en) | Method and system for managing media file database | |
US6745199B2 (en) | Information processing apparatus and information processing method, and program storing medium | |
US7904485B2 (en) | Graphical representation of assets stored on a portable media device | |
JP5226240B2 (en) | Apparatus and method for searching media content using metadata | |
US20060282789A1 (en) | Browsing method and apparatus using metadata | |
US20080301173A1 (en) | Method and apparatus for generating playlist of media content and method and apparatus for playing media content | |
US20110213475A1 (en) | System and method for interactive visualization of music properties | |
JP2007066498A5 (en) | ||
JP2007122180A (en) | Hierarchized structure generation method and storage device | |
US20100005127A1 (en) | File operation apparatus | |
US20120271830A1 (en) | Data processing device | |
JP4539552B2 (en) | Content search apparatus and content search program | |
US20090216767A1 (en) | Method And Device For Data Management | |
JP2008242880A (en) | Content display system, content display method and onboard information terminal device | |
JP4674726B2 (en) | File management method and information processing apparatus | |
JP5755456B2 (en) | Playlist editing apparatus, playlist editing method, playlist editing program, and recording medium storing playlist editing program | |
JP5573744B2 (en) | List generating apparatus and program thereof | |
JP2004030116A (en) | Device, method, and program for information reproduction | |
KR100732665B1 (en) | User terminal device having management function of music file and management method using the same | |
JP2010020660A (en) | Content information display device, server, display device, and their programs | |
US9535957B1 (en) | Electronic file management based on user affinity | |
KR100746042B1 (en) | Method and apparatus for browsing contents files | |
JP3995657B2 (en) | Data processing device | |
KR100619042B1 (en) | Method and apparatus for searching a file of the memory card |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080220 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100916 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20101005 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20110222 |