Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CopContext ¶
type CopContext interface { GetBase() *CopContextBase IndexColumnOutputOffsets(idxID int64) []int IndexInfo(idxID int64) *model.IndexInfo }
CopContext contains the information that is needed when building a coprocessor request. It is unchanged after initialization.
func NewCopContext ¶
func NewCopContext( tblInfo *model.TableInfo, allIdxInfo []*model.IndexInfo, sessCtx sessionctx.Context, requestSource string, ) (CopContext, error)
NewCopContext creates a CopContext.
type CopContextBase ¶
type CopContextBase struct { TableInfo *model.TableInfo PrimaryKeyInfo *model.IndexInfo SessionContext sessionctx.Context RequestSource string ColumnInfos []*model.ColumnInfo FieldTypes []*types.FieldType ExprColumnInfos []*expression.Column HandleOutputOffsets []int VirtualColumnsOutputOffsets []int VirtualColumnsFieldTypes []*types.FieldType }
CopContextBase contains common fields for CopContextSingleIndex and CopContextMultiIndex.
func NewCopContextBase ¶
func NewCopContextBase( tblInfo *model.TableInfo, idxCols []*model.IndexColumn, sessCtx sessionctx.Context, requestSource string, ) (*CopContextBase, error)
NewCopContextBase creates a CopContextBase.
type CopContextMultiIndex ¶
type CopContextMultiIndex struct { *CopContextBase // contains filtered or unexported fields }
CopContextMultiIndex is the coprocessor context for multiple indexes.
func NewCopContextMultiIndex ¶
func NewCopContextMultiIndex( tblInfo *model.TableInfo, allIdxInfo []*model.IndexInfo, sessCtx sessionctx.Context, requestSource string, ) (*CopContextMultiIndex, error)
NewCopContextMultiIndex creates a CopContextMultiIndex.
func (*CopContextMultiIndex) GetBase ¶
func (c *CopContextMultiIndex) GetBase() *CopContextBase
GetBase implements the CopContext interface.
func (*CopContextMultiIndex) IndexColumnOutputOffsets ¶
func (c *CopContextMultiIndex) IndexColumnOutputOffsets(indexID int64) []int
IndexColumnOutputOffsets implements the CopContext interface.
type CopContextSingleIndex ¶
type CopContextSingleIndex struct { *CopContextBase // contains filtered or unexported fields }
CopContextSingleIndex is the coprocessor context for single index.
func NewCopContextSingleIndex ¶
func NewCopContextSingleIndex( tblInfo *model.TableInfo, idxInfo *model.IndexInfo, sessCtx sessionctx.Context, requestSource string, ) (*CopContextSingleIndex, error)
NewCopContextSingleIndex creates a CopContextSingleIndex.
func (*CopContextSingleIndex) GetBase ¶
func (c *CopContextSingleIndex) GetBase() *CopContextBase
GetBase implements the CopContext interface.
func (*CopContextSingleIndex) IndexColumnOutputOffsets ¶
func (c *CopContextSingleIndex) IndexColumnOutputOffsets(_ int64) []int
IndexColumnOutputOffsets implements the CopContext interface.