Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plan ¶
type Plan interface {
// Do iterates records and applies plan logic to the result set.
// TODO: only get id or some fields.
Do(ctx context.Context, f RowIterFunc) error
// Explain the plan.
Explain(w format.Formatter)
// GetFields returns the result field list for a plan.
GetFields() []*field.ResultField
// Filter try to use index plan to reduce the result set.
// If index can be used, a new index plan is returned, 'filtered' is true.
// If no index can be used, the original plan is returned and 'filtered' return false.
Filter(ctx context.Context, expr expression.Expression) (p Plan, filtered bool, err error)
}
Plan is the interface of query execution plan.
type RowIterFunc ¶
RowIterFunc is the callback for iterating records.
Click to show internal directories.
Click to hide internal directories.