共用方式為


DataSourceDef 類別

資料來源的定義。

初始化 DataSourceDef。

繼承
builtins.object
DataSourceDef

建構函式

DataSourceDef(name, description=None, data_type_id=None, datastore_name=None, path_on_datastore=None, sql_table=None, sql_query=None, sql_stored_procedure=None, sql_stored_procedure_params=None, pipeline_dataset=None)

參數

名稱 Description
name
必要
str

資料來源的名稱。

description
str

資料來源的描述。

預設值: None
data_type_id
str

資料來源的資料類型識別碼。

預設值: None
datastore_name
str

資料來源所在的資料存放區名稱。

預設值: None
path_on_datastore
str

對應至資料來源的資料存放區路徑。

預設值: None
sql_table
str

SQL 資料庫中資料表的名稱

預設值: None
sql_query
str

使用 SQL 資料庫時的 SQL 查詢

預設值: None
sql_stored_procedure
str

使用 SQL 資料庫時預存程式的名稱。

預設值: None
sql_stored_procedure_params

要傳遞至預存程式的選擇性參數清單。

預設值: None
pipeline_dataset

PipelineDataset,其中包含將使用的 AzureML 資料集。

預設值: None
name
必要
str

資料來源的名稱。

description
必要
str

資料來源的描述。

data_type_id
必要
str

資料來源的資料類型識別碼。

datastore_name
必要
str

資料來源所在的資料存放區名稱。

path_on_datastore
必要
str

對應至資料來源的資料存放區路徑。

sql_table
必要
str

SQL 資料庫中資料表的名稱

sql_query
必要
str

使用 SQL 資料庫時的 SQL 查詢

sql_stored_procedure
必要
str

使用 SQL 資料庫時預存程式的名稱

sql_stored_procedure_params
必要

要傳遞至預存程式的選擇性參數清單。

pipeline_dataset
必要

PipelineDataset,其中包含將使用的 AzureML 資料集。

方法

calculate_hash

計算資料來源的雜湊。

create_from_data_reference

使用 DataReference 建立 DataSourceDef。

calculate_hash

計算資料來源的雜湊。

calculate_hash()

傳回

類型 Description
str

十六進位雜湊。

create_from_data_reference

使用 DataReference 建立 DataSourceDef。

static create_from_data_reference(data_reference)

參數

名稱 Description
data_reference
必要

資料參考物件。

傳回

類型 Description

DataSourceDef 物件。

屬性

data_type_id

取得資料來源的資料類型識別碼。

傳回

類型 Description
str

資料來源的資料類型識別碼。

description

取得資料來源的描述。

傳回

類型 Description
str

資料來源的描述。

name

取得資料來源的名稱。

傳回

類型 Description
str

資料來源的名稱。

output_port_def

取得輸出埠定義。

傳回

類型 Description

輸出埠定義。