Documentation ¶
Index ¶
- Variables
- func BuildCompositeClusterByColumnName(s []string) string
- func BuildCompositePrimaryKeyColumnName(s []string) string
- func BuildIndexTableName(ctx context.Context, unique bool) (string, error)
- func BuildMoColumnsFilter(curAccountId uint64) tree.Expr
- func BuildMoDataBaseFilter(curAccountId uint64) tree.Expr
- func BuildMoTablesFilter(curAccountId uint64) tree.Expr
- func BuildUniqueKeyBatch(vecs []*vector.Vector, attrs []string, parts []string, ...) (*batch.Batch, int)
- func ExtractCompositePrimaryKeyColumnFromColDefs(colDefs []*plan.ColDef) ([]*plan.ColDef, *plan.ColDef)
- func FillCompositeClusterByBatch(bat *batch.Batch, cbName string, proc *process.Process)
- func FillCompositePKeyBatch(bat *batch.Batch, p *plan.ColDef, proc *process.Process) error
- func GetClusterByColumnOrder(cbName, colName string) int
- func GetClusterTableAttributeName() string
- func GetClusterTableAttributeType() *tree.T
- func IsClusterTableAttribute(name string) bool
- func JudgeIsCompositeClusterByColumn(s string) bool
- func JudgeIsCompositePrimaryKeyColumn(s string) bool
- func SplitCompositeClusterByColumnName(s string) []string
- func SplitCompositePrimaryKeyColumnName(s string) []string
- func SplitTableAndColumn(name string) (string, string)
- func TableIsClusterTable(tableType string) bool
Constants ¶
This section is empty.
Variables ¶
var CompactPrimaryCol = compactPrimaryCol
var CompactSingleIndexCol = compactSingleIndexCol
var SerialWithCompacted = serialWithCompacted
Functions ¶
func BuildCompositeClusterByColumnName ¶ added in v0.7.0
func BuildCompositePrimaryKeyColumnName ¶ added in v0.6.0
func BuildIndexTableName ¶ added in v0.6.0
func BuildMoColumnsFilter ¶ added in v0.7.0
Build the filter condition AST expression for mo_columns, as follows: account_id = current_id or (account_id = 0 and (att_relname in ('mo_database','mo_tables','mo_columns')))
func BuildMoDataBaseFilter ¶ added in v0.7.0
Build the filter condition AST expression for mo_database, as follows: account_id = cur_accountId or (account_id = 0 and datname in ('mo_catalog'))
func BuildMoTablesFilter ¶ added in v0.7.0
Build the filter condition AST expression for mo_tables, as follows: account_id = cur_account_id or (account_id = 0 and (relname in ('mo_tables','mo_database','mo_columns') or relkind = 'cluster'))
func BuildUniqueKeyBatch ¶ added in v0.6.0
func ExtractCompositePrimaryKeyColumnFromColDefs ¶ added in v0.6.0
func FillCompositeClusterByBatch ¶ added in v0.7.0
func FillCompositePKeyBatch ¶ added in v0.6.0
Build composite primary key batch
func GetClusterByColumnOrder ¶ added in v0.7.0
func GetClusterTableAttributeName ¶ added in v0.7.0
func GetClusterTableAttributeName() string
func GetClusterTableAttributeType ¶ added in v0.7.0
func IsClusterTableAttribute ¶ added in v0.7.0
func JudgeIsCompositeClusterByColumn ¶ added in v0.7.0
func JudgeIsCompositePrimaryKeyColumn ¶ added in v0.6.0
this func can't judge index table col is compound or not
func SplitCompositeClusterByColumnName ¶ added in v0.7.0
func SplitCompositePrimaryKeyColumnName ¶ added in v0.6.0
func SplitTableAndColumn ¶
func TableIsClusterTable ¶ added in v0.7.0
TableIsClusterTable check the table type is cluster table
Types ¶
This section is empty.