Class QueryInterceptingSession
java.lang.Object
tech.ydb.yoj.repository.ydb.client.QueryInterceptingSession
- All Implemented Interfaces:
AutoCloseable,tech.ydb.table.Session
Calls
QueryInterceptor before executeScanQuery(String, Params, ExecuteScanQuerySettings, Consumer)
and executeDataQuery(String, TxControl, Params, ExecuteDataQuerySettings)
then delegates to underlying Session-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface tech.ydb.table.Session
tech.ydb.table.Session.State -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<tech.ydb.core.Status>alterTable(String path, tech.ydb.table.settings.AlterTableSettings settings) CompletableFuture<tech.ydb.core.Result<tech.ydb.table.transaction.TableTransaction>>beginTransaction(tech.ydb.common.transaction.TxMode txMode, tech.ydb.table.settings.BeginTxSettings beginTxSettings) CompletableFuture<tech.ydb.core.Result<tech.ydb.table.transaction.Transaction>>beginTransaction(tech.ydb.table.transaction.Transaction.Mode transactionMode, tech.ydb.table.settings.BeginTxSettings settings) voidclose()CompletableFuture<tech.ydb.core.Status>commitTransaction(String txId, tech.ydb.table.settings.CommitTxSettings settings) CompletableFuture<tech.ydb.core.Status>CompletableFuture<tech.ydb.core.Status>copyTables(tech.ydb.table.settings.CopyTablesSettings copyTablesSettings) tech.ydb.table.transaction.TableTransactioncreateNewTransaction(tech.ydb.common.transaction.TxMode txMode) CompletableFuture<tech.ydb.core.Status>createTable(String path, tech.ydb.table.description.TableDescription tableDescriptions, tech.ydb.table.settings.CreateTableSettings settings) CompletableFuture<tech.ydb.core.Result<tech.ydb.table.description.TableDescription>>describeTable(String path, tech.ydb.table.settings.DescribeTableSettings settings) CompletableFuture<tech.ydb.core.Status>CompletableFuture<tech.ydb.core.Status>executeBulkUpsert(String tablePath, tech.ydb.table.values.ListValue rows, tech.ydb.table.settings.BulkUpsertSettings settings) 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) tech.ydb.core.grpc.GrpcReadStream<tech.ydb.table.query.ReadTablePart>executeReadTable(String s, tech.ydb.table.settings.ReadTableSettings readTableSettings) 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) 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) CompletableFuture<tech.ydb.core.Status>executeSchemeQuery(String query, tech.ydb.table.settings.ExecuteSchemeQuerySettings settings) CompletableFuture<tech.ydb.core.Result<tech.ydb.table.query.ExplainDataQueryResult>>explainDataQuery(String query, tech.ydb.table.settings.ExplainDataQuerySettings settings) getId()CompletableFuture<tech.ydb.core.Result<tech.ydb.table.Session.State>>keepAlive(tech.ydb.table.settings.KeepAliveSessionSettings settings) static Function<tech.ydb.table.Session,tech.ydb.table.Session> makeWrapper(QueryInterceptor interceptor) CompletableFuture<tech.ydb.core.Result<tech.ydb.table.query.DataQuery>>prepareDataQuery(String query, tech.ydb.table.settings.PrepareDataQuerySettings settings) CompletableFuture<tech.ydb.core.Result<tech.ydb.table.query.ReadRowsResult>>CompletableFuture<tech.ydb.core.Status>readTable(String tablePath, tech.ydb.table.settings.ReadTableSettings settings, Consumer<tech.ydb.table.result.ResultSetReader> fn) CompletableFuture<tech.ydb.core.Status>renameTables(tech.ydb.table.settings.RenameTablesSettings renameTablesSettings) CompletableFuture<tech.ydb.core.Status>rollbackTransaction(String txId, tech.ydb.table.settings.RollbackTxSettings settings) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tech.ydb.table.Session
alterTable, beginTransaction, beginTransaction, copyTable, createTable, describeTable, dropTable, executeBulkUpsert, executeDataQuery, executeDataQuery, executeSchemeQuery, explainDataQuery, keepAlive, prepareDataQuery, readTable, renameTable, renameTable
-
Method Details
-
makeWrapper
public static Function<tech.ydb.table.Session,tech.ydb.table.Session> makeWrapper(QueryInterceptor interceptor) -
getId
- Specified by:
getIdin interfacetech.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:
createTablein interfacetech.ydb.table.Session
-
dropTable
public CompletableFuture<tech.ydb.core.Status> dropTable(String path, tech.ydb.table.settings.DropTableSettings settings) - Specified by:
dropTablein interfacetech.ydb.table.Session
-
alterTable
public CompletableFuture<tech.ydb.core.Status> alterTable(String path, tech.ydb.table.settings.AlterTableSettings settings) - Specified by:
alterTablein interfacetech.ydb.table.Session
-
copyTable
public CompletableFuture<tech.ydb.core.Status> copyTable(String src, String dst, tech.ydb.table.settings.CopyTableSettings settings) - Specified by:
copyTablein interfacetech.ydb.table.Session
-
copyTables
public CompletableFuture<tech.ydb.core.Status> copyTables(tech.ydb.table.settings.CopyTablesSettings copyTablesSettings) - Specified by:
copyTablesin interfacetech.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:
describeTablein interfacetech.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:
executeDataQueryin interfacetech.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:
prepareDataQueryin interfacetech.ydb.table.Session
-
executeSchemeQuery
public CompletableFuture<tech.ydb.core.Status> executeSchemeQuery(String query, tech.ydb.table.settings.ExecuteSchemeQuerySettings settings) - Specified by:
executeSchemeQueryin interfacetech.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:
explainDataQueryin interfacetech.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:
beginTransactionin interfacetech.ydb.table.Session
-
commitTransaction
public CompletableFuture<tech.ydb.core.Status> commitTransaction(String txId, tech.ydb.table.settings.CommitTxSettings settings) - Specified by:
commitTransactionin interfacetech.ydb.table.Session
-
rollbackTransaction
public CompletableFuture<tech.ydb.core.Status> rollbackTransaction(String txId, tech.ydb.table.settings.RollbackTxSettings settings) - Specified by:
rollbackTransactionin interfacetech.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:
executeReadTablein interfacetech.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:
executeScanQueryin interfacetech.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:
readTablein interfacetech.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:
executeScanQueryin interfacetech.ydb.table.Session
-
keepAlive
public CompletableFuture<tech.ydb.core.Result<tech.ydb.table.Session.State>> keepAlive(tech.ydb.table.settings.KeepAliveSessionSettings settings) - Specified by:
keepAlivein interfacetech.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:
executeBulkUpsertin interfacetech.ydb.table.Session
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacetech.ydb.table.Session
-
renameTables
public CompletableFuture<tech.ydb.core.Status> renameTables(tech.ydb.table.settings.RenameTablesSettings renameTablesSettings) - Specified by:
renameTablesin interfacetech.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:
readRowsin interfacetech.ydb.table.Session
-
createNewTransaction
public tech.ydb.table.transaction.TableTransaction createNewTransaction(tech.ydb.common.transaction.TxMode txMode) - Specified by:
createNewTransactionin interfacetech.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:
beginTransactionin interfacetech.ydb.table.Session
-