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

com.yandex.ydb.table.query.DataQuery Maven / Gradle / Ivy

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());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy