Search in sources :

Example 1 with ExpressionStringBuilder

use of org.apache.drill.common.expression.ExpressionStringBuilder in project drill by apache.

the class MapRDBStatistics method convertLExToStr.

/*
   * Returns the String representation for the given Logical Expression
   */
private String convertLExToStr(LogicalExpression lex) {
    StringBuilder sb = new StringBuilder();
    ExpressionStringBuilder esb = new ExpressionStringBuilder();
    lex.accept(esb, sb);
    return sb.toString();
}
Also used : ExpressionStringBuilder(org.apache.drill.common.expression.ExpressionStringBuilder) ExpressionStringBuilder(org.apache.drill.common.expression.ExpressionStringBuilder)

Example 2 with ExpressionStringBuilder

use of org.apache.drill.common.expression.ExpressionStringBuilder in project drill by apache.

the class TreeTest method serializeExpression.

private String serializeExpression(LogicalExpression expr) {
    ExpressionStringBuilder b = new ExpressionStringBuilder();
    StringBuilder sb = new StringBuilder();
    expr.accept(b, sb);
    return sb.toString();
}
Also used : ExpressionStringBuilder(org.apache.drill.common.expression.ExpressionStringBuilder) ExpressionStringBuilder(org.apache.drill.common.expression.ExpressionStringBuilder)

Example 3 with ExpressionStringBuilder

use of org.apache.drill.common.expression.ExpressionStringBuilder in project drill by axbaretto.

the class TreeTest method serializeExpression.

private String serializeExpression(LogicalExpression expr) {
    ExpressionStringBuilder b = new ExpressionStringBuilder();
    StringBuilder sb = new StringBuilder();
    expr.accept(b, sb);
    return sb.toString();
}
Also used : ExpressionStringBuilder(org.apache.drill.common.expression.ExpressionStringBuilder) ExpressionStringBuilder(org.apache.drill.common.expression.ExpressionStringBuilder)

Aggregations

ExpressionStringBuilder (org.apache.drill.common.expression.ExpressionStringBuilder)3