com.yandex.ydb.table.query.DataQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
JDBC client implementation over Table client, single jar
package com.yandex.ydb.table.query;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import com.yandex.ydb.core.Result;
import com.yandex.ydb.table.settings.ExecuteDataQuerySettings;
import com.yandex.ydb.table.transaction.TxControl;
import com.yandex.ydb.table.values.Type;
/**
* @author Sergey Polovko
*/
public interface DataQuery {
String getId();
Params newParams();
/**
* Returns parameter types
*
* @return unmodifiable map of types
*/
Map types();
Optional getText();
CompletableFuture> execute(
TxControl txControl, Params params, ExecuteDataQuerySettings settings);
default CompletableFuture> execute(TxControl txControl, Params params) {
return execute(txControl, params, new ExecuteDataQuerySettings());
}
default CompletableFuture> execute(TxControl txControl) {
return execute(txControl, Params.empty(), new ExecuteDataQuerySettings());
}
}