OmniSciDB  c1a53651b2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
org.apache.calcite.sql2rel.StandardConvertletTable.TrimConvertlet Class Reference
+ Inheritance diagram for org.apache.calcite.sql2rel.StandardConvertletTable.TrimConvertlet:
+ Collaboration diagram for org.apache.calcite.sql2rel.StandardConvertletTable.TrimConvertlet:

Public Member Functions

RexNode convertCall (SqlRexContext cx, SqlCall call)

Package Functions

 TrimConvertlet (SqlTrimFunction.Flag flag)

Private Attributes

final SqlTrimFunction.Flag flag

Detailed Description

Convertlet that converts




Definition at line 1315 of file

Constructor & Destructor Documentation

org.apache.calcite.sql2rel.StandardConvertletTable.TrimConvertlet.TrimConvertlet ( SqlTrimFunction.Flag  flag)

Definition at line 1318 of file

1318  {
1319  this.flag = flag;
1320  }

Member Function Documentation

RexNode org.apache.calcite.sql2rel.StandardConvertletTable.TrimConvertlet.convertCall ( SqlRexContext  cx,
SqlCall  call 

Definition at line 1322 of file

1322  {
1323  final RexBuilder rexBuilder = cx.getRexBuilder();
1324  final RexNode operand = cx.convertExpression(call.getOperandList().get(0));
1325  return rexBuilder.makeCall(SqlStdOperatorTable.TRIM,
1326  rexBuilder.makeFlag(flag),
1327  rexBuilder.makeLiteral(" "),
1328  operand);
1329  }

Member Data Documentation

final SqlTrimFunction.Flag org.apache.calcite.sql2rel.StandardConvertletTable.TrimConvertlet.flag

Definition at line 1316 of file

The documentation for this class was generated from the following file: