Documentation ¶
Index ¶
- Constants
- func GetKeyType(data interface{}) int
- func GetKeyTypeString(key int) string
- func GetValueExprValue(node *driver.ValueExpr) (interface{}, error)
- type BetweenAndElement
- type Filter
- type InElement
- type MatchTable
- func (this *MatchTable) EndPostInfoRatherThan(other *MatchTable) bool
- func (this *MatchTable) EndTimeRatherThan(other *MatchTable) (bool, error)
- func (this *MatchTable) HaveEndPosInfo() bool
- func (this *MatchTable) HaveEndTime() bool
- func (this *MatchTable) HaveStartPosInfo() bool
- func (this *MatchTable) HaveStartTime() bool
- func (this *MatchTable) StartPosInfoLessThan(other *MatchTable) bool
- func (this *MatchTable) StartTimeLessThan(other *MatchTable) (bool, error)
- func (this *MatchTable) Table() string
- type SelectVisitor
Constants ¶
View Source
const ( IN_KEY_TYPE_NONE = iota IN_KEY_TYPE_INT64 IN_KEY_TYPE_UINT64 IN_KEY_TYPE_FLOAT64 IN_KEY_TYPE_STR )
Variables ¶
This section is empty.
Functions ¶
func GetKeyType ¶
func GetKeyType(data interface{}) int
func GetKeyTypeString ¶
func GetValueExprValue ¶
Types ¶
type BetweenAndElement ¶
type BetweenAndElement struct { Not bool Left interface{} Right interface{} }
func NewBetweenAndElement ¶
func NewBetweenAndElement(not bool, left interface{}, right interface{}) *BetweenAndElement
func (*BetweenAndElement) Matched ¶
func (this *BetweenAndElement) Matched(other interface{}) bool
type InElement ¶
func NewInElement ¶
type MatchTable ¶
type MatchTable struct { SchemaName string TableName string ColumnNames []string AllColumn bool StartLogFile string StartLogPos uint64 EndLogFile string EndLogPos uint64 StartRollBackTime string EndRollBackTime string ThreadId uint32 CalcOp []interface{} }
func GetMatchTables ¶
func GetMatchTables(querys string) ([]*MatchTable, error)
func NewMatchTable ¶
func NewMatchTable() *MatchTable
func (*MatchTable) EndPostInfoRatherThan ¶
func (this *MatchTable) EndPostInfoRatherThan(other *MatchTable) bool
结束位点大于其他位点
func (*MatchTable) EndTimeRatherThan ¶
func (this *MatchTable) EndTimeRatherThan(other *MatchTable) (bool, error)
结束时间大于其他位点
func (*MatchTable) StartPosInfoLessThan ¶
func (this *MatchTable) StartPosInfoLessThan(other *MatchTable) bool
开始位点小于其他位点
func (*MatchTable) StartTimeLessThan ¶
func (this *MatchTable) StartTimeLessThan(other *MatchTable) (bool, error)
开始时间小于其他位点
func (*MatchTable) Table ¶
func (this *MatchTable) Table() string
type SelectVisitor ¶
type SelectVisitor struct { CurrentNodeLevel int TableCnt int Err error MTable *MatchTable PosInfoColCnt int // 记录 where 位点字段出现的次数 EliminateOpCnt int // 还有几个操作符需要消除 }
func NewSelectVisitor ¶
func NewSelectVisitor() *SelectVisitor
Click to show internal directories.
Click to hide internal directories.