All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alicloud.openservices.tablestore.model.sql.SQLQueryRequest Maven / Gradle / Ivy

Go to download

Aliyun Open Services SDK for Java Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有 (C)阿里云计算有限公司 http://www.aliyun.com

There is a newer version: 5.17.5
Show newest version
package com.alicloud.openservices.tablestore.model.sql;

import com.alicloud.openservices.tablestore.model.OperationNames;
import com.alicloud.openservices.tablestore.model.Request;

/**
 * 表示 SQL 数据查询请求
 */
public class SQLQueryRequest implements Request {

    /**
     * 单行查询条件
     */
    private final String query;

    /**
     * 序列化格式
     */
    private final SQLPayloadVersion sqlPayloadVersion;

    public SQLQueryRequest(String query) {
        this(query, SQLPayloadVersion.SQL_FLAT_BUFFERS);
    }

    private SQLQueryRequest(String query, SQLPayloadVersion sqlPayloadVersion) {
        this.query = query;
        this.sqlPayloadVersion = sqlPayloadVersion;
    }

    @Override
    public String getOperationName() {
        return OperationNames.OP_SQL_Query;
    }

    public String getQuery() {
        return query;
    }

    public SQLPayloadVersion getSqlPayloadVersion() {
        return sqlPayloadVersion;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy