Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TempTableFromMeta func(tblInfo *model.TableInfo) TempTable
TempTableFromMeta builds a TempTable from *model.TableInfo. Currently, it is assigned to tables.TempTableFromMeta in tidb package's init function.
Functions ¶
This section is empty.
Types ¶
type TempTable ¶
type TempTable interface { // GetAutoIDAllocator gets the autoID allocator of this table. GetAutoIDAllocator() autoid.Allocator // SetModified sets that the table is modified. SetModified(bool) // GetModified queries whether the table is modified. GetModified() bool // The stats of this table (*statistics.Table). // Define the return type as interface{} here to avoid cycle imports. GetStats() any GetSize() int64 SetSize(int64) GetMeta() *model.TableInfo }
TempTable is used to store transaction-specific or session-specific information for global / local temporary tables. For example, stats and autoID should have their own copies of data, instead of being shared by all sessions.
Click to show internal directories.
Click to hide internal directories.