tableutil

package
v1.1.0-beta.0...-8c7f784 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL