Documentation ¶
Index ¶
- type MutateContext
- func (ctx *MutateContext) AddCachedTableHandleToTxn(tableID int64, handle any)
- func (ctx *MutateContext) AddTemporaryTableToTxn(tblInfo *model.TableInfo) (tblctx.TemporaryTableHandler, bool)
- func (ctx *MutateContext) AlternativeAllocators(tbl *model.TableInfo) (allocators autoid.Allocators, ok bool)
- func (ctx *MutateContext) ConnectionID() uint64
- func (ctx *MutateContext) EnableMutationChecker() bool
- func (ctx *MutateContext) GetCachedTableSupport() (tblctx.CachedTableSupport, bool)
- func (ctx *MutateContext) GetExchangePartitionDMLSupport() (tblctx.ExchangePartitionDMLSupport, bool)
- func (ctx *MutateContext) GetExprCtx() exprctx.ExprContext
- func (ctx *MutateContext) GetInfoSchemaToCheckExchangeConstraint() infoschema.MetaOnlyInfoSchema
- func (ctx *MutateContext) GetMutateBuffers() *tblctx.MutateBuffers
- func (ctx *MutateContext) GetReservedRowIDAlloc() (*stmtctx.ReservedRowIDAlloc, bool)
- func (ctx *MutateContext) GetRowEncodingConfig() tblctx.RowEncodingConfig
- func (ctx *MutateContext) GetRowIDShardGenerator() *variable.RowIDShardGenerator
- func (ctx *MutateContext) GetStatisticsSupport() (tblctx.StatisticsSupport, bool)
- func (ctx *MutateContext) GetTemporaryTableSizeLimit() int64
- func (ctx *MutateContext) GetTemporaryTableSupport() (tblctx.TemporaryTableSupport, bool)
- func (ctx *MutateContext) InRestrictedSQL() bool
- func (ctx *MutateContext) TxnAssertionLevel() variable.AssertionLevel
- func (ctx *MutateContext) UpdatePhysicalTableDelta(physicalTableID int64, delta int64, count int64, cols variable.DeltaCols)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MutateContext ¶
type MutateContext struct { sessionctx.Context // contains filtered or unexported fields }
MutateContext is used to provide context for table operations.
func NewMutateContext ¶
func NewMutateContext(sctx sessionctx.Context) *MutateContext
NewMutateContext creates a new MutateContext.
func (*MutateContext) AddCachedTableHandleToTxn ¶
func (ctx *MutateContext) AddCachedTableHandleToTxn(tableID int64, handle any)
AddCachedTableHandleToTxn implements `CachedTableSupport` interface
func (*MutateContext) AddTemporaryTableToTxn ¶
func (ctx *MutateContext) AddTemporaryTableToTxn(tblInfo *model.TableInfo) (tblctx.TemporaryTableHandler, bool)
AddTemporaryTableToTxn implements the TemporaryTableSupport interface.
func (*MutateContext) AlternativeAllocators ¶
func (ctx *MutateContext) AlternativeAllocators(tbl *model.TableInfo) (allocators autoid.Allocators, ok bool)
AlternativeAllocators implements the AllocatorContext interface
func (*MutateContext) ConnectionID ¶
func (ctx *MutateContext) ConnectionID() uint64
ConnectionID implements the MutateContext interface.
func (*MutateContext) EnableMutationChecker ¶
func (ctx *MutateContext) EnableMutationChecker() bool
EnableMutationChecker implements the MutateContext interface.
func (*MutateContext) GetCachedTableSupport ¶
func (ctx *MutateContext) GetCachedTableSupport() (tblctx.CachedTableSupport, bool)
GetCachedTableSupport implements the MutateContext interface.
func (*MutateContext) GetExchangePartitionDMLSupport ¶
func (ctx *MutateContext) GetExchangePartitionDMLSupport() (tblctx.ExchangePartitionDMLSupport, bool)
GetExchangePartitionDMLSupport implements the MutateContext interface.
func (*MutateContext) GetExprCtx ¶
func (ctx *MutateContext) GetExprCtx() exprctx.ExprContext
GetExprCtx returns the ExprContext
func (*MutateContext) GetInfoSchemaToCheckExchangeConstraint ¶
func (ctx *MutateContext) GetInfoSchemaToCheckExchangeConstraint() infoschema.MetaOnlyInfoSchema
GetInfoSchemaToCheckExchangeConstraint implements the ExchangePartitionDMLSupport interface.
func (*MutateContext) GetMutateBuffers ¶
func (ctx *MutateContext) GetMutateBuffers() *tblctx.MutateBuffers
GetMutateBuffers implements the MutateContext interface.
func (*MutateContext) GetReservedRowIDAlloc ¶
func (ctx *MutateContext) GetReservedRowIDAlloc() (*stmtctx.ReservedRowIDAlloc, bool)
GetReservedRowIDAlloc implements the MutateContext interface.
func (*MutateContext) GetRowEncodingConfig ¶
func (ctx *MutateContext) GetRowEncodingConfig() tblctx.RowEncodingConfig
GetRowEncodingConfig returns the RowEncodingConfig.
func (*MutateContext) GetRowIDShardGenerator ¶
func (ctx *MutateContext) GetRowIDShardGenerator() *variable.RowIDShardGenerator
GetRowIDShardGenerator implements the MutateContext interface.
func (*MutateContext) GetStatisticsSupport ¶
func (ctx *MutateContext) GetStatisticsSupport() (tblctx.StatisticsSupport, bool)
GetStatisticsSupport implements the MutateContext interface.
func (*MutateContext) GetTemporaryTableSizeLimit ¶
func (ctx *MutateContext) GetTemporaryTableSizeLimit() int64
GetTemporaryTableSizeLimit implements TemporaryTableSupport interface.
func (*MutateContext) GetTemporaryTableSupport ¶
func (ctx *MutateContext) GetTemporaryTableSupport() (tblctx.TemporaryTableSupport, bool)
GetTemporaryTableSupport implements the MutateContext interface.
func (*MutateContext) InRestrictedSQL ¶
func (ctx *MutateContext) InRestrictedSQL() bool
InRestrictedSQL returns whether the current context is used in restricted SQL.
func (*MutateContext) TxnAssertionLevel ¶
func (ctx *MutateContext) TxnAssertionLevel() variable.AssertionLevel
TxnAssertionLevel implements the MutateContext interface.
func (*MutateContext) UpdatePhysicalTableDelta ¶
func (ctx *MutateContext) UpdatePhysicalTableDelta( physicalTableID int64, delta int64, count int64, cols variable.DeltaCols, )
UpdatePhysicalTableDelta implements the StatisticsSupport interface.