30日間の無料評価版をお試しいただけます。

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
classcontents

...

概要

Styleclass
ClasstopLink

top

A composite view allows you to connect to multiple different data sources and join data across these in a single view which users can then report off. Since the composite view is extracting data from multiple data sources there can be a long delay in report generation. To counter this Yellowfin stores the results sets of a composite view in the Yellowfin repository (or an alternative repository of your choice) and schedules the result set to be refreshed on a regular basis. In this way users writing reports will have a rapid response to their queries rather than having to wait for complex joins to be completed, and for IT these process intensive processes can be scheduled to run during off-peak times.

The view builder for a composite view differs from the standard drag and drop builder in that rather than displaying tables from a selected database it allows you to join existing Yellowfin views together and create virtual tables from any defined database.

...

ページトップ

コンポジットビューを使えば、複数のデータベースに接続しそれらにまたがるデータを1つのビューに統合してレポートを作成することができますが、複数のソースからデータを読み込むため、レポートの作成に長い時間を要する場合があります。この問題への対策としてYellowfinは、コンポジットビューの結果をYellowfinのリポジトリ(あるいはユーザーが選択した他の保管場所)に保存し、これを定期的にリフレッシュするようスケジュールします。これにより、レポート作成者は、複雑な結合による遅延の影響を感じずにクエリーへの迅速な応答を得ることができます。こうしたプロセス集約型の処理は、オフピークタイムに動作するよう設定されます。

コンポジットビューの作成は、1つのデータベース内のテーブルをドラッグ&ドロップして結合する通常のやり方とは違い、既存のYellowfinビューを結びつけて、複数のデータベースに接続された仮想テーブルを構成する形で行われます。

コンポジットビューの作成

Styleclass
ClasstopLink

top

The process of creating a composite view is similar to creating a standard Yellowfin drag and drop view. The difference however is that instead of selecting tables from a specific source you will select pre-existing Yellowfin views from each source you have defined.
You will also have to define where the data from your source database will be stored.

Define Storage Database

The data from a composite view will be extracted out of your target databases and stored in a separate database. Therefore, you will have to define a target database to store your data into. The first step in this process is to specify which databases are available to store results from your composite view.

  1. Selecting a Composite View Data Store
    Open your database connection record that you wish to save the results of your composite view into. You can use the Yellowfin connection or alternatively any SQL database of your choice.
    The user specified in the source will have to have write access for the database selected.
    Open your connection record and click 'YES' for Writable.
    Image Removed
  2. Select Database from Initiate a Composite View
    When initiating a new view (by clicking the create link) you will need to select 'composite view' from the "I want to author the view using" drop down.
    Image Removed

Prepare Data for your Composite View

If you do not wish to write SQL through virtual tables that joins data from separate source systems then you will have to create an initial view for each data source that you wish to include in the composite view. This view will contain the subset of data and the keys which you will use to join in your composite view.

Build these views through the normal view builder process and save the views to your database. Ensure that the columns you wish to join on are included in the views you create. If you do not create initial views then you will have to use the 'Virtual Table' builder and write SQL when creating your composite view.

Note: All metadata applied to your baseline views will be applied in your composite view.

Joining Existing Views Together

Once you have initiated your composite view you will be able to join multiple Yellowfin views together and also create virtual tables for freehand SQL queries against each of your data sources. The process of creating a composite view is similar to the standard drag and drop view builder. You will select views, define joins and select the columns you wish to make available to your end users.

Choose views you wish to join. If you have already created a set of views for the source systems you wish to connect then you will see these in the left hand database tables list in the appropriate source system folder. You can treat these as normal tables and join them as you would a standard view.

Image Removed

In the example below a table has been selected from the Ski Team database as well as the Yellowfin database and a join created through the standard join process.

Image Removed

Creating Virtual Tables

If you do not have the data you wish already defined in a pre-existing view then you can create a virtual table. The virtual table popup will prompt you to specify which source system you are connecting to.

In the example below the virtual table SQL has an additional drop down for the source system. You will need to specify the source system for any freehand SQL statements that you wish to generate.

Note: that for any aggregations used such as sums etc you will have to follow the aggregate function with an 'as "Column Name"' statement so that Yellowfin can generate a valid column name.

Set the Refresh Schedule

Since a composite view is refreshed on a regular basis you will need to define the refresh schedule. This schedule is located in the view options section on the right hand side of your screen.

The view will be refreshed by default on a daily basis at 12 midnight. You can change the schedule based upon your specific needs.

Image Removed

Initial Data Population

In the view summary you can preview data created by your view by navigating to the Data Tab and populating the view. If you fail to do this no data will be returned in your report until the first cycle of the schedule has run.

ページトップ

