Constructor and Description |
---|
ProtoConverter() |
ProtoConverter(boolean validateColPosition)
Instantiate a {
ProtoConverter } using a typeMap. |
Modifier and Type | Method and Description |
---|---|
static Expr |
toProto(Expression expression) |
static Expr |
toProto(Expression expression,
Object context) |
protected Expr |
visit(AggregateFunction node,
Object context) |
protected Expr |
visit(ArithmeticBinaryExpression node,
Object context) |
protected Expr |
visit(ColumnRef node,
Object context) |
protected Expr |
visit(ComparisonBinaryExpression node,
Object context) |
protected Expr |
visit(Constant node,
Object context) |
protected Expr |
visit(FuncCallExpr node,
Object context) |
protected Expr |
visit(IsNull node,
Object context) |
protected Expr |
visit(LogicalBinaryExpression node,
Object context) |
protected Expr |
visit(Not node,
Object context) |
protected Expr |
visit(StringRegExpression node,
Object context) |
public ProtoConverter()
public ProtoConverter(boolean validateColPosition)
ProtoConverter
} using a typeMap.validateColPosition
- whether to consider column position in this converter. By default, a
{TiDAGRequest
} should check whether a {ColumnRef
}'s position is correct in
it's executors. Can ignore this validation if `validateColPosition` is set to false.public static Expr toProto(Expression expression)
public static Expr toProto(Expression expression, Object context)
protected Expr visit(LogicalBinaryExpression node, Object context)
protected Expr visit(ArithmeticBinaryExpression node, Object context)
protected Expr visit(ComparisonBinaryExpression node, Object context)
protected Expr visit(StringRegExpression node, Object context)
protected Expr visit(AggregateFunction node, Object context)
Copyright © 2024 PingCAP. All rights reserved.