Class QueryInterceptingSession

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

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

    • makeWrapper

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

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

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

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

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

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

      public CompletableFuture<tech.ydb.core.Status> copyTables(tech.ydb.table.settings.CopyTablesSettings copyTablesSettings)
      Specified by:
      copyTables in interface tech.ydb.table.Session
    • describeTable

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

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

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

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

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

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

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

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

      public tech.ydb.core.grpc.GrpcReadStream<tech.ydb.table.query.ReadTablePart> executeReadTable(String s, tech.ydb.table.settings.ReadTableSettings readTableSettings)
      Specified by:
      executeReadTable in interface tech.ydb.table.Session
    • executeScanQuery

      public tech.ydb.core.grpc.GrpcReadStream<tech.ydb.table.result.ResultSetReader> executeScanQuery(String s, tech.ydb.table.query.Params params, tech.ydb.table.settings.ExecuteScanQuerySettings executeScanQuerySettings)
      Specified by:
      executeScanQuery in interface tech.ydb.table.Session
    • readTable

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

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

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

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

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface tech.ydb.table.Session
    • renameTables

      public CompletableFuture<tech.ydb.core.Status> renameTables(tech.ydb.table.settings.RenameTablesSettings renameTablesSettings)
      Specified by:
      renameTables in interface tech.ydb.table.Session
    • readRows

      public CompletableFuture<tech.ydb.core.Result<tech.ydb.table.query.ReadRowsResult>> readRows(String s, tech.ydb.table.settings.ReadRowsSettings readRowsSettings)
      Specified by:
      readRows in interface tech.ydb.table.Session
    • createNewTransaction

      public tech.ydb.table.transaction.TableTransaction createNewTransaction(tech.ydb.common.transaction.TxMode txMode)
      Specified by:
      createNewTransaction in interface tech.ydb.table.Session
    • beginTransaction

      public CompletableFuture<tech.ydb.core.Result<tech.ydb.table.transaction.TableTransaction>> beginTransaction(tech.ydb.common.transaction.TxMode txMode, tech.ydb.table.settings.BeginTxSettings beginTxSettings)
      Specified by:
      beginTransaction in interface tech.ydb.table.Session