Documentation ¶
Index ¶
- type IngestIndexInfo
- type IngestRecorder
- func (i *IngestRecorder) Iterate(f func(tableID int64, indexID int64, info *IngestIndexInfo) error) error
- func (i *IngestRecorder) RewriteTableID(rewriteFunc func(tableID int64) (int64, bool, error)) error
- func (i *IngestRecorder) TryAddJob(job *model.Job, isSubJob bool) error
- func (i *IngestRecorder) UpdateIndexInfo(infoSchema infoschema.InfoSchema) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IngestIndexInfo ¶
type IngestIndexInfo struct { SchemaName pmodel.CIStr TableName pmodel.CIStr ColumnList string ColumnArgs []any IsPrimary bool IndexInfo *model.IndexInfo Updated bool }
IngestIndexInfo records the information used to generate index drop/re-add SQL.
type IngestRecorder ¶
type IngestRecorder struct {
// contains filtered or unexported fields
}
IngestRecorder records the indexes information that use ingest mode to construct kvs. Currently log backup cannot backed up these ingest kvs. So need to re-construct them.
func (*IngestRecorder) Iterate ¶
func (i *IngestRecorder) Iterate(f func(tableID int64, indexID int64, info *IngestIndexInfo) error) error
Iterate iterates all the ingest index.
func (*IngestRecorder) RewriteTableID ¶
RewriteTableID rewrites the table id of the items in the IngestRecorder
func (*IngestRecorder) TryAddJob ¶
func (i *IngestRecorder) TryAddJob(job *model.Job, isSubJob bool) error
TryAddJob firstly filters the ingest index add operation job, and records it into IngestRecorder.
func (*IngestRecorder) UpdateIndexInfo ¶
func (i *IngestRecorder) UpdateIndexInfo(infoSchema infoschema.InfoSchema) error
UpdateIndexInfo uses the newest schemas to update the ingest index's information
Click to show internal directories.
Click to hide internal directories.