langchain_community.utilities.max_compute
.MaxComputeAPIWrapper¶
- class langchain_community.utilities.max_compute.MaxComputeAPIWrapper(client: ODPS)[source]¶
用于查询阿里云MaxCompute表的接口。
初始化MaxCompute文档加载器。
- 参数:
client: odps.ODPS MaxCompute客户端对象。
Methods
__init__
(client)初始化MaxCompute文档加载器。
from_params
(endpoint, project, *[, ...])方便的构造函数,从给定的参数构建odsp.ODPS MaxCompute客户端。
lazy_query
(query)query
(query)- Parameters
client (ODPS) –
- __init__(client: ODPS)[source]¶
初始化MaxCompute文档加载器。
- 参数:
client: odps.ODPS MaxCompute客户端对象。
- Parameters
client (ODPS) –
- classmethod from_params(endpoint: str, project: str, *, access_id: Optional[str] = None, secret_access_key: Optional[str] = None) MaxComputeAPIWrapper [source]¶
方便的构造函数,从给定的参数构建odsp.ODPS MaxCompute客户端。
- 参数:
endpoint: MaxCompute的终端点。 project: 项目是MaxCompute的基本组织单元,类似于数据库。 access_id: MaxCompute访问ID。应直接传递或设置为环境变量`MAX_COMPUTE_ACCESS_ID`。 secret_access_key: MaxCompute秘密访问密钥。应直接传递或设置为环境变量`MAX_COMPUTE_SECRET_ACCESS_KEY`。
- Parameters
endpoint (str) –
project (str) –
access_id (Optional[str]) –
secret_access_key (Optional[str]) –
- Return type