コンポジットビューを作るインターフェースは、ドラッグ&ドロップによって通常のビューを作成する場合と似ています。違いは、特定のデータベースからテーブルを選ぶ代わりに、いろいろなデータベースから既存のYellowfinビューを選ぶということです。
また、それらのデータベースから読み込まれるデータがどこに格納されるかも指定しなければなりません。

保存先データベースの設定

コンポジットビューからのデータは、別々のデータベースから読み込まれ、1つのデータベースに保管されます。したがってまずはデータを格納するターゲットデータベースを決める必要があります。第一ステップは、コンポジットビューから得られるデータを格納するのに充分なデータベースを確保することです。

  1. コンポジットビューストアーを選択
    コンポジットビューの結果を格納したいデータベース接続を選びます。Yellowfin接続だけでなく、他のSQLデータベースも選択可能です。
    コンポジットビューを利用するユーザーは、このソースデータベースに書き込み可能なアクセス権を持っている必要があります。
    「接続の詳細」を開き、「書き込み可」のラジオボタンを「Yes」に設定します。
    Image Added
  2. コンポジットビューの初期化でデータベースを選択する
    「ビュー追加」をクリックして新しいビューの作成画面を開き、「この方法でビューを作成」のドロップダウンメニューから「コンポジットビュー」を、「このビューのデータはキャッシュされます」に対して、保管先のデータベースを指定します。
    Image Added

コンポジットビューのデータを準備する

別々のソースシステムからデータを読み込むために、仮想テーブルを使ってSQLを書くのが面倒な場合には、あらかじめコンポジットビューに含めたいビューを各々のデータベースに対して作成しておく必要があります。それらのビューは、データのサブセットとコンポジットビューとして結合する際に使用されるキーを持っていなければなりません。

ビュービルダーを使用して(通常の)ビューを作成し、それぞれのデータベースに保存しておきます。使用したいカラムがビューに含まれていることを確認してください。上記のように、合成するためのビューを作成していない場合には、仮想テーブルを使用してSQLステートメントを記述しなければなりません。

注意: 合成するために作成したビューで定義されたすべてのメタデータは、そのままコンポジットビューで使用できます。

ビューの結合

コンポジットビューの作成にあたっては、複数のYellowfinビューを結合したり、データベースの各々に仮想テーブルを作成してSQLステートメントを記述したりできます。コンポジットビューを作成するためのインターフェースは、ドラッグ&ドロップによるビューの作成とほぼ同じです。ビューを選び、結合を定義し、エンドユーザーが利用できるようにしたいカラムを選択します。

コンポジットビューに含めるビューを選択します。既に合成したいビューが作成してあれば、ビュービルダーの「エンティティ」リストに、それらがソースデータベースごとに表示されています。これらは通常のテーブルと同じように、キャンバスにドラッグ&ドロップして互いに結合させることができます。

Image Added

以下の図は、Ski TeamのデータベーステーブルとYellowfinデータベースからテーブルをキャンバスにドラッグ&ドロップし、結合を定義した例です。

Image Added

仮想テーブルの作成

既存のビューの中に使用したいデータを含むものが存在しない場合、仮想テーブルを作成してコンポジットビューに含めることが可能です。「仮想テーブル」ウインドウで、接続するソースシステムを指定してください。 

下の図のように、仮想テーブルにはソースシステムに対するSQLステートメントを記述できます。どんなSQLを記述する場合にも、まずソースシステムを指定する必要があります。

Note: たとえば何かのデータを合計するような集計に関わるステートメントを記述する場合には、Yellowfinが有効なカラム名をつけることができるよう、「as カラム名」というように集計結果を保持するカラム名を指定する必要があります。

更新スケジュールの設定

コンポジットビューを定期的に更新するため、更新スケジュールを設定する必要があります。スケジュール設定は画面右側の「ビューオプション」欄で行います。

デフォルトでは、ビューは毎日午前0時に更新されます。この設定はユーザーの都合やシステムの使用状況に応じて変更できます。

Image Added

初期データの投入

「ビューサマリー」の「データ」タブに移動し、ビューにデータを投入して、このビューによって作成されるデータをプレビューしてください。これを行っておかないと、スケジュールされた時刻が来てデータが更新されるまでこれらのデータを使用してレポートを作成することができません。

  1. 「データ」タブに移動し、「今すぐデータを投入」をクリックします。
  2. これで、ビューにデータが投入され、「ページを更新」をクリックして、そのデータを表示できます。大量のデータがある場合、完了までに時間がかかることがあります。
    Image Added
  3. 投入が完了すると、ビューから返されるデータをプレビューできます。
  4. Go to the Data tab and click on the Populate Data Now link.
  5. You will now be told the view is being populated, click Refresh Page to view the data. If you have a large amount of data this may take some time to complete.
    Image Removed
  6. Once the population is complete you will see a preview of the data your view will return.



horizontalrule
Styleclass
ClasstopLink

topページトップ