类 SelectObjectRequest

java.lang.Object
com.obs.services.model.select.SelectObjectRequest

public class SelectObjectRequest extends Object
Configuration of an OBS Select request
  • 构造器详细资料

    • SelectObjectRequest

      public SelectObjectRequest()
  • 方法详细资料

    • getBucketName

      public String getBucketName()
      Returns the name of the bucket
      返回:
      Bucket name
    • getKey

      public String getKey()
      Returns the key of the input file
      返回:
      Key name
    • getExpression

      public String getExpression()
      Returns the request (SQL) expression
      返回:
      Expression
    • withBucketName

      public SelectObjectRequest withBucketName(String bucketName)
      Sets the name of the bucket
      参数:
      bucketName - Bucket name
      返回:
      Self
    • withKey

      public SelectObjectRequest withKey(String key)
      Sets the key of the input file
      参数:
      key - Key of input file
      返回:
      Self
    • withExpression

      public SelectObjectRequest withExpression(String expression)
      Sets the (SQL) expression to be evaluated
      参数:
      expression - Expression to evaluate
      返回:
      Self
    • withRequestProgress

      public SelectObjectRequest withRequestProgress(RequestProgress requestProgress)
      Informs that periodic request progress may be enabled
      参数:
      requestProgress - Enable or disable requestProgress
      返回:
      Self
    • withExpressionType

      public SelectObjectRequest withExpressionType(ExpressionType expressionType)
      Informs the type of the expression. Current only SQL is supported.
      参数:
      expressionType - Type of the expression
      返回:
      Self
    • withInputSerialization

      public SelectObjectRequest withInputSerialization(InputSerialization inputSerialization)
      Configures the input serialization
      参数:
      inputSerialization - Input serialization format
      返回:
      Self
    • withOutputSerialization

      public SelectObjectRequest withOutputSerialization(OutputSerialization outputSerialization)
      Configures the output serialization
      参数:
      inputSerialization - Output serialization format
      返回:
      Self
    • withScanRange

      public SelectObjectRequest withScanRange(ScanRange scanRange)
      Configures the range of bytes of the input file to scan
      参数:
      scanRange - Range of bytes
      返回:
      Self
    • convertToXml

      public String convertToXml() throws SelectObjectException
      Generates the request in XML format
      返回:
      XML request
      抛出:
      SelectObjectException