public class Client extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
_credential |
String |
_domainsuffix |
String |
_endpoint |
String |
_instanceId |
String |
_protocol |
com.aliyun.teautil.models.RuntimeOptions |
_runtimeOptions |
String |
_userAgent |
| Modifier and Type | Method and Description |
|---|---|
Map<String,?> |
_request(String method,
String pathname,
Map<String,?> query,
Map<String,String> headers,
Object body,
com.aliyun.teautil.models.RuntimeOptions runtime) |
void |
addRequestInterceptor(com.aliyun.tea.interceptor.RequestInterceptor interceptor) |
void |
addResponseInterceptor(com.aliyun.tea.interceptor.ResponseInterceptor interceptor) |
void |
addRuntimeOptionsInterceptor(com.aliyun.tea.interceptor.RuntimeOptionsInterceptor interceptor) |
void |
appendUserAgent(String userAgent)
添加Client UA 配置.
|
com.aliyun.teautil.models.RuntimeOptions |
buildRuntimeOptions(com.aliyun.teautil.models.RuntimeOptions runtimeOptions)
构建RuntimeOptions
|
SearchResponse |
fetch(FetchRequest request)
查询数据
|
String |
getEndpoint(String endpoint)
如果endpoint 配置以 http:// 或 https:// 开头,则去掉头部的 http:// 或 https://, 否则直接返回
|
String |
getRealmSignStr(String accessUserName,
String accessPassWord)
计算用户请求识别特征, 遵循 Basic Auth 生成规范.
|
String |
getUserAgent()
获取Client 配置 UA 配置.
|
SearchResponse |
inferenceQuery(QueryRequest request)
向量预测查询
|
SearchResponse |
multiQuery(MultiQueryRequest request)
多namespace查询
|
PushDocumentsResponse |
pushDocuments(String dataSourceName,
String keyField,
PushDocumentsRequest request)
支持新增、更新、删除 等操作,以及对应批量操作
|
PushDocumentsResponse |
pushDocumentsWithSwift(String dataSourceName,
String keyField,
String topic,
String swift,
PushDocumentsRequest request)
用于内网环境的新增、更新、删除 等操作,以及对应批量操作
|
SearchResponse |
query(QueryRequest request)
向量查询
|
void |
setUserAgent(String userAgent)
设置Client UA 配置.
|
SearchResponse |
stats(String tableName)
文档统计
|
public String _endpoint
public String _instanceId
public String _protocol
public String _userAgent
public String _credential
public String _domainsuffix
public com.aliyun.teautil.models.RuntimeOptions _runtimeOptions
public Map<String,?> _request(String method, String pathname, Map<String,?> query, Map<String,String> headers, Object body, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception
Exceptionpublic void addRuntimeOptionsInterceptor(com.aliyun.tea.interceptor.RuntimeOptionsInterceptor interceptor)
public void addRequestInterceptor(com.aliyun.tea.interceptor.RequestInterceptor interceptor)
public void addResponseInterceptor(com.aliyun.tea.interceptor.ResponseInterceptor interceptor)
public String getEndpoint(String endpoint) throws Exception
Exceptionpublic void setUserAgent(String userAgent) throws Exception
Exceptionpublic void appendUserAgent(String userAgent) throws Exception
Exceptionpublic String getRealmSignStr(String accessUserName, String accessPassWord) throws Exception
Exceptionpublic SearchResponse query(QueryRequest request) throws Exception
Exceptionpublic SearchResponse inferenceQuery(QueryRequest request) throws Exception
Exceptionpublic SearchResponse multiQuery(MultiQueryRequest request) throws Exception
Exceptionpublic SearchResponse fetch(FetchRequest request) throws Exception
Exceptionpublic SearchResponse stats(String tableName) throws Exception
Exceptionpublic PushDocumentsResponse pushDocuments(String dataSourceName, String keyField, PushDocumentsRequest request) throws Exception
Exceptionpublic PushDocumentsResponse pushDocumentsWithSwift(String dataSourceName, String keyField, String topic, String swift, PushDocumentsRequest request) throws Exception
ExceptionCopyright © 2024. All rights reserved.