

# Pendo エンティティからの読み取り
<a name="pendo-reading-from-entities"></a>

 **前提条件** 

読み取り元の Pendo オブジェクト。使用可能なエンティティを確認するには、以下のサポートされているエンティティの表を参照してください。

 **サポートされているエンティティ** 
+ [機能](https://developers.pendo.io/docs/?bash#feature)
+ [ガイド](https://developers.pendo.io/docs/?bash#guide)
+ [ページ](https://developers.pendo.io/docs/?bash#page)
+ [レポートを行う](https://developers.pendo.io/docs/?bash#report)
+ [レポートデータ](https://developers.pendo.io/docs/?bash#return-report-contents-as-array-of-json-objects)
+ [訪問者](https://developers.pendo.io/docs/?bash#visitor)
+ [アカウント](https://developers.pendo.io/docs/?bash#entities)
+ [イベント](https://developers.pendo.io/docs/?bash#events-grouped)
+ [フィーチャーイベント](https://developers.pendo.io/docs/?bash#events-grouped)
+ [ガイドイベント](https://developers.pendo.io/docs/?bash#events-ungrouped)
+ [ページイベント](https://developers.pendo.io/docs/?bash#events-grouped)
+ [投票調査イベント](https://developers.pendo.io/docs/?bash#events-ungrouped)
+ [トラックイベント](https://developers.pendo.io/docs/?bash#events-grouped)


| エンティティ | フィルタリング可能 | 制限をサポートする | Order By をサポートする | Select \$1 をサポートする | パーティショニングをサポートする | 
| --- | --- | --- | --- | --- | --- | 
| 機能 | いいえ | なし | なし | あり | なし | 
| ガイド | いいえ | なし | なし | あり | なし | 
| ページ | いいえ | なし | なし | あり | なし | 
| レポートを行う | いいえ | なし | なし | あり | なし | 
| レポートデータ | いいえ | なし | なし | あり | なし | 
| 訪問者 (Aggregation API) | はい | なし | はい | あり | なし | 
| アカウント (Aggregation API) | はい | なし | はい | あり | なし | 
| イベント (Aggregation API) | はい | なし | はい | あり | なし | 
| フィーチャーイベント (Aggregation API) | はい | なし | はい | はい | はい | 
| ガイドイベント (Aggregation API) | はい | なし | はい | はい | はい | 
| アカウント (Aggregation API) | はい | なし | はい | はい | はい | 
| ページイベント (Aggregation API) | はい | なし | はい | はい | はい | 
| 投票調査イベント (Aggregation API) | はい | なし | はい | はい | はい | 
| トラックイベント (Aggregation API) | はい | なし | はい | はい | はい | 

 **例** 

```
Pendo_read = glueContext.create_dynamic_frame.from_options(
    connection_type="glue.spark.Pendo",
    connection_options={
        "connectionName": "connectionName",
        "ENTITY_NAME": "feature",
        "API_VERSION": "v1",
        "INSTANCE_URL": "instanceUrl"
    }
```

## パーティショニングクエリ
<a name="adobe-marketo-engage-reading-partitioning-queries"></a>

Spark で同時実行を使用する場合は、追加の Spark オプション `PARTITION_FIELD`、`LOWER_BOUND`、`UPPER_BOUND`、および `NUM_PARTITIONS` を指定できます。これらのパラメータを使用すると、元のクエリは Spark タスクで同時に実行できるサブクエリの `NUM_PARTITIONS` の数に分割されます。
+ `PARTITION_FIELD`: クエリのパーティション化に使用するフィールドの名前。
+ `LOWER_BOUND`: 選択したパーティションフィールドの**包括的な**下限値。

  DateTime フィールドでは、ISO 形式の値を受け入れます。

  有効な値の例:

  ```
  "2024-07-01T00:00:00.000Z"
  ```
+ `UPPER_BOUND`: 選択したパーティションフィールドの**排他的**上限値。
+ `NUM_PARTITIONS`: パーティション数。

次の表に、エンティティパーティション分割フィールドのサポートの詳細を示します:


| エンティティ名 | 
| --- | 
| イベント | 
|  フィーチャーイベント  | 
| ガイドイベント | 
| ページイベント | 
| 投票調査イベント | 
| トラックイベント | 

例:

```
pendo_read = glueContext.create_dynamic_frame.from_options(
    connection_type="glue.spark.pendo",
    connection_options={
        "connectionName": "connectionName",
        "ENTITY_NAME": "event",
        "API_VERSION": "v1",
        "INSTANCE_URL": "instanceUrl"
        "NUM_PARTITIONS": "10",
        "PARTITION_FIELD": "appId"
        "LOWER_BOUND": "4656"
        "UPPER_BOUND": "7788"
    }
```