예제 #1
0
파일: base.go 프로젝트: latinojoel/tuqtng
func (this *BaseOperator) Evaluate(e ast.Expression, item *dparval.Value) (*dparval.Value, error) {
	// first ensure the query is avaliable
	item.SetAttachment("query", this.query)
	return e.Evaluate(item)
}
예제 #2
0
func (this *ExpressionSargable) evaluateConstant(e ast.Expression) (*dparval.Value, error) {
	return e.Evaluate(dparval.NewValue(map[string]interface{}{}))
}