public class SelectObjectContentRequest extends ObjectRequest
CosXmlRequest.OnRequestWeightListener
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
EXPRESSION_TYPE_SQL |
cosPath
bucket, noSignHeaders, noSignParams, priority, qCloudTaskStateListener, queryParameters, region, requestHeaders, requestURL, signSourceProvider
构造器和说明 |
---|
SelectObjectContentRequest(java.lang.String bucket,
java.lang.String cosPath,
java.lang.String sql,
boolean requestProgress,
InputSerialization inputSerialization,
OutputSerialization outputSerialization)
构建对象检索请求(默认SQL检索)
|
SelectObjectContentRequest(java.lang.String bucket,
java.lang.String cosPath,
java.lang.String expressionType,
java.lang.String expression,
RequestProgress requestProgress,
InputSerialization inputSerialization,
OutputSerialization outputSerialization)
构建对象检索请求
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getMethod()
获取HTTP请求方法
RequestMethod |
java.util.Map<java.lang.String,java.lang.String> |
getQueryString()
获取url query集合
|
SelectObjectContentListener |
getSelectObjectContentProgressListener()
获取检索进度监听器
|
java.lang.String |
getSelectResponseFilePath()
获取响应保存文件路径
|
boolean |
isNeedMD5()
针对有请求体的 PUT 和 POST 请求,此头部是必选项。
|
void |
setSelectObjectContentProgressListener(SelectObjectContentListener selectObjectContentProgressListener)
设置检索进度监听器
|
void |
setSelectResponseFilePath(java.lang.String selectResponseFilePath)
设置响应保存文件路径
|
protected RequestBodySerializer |
xmlBuilder()
收拢xml解析
|
checkParameters, getContentType, getCosPath, getPath, setCosPath, setCOSServerSideEncryption, setCOSServerSideEncryptionWithCustomerKey, setCOSServerSideEncryptionWithKMS
addHeader, addNoSignHeader, addNoSignParams, addQuery, attachMetrics, getBucket, getHttpTask, getKeyTime, getMetrics, getNoSignHeaders, getNoSignParams, getPriority, getQueryEncodedString, getRegion, getRequestBody, getRequestHeaders, getRequestHost, getRequestURL, getSignSourceProvider, getSTSCredentialScope, getWeight, headersHasUnsafeNonAscii, isSignInUrl, isSupportAccelerate, isSupportAccelerate, setNeedMD5, setOnRequestWeightListener, setQueryEncodedString, setQueryParameters, setRegion, setRequestHeaders, setRequestHeaders, setRequestHeaders, setRequestURL, setSign, setSign, setSign, setSign, setSign, setSignInUrl, setSignKeyTime, setSignParamsAndHeaders, setSignSourceProvider, setTask, setTaskStateListener
public static final java.lang.String EXPRESSION_TYPE_SQL
public SelectObjectContentRequest(java.lang.String bucket, java.lang.String cosPath, java.lang.String expressionType, java.lang.String expression, RequestProgress requestProgress, InputSerialization inputSerialization, OutputSerialization outputSerialization)
bucket
- 存储桶名cosPath
- 对象cos路径expressionType
- 表达式类型,该项为扩展项,目前只支持 SQL 表达式,仅支持 SQL 参数expression
- SQL 表达式,代表您需要发起的检索操作 请参考:Select 命令requestProgress
- 是否需要返回查询进度 QueryProgress 信息,如果选中 COS Select 将周期性返回查询进度inputSerialization
- 描述待检索对象的格式outputSerialization
- 描述检索结果的输出格式public SelectObjectContentRequest(java.lang.String bucket, java.lang.String cosPath, java.lang.String sql, boolean requestProgress, InputSerialization inputSerialization, OutputSerialization outputSerialization)
bucket
- 存储桶名cosPath
- 对象cos路径sql
- SQL 表达式,代表您需要发起的检索操作 请参考:Select 命令requestProgress
- 是否需要返回查询进度 QueryProgress 信息,如果选中 COS Select 将周期性返回查询进度inputSerialization
- 描述待检索对象的格式outputSerialization
- 描述检索结果的输出格式public java.util.Map<java.lang.String,java.lang.String> getQueryString()
CosXmlRequest
getQueryString
在类中 CosXmlRequest
public java.lang.String getMethod()
CosXmlRequest
RequestMethod
getMethod
在类中 CosXmlRequest
protected RequestBodySerializer xmlBuilder() throws org.xmlpull.v1.XmlPullParserException, java.io.IOException
CosXmlRequest
xmlBuilder
在类中 CosXmlRequest
org.xmlpull.v1.XmlPullParserException
java.io.IOException
public boolean isNeedMD5()
CosXmlRequest
isNeedMD5
在类中 CosXmlRequest
public void setSelectObjectContentProgressListener(SelectObjectContentListener selectObjectContentProgressListener)
selectObjectContentProgressListener
- 检索进度监听器public SelectObjectContentListener getSelectObjectContentProgressListener()
public void setSelectResponseFilePath(java.lang.String selectResponseFilePath)
selectResponseFilePath
- 响应保存文件路径public java.lang.String getSelectResponseFilePath()