CreateSchema
Creates a schema file for the collection.
CreateSchema
データモデル内の既存のテーブルまたはビューからローカルスキーマファイル(.rsd)を作成します。
スキーマファイルは、このプロシージャが実行されると、Location 接続プロパティで設定されたディレクトリに作成されます。ファイルを編集してカラムを含めたり除外したり、カラム名を変更したり、カラムのデータ型を変更したりできます。
本製品 はLocation を確認し、.rsd ファイルの名前がデータモデルのテーブルまたはビューに一致するかどうかを判断します。重複がある場合、スキーマファイルはデータモデル内のこのテーブルのデフォルトインスタンスよりも優先されます。既存のテーブルまたはビューに一致しないスキーマファイルがLocation に存在する場合、新しいテーブルまたはビューのエントリが本製品 のデータモデルに追加されます。
Input
| Name | Type | Description |
| SchemaName | String | For use with Elasticsearch versions earlier than 7.0. The name of the schema (the Elasticsearch index). |
| TableName | String | Pre Elasticsearch 7.0, the name of Elasticsearch mapping type. Post Elasticsearch 7.0, the name of the Elasticsearch index. |
| FileName | String | The file name sans extension of the generated schema. |
Result Set Columns
| Name | Type | Description |
| Result | String | Returns Success or Failure. |
| FileData | String | The generated schema encoded in base64. Only returned if none of FileName or FileStream are set. |