类 SelectObjectRequest
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.model.select.SelectObjectRequest
Configuration of an OBS Select request
-
字段概要
字段修饰符和类型字段说明private Stringprivate Stringprivate Stringprivate InputSerializationprivate Stringprivate OutputSerializationprivate RequestProgressprivate ScanRange -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Generates the request in XML formatReturns the name of the bucketReturns the request (SQL) expressiongetKey()Returns the key of the input filewithBucketName(String bucketName) Sets the name of the bucketwithExpression(String expression) Sets the (SQL) expression to be evaluatedwithExpressionType(ExpressionType expressionType) Informs the type of the expression.withInputSerialization(InputSerialization inputSerialization) Configures the input serializationSets the key of the input filewithOutputSerialization(OutputSerialization outputSerialization) Configures the output serializationwithRequestProgress(RequestProgress requestProgress) Informs that periodic request progress may be enabledwithScanRange(ScanRange scanRange) Configures the range of bytes of the input file to scan
-
字段详细资料
-
bucketName
-
key
-
expression
-
expressionType
-
requestProgress
-
inputSerialization
-
outputSerialization
-
scanRange
-
-
构造器详细资料
-
SelectObjectRequest
public SelectObjectRequest()
-
-
方法详细资料
-
getBucketName
Returns the name of the bucket- 返回:
- Bucket name
-
getKey
Returns the key of the input file- 返回:
- Key name
-
getExpression
Returns the request (SQL) expression- 返回:
- Expression
-
withBucketName
Sets the name of the bucket- 参数:
bucketName- Bucket name- 返回:
- Self
-
withKey
Sets the key of the input file- 参数:
key- Key of input file- 返回:
- Self
-
withExpression
Sets the (SQL) expression to be evaluated- 参数:
expression- Expression to evaluate- 返回:
- Self
-
withRequestProgress
Informs that periodic request progress may be enabled- 参数:
requestProgress- Enable or disable requestProgress- 返回:
- Self
-
withExpressionType
Informs the type of the expression. Current only SQL is supported.- 参数:
expressionType- Type of the expression- 返回:
- Self
-
withInputSerialization
Configures the input serialization- 参数:
inputSerialization- Input serialization format- 返回:
- Self
-
withOutputSerialization
Configures the output serialization- 参数:
inputSerialization- Output serialization format- 返回:
- Self
-
withScanRange
Configures the range of bytes of the input file to scan- 参数:
scanRange- Range of bytes- 返回:
- Self
-
convertToXml
Generates the request in XML format- 返回:
- XML request
- 抛出:
SelectObjectException
-