Class QueryInterceptingSession

java.lang.Object
tech.ydb.yoj.repository.ydb.client.QueryInterceptingSession
All Implemented Interfaces:
com.yandex.ydb.table.Session

public final class QueryInterceptingSession extends Object implements com.yandex.ydb.table.Session
  • Method Details

    • makeWrapper

      public static Function<com.yandex.ydb.table.Session,com.yandex.ydb.table.Session> makeWrapper(QueryInterceptor interceptor)
    • getId

      public String getId()
      Specified by:
      getId in interface com.yandex.ydb.table.Session
    • createTable

      public CompletableFuture<com.yandex.ydb.core.Status> createTable(String path, com.yandex.ydb.table.description.TableDescription tableDescriptions, com.yandex.ydb.table.settings.CreateTableSettings settings)
      Specified by:
      createTable in interface com.yandex.ydb.table.Session
    • dropTable

      public CompletableFuture<com.yandex.ydb.core.Status> dropTable(String path, com.yandex.ydb.table.settings.DropTableSettings settings)
      Specified by:
      dropTable in interface com.yandex.ydb.table.Session
    • alterTable

      public CompletableFuture<com.yandex.ydb.core.Status> alterTable(String path, com.yandex.ydb.table.settings.AlterTableSettings settings)
      Specified by:
      alterTable in interface com.yandex.ydb.table.Session
    • copyTable

      public CompletableFuture<com.yandex.ydb.core.Status> copyTable(String src, String dst, com.yandex.ydb.table.settings.CopyTableSettings settings)
      Specified by:
      copyTable in interface com.yandex.ydb.table.Session
    • describeTable

      public CompletableFuture<com.yandex.ydb.core.Result<com.yandex.ydb.table.description.TableDescription>> describeTable(String path, com.yandex.ydb.table.settings.DescribeTableSettings settings)
      Specified by:
      describeTable in interface com.yandex.ydb.table.Session
    • executeDataQuery

      public CompletableFuture<com.yandex.ydb.core.Result<com.yandex.ydb.table.query.DataQueryResult>> executeDataQuery(String query, com.yandex.ydb.table.transaction.TxControl txControl, com.yandex.ydb.table.query.Params params, com.yandex.ydb.table.settings.ExecuteDataQuerySettings settings)
      Specified by:
      executeDataQuery in interface com.yandex.ydb.table.Session
    • prepareDataQuery

      public CompletableFuture<com.yandex.ydb.core.Result<com.yandex.ydb.table.query.DataQuery>> prepareDataQuery(String query, com.yandex.ydb.table.settings.PrepareDataQuerySettings settings)
      Specified by:
      prepareDataQuery in interface com.yandex.ydb.table.Session
    • executeSchemeQuery

      public CompletableFuture<com.yandex.ydb.core.Status> executeSchemeQuery(String query, com.yandex.ydb.table.settings.ExecuteSchemeQuerySettings settings)
      Specified by:
      executeSchemeQuery in interface com.yandex.ydb.table.Session
    • explainDataQuery

      public CompletableFuture<com.yandex.ydb.core.Result<com.yandex.ydb.table.query.ExplainDataQueryResult>> explainDataQuery(String query, com.yandex.ydb.table.settings.ExplainDataQuerySettings settings)
      Specified by:
      explainDataQuery in interface com.yandex.ydb.table.Session
    • beginTransaction

      public CompletableFuture<com.yandex.ydb.core.Result<com.yandex.ydb.table.transaction.Transaction>> beginTransaction(com.yandex.ydb.table.transaction.TransactionMode transactionMode, com.yandex.ydb.table.settings.BeginTxSettings settings)
      Specified by:
      beginTransaction in interface com.yandex.ydb.table.Session
    • commitTransaction

      public CompletableFuture<com.yandex.ydb.core.Status> commitTransaction(String txId, com.yandex.ydb.table.settings.CommitTxSettings settings)
      Specified by:
      commitTransaction in interface com.yandex.ydb.table.Session
    • rollbackTransaction

      public CompletableFuture<com.yandex.ydb.core.Status> rollbackTransaction(String txId, com.yandex.ydb.table.settings.RollbackTxSettings settings)
      Specified by:
      rollbackTransaction in interface com.yandex.ydb.table.Session
    • readTable

      public CompletableFuture<com.yandex.ydb.core.Status> readTable(String tablePath, com.yandex.ydb.table.settings.ReadTableSettings settings, BiConsumer<com.yandex.ydb.table.result.ResultSetReader,com.yandex.ydb.table.result.ReadTableMeta> fn)
      Specified by:
      readTable in interface com.yandex.ydb.table.Session
    • executeScanQuery

      public CompletableFuture<com.yandex.ydb.core.Status> executeScanQuery(String query, com.yandex.ydb.table.query.Params params, com.yandex.ydb.table.settings.ExecuteScanQuerySettings settings, Consumer<com.yandex.ydb.table.result.ResultSetReader> fn)
      Specified by:
      executeScanQuery in interface com.yandex.ydb.table.Session
    • keepAlive

      public CompletableFuture<com.yandex.ydb.core.Result<com.yandex.ydb.table.SessionStatus>> keepAlive(com.yandex.ydb.table.settings.KeepAliveSessionSettings settings)
      Specified by:
      keepAlive in interface com.yandex.ydb.table.Session
    • executeBulkUpsert

      public CompletableFuture<com.yandex.ydb.core.Status> executeBulkUpsert(String tablePath, com.yandex.ydb.table.values.ListValue rows, com.yandex.ydb.table.settings.BulkUpsertSettings settings)
      Specified by:
      executeBulkUpsert in interface com.yandex.ydb.table.Session
    • invalidateQueryCache

      public void invalidateQueryCache()
      Specified by:
      invalidateQueryCache in interface com.yandex.ydb.table.Session
    • release

      public boolean release()
      Specified by:
      release in interface com.yandex.ydb.table.Session
    • close

      public CompletableFuture<com.yandex.ydb.core.Status> close(com.yandex.ydb.table.settings.CloseSessionSettings settings)
      Specified by:
      close in interface com.yandex.ydb.table.Session